From a0aa647770ac6458e9b4749c3efa38d56e2fe4fe Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sat, 5 Nov 2022 20:32:53 +0900 Subject: Move the skip table from lexer-related data to parser-related data --- spec/grammar/grammar.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/grammar/grammar.go') diff --git a/spec/grammar/grammar.go b/spec/grammar/grammar.go index ddd0466..995d6aa 100644 --- a/spec/grammar/grammar.go +++ b/spec/grammar/grammar.go @@ -17,7 +17,6 @@ type LexicalSpecification struct { type Maleeni struct { Spec *mlspec.CompiledLexSpec `json:"spec"` KindToTerminal []int `json:"kind_to_terminal"` - Skip []int `json:"skip"` } type ParsingTable struct { @@ -30,6 +29,7 @@ type ParsingTable struct { AlternativeSymbolCounts []int `json:"alternative_symbol_counts"` Terminals []string `json:"terminals"` TerminalCount int `json:"terminal_count"` + TerminalSkip []int `json:"terminal_skip"` NonTerminals []string `json:"non_terminals"` NonTerminalCount int `json:"non_terminal_count"` EOFSymbol int `json:"eof_symbol"` -- cgit v1.2.3