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 --- driver/semantic_action_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'driver/semantic_action_test.go') diff --git a/driver/semantic_action_test.go b/driver/semantic_action_test.go index 889016b..e36784d 100644 --- a/driver/semantic_action_test.go +++ b/driver/semantic_action_test.go @@ -48,6 +48,8 @@ func (a *testSemAct) MissError(cause *mldriver.Token) { func TestParserWithSemanticAction(t *testing.T) { specSrcWithErrorProd := ` +%name test + seq : seq elem semicolon | elem semicolon @@ -65,6 +67,8 @@ char: "[a-z]"; ` specSrcWithoutErrorProd := ` +%name test + seq : seq elem semicolon | elem semicolon -- cgit v1.2.3