Expand description
This crate provides functionality for the basic parsing of dice roll commands e.g. d100, d6 + 5, 2d20 - 1.
Given some input it will produce a DiceRollWithOp struct which can be used to then calculate a result.
Modules§
- dice_
roll - Provides access to the
DiceRollstruct. - dice_
roll_ with_ op - Provides access to the
DiceRollWithOpstruct. - error
- Provides access to the
ParserErrorstruct.
Functions§
- parse_
line - Takes a string of dice input and returns a
Result<DiceRoll, ParserError>