diff options
-rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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. |