All projects
C Compiler
2023 · Flex · Bison · C · Compiler Design
Overview
A working compiler for a substantial subset of the C language, built end to end across the full compilation pipeline.
Stages implemented:
Stages implemented:
- Lexical analysis with Flex, producing the token stream
- Parsing with Bison, building the abstract syntax tree
- Semantic analysis: symbol table management, scope resolution, and type checking
- Intermediate and target code generation with error reporting throughout
My role
Sole developer.
- Wrote the grammar and lexical specification for the supported C subset.
- Implemented the symbol table with hierarchical scoping.
- Built the type checker and code generator, with diagnostic messages for invalid programs.
- Wrote the grammar and lexical specification for the supported C subset.
- Implemented the symbol table with hierarchical scoping.
- Built the type checker and code generator, with diagnostic messages for invalid programs.
