Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 578 Bytes

README.md

File metadata and controls

52 lines (42 loc) · 578 Bytes

compilers-principles-lab

BJUT 2024 Compiler Principles Lab

Grammatical Analysis Method

  • Recursive Subroutine Method
make GRAMMAR=RS

or

make
  • LR(1) Method
make GRAMMAR=LR1

Compile

make

Run

build/main [input file]

Grammar tree visualization

Need to install graphviz Only support Recursive Subroutine Method

make image

Debug

On MacOS

make lldb ARGS="[input file]"

On Linux

make gdb ARGS="[input file]"

Clean

make clean