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/lalr1_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/lalr1_test.go')
-rw-r--r-- | grammar/lalr1_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/grammar/lalr1_test.go b/grammar/lalr1_test.go index 1cf8762..beb2707 100644 --- a/grammar/lalr1_test.go +++ b/grammar/lalr1_test.go @@ -10,6 +10,8 @@ import ( func TestGenLALR1Automaton(t *testing.T) { // This grammar belongs to LALR(1) class, not SLR(1). src := ` +%name test + S: L eq R | R; L: ref R | id; R: L; |