aboutsummaryrefslogtreecommitdiff
path: root/spec/grammar.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-10-28 01:41:21 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-10-28 01:41:21 +0900
commit83bc2b1307d0e73424437649d26b804f20a83c38 (patch)
tree1abb5a6067a66548917fb6cb38335aafc5cd4fe1 /spec/grammar.go
parentUse maleeni v0.5.1 (diff)
downloadurubu-83bc2b1307d0e73424437649d26b804f20a83c38.tar.gz
urubu-83bc2b1307d0e73424437649d26b804f20a83c38.tar.xz
Add name directive to specify a grammar name
Diffstat (limited to 'spec/grammar.go')
-rw-r--r--spec/grammar.go1
1 files changed, 1 insertions, 0 deletions
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"`