Peach Compiler is a simple C project made for compiling C projects and file into x86 32-bit machine code.
This compiler is made fully in C. It is 32-bit compatible.
At this stage the compiler performs lexical analysis and created a AST (Abstract Syntax Tree) for some types (still under developemnt).
For more information about the progress and stages check the 'Overview' section.
Fodo Compiler is a simple C project made for compiling C projects and file into x86 32-bit machine code.
This compiler is made fully in C. It is 32-bit compatible.
At this stage the compiler performs lexical analysis and created a AST (Abstract Syntax Tree) for some types (still under developemnt).
For more information about the progress and stages check the 'Overview' section.
- To be able to run this locally, you need to install make, gcc and gdb, to do this run:
sudo apt-get install make
sudo apt-get install gcc
sudo apt-get install gdb- To run th project locally, you need
gccandmakeinstalled. It works better on linux. (Disclaimer not tried on arch architecture for new MacBooks). - Step 1: Clone the repository locally
git clone https://github.com/fedi-nabli/PeachCompiler.git. - Step 2: Run
makeormake cleanthenmakefor clean build. - Step 3: Run
./mainand the output should be'Everything compiled ok'.
- The compiler is still in the development stage.
- The compiler is divided into 6 parts:
- Lexer: Done
- Parser: Done
- Code generator: In Progress
- Preprocessor: Not started
- Macro system: Not started
- Semantic validator: Not started
For any information or question contact me via email at fedinabli@gmail.com or fedinabli@ieee.org.