aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/description.go1
-rw-r--r--spec/grammar.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/spec/description.go b/spec/description.go
index 08b037e..ae56814 100644
--- a/spec/description.go
+++ b/spec/description.go
@@ -64,6 +64,7 @@ type State struct {
}
type Description struct {
+ Class string `json:"class"`
Terminals []*Terminal `json:"terminals"`
NonTerminals []*NonTerminal `json:"non_terminals"`
Productions []*Production `json:"productions"`
diff --git a/spec/grammar.go b/spec/grammar.go
index 8403308..825fc2c 100644
--- a/spec/grammar.go
+++ b/spec/grammar.go
@@ -22,6 +22,7 @@ type Maleeni struct {
}
type ParsingTable struct {
+ Class string `json:"class"`
Action []int `json:"action"`
GoTo []int `json:"goto"`
StateCount int `json:"state_count"`