diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-05-11 23:24:11 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-05-11 23:24:11 +0900 |
commit | 6979b9b13409dd56869cc881292a544bd8eea7ba (patch) | |
tree | 150438027aaf93e75a4e5d3edb51ea257e7977f5 /spec/spec.go | |
parent | Fix a text representation of an error token (diff) | |
download | tre-6979b9b13409dd56869cc881292a544bd8eea7ba.tar.gz tre-6979b9b13409dd56869cc881292a544bd8eea7ba.tar.xz |
Add --compression-level option to compile command
--compression-level specifies a compression level. The default value is 2.
Diffstat (limited to 'spec/spec.go')
-rw-r--r-- | spec/spec.go | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/spec/spec.go b/spec/spec.go index 7398ea3..e3c318e 100644 --- a/spec/spec.go +++ b/spec/spec.go @@ -162,11 +162,12 @@ type RowDisplacementTable struct { } type UniqueEntriesTable struct { - UniqueEntries *RowDisplacementTable `json:"unique_entries"` - RowNums []int `json:"row_nums"` - OriginalRowCount int `json:"original_row_count"` - OriginalColCount int `json:"original_col_count"` - EmptyValue int `json:"empty_value"` + UniqueEntries *RowDisplacementTable `json:"unique_entries,omitempty"` + UncompressedUniqueEntries []int `json:"uncompressed_unique_entries,omitempty"` + RowNums []int `json:"row_nums"` + OriginalRowCount int `json:"original_row_count"` + OriginalColCount int `json:"original_col_count"` + EmptyValue int `json:"empty_value"` } type TransitionTable struct { @@ -186,7 +187,8 @@ type CompiledLexModeSpec struct { } type CompiledLexSpec struct { - InitialMode LexModeNum `json:"initial_mode"` - Modes []LexModeName `json:"modes"` - Specs []*CompiledLexModeSpec `json:"specs"` + InitialMode LexModeNum `json:"initial_mode"` + Modes []LexModeName `json:"modes"` + CompressionLevel int `json:"compression_level"` + Specs []*CompiledLexModeSpec `json:"specs"` } |