From 8832b64b4227245e45f9a24d543c1b80168c489d Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Wed, 1 Sep 2021 23:57:02 +0900 Subject: Support LAC (lookahead correction) --- spec/description.go | 1 + spec/grammar.go | 1 + 2 files changed, 2 insertions(+) (limited to 'spec') 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"` -- cgit v1.2.3