Compiler for C++ using Flex(Lex) and Bison(Yacc), that compiles:
- if else, switch case default.
- for, do while, while.
- fuctions, nested blocks.
- expressions, all operators(arithmetic, assignment, ..etc).
- data types (int, float, char, bool, const).
- break, continue.
JDK 11 | Flex | Bison | Cmake | G++ |
---|---|---|---|---|
User | Dev | Dev | Dev | Dev |
Run the following script:
./build.sh
Double click on Executables/GUI.jar or run the following command from the Executables directory:
java -jar /GUI.jar
Put your code file in build folder and name it 'source.cp' then run the followig command from the build directory:
./cplus
You will get 3 output files:
- quad.txt contains the quadruples.
- log.txt contains any errors and warnings.
- table.txt contains the data in the symbol table after compiling the program.