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 --- spec/grammar.go | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/grammar.go') diff --git a/spec/grammar.go b/spec/grammar.go index 825fc2c..bf14d86 100644 --- a/spec/grammar.go +++ b/spec/grammar.go @@ -3,6 +3,7 @@ package spec import mlspec "github.com/nihei9/maleeni/spec" type CompiledGrammar struct { + Name string `json:"name"` LexicalSpecification *LexicalSpecification `json:"lexical_specification"` ParsingTable *ParsingTable `json:"parsing_table"` ASTAction *ASTAction `json:"ast_action"` -- cgit v1.2.3