diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-18 22:15:35 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-07-18 22:15:35 +0900 |
commit | e4a5958fc8d9e131ab083215a51a1b60acf91410 (patch) | |
tree | 6ca224a42915135e8f5427d62fc52455b1a1bc59 /driver/parser_test.go | |
parent | Add token positions to an AST (diff) | |
download | urubu-e4a5958fc8d9e131ab083215a51a1b60acf91410.tar.gz urubu-e4a5958fc8d9e131ab083215a51a1b60acf91410.tar.xz |
Detect multiple semantic errors in a single parse
Diffstat (limited to 'driver/parser_test.go')
-rw-r--r-- | driver/parser_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/driver/parser_test.go b/driver/parser_test.go index 3dec508..c352e91 100644 --- a/driver/parser_test.go +++ b/driver/parser_test.go @@ -281,7 +281,8 @@ foo: "foo"; t.Fatal(err) } - g, err := grammar.NewGrammar(ast) + var b grammar.GrammarBuilder + g, err := b.Build(ast) if tt.specErr { if err == nil { t.Fatal("an expected error didn't occur") |