This repository is part of an educational series exploring the complexities of building a compiler for a custom programming language targeting the x86 CPU using NASM (Netwide Assembler). The project is named after Hades, the Greek god of the underworld, blending mythology with technology.
The primary goal is to create a basic compiler capable of solving simple LeetCode problems and scripting-level programs. This is an educational passion project to understand compiler construction, not intended for production use.
The compiler will follow a traditional structure:
- Tokenization: Breaking down the source code into tokens.
- Abstract Syntax Tree (AST): Converting tokens into an AST.
- Code Generation: Translating the AST into assembly code.
Hello world example:
hero a = 2; # variable
hero b = 3; # variable
styx a; # prints a
bestow a; # returns a
./run_mac.sh
NYI
NYI
Provided as is with no maintenance or guarantees.