Automata and Formal Languages/Compiler Design
- Cosmic Script Compiler
- Group 4 BSCS 3-3
- 2nd Sem 2023
To run:
- Clone/download the repo
- Type
cd executein the terminal - Type
python main.pyin the terminal
Features:
- Lexer: read characters and tokenize
- Parser: read tokens and build ast
- Syntax analyzer: analyze the syntax based on the tokens
- Semantic analyzer: analyzes the context of the tokens and checks if used properly.
- Transpiler: transpiles abstract syntax tree nodes to python.
Other:
- Built own library in
built-in.pyused to add methods (used as functions).