diff options
Diffstat (limited to 'grammar/lr0_test.go')
-rw-r--r-- | grammar/lr0_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/grammar/lr0_test.go b/grammar/lr0_test.go index 4a613dd..cde3f0a 100644 --- a/grammar/lr0_test.go +++ b/grammar/lr0_test.go @@ -17,6 +17,8 @@ type expectedLRState struct { func TestGenLR0Automaton(t *testing.T) { src := ` +%name test + expr : expr add term | term @@ -225,6 +227,8 @@ id: "[A-Za-z_][0-9A-Za-z_]*"; func TestLR0AutomatonContainingEmptyProduction(t *testing.T) { src := ` +%name test + s : foo bar ; |