From 3774c4edde0e62195c4e7d28829d9b39f1f1f39f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 17 Apr 2021 17:45:23 +0200 Subject: Fix last commit and use it in calc-example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- calc-example/calc.syntax | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calc-example') 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 = _, ("-" | "−"), _; -- cgit v1.2.3-70-g09d2