diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-22 02:19:11 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-22 02:19:11 +0900 |
commit | 42cea3ead12d4f64c03aca2892c37e0f6c8c4c90 (patch) | |
tree | 0c9839695aee5fe3b51b0e6e372162682eccd0f3 /driver/parser_test.go | |
parent | Print pattern strings of anonymous pattern on conflict messages (diff) | |
download | cotia-42cea3ead12d4f64c03aca2892c37e0f6c8c4c90.tar.gz cotia-42cea3ead12d4f64c03aca2892c37e0f6c8c4c90.tar.xz |
Write a description file
The description file describes a LR(0) item set and conflicts (if any).
Diffstat (limited to 'driver/parser_test.go')
-rw-r--r-- | driver/parser_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/driver/parser_test.go b/driver/parser_test.go index c352e91..0bf8175 100644 --- a/driver/parser_test.go +++ b/driver/parser_test.go @@ -281,8 +281,10 @@ foo: "foo"; t.Fatal(err) } - var b grammar.GrammarBuilder - g, err := b.Build(ast) + b := grammar.GrammarBuilder{ + AST: ast, + } + g, err := b.Build() if tt.specErr { if err == nil { t.Fatal("an expected error didn't occur") |