#command-parser #dnd #dice #ttrpg #parser

genesys-dice-command-parser

A library for parsing basic Genesys dice roll commands

2 releases

0.1.1 May 18, 2022
0.1.0 May 17, 2022

#5 in #ttrpg


Used in genesys-dice-roller

MIT license

14KB
252 lines

Dice Command Parser

This library parses a simple Genesys dice roll string (also works for Star Wars FFG RPG) and produces a representation of the dice that should be rolled and its modifier.

Example input: 2g1r1p, yyypp, difficulty difficulty ability proficiency etc.

Dependencies

~1–1.6MB
~33K SLoC