/compiler

A project to build your own compiler in python.

Primary LanguagePython

#README

Requirements: -python 3 or higher

Run the program from the root folder. To run the program: -python main.py input.txt

Sample files: lexer_error.txt - sample error for lexer. After lexer error, execution continues. parser_error.txt - sample error for parser.After error, execution stops. isymtab.txt - symbol table error: type checking errors. After error, execution continues. isemantic.txt - semantic errors. After error, execution stops.

Run as: python main.py

Code generation done in output.txt

All output except code generation done on stdout, standard output.


NOTE: main.py still has to be properly coded broken into the correct modules. This is just for simulation.