A first Example

start:        die  /^\Z/

die:          'd' number
            | number 'd' number

number:       /\d+/


This matches AD&D style die roles, d4, 3d8, etc.
[Prev] [Next] [Index]