(WIP)
A parser implemented in C# as a final requirement for my CCS 238 Programming Languages class for Dr. Felipe P. Vista IV.
Demonstrates compiler design theory from:
Scanner (Lexical Analysis) -> Parser (Syntax Analysis)
Progress:
- Scanner Tokenization
- Parse Tree
- Expression Output
Written by:
- 🤓 Carlo Antonio T. Taleon
- 👧 Glecy S. Elizalde
- 🤠 Christopher Joseph T. Rubinos
Make sure to install .Net SDK if you haven't yet
- Clone this repo and change your directory
# >
git clone https://github.com/Blankeos/cs-parser
cd cs-parser
# cs-parser>
- Run the project in your terminal
# cs-parser>
dotnet run
It's basically like you're talking to some dude named Carlo.
- Variables with
create
- Print to console with
say
- Arithmetic
+
-
*
/
- Comments with
%
% filename: input.carlo
create age = 21
say age
% 21
say age - 1
% 20
func sayHello(name, age)
say "Hello " + name + "! You are " + age
sayHello "Carlo" 21
% Hello Carlo! You are 21