m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-09-02 00:56:13 -0400
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-09-02 01:02:16 -0400
commitb8657836f1b6aac63de9f6a618c31b2e65fba3e7 (patch)
tree3e6775b259ab53fb17bc8addda02a60d27e59a43
parent1cc6b80cfd4875f289837421cdbe81e3dfcf0ed1 (diff)
Update README
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 9715c90..b701fd6 100644
--- a/README.md
+++ b/README.md
@@ -93,6 +93,7 @@ The parser recognizes the following grammar:
| Die 'a' Die
| Die 'T' Die
| Die 't' Die
+ | Die ' x ' Die
Semantics are defined in terms of the `pool` function.
@@ -140,6 +141,9 @@ Semantics are defined in terms of the `pool` function.
0, otherwise its value is 1.
* `DtE` is like `T` but dice with values *higher* than what was rolled on `D` are
counted as 0's, the rest as 1's.
+* `D x E` will repeatedly roll `D`. First `E` is rolled, then `D` is rolled as
+ many times as the value rolled on `E`. The pools generated by `D` are
+ concatenated to generate the new pool.
Additionally:
@@ -153,3 +157,6 @@ Additionally:
equivalent to `1d(2d3)`, use explicit parentheses if you need `(1d2)d3`).
* Die operations bind stronger than the binary arithmetic operations
(`1d6 + 1d4` is equivalent to `(1d6) + (1d4)`) and the bonus operations.
+* The repetition operation ` x ` is left assosiative. It binds stronger than
+ the standard arithmetic operations, but weaker than the dice operations and
+ the bonus operations.