m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.