From 83bc2b1307d0e73424437649d26b804f20a83c38 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Thu, 28 Oct 2021 01:41:21 +0900 Subject: Add name directive to specify a grammar name --- grammar/lalr1_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'grammar/lalr1_test.go') 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; -- cgit v1.2.3