Crates.io | dice-command-parser |
lib.rs | dice-command-parser |
version | 0.8.0 |
source | src |
created_at | 2020-03-22 08:47:38.402831 |
updated_at | 2024-01-05 09:36:39.340175 |
description | A library for parsing basic dice roll commands like 2d20 + 2a |
homepage | |
repository | https://github.com/arranf/dice-command-parser |
max_upload_size | |
id | 221352 |
size | 34,493 |
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
.