aboutsummaryrefslogtreecommitdiff
path: root/grammar/lalr1_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'grammar/lalr1_test.go')
-rw-r--r--grammar/lalr1_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/grammar/lalr1_test.go b/grammar/lalr1_test.go
index 7d8e48d..1cf8762 100644
--- a/grammar/lalr1_test.go
+++ b/grammar/lalr1_test.go
@@ -34,7 +34,7 @@ id: "[A-Za-z0-9_]+";
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)
}