This project consists of the development of a basic compiler as part of the Compilers undergraduate course. The main goal is to understand, in practice, how programming languages are processed. The project focus on core compiler construction concepts such as lexical, syntactic, and semantic analysis.
β οΈ [TO BE DEFINED] Some sections that follow will be updated throughout the development.
The compiler will process source code written in a custom language and translate it into C code, which can then be compiled using a standard C compiler such as the gcc (GNU Compiler Collection)
This approach allows us to focus on the compilation process itself while leveraging a mature backend for execution.
- Expressions
- Types
- Boolean
- Int
- Float
- Char
- Operators
- Logical
- Arithmetic
- Relational
- Variables
- Variable assignment
- Conversion
- Implicit
- Explicit
The implementation will follow the traditional compiler pipeline:
- Lexical Analysis (Scanner): Tokenization of source code
- Syntactic Analysis (Parser): Grammar validation and AST generation
- Semantic Analysis: Type checking and scope resolution
- Intermediate Code Generation: Translation to C
- Error Handling: Detection and reporting of compilation errors
Instructions on how to clone, build, and run the project will be added once the development environment is established.
git clone https://github.com/<your-username>/<your-repo>.git- ...