aboutsummaryrefslogtreecommitdiffstats
path: root/calc-example
diff options
context:
space:
mode:
Diffstat (limited to 'calc-example')
-rw-r--r--calc-example/calc.syntax8
1 files changed, 4 insertions, 4 deletions
diff --git a/calc-example/calc.syntax b/calc-example/calc.syntax
index d76b68b..fb5a871 100644
--- a/calc-example/calc.syntax
+++ b/calc-example/calc.syntax
@@ -15,16 +15,16 @@ DIV = _, ("/" | "∕" | "÷"), _;
sign = ADD | SUB;
_digit = DIGIT | _WHITESPACE | "_" | "'";
-unsigned = DIGIT, +({_digit}, !_digit);
+unsigned = DIGIT, {_digit}, !_digit;
_number = unsigned | "(", _expr, (")" | -);
-number = _number, +{_, _number}; (* optionally with implicit multiplication *)
+number = _number, {_, _number}; (* optionally with implicit multiplication *)
value = [sign], number;
_expr = hyper1;
-hyper1 = _, hyper2, {+(ADD | SUB), +(hyper2 | -)}, _;
-hyper2 = _, value, {+(MUL | DIV), +(value | -)}, _;
+hyper1 = _, hyper2, {(ADD | SUB), (hyper2 | -)}, _;
+hyper2 = _, value, {(MUL | DIV), (value | -)}, _;