ExDiceRoller v0.5.0-alpha 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/3

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

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