From 3eb0e88f911386a4e6eca991c1471070596c5554 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sat, 7 May 2022 20:41:33 +0900 Subject: Change syntax for top-level directives %name changes to: #name example; %left and %right change to: #prec ( #left a b #right c d ); --- grammar/lr0_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grammar/lr0_test.go') diff --git a/grammar/lr0_test.go b/grammar/lr0_test.go index cde3f0a..1b20d78 100644 --- a/grammar/lr0_test.go +++ b/grammar/lr0_test.go @@ -17,7 +17,7 @@ type expectedLRState struct { func TestGenLR0Automaton(t *testing.T) { src := ` -%name test +#name test; expr : expr add term @@ -227,7 +227,7 @@ id: "[A-Za-z_][0-9A-Za-z_]*"; func TestLR0AutomatonContainingEmptyProduction(t *testing.T) { src := ` -%name test +#name test; s : foo bar -- cgit v1.2.3