A compiler for the Jack programming language, implemented in Haxe.
Jack is a simple, high-level, object-based language introduced in the nand2tetris course, widely taught in computer science programs.
This project translates Jack source code into VM code (intermediate representation for the Hack computer platform).
- Full implementation of the Jack compiler
- Written entirely in Haxe
- Produces VM code compatible with the nand2tetris VM
- Supports classes, methods, control flow, and expressions as defined in the Jack language
Parser.hx
– Parses Jack source code into tokens and syntax treesSymbolTable.hx
– Manages identifiers and scopeVMWriter.hx
– Outputs VM commandsCompilationEngine.hx
– Coordinates parsing and code generation
Clone the repository:
git clone https://github.com/Kugman/Jack-Compiler-By-Haxe.git
cd jack-compiler-haxe