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

    Type Alias DiceNode

    DiceNode: NodeSpan & { count: ASTNode; sides: ASTNode; type: "Dice" }

    Dice roll node (NdX, dX, d%).

    count and sides are full sub-expressions, not numbers, which is what makes computed dice like (1+1)d(3*2) and (1d4)d6 expressible. Both are evaluated first and must resolve to integers; d% desugars to a sides literal of 100, and an omitted count to a count literal of 1.

    Dice rolled by the count/sides sub-expressions are meta-expression dice — they land in RollResult.rolls tagged 'meta' and belong to no pool.