diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2022-11-05 20:32:53 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2022-11-06 02:18:35 +0900 |
commit | a0aa647770ac6458e9b4749c3efa38d56e2fe4fe (patch) | |
tree | 117c30b994b1624b19a9fae485c9802f2a8bcc72 /spec/grammar/grammar.go | |
parent | Remove anonymous symbol system (diff) | |
download | cotia-a0aa647770ac6458e9b4749c3efa38d56e2fe4fe.tar.gz cotia-a0aa647770ac6458e9b4749c3efa38d56e2fe4fe.tar.xz |
Move the skip table from lexer-related data to parser-related data
Diffstat (limited to 'spec/grammar/grammar.go')
-rw-r--r-- | spec/grammar/grammar.go | 2 |
1 files changed, 1 insertions, 1 deletions
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"` |