aboutsummaryrefslogtreecommitdiff
path: root/grammar/slr1_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'grammar/slr1_test.go')
-rw-r--r--grammar/slr1_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/grammar/slr1_test.go b/grammar/slr1_test.go
index 76ceee2..c773c6a 100644
--- a/grammar/slr1_test.go
+++ b/grammar/slr1_test.go
@@ -44,7 +44,7 @@ id: "[A-Za-z_][0-9A-Za-z_]*";
t.Fatal(err)
}
- lr0, err := genLR0Automaton(gram.productionSet, gram.augmentedStartSymbol)
+ lr0, err := genLR0Automaton(gram.productionSet, gram.augmentedStartSymbol, gram.errorSymbol)
if err != nil {
t.Fatalf("failed to create a LR0 automaton: %v", err)
}