aboutsummaryrefslogtreecommitdiff
path: root/grammar/lr0_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'grammar/lr0_test.go')
-rw-r--r--grammar/lr0_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/grammar/lr0_test.go b/grammar/lr0_test.go
index 36c0957..4a613dd 100644
--- a/grammar/lr0_test.go
+++ b/grammar/lr0_test.go
@@ -52,7 +52,7 @@ id: "[A-Za-z_][0-9A-Za-z_]*";
t.Fatal(err)
}
- automaton, err = genLR0Automaton(gram.productionSet, gram.augmentedStartSymbol)
+ automaton, err = genLR0Automaton(gram.productionSet, gram.augmentedStartSymbol, gram.errorSymbol)
if err != nil {
t.Fatalf("failed to create a LR0 automaton: %v", err)
}
@@ -254,7 +254,7 @@ BAR: "bar";
t.Fatal(err)
}
- automaton, err = genLR0Automaton(gram.productionSet, gram.augmentedStartSymbol)
+ automaton, err = genLR0Automaton(gram.productionSet, gram.augmentedStartSymbol, gram.errorSymbol)
if err != nil {
t.Fatalf("failed to create a LR0 automaton: %v", err)
}