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/lalr1_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grammar/lalr1_test.go') diff --git a/grammar/lalr1_test.go b/grammar/lalr1_test.go index beb2707..94dfd65 100644 --- a/grammar/lalr1_test.go +++ b/grammar/lalr1_test.go @@ -10,7 +10,7 @@ import ( func TestGenLALR1Automaton(t *testing.T) { // This grammar belongs to LALR(1) class, not SLR(1). src := ` -%name test +#name test; S: L eq R | R; L: ref R | id; -- cgit v1.2.3