diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-10-28 01:41:21 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-10-28 01:41:21 +0900 |
commit | 83bc2b1307d0e73424437649d26b804f20a83c38 (patch) | |
tree | 1abb5a6067a66548917fb6cb38335aafc5cd4fe1 /grammar/lr0_test.go | |
parent | Use maleeni v0.5.1 (diff) | |
download | urubu-83bc2b1307d0e73424437649d26b804f20a83c38.tar.gz urubu-83bc2b1307d0e73424437649d26b804f20a83c38.tar.xz |
Add name directive to specify a grammar name
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 ; |