Systems & Software
Tiger Compiler
A modular C++ compiler pipeline, from lexer to desugared AST
- Role
- Development
- Context
- EPITA, systems curriculum
- Stack
- C++, Flex, Bison, AST, IR, Autotools
- Links
- Private source code, demo available on request
Project sheetTIGR
Overview
Modular compiler pipeline for the Tiger language, built in C++: lexer (Flex), parser (Bison) with tracked locations, typed AST construction, and desugaring of high-level constructs into core forms. The desugared AST doubles as an intermediate representation for further passes, with utilities for debug printing and structured dumps.
Highlights
- 01Flex lexer and Bison parser with tracked locations
- 02Typed AST
- 03Desugaring into core forms, reused as an intermediate representation
- 04Debug printing and structured dumps
Next project 42SH
42sh →