lib_dice
A dice parsing library uses nom for dice syndax parsing
Usage
Cargo.toml
[]
= { = "https://github.com/twh2898/lib_dice" }
src/main.rs
extern crate lib_dice;
Example
$ git clone https://github.com/twh2898/lib_dice.git
$ cd lib_dice
$ cargo run --example demo
The following prompt will start. Close the demo with CTRL + C
Welcome to Dice Line v0.1.0
> 1d8
3
> 3d6 + 8
16
Licence
lib_dice uses the MIT Licence