This is a simple lexical analyzer for the C language. The repository contains an example program in C for testing.
This basically identifies tokens , keep track of the line , Eliminates Comments and While spaces.
Run Command : python Alliance.py
First run the lexer(cpp file) Then run the parser(python file) Then run the icg( python file) By default TC0 (testcase-0) is there in the code to give other testcases in line number-135 of "lexer" change the file name.
TC0,T1,TC2,TC3 --> Testcases ptable --> parsing table LL(1) Tokens --> gives input to the parser(taken from lexer)
- Manideep : Compiler Developer
- Varshith : Compiler Developer
- Aryan : Project Manager
- ND Bharat : Assistance and Code Tester