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/syntax_error_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'driver/syntax_error_test.go') diff --git a/driver/syntax_error_test.go b/driver/syntax_error_test.go index 329ccef..93cf637 100644 --- a/driver/syntax_error_test.go +++ b/driver/syntax_error_test.go @@ -19,7 +19,7 @@ func TestParserWithSyntaxErrors(t *testing.T) { { caption: "the parser can report a syntax error", specSrc: ` -%name test +#name test; s : foo @@ -33,7 +33,7 @@ foo: 'foo'; { caption: "when the parser reduced a production having the reduce directive, the parser will recover from an error state", specSrc: ` -%name test +#name test; seq : seq elem ';' @@ -59,7 +59,7 @@ c { caption: "After the parser shifts the error symbol, symbols are ignored until a symbol the parser can perform shift appears", specSrc: ` -%name test +#name test; seq : seq elem ';' @@ -87,7 +87,7 @@ c { caption: "when the parser performs shift three times, the parser recovers from the error state", specSrc: ` -%name test +#name test; seq : seq elem ';' -- cgit v1.2.3