kradical / rusty-pl0

pl0 compiler+interpreter in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

pl0 compiler+interpreter in Rust

License:MIT License


Languages

Language:Rust 100.0%