Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 547 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 547 Bytes

rusty-pl0

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 program
  • cargo 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.