ExDiceRoller v1.0.0-rc.0 API Reference
Modules
Converts strings into dice rolls and returns expected results. Ignores any
spaces, including tabs and newlines, in the provided string. A roll can be
invoked via ExDiceRoller.roll/2
Functionality for managing caching for compiled roll functions
Provides functionality for compiling expressions into ready-to-execute functions
Handles compiling expressions using common mathematical operators
Handles compiling dice roll expressions
Handles the ,
separator for rolls
Handles compiling expressions that use variables
Filters are used to filter the final value of an evaluated dice roll using
either a provided comparator and comparison number, such as >=: 3
, or
dropping highest or lowest value, such as drop_highest: true
. Possible
comparators include
Contains functionality for list comphrensions in ExDiceRoller
Functionality for parsing ExDiceRoller.Tokenizer.tokens/0
Han dles the sigil ~a
for dice rolling. If no options are specified, the
sigil will return the compiled function based on the provided roll. Note that
variables cannot be present in the expression when invoking a roll directly
from the sigil
Provides functionality around tokenizing dice roll strings