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 ); --- driver/semantic_action_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'driver/semantic_action_test.go') diff --git a/driver/semantic_action_test.go b/driver/semantic_action_test.go index f9708b7..ad58780 100644 --- a/driver/semantic_action_test.go +++ b/driver/semantic_action_test.go @@ -47,7 +47,7 @@ func (a *testSemAct) MissError(cause VToken) { func TestParserWithSemanticAction(t *testing.T) { specSrcWithErrorProd := ` -%name test +#name test; seq : seq elem semicolon @@ -70,7 +70,7 @@ char ` specSrcWithoutErrorProd := ` -%name test +#name test; seq : seq elem semicolon -- cgit v1.2.3