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 /grammar/slr_test.go | |
parent | Add token positions to an AST (diff) | |
download | cotia-e4a5958fc8d9e131ab083215a51a1b60acf91410.tar.gz cotia-e4a5958fc8d9e131ab083215a51a1b60acf91410.tar.xz |
Detect multiple semantic errors in a single parse
Diffstat (limited to 'grammar/slr_test.go')
-rw-r--r-- | grammar/slr_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/grammar/slr_test.go b/grammar/slr_test.go index 089b73b..1ebb02d 100644 --- a/grammar/slr_test.go +++ b/grammar/slr_test.go @@ -39,7 +39,8 @@ id: "[A-Za-z_][0-9A-Za-z_]*"; if err != nil { t.Fatal(err) } - gram, err = NewGrammar(ast) + var b GrammarBuilder + gram, err = b.Build(ast) if err != nil { t.Fatal(err) } |