A compiler + interpreter for the pl0 programming language in Rust.
pl0 is an educational subset of pascal.
See pl/0 syntax, grammar, and semantics
To run:
- install rust compiler
- install cargo
- navigate to the root project directory
cargo run < test.pl0
to test a syntactically valid pl/0 programcargo run < err.pl0
to test a program with errors
As seen above the program reads from stdin.
testKEY.out
and errKEY.out
act as expected outputs to compare to when making changes.