diff options
author | Mattias Andrée <maandree@kth.se> | 2021-04-17 17:45:23 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-04-17 17:45:23 +0200 |
commit | 3774c4edde0e62195c4e7d28829d9b39f1f1f39f (patch) | |
tree | 3df6757c21133934a1d1ab485c008fab535e0fe3 /calc-example/calc.syntax | |
parent | Add implement support for character ranges (diff) | |
download | libparser-3774c4edde0e62195c4e7d28829d9b39f1f1f39f.tar.gz libparser-3774c4edde0e62195c4e7d28829d9b39f1f1f39f.tar.bz2 libparser-3774c4edde0e62195c4e7d28829d9b39f1f1f39f.tar.xz |
Fix last commit and use it in calc-example1.0
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'calc-example/calc.syntax')
-rw-r--r-- | calc-example/calc.syntax | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/calc-example/calc.syntax b/calc-example/calc.syntax index ef7a9f4..286019b 100644 --- a/calc-example/calc.syntax +++ b/calc-example/calc.syntax @@ -2,7 +2,7 @@ _WHITESPACE = " " | "\t" | " "; _ = {_WHITESPACE}; -DIGIT = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"; +DIGIT = <"0", "9">; ADD = _, ("+"), _; SUB = _, ("-" | "−"), _; |