An interpreter for OCR's exam reference language used in the j277 course
It implements everything from the spec (in section 3c), but liberties have been taking as the spec is hardly very specific on everything other than syntax (and even then it isn't the best).
Go to the releases page & download the archive for your platform, then extract it wherever you like.
You'll need an up to date Rust toolchain. Development happens on the latest stable version, so no guarantees that older versions will work.
Clone the repo, cd
into its root directory & run
cargo build
to get a debug build, or
cargo build --release
for a release build.
cargo run [--release]
will run the program, and
cargo install --path crates/ocrlang
will install it to ~/.cargo/bin
Run the command
cargo install --git https://github.com/Clay-6/ocrlang.git
to install from the main branch.
Running
ocrlang
will open a REPL where you can execute lines of code. Run the command
ocrlang <FILE>
to run <FILE>
.