Our first programming language is a simple calculator supporting addition and subtraction. This is perhaps the simplest language that helps us introducing the major topics from grammar to compilation and virtual machine.
If you haven't cloned the GitHub repo already, please do and navigate to the
To start, we have
1 + 1; in examples/simple.calc where you can compile with
cargo build --bin main // create a simple executable for Calc ../target/debug/main examples/simple.calc
cargo run --bin main examples/simple.calc