This project is for the course CS335 at IITK. It involves designing of a compiler.
- Source Language : C
- Implementation Language : Python
- Target Language : MIPS
- Ankur Kumar
- Kartik Raj
- Shubham Kumar Pandey
- Downloaded yacc grammar and lex input specifications for C language
- Implemented stand alone scanner/lexer
- Implemented parser integrated with scanner
- Added action rules to output the correct parse tree
- For using stand alone scanner on a file in test directory, run : python scanner.py ../test/
- Parse a file in test directory using : python parser.py ../test/
Note: There is no need to build anything in python, so bin directory is empty