PL/0 Compiler Extension(including repeat, for, case, function, real, record and so on)
src/PLsource code of PL compiler;src/interpretsource code of interpret for intermediate code;- There are
Makefiles in bothsrc/PLandsrc/interpret; TestCasesbasic test case files andrunscript;TestCases/runscript for compiling PL compiler and interpret, test some case and so on.
- Install GNU Make and ensure that the path is addedd to the system variable
PATH.
TestCases/run.ps1forpowershellin Windows.
cd TestCases
# run script directly(compile and run test1.pls by default)
./run
# run script with specific .pls file
./run part1.plsThere is Makefile in source dir. And you can just run make to compile PL compiler or interpret.
- expand
repeatstatement - expand
forstatement - expand
casestatement - expand
functionstatement - expand
realstructure - implicit conversion from
inttoreal - expand
recordstructure -
runscript forpowershell -
runscript forbash - batch script for test cases