https://github.com/arranf/dice-command-parser
https://github.com/arranf/dice-command-parser
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/arranf/dice-command-parser
- Owner: arranf
- License: mit
- Created: 2020-03-22T08:07:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-05T09:36:01.000Z (over 2 years ago)
- Last Synced: 2025-04-14T05:08:39.803Z (about 1 year ago)
- Language: Rust
- Size: 48.8 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dice Command Parser
This library parses a simple dice roll command and produces a representation of the dice that should be rolled and its modifier.
Example input: `d6`, `3d20`, `d6 + 5`, or `2d20 - 4`, `d20+4d`, `d100, d100, d100`.