diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-09-01 23:57:02 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-09-02 00:01:35 +0900 |
commit | 8832b64b4227245e45f9a24d543c1b80168c489d (patch) | |
tree | 20ed014caa923254d8e7870241225d8c20f7d2b4 /spec | |
parent | Remove the expected terminals field from the parsing table (diff) | |
download | urubu-8832b64b4227245e45f9a24d543c1b80168c489d.tar.gz urubu-8832b64b4227245e45f9a24d543c1b80168c489d.tar.xz |
Support LAC (lookahead correction)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/description.go | 1 | ||||
-rw-r--r-- | spec/grammar.go | 1 |
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"` |