Research & LabsCompiler project

Micro Java Compiler

A Python compiler study with lexical analysis, parsing and semantic checks.

Explore the build
Discipline
Research & Labs
Build
Compiler project
Core stack
Python / Compiler Design
Write-up
Project notes

The problem behind the build

A compiler exercise needs each stage to expose structured output and useful errors to the next stage.

How the pieces fit together

Separate modules implement tokens, grammar, parser variants, an AST, symbol tables and semantic analysis.

Inside the implementation

Lexer and token model

Recursive-descent, predictive and LR parsing modules

Semantic analysis and symbol-table handling

The stack behind this project

PythonCompiler Design

Project scope

An academic compiler implementation.

Planning a similar system?

Tell us what needs to work, who will use it and where the current process gets stuck.