Micro Java Compiler
A Python compiler study with lexical analysis, parsing and semantic checks.
Explore the buildThe challenge
The problem behind the build
A compiler exercise needs each stage to expose structured output and useful errors to the next stage.
The approach
How the pieces fit together
Separate modules implement tokens, grammar, parser variants, an AST, symbol tables and semantic analysis.
Capabilities
Inside the implementation
Lexer and token model
Recursive-descent, predictive and LR parsing modules
Semantic analysis and symbol-table handling
Technology
The stack behind this project
PythonCompiler Design
Project scope
An academic compiler implementation.
Keep exploring
Related work
Your next build
Planning a similar system?
Tell us what needs to work, who will use it and where the current process gets stuck.