Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.08 KB

File metadata and controls

26 lines (21 loc) · 1.08 KB

Modern Compiler Implementation in C++

CMake CodeQL

This is a c++ 17/20 implementation of book Modern Compiler Implementation in C. Still in working, any question or suggestion are welcome :)

Lexer ✅ | Parser ✅ | AST ☑️ | Semantic ☑️ | IR ☑️ | Back End ☑️

Build

mkdir build
cd build && cmake ..
cmake --build .
ctest # run unit test and regression test.

Implementation

Lexer & parser

Lexer use flex to implement the token scanner. Parser use Bison to implement the context free grammer.