Expand description
This crate provides functionality for the basic parsing of dice roll commands e.g. yyypp
, 2g1y2p
, difficulty difficulty ability proficiency
.
Given some input it will produce a DiceRoll
struct which can be used to then calculate a result.
Modules§
- dice
- Provices access to the
Dice
enum. - dice_
roll - Provides access to the
DiceRoll
struct. - error
- Provides access to the
ParserError
struct.
Functions§
- parse_
line - Takes a string of dice input and returns a
Result<DiceRoll, ParserError>