/PL0-Compiler

This is a PL0 compiler written mainly in C. A project for Principle of Compiler course in SDU.

Primary LanguageC

PL0 Compiler

note: the SLR syntax parser in LR_table_gen is from Vipul197/slr-parser

environment: Linux

requirement: gcc

usage

just build

make all

build and run

make run

run

./main prog.pas

note:

  • run means compile and run the program.

  • it is not the same with original PL/0 assembly code.