diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2022-05-07 20:41:33 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2022-05-10 23:14:41 +0900 |
commit | 3eb0e88f911386a4e6eca991c1471070596c5554 (patch) | |
tree | 4c3ea445a804d781b846739d70392ceb1353ea6d /driver/syntax_error_test.go | |
parent | Make #prec directive change only precedence and not associativity (diff) | |
download | cotia-3eb0e88f911386a4e6eca991c1471070596c5554.tar.gz cotia-3eb0e88f911386a4e6eca991c1471070596c5554.tar.xz |
Change syntax for top-level directives
%name changes to:
#name example;
%left and %right change to:
#prec (
#left a b
#right c d
);
Diffstat (limited to 'driver/syntax_error_test.go')
-rw-r--r-- | driver/syntax_error_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
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 ';' |