Custom Compiler Engine
JFlexJCUPJavaAssembly
Overview
A comprehensive compiler implementation built from scratch, featuring a complete pipeline from source code to executable output. The compiler includes lexical analysis using JFlex, parsing with JCUP to construct abstract syntax trees, semantic analysis with type checking, and code generation targeting a custom intermediate representation.
Key Features
- Lexical analysis with regular expression-based tokenization
- LR parsing with grammar-driven AST construction
- Type checking and semantic analysis
- Intermediate code generation
- Symbol table management
Source Code
position = initial + rate * 60;