A super tiny compiler project that demonstrates the basics of building a simple compiler from scratch.
The Super Tiny Compiler is a minimalistic compiler project created to help you understand the fundamental concepts of building a compiler. It provides a simple example of how a compiler can tokenize and parse a basic programming language.
- Lexer: Tokenizes the source code into individual tokens.
- Parser: Parses the tokens into an abstract syntax tree (AST).
- Transformer: Transforms the AST into a new, target programming language.
- Code Generator: Generates code in the target language.
Before you begin, ensure you have met the following requirements:
- Your development environment should support your chosen programming language.
- Clone the repository:
git clone https://github.com/namansharma18899/super-tiny-compiler.git
-
python3 main.py