roll-parser - v3.4.0
    Preparing search index...

    Enumeration TokenType

    Token types for dice notation.

    Grouped semantically. Numeric values are stable identifiers — the specific numbers don't matter, but they must be unique.

    Index
    AT: 32

    Variable reference prefix: '@'

    COMMA: 17

    Argument separator: ','

    CRIT_FAIL: 36

    Critical failure threshold: 'cf'

    CRIT_SUCCESS: 35

    Critical success threshold: 'cs'

    DICE: 1

    Dice operator: 'd' or 'D'

    DICE_FATE: 3

    Fate/Fudge dice operator: 'dF'

    DICE_PERCENT: 2

    Percentile dice operator: 'd%' (alias for d100)

    DIVIDE: 7

    Division operator: '/'

    DROP_HIGH: 20

    Drop highest modifier: 'dh'

    DROP_LOW: 21

    Drop lowest modifier: 'dl'

    EOF: 37

    End of input marker

    EQUAL: 14

    Equal: '='

    EXPLODE: 22

    Standard explode: '!'

    EXPLODE_COMPOUND: 23

    Compounding explode: '!!'

    EXPLODE_PENETRATING: 24

    Penetrating explode: '!p'

    FAIL: 27

    Fail marker: 'f'

    FUNCTION: 28

    Math function: 'floor', 'ceil', 'round', 'abs', 'sqrt', 'pow', 'max', 'min'. In postfix position, 'min'/'max' double as per-die clamp modifiers (4d6min2) — the parser decides by position, not the lexer.

    GREATER: 10

    Greater than: '>'

    GREATER_EQUAL: 11

    Greater than or equal: '>='

    KEEP_HIGH: 18

    Keep highest modifier: 'kh' or 'k'

    KEEP_LOW: 19

    Keep lowest modifier: 'kl'

    LBRACE: 30

    Left brace: '{'

    LESS: 12

    Less than: '<'

    LESS_EQUAL: 13

    Less than or equal: '<='

    LPAREN: 15

    Left parenthesis: '('

    MINUS: 5

    Subtraction operator: '-'

    MODULO: 8

    Modulo operator: '%'

    MULTIPLY: 6

    Multiplication operator: '*'

    NUMBER: 0

    Numeric literal: integer or decimal

    PLUS: 4

    Addition operator: '+'

    POWER: 9

    Power operator: '**' or '^'

    RBRACE: 31

    Right brace: '}'

    REROLL: 25

    Recursive reroll: 'r'

    REROLL_ONCE: 26

    Reroll once: 'ro'

    RPAREN: 16

    Right parenthesis: ')'

    SORT_ASC: 33

    Ascending sort: 's' or 'sa'

    SORT_DESC: 34

    Descending sort: 'sd'

    VS: 29

    Versus operator: 'vs'