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/slr1_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grammar/slr1_test.go') diff --git a/grammar/slr1_test.go b/grammar/slr1_test.go index 954446f..6748802 100644 --- a/grammar/slr1_test.go +++ b/grammar/slr1_test.go @@ -9,7 +9,7 @@ import ( func TestGenSLR1Automaton(t *testing.T) { src := ` -%name test +#name test; expr : expr add term -- cgit v1.2.3