Created a compiler for a custom language in C
- To compile all the files, run the
makecommand. - To run the compiler on a file 'input.txt' and storing the Parse Tree as an output in a file called 'output.txt' with a buffer size of 50, run
./runCompiler input.txt output.txt 50
- Twin Buffer
- Lexer
- Lexical Error Handling
- Keyword Handling
- Tokenization
- Parser
- Automatic First & Follow of the Grammar
- Parser Error Handling
- Parse Tree Generation
- Abstract Syntax Tree Generation
- Symbol Table
- Type Checking
- Semantic Analyzer (Incomplete)
All header files with the 'Def' suffix are being used to implement the structure, while rest of the header files contain function declarations.
- Darshan Abhaykumar 2020A7PS1214P
- Debjit Kar 2020A7PS0970P
- Nidhish Parekh 2020A7PS0986P