Rust crate capable of parsing and evaluating dice expressions like
d20+1d4-1d6+3
. The main crate (here) provides parsing and evaluation
facilities. There are also sub-crates for CLI and WebAssembly (WASM) support. See their
READMEs for more more information.
A live WASM demo can be found on my website.
Many thanks to Robert Nystrom's book Crafting Interpreters for providing the foundation for this small project.