aboutsummaryrefslogtreecommitdiff
path: root/spec/grammar.go
diff options
context:
space:
mode:
Diffstat (limited to 'spec/grammar.go')
-rw-r--r--spec/grammar.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/grammar.go b/spec/grammar.go
index 44ef3ee..625b6c2 100644
--- a/spec/grammar.go
+++ b/spec/grammar.go
@@ -5,6 +5,7 @@ import mlspec "github.com/nihei9/maleeni/spec"
type CompiledGrammar struct {
LexicalSpecification *LexicalSpecification `json:"lexical_specification"`
ParsingTable *ParsingTable `json:"parsing_table"`
+ ASTAction *ASTAction `json:"ast_action"`
}
type LexicalSpecification struct {
@@ -32,3 +33,7 @@ type ParsingTable struct {
NonTerminalCount int `json:"non_terminal_count"`
EOFSymbol int `json:"eof_symbol"`
}
+
+type ASTAction struct {
+ Entries [][]int `json:"entries"`
+}