- It comprised of two phases:
- Lexical Analyzer
- Parser
Only flex
and bison
are required to be installed on your machine. The code has been tested last on Ubuntu 20.04.
sudo apt install flex
sudo apt install bison
Then run:
bison -d parser.y
flex lexical_analyzer.l
gcc -o compiler parser.tab.h parser.tab.c lex.yy.c -ll
./compiler
- Negar Nadian (@negarndn)
- Parisa Shahabinejad (@parissashahabi)
- Nafiseh Momeni (@nafis-momeni)