Mini compiler is a flex, bison project using c. THe outcome is a simplistic lexical & syntax analyzer, with lexical & syntax warnings & Errors, as well as fatal Errors. Further more...
This Code presents a funtional verbal analyzer using Flex. This code identifies delimiters, numbers, operators, variables and strings etc. It also, counts Verbal Errors, Warnings and Fatal Errors And acts upon them. Other than that, it counts Correct Verbal usage.
This Code presents a funtional Syntax analyzer using bison. This Code is an extends the flex code, but also addons, Developing various syntax and expressions while defining warnings erros and Fatal Errors.
Upon successful project compilation, the input.txt file undergoes lexical and syntactic analysis. The output of which is saved in Output.txt
- In the same directory type:
make
To compile and run the project
- You can also type:
make clean
To delete the built files
- A linux based operating system.
- Bison installed. To install, if not intalled already write the following:
sudo apt install bison
- Flex installed. To install, if not intalled already write the following:
sudo apt install flex
- C compiler installed. To install, if not intalled already write the following:
sudo apt install gcc
- Makefile installed. To install, if not intalled already write the following:
sudo apt install make