This project is a simple compiler built from scratch using the C programming language. It serves as a learning tool to explore the fundamental processes involved in compiling source code into executable programs.
- Lexical Analysis: Tokenizes the input source code.
- Parsing: Analyzes the syntax of the code and builds an abstract syntax tree.
- Semantic Analysis: Checks for semantic correctness.
- Code Generation: Converts the parsed code into an intermediate representation or target code.
- Language: C
- Tools: GCC, Makefile
- Development Environment: Linux/Unix-based systems
-
Clone the repository:
git clone https://github.com/Arthurbric/Compiler_C.git cd custom-compiler -
Compile the source code:
make
-
Run the compiler on a sample source file:
./compiler sample.c
- Arthur Arash Briceño Heidari
For questions or contributions, feel free to reach out:
- Email: arthurarash.bric@gmail.com