A mini language written using ts-parsec to evaluate a string of rolled dice with arthritic expressions
- Parenthesis -
(1d20 + 2) * 2
- Addition/Subtraction -
1d20 + 17 - 8
- Multiplication/Division -
1d20 / 2
-
npm run test
- Runs test suit -
npm run build
- Runs and outputs compiled typescript -
npx ts-node src/cmd.ts '1d20 * 2 + 1d6'
- Evaluate a roll from the command line