From ecc5a1aa000bff978edcd3a51f1f85a1c03301f3 Mon Sep 17 00:00:00 2001 From: Jos van den Oever Date: Mon, 2 Sep 2024 10:37:56 +0200 Subject: [PATCH] Disallow { and space in STARTCHAR This solved parsing the example, but is suboptimal. The real fix is to know why STARTCHAR takes precedence over S and START_AMOUNT --- takentaal.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/takentaal.g4 b/takentaal.g4 index 6b69b0e..5679125 100644 --- a/takentaal.g4 +++ b/takentaal.g4 @@ -93,7 +93,7 @@ END_AMOUNT ; STARTCHAR - : [ -"$-/:-\u007A\u007C-\u007E] + : [!-"$-/:-\u007A\u007C\u007E] ; CHAR