diff --git a/meta/src/meta/grammar.y b/meta/src/meta/grammar.y index a225e060..03ba2bf0 100644 --- a/meta/src/meta/grammar.y +++ b/meta/src/meta/grammar.y @@ -99,9 +99,10 @@ %nonterm exists logic.Exists %nonterm export transactions.Export %nonterm export_csv_column transactions.ExportCSVColumn -%nonterm export_csv_columns Sequence[transactions.ExportCSVColumn] +%nonterm export_csv_columns_list Sequence[transactions.ExportCSVColumn] %nonterm export_csv_config transactions.ExportCSVConfig %nonterm export_csv_path String +%nonterm export_csv_source transactions.ExportCSVSource %nonterm false logic.Disjunction %nonterm ffi logic.FFI %nonterm ffi_args Sequence[logic.Abstraction] @@ -178,6 +179,7 @@ %validator_ignore_completeness DecimalValue %validator_ignore_completeness BeTreeLocator %validator_ignore_completeness BeTreeConfig +%validator_ignore_completeness ExportCSVColumns %% @@ -1079,9 +1081,15 @@ export deconstruct: $3: transactions.ExportCSVConfig = $$.csv_config export_csv_config - : "(" "export_csv_config" export_csv_path export_csv_columns config_dict ")" - construct: $$ = export_csv_config($3, $4, $5) - deconstruct: + : "(" "export_csv_config_v2" export_csv_path export_csv_source csv_config ")" + construct: $$ = construct_export_csv_config_with_source($3, $4, $5) + deconstruct if builtin.length($$.data_columns) == 0: + $3: String = $$.path + $4: transactions.ExportCSVSource = $$.csv_source + $5: logic.CSVConfig = $$.csv_config + | "(" "export_csv_config" export_csv_path export_csv_columns_list config_dict ")" + construct: $$ = construct_export_csv_config($3, $4, $5) + deconstruct if builtin.length($$.data_columns) != 0: $3: String = $$.path $4: Sequence[transactions.ExportCSVColumn] = $$.data_columns $5: Sequence[Tuple[String, logic.Value]] = deconstruct_export_csv_config($$) @@ -1089,7 +1097,7 @@ export_csv_config export_csv_path : "(" "path" STRING ")" -export_csv_columns +export_csv_columns_list : "(" "columns" export_csv_column* ")" export_csv_column @@ -1099,6 +1107,16 @@ export_csv_column $3: String = $$.column_name $4: logic.RelationId = $$.column_data +export_csv_source + : "(" "gnf_columns" export_csv_column* ")" + construct: $$ = transactions.ExportCSVSource(gnf_columns=transactions.ExportCSVColumns(columns=$3)) + deconstruct if builtin.has_proto_field($$, 'gnf_columns'): + $3: Sequence[transactions.ExportCSVColumn] = $$.gnf_columns.columns + | "(" "table_def" relation_id ")" + construct: $$ = transactions.ExportCSVSource(table_def=$3) + deconstruct if builtin.has_proto_field($$, 'table_def'): + $3: logic.RelationId = $$.table_def + %% @@ -1198,6 +1216,7 @@ def construct_csv_config(config_dict: Sequence[Tuple[String, logic.Value]]) -> l decimal_separator: str = _extract_value_string(builtin.dict_get(config, "csv_decimal_separator"), ".") encoding: str = _extract_value_string(builtin.dict_get(config, "csv_encoding"), "utf-8") compression: str = _extract_value_string(builtin.dict_get(config, "csv_compression"), "auto") + partition_size_mb: int = _extract_value_int64(builtin.dict_get(config, "csv_partition_size_mb"), 0) return logic.CSVConfig( header_row=header_row, skip=skip, @@ -1210,6 +1229,7 @@ def construct_csv_config(config_dict: Sequence[Tuple[String, logic.Value]]) -> l decimal_separator=decimal_separator, encoding=encoding, compression=compression, + partition_size_mb=partition_size_mb, ) @@ -1275,8 +1295,7 @@ def construct_configure(config_dict: Sequence[Tuple[String, logic.Value]]) -> tr ivm_config=ivm_config, ) - -def export_csv_config( +def construct_export_csv_config( path: String, columns: Sequence[transactions.ExportCSVColumn], config_dict: Sequence[Tuple[String, logic.Value]], @@ -1301,6 +1320,17 @@ def export_csv_config( syntax_escapechar=builtin.some(syntax_escapechar), ) +def construct_export_csv_config_with_source( + path: String, + csv_source: transactions.ExportCSVSource, + csv_config: logic.CSVConfig, +) -> transactions.ExportCSVConfig: + return transactions.ExportCSVConfig( + path=path, + csv_source=csv_source, + csv_config=csv_config, + ) + def _make_value_int32(v: Int32) -> logic.Value: return logic.Value(int_value=builtin.int32_to_int64(v)) @@ -1362,6 +1392,8 @@ def deconstruct_csv_config(msg: logic.CSVConfig) -> List[Tuple[String, logic.Val builtin.list_push(result, builtin.tuple("csv_decimal_separator", _make_value_string(msg.decimal_separator))) builtin.list_push(result, builtin.tuple("csv_encoding", _make_value_string(msg.encoding))) builtin.list_push(result, builtin.tuple("csv_compression", _make_value_string(msg.compression))) + if msg.partition_size_mb != 0: + builtin.list_push(result, builtin.tuple("csv_partition_size_mb", _make_value_int64(msg.partition_size_mb))) return builtin.list_sort(result) diff --git a/proto/relationalai/lqp/v1/logic.proto b/proto/relationalai/lqp/v1/logic.proto index 3ae1c8eb..c33f7aea 100644 --- a/proto/relationalai/lqp/v1/logic.proto +++ b/proto/relationalai/lqp/v1/logic.proto @@ -309,6 +309,9 @@ message CSVConfig { // Compression string compression = 11; // "none", "gzip", "zstd", "auto" (default: "auto") + + // Partitioning (for export) + int64 partition_size_mb = 12; } message GNFColumn { diff --git a/proto/relationalai/lqp/v1/transactions.proto b/proto/relationalai/lqp/v1/transactions.proto index 30cdc4c5..6e77b12c 100644 --- a/proto/relationalai/lqp/v1/transactions.proto +++ b/proto/relationalai/lqp/v1/transactions.proto @@ -82,6 +82,11 @@ message Snapshot { message ExportCSVConfig { string path = 1; + + ExportCSVSource csv_source = 10; + CSVConfig csv_config = 11; + + // Below are all deprecated in favour of the `csv_config` above. repeated ExportCSVColumn data_columns = 2; optional int64 partition_size = 3; @@ -100,6 +105,17 @@ message ExportCSVColumn { RelationId column_data = 2; } +message ExportCSVColumns { + repeated ExportCSVColumn columns = 1; +} + +message ExportCSVSource { + oneof csv_source { + ExportCSVColumns gnf_columns = 1; + RelationId table_def = 2; + } +} + // // Read operations // diff --git a/sdks/go/src/lqp/v1/logic.pb.go b/sdks/go/src/lqp/v1/logic.pb.go index 6319fe4f..c5d72c93 100644 --- a/sdks/go/src/lqp/v1/logic.pb.go +++ b/sdks/go/src/lqp/v1/logic.pb.go @@ -3042,9 +3042,11 @@ type CSVConfig struct { // Encoding Encoding string `protobuf:"bytes,10,opt,name=encoding,proto3" json:"encoding,omitempty"` // Character encoding (default: "utf-8") // Compression - Compression string `protobuf:"bytes,11,opt,name=compression,proto3" json:"compression,omitempty"` // "none", "gzip", "zstd", "auto" (default: "auto") - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Compression string `protobuf:"bytes,11,opt,name=compression,proto3" json:"compression,omitempty"` // "none", "gzip", "zstd", "auto" (default: "auto") + // Partitioning (for export) + PartitionSizeMb int64 `protobuf:"varint,12,opt,name=partition_size_mb,json=partitionSizeMb,proto3" json:"partition_size_mb,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CSVConfig) Reset() { @@ -3154,6 +3156,13 @@ func (x *CSVConfig) GetCompression() string { return "" } +func (x *CSVConfig) GetPartitionSizeMb() int64 { + if x != nil { + return x.PartitionSizeMb + } + return 0 +} + type GNFColumn struct { state protoimpl.MessageState `protogen:"open.v1"` ColumnPath []string `protobuf:"bytes,1,rep,name=column_path,json=columnPath,proto3" json:"column_path,omitempty"` // Column identifier path (was: string column_name) @@ -4897,8 +4906,8 @@ var file_relationalai_lqp_v1_logic_proto_rawDesc = string([]byte{ 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x0a, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, 0x22, 0xe3, - 0x02, 0x0a, 0x09, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, + 0x28, 0x0c, 0x52, 0x0a, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, 0x22, 0x8f, + 0x03, 0x0a, 0x09, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6b, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x6b, 0x69, 0x70, 0x12, @@ -4920,157 +4929,160 @@ var file_relationalai_lqp_v1_logic_proto_rawDesc = string([]byte{ 0x6e, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xae, 0x01, 0x0a, 0x09, 0x47, 0x4e, 0x46, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x70, 0x61, 0x74, - 0x68, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x50, - 0x61, 0x74, 0x68, 0x12, 0x41, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x48, 0x00, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x5f, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x0a, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x64, 0x5f, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x06, 0x52, 0x05, 0x69, 0x64, 0x4c, 0x6f, 0x77, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, - 0x5f, 0x68, 0x69, 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x69, 0x64, 0x48, - 0x69, 0x67, 0x68, 0x22, 0x89, 0x06, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x51, 0x0a, 0x10, - 0x75, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, - 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0f, - 0x75, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x42, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, - 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, - 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x48, 0x00, 0x52, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x45, 0x0a, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x49, 0x6e, 0x74, - 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x31, - 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6d, 0x62, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x7a, 0x65, 0x4d, 0x62, + 0x22, 0xae, 0x01, 0x0a, 0x09, 0x47, 0x4e, 0x46, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1f, + 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x12, + 0x41, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, + 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x49, 0x64, 0x48, 0x00, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, + 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, + 0x64, 0x22, 0x3c, 0x0a, 0x0a, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, + 0x15, 0x0a, 0x06, 0x69, 0x64, 0x5f, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, + 0x05, 0x69, 0x64, 0x4c, 0x6f, 0x77, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x68, 0x69, 0x67, + 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x69, 0x64, 0x48, 0x69, 0x67, 0x68, 0x22, + 0x89, 0x06, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x51, 0x0a, 0x10, 0x75, 0x6e, 0x73, 0x70, + 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, + 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, + 0x66, 0x69, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x75, 0x6e, 0x73, 0x70, + 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x73, + 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, + 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, + 0x65, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x39, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, + 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x48, + 0x00, 0x52, 0x07, 0x69, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, + 0x52, 0x09, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x75, + 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, + 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x54, + 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, + 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x31, + 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x72, 0x65, 0x6c, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x08, 0x64, 0x61, 0x74, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, - 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3c, 0x0a, 0x09, 0x64, 0x61, - 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, - 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x08, - 0x64, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x64, 0x61, 0x74, 0x65, - 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, - 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x64, 0x65, 0x63, - 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, - 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, - 0x65, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x45, 0x0a, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, - 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x6f, 0x6f, 0x6c, - 0x65, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, - 0x11, 0x0a, 0x0f, 0x55, 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x79, - 0x70, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, - 0x22, 0x09, 0x0a, 0x07, 0x49, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0b, 0x0a, 0x09, 0x46, - 0x6c, 0x6f, 0x61, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x55, 0x49, 0x6e, 0x74, - 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x49, 0x6e, 0x74, 0x31, 0x32, - 0x38, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0a, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x22, 0x0e, 0x0a, 0x0c, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, - 0x22, 0x41, 0x0a, 0x0b, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, - 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, - 0x61, 0x6c, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x79, - 0x70, 0x65, 0x22, 0xd1, 0x04, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x21, 0x0a, 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x75, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, - 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, - 0x0c, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, - 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, + 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, + 0x52, 0x0c, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, + 0x0a, 0x0c, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, + 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x73, 0x73, 0x69, + 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, + 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, - 0x52, 0x0c, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3f, - 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, - 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x4b, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, - 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x64, - 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x48, 0x0a, 0x0d, - 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, - 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, - 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, - 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, - 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, - 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x34, 0x0a, 0x0c, 0x55, 0x49, 0x6e, 0x74, 0x31, 0x32, - 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x06, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x04, 0x68, 0x69, 0x67, 0x68, 0x22, 0x33, 0x0a, 0x0b, - 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, - 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x12, 0x0a, - 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x04, 0x68, 0x69, 0x67, - 0x68, 0x22, 0x0e, 0x0a, 0x0c, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x22, 0x47, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x79, 0x65, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x79, 0x65, - 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x79, 0x22, 0xb1, 0x01, 0x0a, 0x0d, 0x44, - 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x79, 0x65, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x79, 0x65, 0x61, 0x72, - 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x75, 0x72, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x68, 0x6f, 0x75, 0x72, 0x12, 0x16, 0x0a, 0x06, - 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x69, - 0x6e, 0x75, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x12, 0x20, 0x0a, 0x0b, - 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x0b, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x22, 0x7a, - 0x0a, 0x0c, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, - 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, - 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, - 0x6c, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, - 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x41, 0x49, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2d, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x64, 0x6b, - 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x6c, 0x71, 0x70, 0x2f, 0x76, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, + 0x0b, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, + 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, + 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, + 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x54, + 0x79, 0x70, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x11, 0x0a, 0x0f, 0x55, + 0x6e, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0c, + 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x09, 0x0a, 0x07, + 0x49, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0b, 0x0a, 0x09, 0x46, 0x6c, 0x6f, 0x61, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x55, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x54, + 0x79, 0x70, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x54, 0x79, 0x70, + 0x65, 0x22, 0x0a, 0x0a, 0x08, 0x44, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0e, 0x0a, + 0x0c, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0d, 0x0a, + 0x0b, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x41, 0x0a, 0x0b, + 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, + 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, + 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x61, + 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x22, + 0x0d, 0x0a, 0x0b, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0xd1, + 0x04, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, + 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, + 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, + 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x01, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x48, 0x0a, 0x0d, 0x75, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x49, 0x6e, + 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x75, 0x69, 0x6e, + 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x69, 0x6e, 0x74, + 0x31, 0x32, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, + 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x48, 0x00, 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x48, 0x0a, 0x0d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, + 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x64, 0x61, + 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, + 0x52, 0x09, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x64, + 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, + 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, + 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x64, 0x65, 0x63, 0x69, + 0x6d, 0x61, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, + 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f, + 0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x22, 0x34, 0x0a, 0x0c, 0x55, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, + 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x06, 0x52, 0x04, 0x68, 0x69, 0x67, 0x68, 0x22, 0x33, 0x0a, 0x0b, 0x49, 0x6e, 0x74, 0x31, + 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, 0x67, + 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x04, 0x68, 0x69, 0x67, 0x68, 0x22, 0x0e, 0x0a, + 0x0c, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x47, 0x0a, + 0x09, 0x44, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x79, 0x65, + 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x79, 0x65, 0x61, 0x72, 0x12, 0x14, + 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, + 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x03, 0x64, 0x61, 0x79, 0x22, 0xb1, 0x01, 0x0a, 0x0d, 0x44, 0x61, 0x74, 0x65, 0x54, + 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x79, 0x65, 0x61, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x79, 0x65, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, + 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x6f, 0x6e, + 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x03, 0x64, 0x61, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x75, 0x72, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x04, 0x68, 0x6f, 0x75, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x69, 0x6e, 0x75, + 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, + 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x06, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6d, 0x69, 0x63, 0x72, + 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, + 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x22, 0x7a, 0x0a, 0x0c, 0x44, 0x65, + 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, + 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, + 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x61, 0x6c, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x12, 0x36, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, + 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x41, + 0x49, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2d, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, + 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x6c, 0x71, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, }) var ( diff --git a/sdks/go/src/lqp/v1/transactions.pb.go b/sdks/go/src/lqp/v1/transactions.pb.go index 73527b07..ee34b3c6 100644 --- a/sdks/go/src/lqp/v1/transactions.pb.go +++ b/sdks/go/src/lqp/v1/transactions.pb.go @@ -671,16 +671,19 @@ func (x *Snapshot) GetMappings() []*SnapshotMapping { } type ExportCSVConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - DataColumns []*ExportCSVColumn `protobuf:"bytes,2,rep,name=data_columns,json=dataColumns,proto3" json:"data_columns,omitempty"` - PartitionSize *int64 `protobuf:"varint,3,opt,name=partition_size,json=partitionSize,proto3,oneof" json:"partition_size,omitempty"` - Compression *string `protobuf:"bytes,4,opt,name=compression,proto3,oneof" json:"compression,omitempty"` - SyntaxHeaderRow *bool `protobuf:"varint,5,opt,name=syntax_header_row,json=syntaxHeaderRow,proto3,oneof" json:"syntax_header_row,omitempty"` - SyntaxMissingString *string `protobuf:"bytes,6,opt,name=syntax_missing_string,json=syntaxMissingString,proto3,oneof" json:"syntax_missing_string,omitempty"` - SyntaxDelim *string `protobuf:"bytes,7,opt,name=syntax_delim,json=syntaxDelim,proto3,oneof" json:"syntax_delim,omitempty"` - SyntaxQuotechar *string `protobuf:"bytes,8,opt,name=syntax_quotechar,json=syntaxQuotechar,proto3,oneof" json:"syntax_quotechar,omitempty"` - SyntaxEscapechar *string `protobuf:"bytes,9,opt,name=syntax_escapechar,json=syntaxEscapechar,proto3,oneof" json:"syntax_escapechar,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` + CsvSource *ExportCSVSource `protobuf:"bytes,10,opt,name=csv_source,json=csvSource,proto3" json:"csv_source,omitempty"` + CsvConfig *CSVConfig `protobuf:"bytes,11,opt,name=csv_config,json=csvConfig,proto3" json:"csv_config,omitempty"` + // Below are all deprecated in favour of the `csv_config` above. + DataColumns []*ExportCSVColumn `protobuf:"bytes,2,rep,name=data_columns,json=dataColumns,proto3" json:"data_columns,omitempty"` + PartitionSize *int64 `protobuf:"varint,3,opt,name=partition_size,json=partitionSize,proto3,oneof" json:"partition_size,omitempty"` + Compression *string `protobuf:"bytes,4,opt,name=compression,proto3,oneof" json:"compression,omitempty"` + SyntaxHeaderRow *bool `protobuf:"varint,5,opt,name=syntax_header_row,json=syntaxHeaderRow,proto3,oneof" json:"syntax_header_row,omitempty"` + SyntaxMissingString *string `protobuf:"bytes,6,opt,name=syntax_missing_string,json=syntaxMissingString,proto3,oneof" json:"syntax_missing_string,omitempty"` + SyntaxDelim *string `protobuf:"bytes,7,opt,name=syntax_delim,json=syntaxDelim,proto3,oneof" json:"syntax_delim,omitempty"` + SyntaxQuotechar *string `protobuf:"bytes,8,opt,name=syntax_quotechar,json=syntaxQuotechar,proto3,oneof" json:"syntax_quotechar,omitempty"` + SyntaxEscapechar *string `protobuf:"bytes,9,opt,name=syntax_escapechar,json=syntaxEscapechar,proto3,oneof" json:"syntax_escapechar,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -722,6 +725,20 @@ func (x *ExportCSVConfig) GetPath() string { return "" } +func (x *ExportCSVConfig) GetCsvSource() *ExportCSVSource { + if x != nil { + return x.CsvSource + } + return nil +} + +func (x *ExportCSVConfig) GetCsvConfig() *CSVConfig { + if x != nil { + return x.CsvConfig + } + return nil +} + func (x *ExportCSVConfig) GetDataColumns() []*ExportCSVColumn { if x != nil { return x.DataColumns @@ -830,6 +847,132 @@ func (x *ExportCSVColumn) GetColumnData() *RelationId { return nil } +type ExportCSVColumns struct { + state protoimpl.MessageState `protogen:"open.v1"` + Columns []*ExportCSVColumn `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExportCSVColumns) Reset() { + *x = ExportCSVColumns{} + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExportCSVColumns) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExportCSVColumns) ProtoMessage() {} + +func (x *ExportCSVColumns) ProtoReflect() protoreflect.Message { + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExportCSVColumns.ProtoReflect.Descriptor instead. +func (*ExportCSVColumns) Descriptor() ([]byte, []int) { + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{13} +} + +func (x *ExportCSVColumns) GetColumns() []*ExportCSVColumn { + if x != nil { + return x.Columns + } + return nil +} + +type ExportCSVSource struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to CsvSource: + // + // *ExportCSVSource_GnfColumns + // *ExportCSVSource_TableDef + CsvSource isExportCSVSource_CsvSource `protobuf_oneof:"csv_source"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExportCSVSource) Reset() { + *x = ExportCSVSource{} + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExportCSVSource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExportCSVSource) ProtoMessage() {} + +func (x *ExportCSVSource) ProtoReflect() protoreflect.Message { + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExportCSVSource.ProtoReflect.Descriptor instead. +func (*ExportCSVSource) Descriptor() ([]byte, []int) { + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{14} +} + +func (x *ExportCSVSource) GetCsvSource() isExportCSVSource_CsvSource { + if x != nil { + return x.CsvSource + } + return nil +} + +func (x *ExportCSVSource) GetGnfColumns() *ExportCSVColumns { + if x != nil { + if x, ok := x.CsvSource.(*ExportCSVSource_GnfColumns); ok { + return x.GnfColumns + } + } + return nil +} + +func (x *ExportCSVSource) GetTableDef() *RelationId { + if x != nil { + if x, ok := x.CsvSource.(*ExportCSVSource_TableDef); ok { + return x.TableDef + } + } + return nil +} + +type isExportCSVSource_CsvSource interface { + isExportCSVSource_CsvSource() +} + +type ExportCSVSource_GnfColumns struct { + GnfColumns *ExportCSVColumns `protobuf:"bytes,1,opt,name=gnf_columns,json=gnfColumns,proto3,oneof"` +} + +type ExportCSVSource_TableDef struct { + TableDef *RelationId `protobuf:"bytes,2,opt,name=table_def,json=tableDef,proto3,oneof"` +} + +func (*ExportCSVSource_GnfColumns) isExportCSVSource_CsvSource() {} + +func (*ExportCSVSource_TableDef) isExportCSVSource_CsvSource() {} + type Read struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to ReadType: @@ -846,7 +989,7 @@ type Read struct { func (x *Read) Reset() { *x = Read{} - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[13] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -858,7 +1001,7 @@ func (x *Read) String() string { func (*Read) ProtoMessage() {} func (x *Read) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[13] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -871,7 +1014,7 @@ func (x *Read) ProtoReflect() protoreflect.Message { // Deprecated: Use Read.ProtoReflect.Descriptor instead. func (*Read) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{13} + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{15} } func (x *Read) GetReadType() isRead_ReadType { @@ -969,7 +1112,7 @@ type Demand struct { func (x *Demand) Reset() { *x = Demand{} - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[14] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -981,7 +1124,7 @@ func (x *Demand) String() string { func (*Demand) ProtoMessage() {} func (x *Demand) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[14] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -994,7 +1137,7 @@ func (x *Demand) ProtoReflect() protoreflect.Message { // Deprecated: Use Demand.ProtoReflect.Descriptor instead. func (*Demand) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{14} + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{16} } func (x *Demand) GetRelationId() *RelationId { @@ -1014,7 +1157,7 @@ type Output struct { func (x *Output) Reset() { *x = Output{} - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[15] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1026,7 +1169,7 @@ func (x *Output) String() string { func (*Output) ProtoMessage() {} func (x *Output) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[15] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1039,7 +1182,7 @@ func (x *Output) ProtoReflect() protoreflect.Message { // Deprecated: Use Output.ProtoReflect.Descriptor instead. func (*Output) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{15} + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{17} } func (x *Output) GetName() string { @@ -1068,7 +1211,7 @@ type Export struct { func (x *Export) Reset() { *x = Export{} - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[16] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1080,7 +1223,7 @@ func (x *Export) String() string { func (*Export) ProtoMessage() {} func (x *Export) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[16] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1093,7 +1236,7 @@ func (x *Export) ProtoReflect() protoreflect.Message { // Deprecated: Use Export.ProtoReflect.Descriptor instead. func (*Export) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{16} + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{18} } func (x *Export) GetExportConfig() isExport_ExportConfig { @@ -1132,7 +1275,7 @@ type WhatIf struct { func (x *WhatIf) Reset() { *x = WhatIf{} - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[17] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1144,7 +1287,7 @@ func (x *WhatIf) String() string { func (*WhatIf) ProtoMessage() {} func (x *WhatIf) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[17] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1157,7 +1300,7 @@ func (x *WhatIf) ProtoReflect() protoreflect.Message { // Deprecated: Use WhatIf.ProtoReflect.Descriptor instead. func (*WhatIf) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{17} + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{19} } func (x *WhatIf) GetBranch() string { @@ -1184,7 +1327,7 @@ type Abort struct { func (x *Abort) Reset() { *x = Abort{} - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[18] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1196,7 +1339,7 @@ func (x *Abort) String() string { func (*Abort) ProtoMessage() {} func (x *Abort) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[18] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1209,7 +1352,7 @@ func (x *Abort) ProtoReflect() protoreflect.Message { // Deprecated: Use Abort.ProtoReflect.Descriptor instead. func (*Abort) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{18} + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{20} } func (x *Abort) GetName() string { @@ -1316,111 +1459,135 @@ var file_relationalai_lqp_v1_transactions_proto_rawDesc = string([]byte{ 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x6d, - 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xc4, 0x04, 0x0a, 0x0f, 0x45, 0x78, 0x70, 0x6f, + 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xc8, 0x05, 0x0a, 0x0f, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, - 0x47, 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x61, 0x74, - 0x61, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x2a, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x74, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x48, 0x00, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x7a, - 0x65, 0x88, 0x01, 0x01, 0x12, 0x25, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0b, 0x63, 0x6f, 0x6d, - 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x11, 0x73, - 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x77, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x0f, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, - 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x6f, 0x77, 0x88, 0x01, 0x01, 0x12, 0x37, 0x0a, 0x15, - 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x13, 0x73, - 0x79, 0x6e, 0x74, 0x61, 0x78, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, - 0x64, 0x65, 0x6c, 0x69, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x0b, 0x73, - 0x79, 0x6e, 0x74, 0x61, 0x78, 0x44, 0x65, 0x6c, 0x69, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x2e, 0x0a, - 0x10, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x63, 0x68, 0x61, - 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x05, 0x52, 0x0f, 0x73, 0x79, 0x6e, 0x74, 0x61, - 0x78, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x63, 0x68, 0x61, 0x72, 0x88, 0x01, 0x01, 0x12, 0x30, 0x0a, - 0x11, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x63, 0x68, - 0x61, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x06, 0x52, 0x10, 0x73, 0x79, 0x6e, 0x74, - 0x61, 0x78, 0x45, 0x73, 0x63, 0x61, 0x70, 0x65, 0x63, 0x68, 0x61, 0x72, 0x88, 0x01, 0x01, 0x42, - 0x11, 0x0a, 0x0f, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, - 0x7a, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x68, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x77, 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x73, 0x79, 0x6e, - 0x74, 0x61, 0x78, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x64, 0x65, - 0x6c, 0x69, 0x6d, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x71, - 0x75, 0x6f, 0x74, 0x65, 0x63, 0x68, 0x61, 0x72, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x73, 0x79, 0x6e, - 0x74, 0x61, 0x78, 0x5f, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x63, 0x68, 0x61, 0x72, 0x22, 0x74, - 0x0a, 0x0f, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x44, 0x61, 0x74, 0x61, 0x22, 0xa4, 0x02, 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, 0x12, 0x35, 0x0a, - 0x06, 0x64, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x43, 0x0a, 0x0a, 0x63, 0x73, 0x76, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, + 0x43, 0x53, 0x56, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x63, 0x73, 0x76, 0x53, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x12, 0x3d, 0x0a, 0x0a, 0x63, 0x73, 0x76, 0x5f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x53, 0x56, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x09, 0x63, 0x73, 0x76, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x47, 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x63, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x6c, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, + 0x0b, 0x64, 0x61, 0x74, 0x61, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x2a, 0x0a, 0x0e, + 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x69, 0x7a, 0x65, 0x88, 0x01, 0x01, 0x12, 0x25, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, + 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, + 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, + 0x2f, 0x0a, 0x11, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x5f, 0x72, 0x6f, 0x77, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x0f, 0x73, 0x79, + 0x6e, 0x74, 0x61, 0x78, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x6f, 0x77, 0x88, 0x01, 0x01, + 0x12, 0x37, 0x0a, 0x15, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x03, 0x52, 0x13, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x73, 0x79, 0x6e, + 0x74, 0x61, 0x78, 0x5f, 0x64, 0x65, 0x6c, 0x69, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x04, 0x52, 0x0b, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x44, 0x65, 0x6c, 0x69, 0x6d, 0x88, 0x01, + 0x01, 0x12, 0x2e, 0x0a, 0x10, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x71, 0x75, 0x6f, 0x74, + 0x65, 0x63, 0x68, 0x61, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x05, 0x52, 0x0f, 0x73, + 0x79, 0x6e, 0x74, 0x61, 0x78, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x63, 0x68, 0x61, 0x72, 0x88, 0x01, + 0x01, 0x12, 0x30, 0x0a, 0x11, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x65, 0x73, 0x63, 0x61, + 0x70, 0x65, 0x63, 0x68, 0x61, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x06, 0x52, 0x10, + 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x45, 0x73, 0x63, 0x61, 0x70, 0x65, 0x63, 0x68, 0x61, 0x72, + 0x88, 0x01, 0x01, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x72, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x73, 0x79, 0x6e, 0x74, 0x61, + 0x78, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x77, 0x42, 0x18, 0x0a, 0x16, + 0x5f, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x73, 0x79, 0x6e, 0x74, 0x61, + 0x78, 0x5f, 0x64, 0x65, 0x6c, 0x69, 0x6d, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x73, 0x79, 0x6e, 0x74, + 0x61, 0x78, 0x5f, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x63, 0x68, 0x61, 0x72, 0x42, 0x14, 0x0a, 0x12, + 0x5f, 0x73, 0x79, 0x6e, 0x74, 0x61, 0x78, 0x5f, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x63, 0x68, + 0x61, 0x72, 0x22, 0x74, 0x0a, 0x0f, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x53, 0x56, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, + 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x0a, 0x63, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x22, 0x52, 0x0a, 0x10, 0x45, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3e, 0x0a, 0x07, + 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, - 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x48, 0x00, 0x52, 0x06, 0x64, 0x65, - 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x35, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x48, 0x00, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x77, - 0x68, 0x61, 0x74, 0x5f, 0x69, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, - 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, - 0x76, 0x31, 0x2e, 0x57, 0x68, 0x61, 0x74, 0x49, 0x66, 0x48, 0x00, 0x52, 0x06, 0x77, 0x68, 0x61, - 0x74, 0x49, 0x66, 0x12, 0x32, 0x0a, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, - 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x48, 0x00, - 0x52, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, - 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x06, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x42, 0x0b, - 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x4a, 0x0a, 0x06, 0x44, - 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x40, 0x0a, 0x0b, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x5e, 0x0a, 0x06, 0x4f, 0x75, 0x74, 0x70, 0x75, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x60, 0x0a, 0x06, 0x45, 0x78, 0x70, 0x6f, 0x72, - 0x74, 0x12, 0x45, 0x0a, 0x0a, 0x63, 0x73, 0x76, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0xa9, 0x01, 0x0a, + 0x0f, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x53, 0x56, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x12, 0x48, 0x0a, 0x0b, 0x67, 0x6e, 0x66, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x09, 0x63, - 0x73, 0x76, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0f, 0x0a, 0x0d, 0x65, 0x78, 0x70, 0x6f, - 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x52, 0x0a, 0x06, 0x57, 0x68, 0x61, - 0x74, 0x49, 0x66, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, 0x30, 0x0a, 0x05, 0x65, - 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x72, 0x65, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, - 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x22, 0x5d, 0x0a, - 0x05, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x72, 0x65, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, - 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x52, 0x0a, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x2a, 0x87, 0x01, 0x0a, - 0x10, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x4c, 0x65, 0x76, 0x65, - 0x6c, 0x12, 0x21, 0x0a, 0x1d, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, - 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, - 0x4e, 0x43, 0x45, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x4f, 0x46, 0x46, 0x10, 0x01, 0x12, - 0x1a, 0x0a, 0x16, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4c, - 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x41, 0x55, 0x54, 0x4f, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x4d, - 0x41, 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, - 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x03, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x41, - 0x49, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2d, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2d, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, - 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x6c, 0x71, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x72, 0x74, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0a, + 0x67, 0x6e, 0x66, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3e, 0x0a, 0x09, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, + 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x48, 0x00, + 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x65, 0x66, 0x42, 0x0c, 0x0a, 0x0a, 0x63, 0x73, + 0x76, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xa4, 0x02, 0x0a, 0x04, 0x52, 0x65, 0x61, + 0x64, 0x12, 0x35, 0x0a, 0x06, 0x64, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, + 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x48, 0x00, + 0x52, 0x06, 0x64, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x35, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x48, 0x00, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, + 0x36, 0x0a, 0x07, 0x77, 0x68, 0x61, 0x74, 0x5f, 0x69, 0x66, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1b, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, + 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x68, 0x61, 0x74, 0x49, 0x66, 0x48, 0x00, 0x52, + 0x06, 0x77, 0x68, 0x61, 0x74, 0x49, 0x66, 0x12, 0x32, 0x0a, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x62, 0x6f, + 0x72, 0x74, 0x48, 0x00, 0x52, 0x05, 0x61, 0x62, 0x6f, 0x72, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x65, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x72, 0x65, + 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, + 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x48, 0x00, 0x52, 0x06, 0x65, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x42, 0x0b, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x4a, 0x0a, 0x06, 0x44, 0x65, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x40, 0x0a, 0x0b, 0x72, 0x65, 0x6c, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, + 0x0a, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x5e, 0x0a, 0x06, 0x4f, + 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x72, 0x65, 0x6c, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x52, + 0x0a, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x60, 0x0a, 0x06, 0x45, + 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x45, 0x0a, 0x0a, 0x63, 0x73, 0x76, 0x5f, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x65, 0x6c, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, + 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, + 0x00, 0x52, 0x09, 0x63, 0x73, 0x76, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0f, 0x0a, 0x0d, + 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x52, 0x0a, + 0x06, 0x57, 0x68, 0x61, 0x74, 0x49, 0x66, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x12, + 0x30, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, + 0x68, 0x22, 0x5d, 0x0a, 0x05, 0x41, 0x62, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, + 0x0a, 0x0b, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, + 0x2a, 0x87, 0x01, 0x0a, 0x10, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, + 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x21, 0x0a, 0x1d, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, 0x4e, + 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, + 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x49, 0x4e, + 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x4f, 0x46, + 0x46, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, + 0x43, 0x45, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x41, 0x55, 0x54, 0x4f, 0x10, 0x02, 0x12, + 0x19, 0x0a, 0x15, 0x4d, 0x41, 0x49, 0x4e, 0x54, 0x45, 0x4e, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x4c, + 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x41, 0x4c, 0x4c, 0x10, 0x03, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x41, 0x49, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2d, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x64, 0x6b, + 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x6c, 0x71, 0x70, 0x2f, 0x76, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, }) var ( @@ -1436,31 +1603,34 @@ func file_relationalai_lqp_v1_transactions_proto_rawDescGZIP() []byte { } var file_relationalai_lqp_v1_transactions_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_relationalai_lqp_v1_transactions_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_relationalai_lqp_v1_transactions_proto_msgTypes = make([]protoimpl.MessageInfo, 21) var file_relationalai_lqp_v1_transactions_proto_goTypes = []any{ - (MaintenanceLevel)(0), // 0: relationalai.lqp.v1.MaintenanceLevel - (*Transaction)(nil), // 1: relationalai.lqp.v1.Transaction - (*Configure)(nil), // 2: relationalai.lqp.v1.Configure - (*IVMConfig)(nil), // 3: relationalai.lqp.v1.IVMConfig - (*Sync)(nil), // 4: relationalai.lqp.v1.Sync - (*Epoch)(nil), // 5: relationalai.lqp.v1.Epoch - (*Write)(nil), // 6: relationalai.lqp.v1.Write - (*Define)(nil), // 7: relationalai.lqp.v1.Define - (*Undefine)(nil), // 8: relationalai.lqp.v1.Undefine - (*Context)(nil), // 9: relationalai.lqp.v1.Context - (*SnapshotMapping)(nil), // 10: relationalai.lqp.v1.SnapshotMapping - (*Snapshot)(nil), // 11: relationalai.lqp.v1.Snapshot - (*ExportCSVConfig)(nil), // 12: relationalai.lqp.v1.ExportCSVConfig - (*ExportCSVColumn)(nil), // 13: relationalai.lqp.v1.ExportCSVColumn - (*Read)(nil), // 14: relationalai.lqp.v1.Read - (*Demand)(nil), // 15: relationalai.lqp.v1.Demand - (*Output)(nil), // 16: relationalai.lqp.v1.Output - (*Export)(nil), // 17: relationalai.lqp.v1.Export - (*WhatIf)(nil), // 18: relationalai.lqp.v1.WhatIf - (*Abort)(nil), // 19: relationalai.lqp.v1.Abort - (*FragmentId)(nil), // 20: relationalai.lqp.v1.FragmentId - (*Fragment)(nil), // 21: relationalai.lqp.v1.Fragment - (*RelationId)(nil), // 22: relationalai.lqp.v1.RelationId + (MaintenanceLevel)(0), // 0: relationalai.lqp.v1.MaintenanceLevel + (*Transaction)(nil), // 1: relationalai.lqp.v1.Transaction + (*Configure)(nil), // 2: relationalai.lqp.v1.Configure + (*IVMConfig)(nil), // 3: relationalai.lqp.v1.IVMConfig + (*Sync)(nil), // 4: relationalai.lqp.v1.Sync + (*Epoch)(nil), // 5: relationalai.lqp.v1.Epoch + (*Write)(nil), // 6: relationalai.lqp.v1.Write + (*Define)(nil), // 7: relationalai.lqp.v1.Define + (*Undefine)(nil), // 8: relationalai.lqp.v1.Undefine + (*Context)(nil), // 9: relationalai.lqp.v1.Context + (*SnapshotMapping)(nil), // 10: relationalai.lqp.v1.SnapshotMapping + (*Snapshot)(nil), // 11: relationalai.lqp.v1.Snapshot + (*ExportCSVConfig)(nil), // 12: relationalai.lqp.v1.ExportCSVConfig + (*ExportCSVColumn)(nil), // 13: relationalai.lqp.v1.ExportCSVColumn + (*ExportCSVColumns)(nil), // 14: relationalai.lqp.v1.ExportCSVColumns + (*ExportCSVSource)(nil), // 15: relationalai.lqp.v1.ExportCSVSource + (*Read)(nil), // 16: relationalai.lqp.v1.Read + (*Demand)(nil), // 17: relationalai.lqp.v1.Demand + (*Output)(nil), // 18: relationalai.lqp.v1.Output + (*Export)(nil), // 19: relationalai.lqp.v1.Export + (*WhatIf)(nil), // 20: relationalai.lqp.v1.WhatIf + (*Abort)(nil), // 21: relationalai.lqp.v1.Abort + (*FragmentId)(nil), // 22: relationalai.lqp.v1.FragmentId + (*Fragment)(nil), // 23: relationalai.lqp.v1.Fragment + (*RelationId)(nil), // 24: relationalai.lqp.v1.RelationId + (*CSVConfig)(nil), // 25: relationalai.lqp.v1.CSVConfig } var file_relationalai_lqp_v1_transactions_proto_depIdxs = []int32{ 5, // 0: relationalai.lqp.v1.Transaction.epochs:type_name -> relationalai.lqp.v1.Epoch @@ -1468,35 +1638,40 @@ var file_relationalai_lqp_v1_transactions_proto_depIdxs = []int32{ 4, // 2: relationalai.lqp.v1.Transaction.sync:type_name -> relationalai.lqp.v1.Sync 3, // 3: relationalai.lqp.v1.Configure.ivm_config:type_name -> relationalai.lqp.v1.IVMConfig 0, // 4: relationalai.lqp.v1.IVMConfig.level:type_name -> relationalai.lqp.v1.MaintenanceLevel - 20, // 5: relationalai.lqp.v1.Sync.fragments:type_name -> relationalai.lqp.v1.FragmentId + 22, // 5: relationalai.lqp.v1.Sync.fragments:type_name -> relationalai.lqp.v1.FragmentId 6, // 6: relationalai.lqp.v1.Epoch.writes:type_name -> relationalai.lqp.v1.Write - 14, // 7: relationalai.lqp.v1.Epoch.reads:type_name -> relationalai.lqp.v1.Read + 16, // 7: relationalai.lqp.v1.Epoch.reads:type_name -> relationalai.lqp.v1.Read 7, // 8: relationalai.lqp.v1.Write.define:type_name -> relationalai.lqp.v1.Define 8, // 9: relationalai.lqp.v1.Write.undefine:type_name -> relationalai.lqp.v1.Undefine 9, // 10: relationalai.lqp.v1.Write.context:type_name -> relationalai.lqp.v1.Context 11, // 11: relationalai.lqp.v1.Write.snapshot:type_name -> relationalai.lqp.v1.Snapshot - 21, // 12: relationalai.lqp.v1.Define.fragment:type_name -> relationalai.lqp.v1.Fragment - 20, // 13: relationalai.lqp.v1.Undefine.fragment_id:type_name -> relationalai.lqp.v1.FragmentId - 22, // 14: relationalai.lqp.v1.Context.relations:type_name -> relationalai.lqp.v1.RelationId - 22, // 15: relationalai.lqp.v1.SnapshotMapping.source_relation:type_name -> relationalai.lqp.v1.RelationId + 23, // 12: relationalai.lqp.v1.Define.fragment:type_name -> relationalai.lqp.v1.Fragment + 22, // 13: relationalai.lqp.v1.Undefine.fragment_id:type_name -> relationalai.lqp.v1.FragmentId + 24, // 14: relationalai.lqp.v1.Context.relations:type_name -> relationalai.lqp.v1.RelationId + 24, // 15: relationalai.lqp.v1.SnapshotMapping.source_relation:type_name -> relationalai.lqp.v1.RelationId 10, // 16: relationalai.lqp.v1.Snapshot.mappings:type_name -> relationalai.lqp.v1.SnapshotMapping - 13, // 17: relationalai.lqp.v1.ExportCSVConfig.data_columns:type_name -> relationalai.lqp.v1.ExportCSVColumn - 22, // 18: relationalai.lqp.v1.ExportCSVColumn.column_data:type_name -> relationalai.lqp.v1.RelationId - 15, // 19: relationalai.lqp.v1.Read.demand:type_name -> relationalai.lqp.v1.Demand - 16, // 20: relationalai.lqp.v1.Read.output:type_name -> relationalai.lqp.v1.Output - 18, // 21: relationalai.lqp.v1.Read.what_if:type_name -> relationalai.lqp.v1.WhatIf - 19, // 22: relationalai.lqp.v1.Read.abort:type_name -> relationalai.lqp.v1.Abort - 17, // 23: relationalai.lqp.v1.Read.export:type_name -> relationalai.lqp.v1.Export - 22, // 24: relationalai.lqp.v1.Demand.relation_id:type_name -> relationalai.lqp.v1.RelationId - 22, // 25: relationalai.lqp.v1.Output.relation_id:type_name -> relationalai.lqp.v1.RelationId - 12, // 26: relationalai.lqp.v1.Export.csv_config:type_name -> relationalai.lqp.v1.ExportCSVConfig - 5, // 27: relationalai.lqp.v1.WhatIf.epoch:type_name -> relationalai.lqp.v1.Epoch - 22, // 28: relationalai.lqp.v1.Abort.relation_id:type_name -> relationalai.lqp.v1.RelationId - 29, // [29:29] is the sub-list for method output_type - 29, // [29:29] is the sub-list for method input_type - 29, // [29:29] is the sub-list for extension type_name - 29, // [29:29] is the sub-list for extension extendee - 0, // [0:29] is the sub-list for field type_name + 15, // 17: relationalai.lqp.v1.ExportCSVConfig.csv_source:type_name -> relationalai.lqp.v1.ExportCSVSource + 25, // 18: relationalai.lqp.v1.ExportCSVConfig.csv_config:type_name -> relationalai.lqp.v1.CSVConfig + 13, // 19: relationalai.lqp.v1.ExportCSVConfig.data_columns:type_name -> relationalai.lqp.v1.ExportCSVColumn + 24, // 20: relationalai.lqp.v1.ExportCSVColumn.column_data:type_name -> relationalai.lqp.v1.RelationId + 13, // 21: relationalai.lqp.v1.ExportCSVColumns.columns:type_name -> relationalai.lqp.v1.ExportCSVColumn + 14, // 22: relationalai.lqp.v1.ExportCSVSource.gnf_columns:type_name -> relationalai.lqp.v1.ExportCSVColumns + 24, // 23: relationalai.lqp.v1.ExportCSVSource.table_def:type_name -> relationalai.lqp.v1.RelationId + 17, // 24: relationalai.lqp.v1.Read.demand:type_name -> relationalai.lqp.v1.Demand + 18, // 25: relationalai.lqp.v1.Read.output:type_name -> relationalai.lqp.v1.Output + 20, // 26: relationalai.lqp.v1.Read.what_if:type_name -> relationalai.lqp.v1.WhatIf + 21, // 27: relationalai.lqp.v1.Read.abort:type_name -> relationalai.lqp.v1.Abort + 19, // 28: relationalai.lqp.v1.Read.export:type_name -> relationalai.lqp.v1.Export + 24, // 29: relationalai.lqp.v1.Demand.relation_id:type_name -> relationalai.lqp.v1.RelationId + 24, // 30: relationalai.lqp.v1.Output.relation_id:type_name -> relationalai.lqp.v1.RelationId + 12, // 31: relationalai.lqp.v1.Export.csv_config:type_name -> relationalai.lqp.v1.ExportCSVConfig + 5, // 32: relationalai.lqp.v1.WhatIf.epoch:type_name -> relationalai.lqp.v1.Epoch + 24, // 33: relationalai.lqp.v1.Abort.relation_id:type_name -> relationalai.lqp.v1.RelationId + 34, // [34:34] is the sub-list for method output_type + 34, // [34:34] is the sub-list for method input_type + 34, // [34:34] is the sub-list for extension type_name + 34, // [34:34] is the sub-list for extension extendee + 0, // [0:34] is the sub-list for field type_name } func init() { file_relationalai_lqp_v1_transactions_proto_init() } @@ -1514,14 +1689,18 @@ func file_relationalai_lqp_v1_transactions_proto_init() { (*Write_Snapshot)(nil), } file_relationalai_lqp_v1_transactions_proto_msgTypes[11].OneofWrappers = []any{} - file_relationalai_lqp_v1_transactions_proto_msgTypes[13].OneofWrappers = []any{ + file_relationalai_lqp_v1_transactions_proto_msgTypes[14].OneofWrappers = []any{ + (*ExportCSVSource_GnfColumns)(nil), + (*ExportCSVSource_TableDef)(nil), + } + file_relationalai_lqp_v1_transactions_proto_msgTypes[15].OneofWrappers = []any{ (*Read_Demand)(nil), (*Read_Output)(nil), (*Read_WhatIf)(nil), (*Read_Abort)(nil), (*Read_Export)(nil), } - file_relationalai_lqp_v1_transactions_proto_msgTypes[16].OneofWrappers = []any{ + file_relationalai_lqp_v1_transactions_proto_msgTypes[18].OneofWrappers = []any{ (*Export_CsvConfig)(nil), } type x struct{} @@ -1530,7 +1709,7 @@ func file_relationalai_lqp_v1_transactions_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_relationalai_lqp_v1_transactions_proto_rawDesc), len(file_relationalai_lqp_v1_transactions_proto_rawDesc)), NumEnums: 1, - NumMessages: 19, + NumMessages: 21, NumExtensions: 0, NumServices: 0, }, diff --git a/sdks/go/src/parser.go b/sdks/go/src/parser.go index 4016cd4b..bf61b37a 100644 --- a/sdks/go/src/parser.go +++ b/sdks/go/src/parser.go @@ -524,150 +524,152 @@ func toPascalCase(s string) string { // --- Helper functions --- func (p *Parser) _extract_value_int32(value *pb.Value, default_ int64) int32 { - var _t1350 interface{} + var _t1389 interface{} if (value != nil && hasProtoField(value, "int_value")) { return int32(value.GetIntValue()) } - _ = _t1350 + _ = _t1389 return int32(default_) } func (p *Parser) _extract_value_int64(value *pb.Value, default_ int64) int64 { - var _t1351 interface{} + var _t1390 interface{} if (value != nil && hasProtoField(value, "int_value")) { return value.GetIntValue() } - _ = _t1351 + _ = _t1390 return default_ } func (p *Parser) _extract_value_string(value *pb.Value, default_ string) string { - var _t1352 interface{} + var _t1391 interface{} if (value != nil && hasProtoField(value, "string_value")) { return value.GetStringValue() } - _ = _t1352 + _ = _t1391 return default_ } func (p *Parser) _extract_value_boolean(value *pb.Value, default_ bool) bool { - var _t1353 interface{} + var _t1392 interface{} if (value != nil && hasProtoField(value, "boolean_value")) { return value.GetBooleanValue() } - _ = _t1353 + _ = _t1392 return default_ } func (p *Parser) _extract_value_string_list(value *pb.Value, default_ []string) []string { - var _t1354 interface{} + var _t1393 interface{} if (value != nil && hasProtoField(value, "string_value")) { return []string{value.GetStringValue()} } - _ = _t1354 + _ = _t1393 return default_ } func (p *Parser) _try_extract_value_int64(value *pb.Value) *int64 { - var _t1355 interface{} + var _t1394 interface{} if (value != nil && hasProtoField(value, "int_value")) { return ptr(value.GetIntValue()) } - _ = _t1355 + _ = _t1394 return nil } func (p *Parser) _try_extract_value_float64(value *pb.Value) *float64 { - var _t1356 interface{} + var _t1395 interface{} if (value != nil && hasProtoField(value, "float_value")) { return ptr(value.GetFloatValue()) } - _ = _t1356 + _ = _t1395 return nil } func (p *Parser) _try_extract_value_bytes(value *pb.Value) []byte { - var _t1357 interface{} + var _t1396 interface{} if (value != nil && hasProtoField(value, "string_value")) { return []byte(value.GetStringValue()) } - _ = _t1357 + _ = _t1396 return nil } func (p *Parser) _try_extract_value_uint128(value *pb.Value) *pb.UInt128Value { - var _t1358 interface{} + var _t1397 interface{} if (value != nil && hasProtoField(value, "uint128_value")) { return value.GetUint128Value() } - _ = _t1358 + _ = _t1397 return nil } func (p *Parser) construct_csv_config(config_dict [][]interface{}) *pb.CSVConfig { config := dictFromList(config_dict) - _t1359 := p._extract_value_int32(dictGetValue(config, "csv_header_row"), 1) - header_row := _t1359 - _t1360 := p._extract_value_int64(dictGetValue(config, "csv_skip"), 0) - skip := _t1360 - _t1361 := p._extract_value_string(dictGetValue(config, "csv_new_line"), "") - new_line := _t1361 - _t1362 := p._extract_value_string(dictGetValue(config, "csv_delimiter"), ",") - delimiter := _t1362 - _t1363 := p._extract_value_string(dictGetValue(config, "csv_quotechar"), "\"") - quotechar := _t1363 - _t1364 := p._extract_value_string(dictGetValue(config, "csv_escapechar"), "\"") - escapechar := _t1364 - _t1365 := p._extract_value_string(dictGetValue(config, "csv_comment"), "") - comment := _t1365 - _t1366 := p._extract_value_string_list(dictGetValue(config, "csv_missing_strings"), []string{}) - missing_strings := _t1366 - _t1367 := p._extract_value_string(dictGetValue(config, "csv_decimal_separator"), ".") - decimal_separator := _t1367 - _t1368 := p._extract_value_string(dictGetValue(config, "csv_encoding"), "utf-8") - encoding := _t1368 - _t1369 := p._extract_value_string(dictGetValue(config, "csv_compression"), "auto") - compression := _t1369 - _t1370 := &pb.CSVConfig{HeaderRow: header_row, Skip: skip, NewLine: new_line, Delimiter: delimiter, Quotechar: quotechar, Escapechar: escapechar, Comment: comment, MissingStrings: missing_strings, DecimalSeparator: decimal_separator, Encoding: encoding, Compression: compression} - return _t1370 + _t1398 := p._extract_value_int32(dictGetValue(config, "csv_header_row"), 1) + header_row := _t1398 + _t1399 := p._extract_value_int64(dictGetValue(config, "csv_skip"), 0) + skip := _t1399 + _t1400 := p._extract_value_string(dictGetValue(config, "csv_new_line"), "") + new_line := _t1400 + _t1401 := p._extract_value_string(dictGetValue(config, "csv_delimiter"), ",") + delimiter := _t1401 + _t1402 := p._extract_value_string(dictGetValue(config, "csv_quotechar"), "\"") + quotechar := _t1402 + _t1403 := p._extract_value_string(dictGetValue(config, "csv_escapechar"), "\"") + escapechar := _t1403 + _t1404 := p._extract_value_string(dictGetValue(config, "csv_comment"), "") + comment := _t1404 + _t1405 := p._extract_value_string_list(dictGetValue(config, "csv_missing_strings"), []string{}) + missing_strings := _t1405 + _t1406 := p._extract_value_string(dictGetValue(config, "csv_decimal_separator"), ".") + decimal_separator := _t1406 + _t1407 := p._extract_value_string(dictGetValue(config, "csv_encoding"), "utf-8") + encoding := _t1407 + _t1408 := p._extract_value_string(dictGetValue(config, "csv_compression"), "auto") + compression := _t1408 + _t1409 := p._extract_value_int64(dictGetValue(config, "csv_partition_size_mb"), 0) + partition_size_mb := _t1409 + _t1410 := &pb.CSVConfig{HeaderRow: header_row, Skip: skip, NewLine: new_line, Delimiter: delimiter, Quotechar: quotechar, Escapechar: escapechar, Comment: comment, MissingStrings: missing_strings, DecimalSeparator: decimal_separator, Encoding: encoding, Compression: compression, PartitionSizeMb: partition_size_mb} + return _t1410 } func (p *Parser) construct_betree_info(key_types []*pb.Type, value_types []*pb.Type, config_dict [][]interface{}) *pb.BeTreeInfo { config := dictFromList(config_dict) - _t1371 := p._try_extract_value_float64(dictGetValue(config, "betree_config_epsilon")) - epsilon := _t1371 - _t1372 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_pivots")) - max_pivots := _t1372 - _t1373 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_deltas")) - max_deltas := _t1373 - _t1374 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_leaf")) - max_leaf := _t1374 - _t1375 := &pb.BeTreeConfig{Epsilon: deref(epsilon, 0.0), MaxPivots: deref(max_pivots, 0), MaxDeltas: deref(max_deltas, 0), MaxLeaf: deref(max_leaf, 0)} - storage_config := _t1375 - _t1376 := p._try_extract_value_uint128(dictGetValue(config, "betree_locator_root_pageid")) - root_pageid := _t1376 - _t1377 := p._try_extract_value_bytes(dictGetValue(config, "betree_locator_inline_data")) - inline_data := _t1377 - _t1378 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_element_count")) - element_count := _t1378 - _t1379 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_tree_height")) - tree_height := _t1379 - _t1380 := &pb.BeTreeLocator{ElementCount: deref(element_count, 0), TreeHeight: deref(tree_height, 0)} + _t1411 := p._try_extract_value_float64(dictGetValue(config, "betree_config_epsilon")) + epsilon := _t1411 + _t1412 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_pivots")) + max_pivots := _t1412 + _t1413 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_deltas")) + max_deltas := _t1413 + _t1414 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_leaf")) + max_leaf := _t1414 + _t1415 := &pb.BeTreeConfig{Epsilon: deref(epsilon, 0.0), MaxPivots: deref(max_pivots, 0), MaxDeltas: deref(max_deltas, 0), MaxLeaf: deref(max_leaf, 0)} + storage_config := _t1415 + _t1416 := p._try_extract_value_uint128(dictGetValue(config, "betree_locator_root_pageid")) + root_pageid := _t1416 + _t1417 := p._try_extract_value_bytes(dictGetValue(config, "betree_locator_inline_data")) + inline_data := _t1417 + _t1418 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_element_count")) + element_count := _t1418 + _t1419 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_tree_height")) + tree_height := _t1419 + _t1420 := &pb.BeTreeLocator{ElementCount: deref(element_count, 0), TreeHeight: deref(tree_height, 0)} if root_pageid != nil { - _t1380.Location = &pb.BeTreeLocator_RootPageid{RootPageid: root_pageid} + _t1420.Location = &pb.BeTreeLocator_RootPageid{RootPageid: root_pageid} } else { - _t1380.Location = &pb.BeTreeLocator_InlineData{InlineData: inline_data} + _t1420.Location = &pb.BeTreeLocator_InlineData{InlineData: inline_data} } - relation_locator := _t1380 - _t1381 := &pb.BeTreeInfo{KeyTypes: key_types, ValueTypes: value_types, StorageConfig: storage_config, RelationLocator: relation_locator} - return _t1381 + relation_locator := _t1420 + _t1421 := &pb.BeTreeInfo{KeyTypes: key_types, ValueTypes: value_types, StorageConfig: storage_config, RelationLocator: relation_locator} + return _t1421 } func (p *Parser) default_configure() *pb.Configure { - _t1382 := &pb.IVMConfig{Level: pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF} - ivm_config := _t1382 - _t1383 := &pb.Configure{SemanticsVersion: 0, IvmConfig: ivm_config} - return _t1383 + _t1422 := &pb.IVMConfig{Level: pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF} + ivm_config := _t1422 + _t1423 := &pb.Configure{SemanticsVersion: 0, IvmConfig: ivm_config} + return _t1423 } func (p *Parser) construct_configure(config_dict [][]interface{}) *pb.Configure { @@ -689,32 +691,37 @@ func (p *Parser) construct_configure(config_dict [][]interface{}) *pb.Configure } } } - _t1384 := &pb.IVMConfig{Level: maintenance_level} - ivm_config := _t1384 - _t1385 := p._extract_value_int64(dictGetValue(config, "semantics_version"), 0) - semantics_version := _t1385 - _t1386 := &pb.Configure{SemanticsVersion: semantics_version, IvmConfig: ivm_config} - return _t1386 + _t1424 := &pb.IVMConfig{Level: maintenance_level} + ivm_config := _t1424 + _t1425 := p._extract_value_int64(dictGetValue(config, "semantics_version"), 0) + semantics_version := _t1425 + _t1426 := &pb.Configure{SemanticsVersion: semantics_version, IvmConfig: ivm_config} + return _t1426 } -func (p *Parser) export_csv_config(path string, columns []*pb.ExportCSVColumn, config_dict [][]interface{}) *pb.ExportCSVConfig { +func (p *Parser) construct_export_csv_config(path string, columns []*pb.ExportCSVColumn, config_dict [][]interface{}) *pb.ExportCSVConfig { config := dictFromList(config_dict) - _t1387 := p._extract_value_int64(dictGetValue(config, "partition_size"), 0) - partition_size := _t1387 - _t1388 := p._extract_value_string(dictGetValue(config, "compression"), "") - compression := _t1388 - _t1389 := p._extract_value_boolean(dictGetValue(config, "syntax_header_row"), true) - syntax_header_row := _t1389 - _t1390 := p._extract_value_string(dictGetValue(config, "syntax_missing_string"), "") - syntax_missing_string := _t1390 - _t1391 := p._extract_value_string(dictGetValue(config, "syntax_delim"), ",") - syntax_delim := _t1391 - _t1392 := p._extract_value_string(dictGetValue(config, "syntax_quotechar"), "\"") - syntax_quotechar := _t1392 - _t1393 := p._extract_value_string(dictGetValue(config, "syntax_escapechar"), "\\") - syntax_escapechar := _t1393 - _t1394 := &pb.ExportCSVConfig{Path: path, DataColumns: columns, PartitionSize: ptr(partition_size), Compression: ptr(compression), SyntaxHeaderRow: ptr(syntax_header_row), SyntaxMissingString: ptr(syntax_missing_string), SyntaxDelim: ptr(syntax_delim), SyntaxQuotechar: ptr(syntax_quotechar), SyntaxEscapechar: ptr(syntax_escapechar)} - return _t1394 + _t1427 := p._extract_value_int64(dictGetValue(config, "partition_size"), 0) + partition_size := _t1427 + _t1428 := p._extract_value_string(dictGetValue(config, "compression"), "") + compression := _t1428 + _t1429 := p._extract_value_boolean(dictGetValue(config, "syntax_header_row"), true) + syntax_header_row := _t1429 + _t1430 := p._extract_value_string(dictGetValue(config, "syntax_missing_string"), "") + syntax_missing_string := _t1430 + _t1431 := p._extract_value_string(dictGetValue(config, "syntax_delim"), ",") + syntax_delim := _t1431 + _t1432 := p._extract_value_string(dictGetValue(config, "syntax_quotechar"), "\"") + syntax_quotechar := _t1432 + _t1433 := p._extract_value_string(dictGetValue(config, "syntax_escapechar"), "\\") + syntax_escapechar := _t1433 + _t1434 := &pb.ExportCSVConfig{Path: path, DataColumns: columns, PartitionSize: ptr(partition_size), Compression: ptr(compression), SyntaxHeaderRow: ptr(syntax_header_row), SyntaxMissingString: ptr(syntax_missing_string), SyntaxDelim: ptr(syntax_delim), SyntaxQuotechar: ptr(syntax_quotechar), SyntaxEscapechar: ptr(syntax_escapechar)} + return _t1434 +} + +func (p *Parser) construct_export_csv_config_with_source(path string, csv_source *pb.ExportCSVSource, csv_config *pb.CSVConfig) *pb.ExportCSVConfig { + _t1435 := &pb.ExportCSVConfig{Path: path, CsvSource: csv_source, CsvConfig: csv_config} + return _t1435 } // --- Parse functions --- @@ -722,3082 +729,3180 @@ func (p *Parser) export_csv_config(path string, columns []*pb.ExportCSVColumn, c func (p *Parser) parse_transaction() *pb.Transaction { p.consumeLiteral("(") p.consumeLiteral("transaction") - var _t732 *pb.Configure + var _t752 *pb.Configure if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("configure", 1)) { - _t733 := p.parse_configure() - _t732 = _t733 + _t753 := p.parse_configure() + _t752 = _t753 } - configure366 := _t732 - var _t734 *pb.Sync + configure376 := _t752 + var _t754 *pb.Sync if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("sync", 1)) { - _t735 := p.parse_sync() - _t734 = _t735 + _t755 := p.parse_sync() + _t754 = _t755 } - sync367 := _t734 - xs368 := []*pb.Epoch{} - cond369 := p.matchLookaheadLiteral("(", 0) - for cond369 { - _t736 := p.parse_epoch() - item370 := _t736 - xs368 = append(xs368, item370) - cond369 = p.matchLookaheadLiteral("(", 0) + sync377 := _t754 + xs378 := []*pb.Epoch{} + cond379 := p.matchLookaheadLiteral("(", 0) + for cond379 { + _t756 := p.parse_epoch() + item380 := _t756 + xs378 = append(xs378, item380) + cond379 = p.matchLookaheadLiteral("(", 0) } - epochs371 := xs368 + epochs381 := xs378 p.consumeLiteral(")") - _t737 := p.default_configure() - _t738 := configure366 - if configure366 == nil { - _t738 = _t737 + _t757 := p.default_configure() + _t758 := configure376 + if configure376 == nil { + _t758 = _t757 } - _t739 := &pb.Transaction{Epochs: epochs371, Configure: _t738, Sync: sync367} - return _t739 + _t759 := &pb.Transaction{Epochs: epochs381, Configure: _t758, Sync: sync377} + return _t759 } func (p *Parser) parse_configure() *pb.Configure { p.consumeLiteral("(") p.consumeLiteral("configure") - _t740 := p.parse_config_dict() - config_dict372 := _t740 + _t760 := p.parse_config_dict() + config_dict382 := _t760 p.consumeLiteral(")") - _t741 := p.construct_configure(config_dict372) - return _t741 + _t761 := p.construct_configure(config_dict382) + return _t761 } func (p *Parser) parse_config_dict() [][]interface{} { p.consumeLiteral("{") - xs373 := [][]interface{}{} - cond374 := p.matchLookaheadLiteral(":", 0) - for cond374 { - _t742 := p.parse_config_key_value() - item375 := _t742 - xs373 = append(xs373, item375) - cond374 = p.matchLookaheadLiteral(":", 0) - } - config_key_values376 := xs373 + xs383 := [][]interface{}{} + cond384 := p.matchLookaheadLiteral(":", 0) + for cond384 { + _t762 := p.parse_config_key_value() + item385 := _t762 + xs383 = append(xs383, item385) + cond384 = p.matchLookaheadLiteral(":", 0) + } + config_key_values386 := xs383 p.consumeLiteral("}") - return config_key_values376 + return config_key_values386 } func (p *Parser) parse_config_key_value() []interface{} { p.consumeLiteral(":") - symbol377 := p.consumeTerminal("SYMBOL").Value.str - _t743 := p.parse_value() - value378 := _t743 - return []interface{}{symbol377, value378} + symbol387 := p.consumeTerminal("SYMBOL").Value.str + _t763 := p.parse_value() + value388 := _t763 + return []interface{}{symbol387, value388} } func (p *Parser) parse_value() *pb.Value { - var _t744 int64 + var _t764 int64 if p.matchLookaheadLiteral("true", 0) { - _t744 = 9 + _t764 = 9 } else { - var _t745 int64 + var _t765 int64 if p.matchLookaheadLiteral("missing", 0) { - _t745 = 8 + _t765 = 8 } else { - var _t746 int64 + var _t766 int64 if p.matchLookaheadLiteral("false", 0) { - _t746 = 9 + _t766 = 9 } else { - var _t747 int64 + var _t767 int64 if p.matchLookaheadLiteral("(", 0) { - var _t748 int64 + var _t768 int64 if p.matchLookaheadLiteral("datetime", 1) { - _t748 = 1 + _t768 = 1 } else { - var _t749 int64 + var _t769 int64 if p.matchLookaheadLiteral("date", 1) { - _t749 = 0 + _t769 = 0 } else { - _t749 = -1 + _t769 = -1 } - _t748 = _t749 + _t768 = _t769 } - _t747 = _t748 + _t767 = _t768 } else { - var _t750 int64 + var _t770 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t750 = 5 + _t770 = 5 } else { - var _t751 int64 + var _t771 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t751 = 2 + _t771 = 2 } else { - var _t752 int64 + var _t772 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t752 = 6 + _t772 = 6 } else { - var _t753 int64 + var _t773 int64 if p.matchLookaheadTerminal("INT", 0) { - _t753 = 3 + _t773 = 3 } else { - var _t754 int64 + var _t774 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t754 = 4 + _t774 = 4 } else { - var _t755 int64 + var _t775 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t755 = 7 + _t775 = 7 } else { - _t755 = -1 + _t775 = -1 } - _t754 = _t755 + _t774 = _t775 } - _t753 = _t754 + _t773 = _t774 } - _t752 = _t753 + _t772 = _t773 } - _t751 = _t752 + _t771 = _t772 } - _t750 = _t751 + _t770 = _t771 } - _t747 = _t750 + _t767 = _t770 } - _t746 = _t747 + _t766 = _t767 } - _t745 = _t746 + _t765 = _t766 } - _t744 = _t745 - } - prediction379 := _t744 - var _t756 *pb.Value - if prediction379 == 9 { - _t757 := p.parse_boolean_value() - boolean_value388 := _t757 - _t758 := &pb.Value{} - _t758.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value388} - _t756 = _t758 + _t764 = _t765 + } + prediction389 := _t764 + var _t776 *pb.Value + if prediction389 == 9 { + _t777 := p.parse_boolean_value() + boolean_value398 := _t777 + _t778 := &pb.Value{} + _t778.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value398} + _t776 = _t778 } else { - var _t759 *pb.Value - if prediction379 == 8 { + var _t779 *pb.Value + if prediction389 == 8 { p.consumeLiteral("missing") - _t760 := &pb.MissingValue{} - _t761 := &pb.Value{} - _t761.Value = &pb.Value_MissingValue{MissingValue: _t760} - _t759 = _t761 + _t780 := &pb.MissingValue{} + _t781 := &pb.Value{} + _t781.Value = &pb.Value_MissingValue{MissingValue: _t780} + _t779 = _t781 } else { - var _t762 *pb.Value - if prediction379 == 7 { - decimal387 := p.consumeTerminal("DECIMAL").Value.decimal - _t763 := &pb.Value{} - _t763.Value = &pb.Value_DecimalValue{DecimalValue: decimal387} - _t762 = _t763 + var _t782 *pb.Value + if prediction389 == 7 { + decimal397 := p.consumeTerminal("DECIMAL").Value.decimal + _t783 := &pb.Value{} + _t783.Value = &pb.Value_DecimalValue{DecimalValue: decimal397} + _t782 = _t783 } else { - var _t764 *pb.Value - if prediction379 == 6 { - int128386 := p.consumeTerminal("INT128").Value.int128 - _t765 := &pb.Value{} - _t765.Value = &pb.Value_Int128Value{Int128Value: int128386} - _t764 = _t765 + var _t784 *pb.Value + if prediction389 == 6 { + int128396 := p.consumeTerminal("INT128").Value.int128 + _t785 := &pb.Value{} + _t785.Value = &pb.Value_Int128Value{Int128Value: int128396} + _t784 = _t785 } else { - var _t766 *pb.Value - if prediction379 == 5 { - uint128385 := p.consumeTerminal("UINT128").Value.uint128 - _t767 := &pb.Value{} - _t767.Value = &pb.Value_Uint128Value{Uint128Value: uint128385} - _t766 = _t767 + var _t786 *pb.Value + if prediction389 == 5 { + uint128395 := p.consumeTerminal("UINT128").Value.uint128 + _t787 := &pb.Value{} + _t787.Value = &pb.Value_Uint128Value{Uint128Value: uint128395} + _t786 = _t787 } else { - var _t768 *pb.Value - if prediction379 == 4 { - float384 := p.consumeTerminal("FLOAT").Value.f64 - _t769 := &pb.Value{} - _t769.Value = &pb.Value_FloatValue{FloatValue: float384} - _t768 = _t769 + var _t788 *pb.Value + if prediction389 == 4 { + float394 := p.consumeTerminal("FLOAT").Value.f64 + _t789 := &pb.Value{} + _t789.Value = &pb.Value_FloatValue{FloatValue: float394} + _t788 = _t789 } else { - var _t770 *pb.Value - if prediction379 == 3 { - int383 := p.consumeTerminal("INT").Value.i64 - _t771 := &pb.Value{} - _t771.Value = &pb.Value_IntValue{IntValue: int383} - _t770 = _t771 + var _t790 *pb.Value + if prediction389 == 3 { + int393 := p.consumeTerminal("INT").Value.i64 + _t791 := &pb.Value{} + _t791.Value = &pb.Value_IntValue{IntValue: int393} + _t790 = _t791 } else { - var _t772 *pb.Value - if prediction379 == 2 { - string382 := p.consumeTerminal("STRING").Value.str - _t773 := &pb.Value{} - _t773.Value = &pb.Value_StringValue{StringValue: string382} - _t772 = _t773 + var _t792 *pb.Value + if prediction389 == 2 { + string392 := p.consumeTerminal("STRING").Value.str + _t793 := &pb.Value{} + _t793.Value = &pb.Value_StringValue{StringValue: string392} + _t792 = _t793 } else { - var _t774 *pb.Value - if prediction379 == 1 { - _t775 := p.parse_datetime() - datetime381 := _t775 - _t776 := &pb.Value{} - _t776.Value = &pb.Value_DatetimeValue{DatetimeValue: datetime381} - _t774 = _t776 + var _t794 *pb.Value + if prediction389 == 1 { + _t795 := p.parse_datetime() + datetime391 := _t795 + _t796 := &pb.Value{} + _t796.Value = &pb.Value_DatetimeValue{DatetimeValue: datetime391} + _t794 = _t796 } else { - var _t777 *pb.Value - if prediction379 == 0 { - _t778 := p.parse_date() - date380 := _t778 - _t779 := &pb.Value{} - _t779.Value = &pb.Value_DateValue{DateValue: date380} - _t777 = _t779 + var _t797 *pb.Value + if prediction389 == 0 { + _t798 := p.parse_date() + date390 := _t798 + _t799 := &pb.Value{} + _t799.Value = &pb.Value_DateValue{DateValue: date390} + _t797 = _t799 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t774 = _t777 + _t794 = _t797 } - _t772 = _t774 + _t792 = _t794 } - _t770 = _t772 + _t790 = _t792 } - _t768 = _t770 + _t788 = _t790 } - _t766 = _t768 + _t786 = _t788 } - _t764 = _t766 + _t784 = _t786 } - _t762 = _t764 + _t782 = _t784 } - _t759 = _t762 + _t779 = _t782 } - _t756 = _t759 + _t776 = _t779 } - return _t756 + return _t776 } func (p *Parser) parse_date() *pb.DateValue { p.consumeLiteral("(") p.consumeLiteral("date") - int389 := p.consumeTerminal("INT").Value.i64 - int_3390 := p.consumeTerminal("INT").Value.i64 - int_4391 := p.consumeTerminal("INT").Value.i64 + int399 := p.consumeTerminal("INT").Value.i64 + int_3400 := p.consumeTerminal("INT").Value.i64 + int_4401 := p.consumeTerminal("INT").Value.i64 p.consumeLiteral(")") - _t780 := &pb.DateValue{Year: int32(int389), Month: int32(int_3390), Day: int32(int_4391)} - return _t780 + _t800 := &pb.DateValue{Year: int32(int399), Month: int32(int_3400), Day: int32(int_4401)} + return _t800 } func (p *Parser) parse_datetime() *pb.DateTimeValue { p.consumeLiteral("(") p.consumeLiteral("datetime") - int392 := p.consumeTerminal("INT").Value.i64 - int_3393 := p.consumeTerminal("INT").Value.i64 - int_4394 := p.consumeTerminal("INT").Value.i64 - int_5395 := p.consumeTerminal("INT").Value.i64 - int_6396 := p.consumeTerminal("INT").Value.i64 - int_7397 := p.consumeTerminal("INT").Value.i64 - var _t781 *int64 + int402 := p.consumeTerminal("INT").Value.i64 + int_3403 := p.consumeTerminal("INT").Value.i64 + int_4404 := p.consumeTerminal("INT").Value.i64 + int_5405 := p.consumeTerminal("INT").Value.i64 + int_6406 := p.consumeTerminal("INT").Value.i64 + int_7407 := p.consumeTerminal("INT").Value.i64 + var _t801 *int64 if p.matchLookaheadTerminal("INT", 0) { - _t781 = ptr(p.consumeTerminal("INT").Value.i64) + _t801 = ptr(p.consumeTerminal("INT").Value.i64) } - int_8398 := _t781 + int_8408 := _t801 p.consumeLiteral(")") - _t782 := &pb.DateTimeValue{Year: int32(int392), Month: int32(int_3393), Day: int32(int_4394), Hour: int32(int_5395), Minute: int32(int_6396), Second: int32(int_7397), Microsecond: int32(deref(int_8398, 0))} - return _t782 + _t802 := &pb.DateTimeValue{Year: int32(int402), Month: int32(int_3403), Day: int32(int_4404), Hour: int32(int_5405), Minute: int32(int_6406), Second: int32(int_7407), Microsecond: int32(deref(int_8408, 0))} + return _t802 } func (p *Parser) parse_boolean_value() bool { - var _t783 int64 + var _t803 int64 if p.matchLookaheadLiteral("true", 0) { - _t783 = 0 + _t803 = 0 } else { - var _t784 int64 + var _t804 int64 if p.matchLookaheadLiteral("false", 0) { - _t784 = 1 + _t804 = 1 } else { - _t784 = -1 + _t804 = -1 } - _t783 = _t784 + _t803 = _t804 } - prediction399 := _t783 - var _t785 bool - if prediction399 == 1 { + prediction409 := _t803 + var _t805 bool + if prediction409 == 1 { p.consumeLiteral("false") - _t785 = false + _t805 = false } else { - var _t786 bool - if prediction399 == 0 { + var _t806 bool + if prediction409 == 0 { p.consumeLiteral("true") - _t786 = true + _t806 = true } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in boolean_value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t785 = _t786 + _t805 = _t806 } - return _t785 + return _t805 } func (p *Parser) parse_sync() *pb.Sync { p.consumeLiteral("(") p.consumeLiteral("sync") - xs400 := []*pb.FragmentId{} - cond401 := p.matchLookaheadLiteral(":", 0) - for cond401 { - _t787 := p.parse_fragment_id() - item402 := _t787 - xs400 = append(xs400, item402) - cond401 = p.matchLookaheadLiteral(":", 0) + xs410 := []*pb.FragmentId{} + cond411 := p.matchLookaheadLiteral(":", 0) + for cond411 { + _t807 := p.parse_fragment_id() + item412 := _t807 + xs410 = append(xs410, item412) + cond411 = p.matchLookaheadLiteral(":", 0) } - fragment_ids403 := xs400 + fragment_ids413 := xs410 p.consumeLiteral(")") - _t788 := &pb.Sync{Fragments: fragment_ids403} - return _t788 + _t808 := &pb.Sync{Fragments: fragment_ids413} + return _t808 } func (p *Parser) parse_fragment_id() *pb.FragmentId { p.consumeLiteral(":") - symbol404 := p.consumeTerminal("SYMBOL").Value.str - return &pb.FragmentId{Id: []byte(symbol404)} + symbol414 := p.consumeTerminal("SYMBOL").Value.str + return &pb.FragmentId{Id: []byte(symbol414)} } func (p *Parser) parse_epoch() *pb.Epoch { p.consumeLiteral("(") p.consumeLiteral("epoch") - var _t789 []*pb.Write + var _t809 []*pb.Write if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("writes", 1)) { - _t790 := p.parse_epoch_writes() - _t789 = _t790 + _t810 := p.parse_epoch_writes() + _t809 = _t810 } - epoch_writes405 := _t789 - var _t791 []*pb.Read + epoch_writes415 := _t809 + var _t811 []*pb.Read if p.matchLookaheadLiteral("(", 0) { - _t792 := p.parse_epoch_reads() - _t791 = _t792 + _t812 := p.parse_epoch_reads() + _t811 = _t812 } - epoch_reads406 := _t791 + epoch_reads416 := _t811 p.consumeLiteral(")") - _t793 := epoch_writes405 - if epoch_writes405 == nil { - _t793 = []*pb.Write{} + _t813 := epoch_writes415 + if epoch_writes415 == nil { + _t813 = []*pb.Write{} } - _t794 := epoch_reads406 - if epoch_reads406 == nil { - _t794 = []*pb.Read{} + _t814 := epoch_reads416 + if epoch_reads416 == nil { + _t814 = []*pb.Read{} } - _t795 := &pb.Epoch{Writes: _t793, Reads: _t794} - return _t795 + _t815 := &pb.Epoch{Writes: _t813, Reads: _t814} + return _t815 } func (p *Parser) parse_epoch_writes() []*pb.Write { p.consumeLiteral("(") p.consumeLiteral("writes") - xs407 := []*pb.Write{} - cond408 := p.matchLookaheadLiteral("(", 0) - for cond408 { - _t796 := p.parse_write() - item409 := _t796 - xs407 = append(xs407, item409) - cond408 = p.matchLookaheadLiteral("(", 0) + xs417 := []*pb.Write{} + cond418 := p.matchLookaheadLiteral("(", 0) + for cond418 { + _t816 := p.parse_write() + item419 := _t816 + xs417 = append(xs417, item419) + cond418 = p.matchLookaheadLiteral("(", 0) } - writes410 := xs407 + writes420 := xs417 p.consumeLiteral(")") - return writes410 + return writes420 } func (p *Parser) parse_write() *pb.Write { - var _t797 int64 + var _t817 int64 if p.matchLookaheadLiteral("(", 0) { - var _t798 int64 + var _t818 int64 if p.matchLookaheadLiteral("undefine", 1) { - _t798 = 1 + _t818 = 1 } else { - var _t799 int64 + var _t819 int64 if p.matchLookaheadLiteral("snapshot", 1) { - _t799 = 3 + _t819 = 3 } else { - var _t800 int64 + var _t820 int64 if p.matchLookaheadLiteral("define", 1) { - _t800 = 0 + _t820 = 0 } else { - var _t801 int64 + var _t821 int64 if p.matchLookaheadLiteral("context", 1) { - _t801 = 2 + _t821 = 2 } else { - _t801 = -1 + _t821 = -1 } - _t800 = _t801 + _t820 = _t821 } - _t799 = _t800 + _t819 = _t820 } - _t798 = _t799 + _t818 = _t819 } - _t797 = _t798 + _t817 = _t818 } else { - _t797 = -1 - } - prediction411 := _t797 - var _t802 *pb.Write - if prediction411 == 3 { - _t803 := p.parse_snapshot() - snapshot415 := _t803 - _t804 := &pb.Write{} - _t804.WriteType = &pb.Write_Snapshot{Snapshot: snapshot415} - _t802 = _t804 + _t817 = -1 + } + prediction421 := _t817 + var _t822 *pb.Write + if prediction421 == 3 { + _t823 := p.parse_snapshot() + snapshot425 := _t823 + _t824 := &pb.Write{} + _t824.WriteType = &pb.Write_Snapshot{Snapshot: snapshot425} + _t822 = _t824 } else { - var _t805 *pb.Write - if prediction411 == 2 { - _t806 := p.parse_context() - context414 := _t806 - _t807 := &pb.Write{} - _t807.WriteType = &pb.Write_Context{Context: context414} - _t805 = _t807 + var _t825 *pb.Write + if prediction421 == 2 { + _t826 := p.parse_context() + context424 := _t826 + _t827 := &pb.Write{} + _t827.WriteType = &pb.Write_Context{Context: context424} + _t825 = _t827 } else { - var _t808 *pb.Write - if prediction411 == 1 { - _t809 := p.parse_undefine() - undefine413 := _t809 - _t810 := &pb.Write{} - _t810.WriteType = &pb.Write_Undefine{Undefine: undefine413} - _t808 = _t810 + var _t828 *pb.Write + if prediction421 == 1 { + _t829 := p.parse_undefine() + undefine423 := _t829 + _t830 := &pb.Write{} + _t830.WriteType = &pb.Write_Undefine{Undefine: undefine423} + _t828 = _t830 } else { - var _t811 *pb.Write - if prediction411 == 0 { - _t812 := p.parse_define() - define412 := _t812 - _t813 := &pb.Write{} - _t813.WriteType = &pb.Write_Define{Define: define412} - _t811 = _t813 + var _t831 *pb.Write + if prediction421 == 0 { + _t832 := p.parse_define() + define422 := _t832 + _t833 := &pb.Write{} + _t833.WriteType = &pb.Write_Define{Define: define422} + _t831 = _t833 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in write", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t808 = _t811 + _t828 = _t831 } - _t805 = _t808 + _t825 = _t828 } - _t802 = _t805 + _t822 = _t825 } - return _t802 + return _t822 } func (p *Parser) parse_define() *pb.Define { p.consumeLiteral("(") p.consumeLiteral("define") - _t814 := p.parse_fragment() - fragment416 := _t814 + _t834 := p.parse_fragment() + fragment426 := _t834 p.consumeLiteral(")") - _t815 := &pb.Define{Fragment: fragment416} - return _t815 + _t835 := &pb.Define{Fragment: fragment426} + return _t835 } func (p *Parser) parse_fragment() *pb.Fragment { p.consumeLiteral("(") p.consumeLiteral("fragment") - _t816 := p.parse_new_fragment_id() - new_fragment_id417 := _t816 - xs418 := []*pb.Declaration{} - cond419 := p.matchLookaheadLiteral("(", 0) - for cond419 { - _t817 := p.parse_declaration() - item420 := _t817 - xs418 = append(xs418, item420) - cond419 = p.matchLookaheadLiteral("(", 0) + _t836 := p.parse_new_fragment_id() + new_fragment_id427 := _t836 + xs428 := []*pb.Declaration{} + cond429 := p.matchLookaheadLiteral("(", 0) + for cond429 { + _t837 := p.parse_declaration() + item430 := _t837 + xs428 = append(xs428, item430) + cond429 = p.matchLookaheadLiteral("(", 0) } - declarations421 := xs418 + declarations431 := xs428 p.consumeLiteral(")") - return p.constructFragment(new_fragment_id417, declarations421) + return p.constructFragment(new_fragment_id427, declarations431) } func (p *Parser) parse_new_fragment_id() *pb.FragmentId { - _t818 := p.parse_fragment_id() - fragment_id422 := _t818 - p.startFragment(fragment_id422) - return fragment_id422 + _t838 := p.parse_fragment_id() + fragment_id432 := _t838 + p.startFragment(fragment_id432) + return fragment_id432 } func (p *Parser) parse_declaration() *pb.Declaration { - var _t819 int64 + var _t839 int64 if p.matchLookaheadLiteral("(", 0) { - var _t820 int64 + var _t840 int64 if p.matchLookaheadLiteral("functional_dependency", 1) { - _t820 = 2 + _t840 = 2 } else { - var _t821 int64 + var _t841 int64 if p.matchLookaheadLiteral("edb", 1) { - _t821 = 3 + _t841 = 3 } else { - var _t822 int64 + var _t842 int64 if p.matchLookaheadLiteral("def", 1) { - _t822 = 0 + _t842 = 0 } else { - var _t823 int64 + var _t843 int64 if p.matchLookaheadLiteral("csv_data", 1) { - _t823 = 3 + _t843 = 3 } else { - var _t824 int64 + var _t844 int64 if p.matchLookaheadLiteral("betree_relation", 1) { - _t824 = 3 + _t844 = 3 } else { - var _t825 int64 + var _t845 int64 if p.matchLookaheadLiteral("algorithm", 1) { - _t825 = 1 + _t845 = 1 } else { - _t825 = -1 + _t845 = -1 } - _t824 = _t825 + _t844 = _t845 } - _t823 = _t824 + _t843 = _t844 } - _t822 = _t823 + _t842 = _t843 } - _t821 = _t822 + _t841 = _t842 } - _t820 = _t821 + _t840 = _t841 } - _t819 = _t820 + _t839 = _t840 } else { - _t819 = -1 - } - prediction423 := _t819 - var _t826 *pb.Declaration - if prediction423 == 3 { - _t827 := p.parse_data() - data427 := _t827 - _t828 := &pb.Declaration{} - _t828.DeclarationType = &pb.Declaration_Data{Data: data427} - _t826 = _t828 + _t839 = -1 + } + prediction433 := _t839 + var _t846 *pb.Declaration + if prediction433 == 3 { + _t847 := p.parse_data() + data437 := _t847 + _t848 := &pb.Declaration{} + _t848.DeclarationType = &pb.Declaration_Data{Data: data437} + _t846 = _t848 } else { - var _t829 *pb.Declaration - if prediction423 == 2 { - _t830 := p.parse_constraint() - constraint426 := _t830 - _t831 := &pb.Declaration{} - _t831.DeclarationType = &pb.Declaration_Constraint{Constraint: constraint426} - _t829 = _t831 + var _t849 *pb.Declaration + if prediction433 == 2 { + _t850 := p.parse_constraint() + constraint436 := _t850 + _t851 := &pb.Declaration{} + _t851.DeclarationType = &pb.Declaration_Constraint{Constraint: constraint436} + _t849 = _t851 } else { - var _t832 *pb.Declaration - if prediction423 == 1 { - _t833 := p.parse_algorithm() - algorithm425 := _t833 - _t834 := &pb.Declaration{} - _t834.DeclarationType = &pb.Declaration_Algorithm{Algorithm: algorithm425} - _t832 = _t834 + var _t852 *pb.Declaration + if prediction433 == 1 { + _t853 := p.parse_algorithm() + algorithm435 := _t853 + _t854 := &pb.Declaration{} + _t854.DeclarationType = &pb.Declaration_Algorithm{Algorithm: algorithm435} + _t852 = _t854 } else { - var _t835 *pb.Declaration - if prediction423 == 0 { - _t836 := p.parse_def() - def424 := _t836 - _t837 := &pb.Declaration{} - _t837.DeclarationType = &pb.Declaration_Def{Def: def424} - _t835 = _t837 + var _t855 *pb.Declaration + if prediction433 == 0 { + _t856 := p.parse_def() + def434 := _t856 + _t857 := &pb.Declaration{} + _t857.DeclarationType = &pb.Declaration_Def{Def: def434} + _t855 = _t857 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in declaration", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t832 = _t835 + _t852 = _t855 } - _t829 = _t832 + _t849 = _t852 } - _t826 = _t829 + _t846 = _t849 } - return _t826 + return _t846 } func (p *Parser) parse_def() *pb.Def { p.consumeLiteral("(") p.consumeLiteral("def") - _t838 := p.parse_relation_id() - relation_id428 := _t838 - _t839 := p.parse_abstraction() - abstraction429 := _t839 - var _t840 []*pb.Attribute + _t858 := p.parse_relation_id() + relation_id438 := _t858 + _t859 := p.parse_abstraction() + abstraction439 := _t859 + var _t860 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t841 := p.parse_attrs() - _t840 = _t841 + _t861 := p.parse_attrs() + _t860 = _t861 } - attrs430 := _t840 + attrs440 := _t860 p.consumeLiteral(")") - _t842 := attrs430 - if attrs430 == nil { - _t842 = []*pb.Attribute{} + _t862 := attrs440 + if attrs440 == nil { + _t862 = []*pb.Attribute{} } - _t843 := &pb.Def{Name: relation_id428, Body: abstraction429, Attrs: _t842} - return _t843 + _t863 := &pb.Def{Name: relation_id438, Body: abstraction439, Attrs: _t862} + return _t863 } func (p *Parser) parse_relation_id() *pb.RelationId { - var _t844 int64 + var _t864 int64 if p.matchLookaheadLiteral(":", 0) { - _t844 = 0 + _t864 = 0 } else { - var _t845 int64 + var _t865 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t845 = 1 + _t865 = 1 } else { - _t845 = -1 + _t865 = -1 } - _t844 = _t845 - } - prediction431 := _t844 - var _t846 *pb.RelationId - if prediction431 == 1 { - uint128433 := p.consumeTerminal("UINT128").Value.uint128 - _ = uint128433 - _t846 = &pb.RelationId{IdLow: uint128433.Low, IdHigh: uint128433.High} + _t864 = _t865 + } + prediction441 := _t864 + var _t866 *pb.RelationId + if prediction441 == 1 { + uint128443 := p.consumeTerminal("UINT128").Value.uint128 + _ = uint128443 + _t866 = &pb.RelationId{IdLow: uint128443.Low, IdHigh: uint128443.High} } else { - var _t847 *pb.RelationId - if prediction431 == 0 { + var _t867 *pb.RelationId + if prediction441 == 0 { p.consumeLiteral(":") - symbol432 := p.consumeTerminal("SYMBOL").Value.str - _t847 = p.relationIdFromString(symbol432) + symbol442 := p.consumeTerminal("SYMBOL").Value.str + _t867 = p.relationIdFromString(symbol442) } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in relation_id", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t846 = _t847 + _t866 = _t867 } - return _t846 + return _t866 } func (p *Parser) parse_abstraction() *pb.Abstraction { p.consumeLiteral("(") - _t848 := p.parse_bindings() - bindings434 := _t848 - _t849 := p.parse_formula() - formula435 := _t849 + _t868 := p.parse_bindings() + bindings444 := _t868 + _t869 := p.parse_formula() + formula445 := _t869 p.consumeLiteral(")") - _t850 := &pb.Abstraction{Vars: listConcat(bindings434[0].([]*pb.Binding), bindings434[1].([]*pb.Binding)), Value: formula435} - return _t850 + _t870 := &pb.Abstraction{Vars: listConcat(bindings444[0].([]*pb.Binding), bindings444[1].([]*pb.Binding)), Value: formula445} + return _t870 } func (p *Parser) parse_bindings() []interface{} { p.consumeLiteral("[") - xs436 := []*pb.Binding{} - cond437 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond437 { - _t851 := p.parse_binding() - item438 := _t851 - xs436 = append(xs436, item438) - cond437 = p.matchLookaheadTerminal("SYMBOL", 0) - } - bindings439 := xs436 - var _t852 []*pb.Binding + xs446 := []*pb.Binding{} + cond447 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond447 { + _t871 := p.parse_binding() + item448 := _t871 + xs446 = append(xs446, item448) + cond447 = p.matchLookaheadTerminal("SYMBOL", 0) + } + bindings449 := xs446 + var _t872 []*pb.Binding if p.matchLookaheadLiteral("|", 0) { - _t853 := p.parse_value_bindings() - _t852 = _t853 + _t873 := p.parse_value_bindings() + _t872 = _t873 } - value_bindings440 := _t852 + value_bindings450 := _t872 p.consumeLiteral("]") - _t854 := value_bindings440 - if value_bindings440 == nil { - _t854 = []*pb.Binding{} + _t874 := value_bindings450 + if value_bindings450 == nil { + _t874 = []*pb.Binding{} } - return []interface{}{bindings439, _t854} + return []interface{}{bindings449, _t874} } func (p *Parser) parse_binding() *pb.Binding { - symbol441 := p.consumeTerminal("SYMBOL").Value.str + symbol451 := p.consumeTerminal("SYMBOL").Value.str p.consumeLiteral("::") - _t855 := p.parse_type() - type442 := _t855 - _t856 := &pb.Var{Name: symbol441} - _t857 := &pb.Binding{Var: _t856, Type: type442} - return _t857 + _t875 := p.parse_type() + type452 := _t875 + _t876 := &pb.Var{Name: symbol451} + _t877 := &pb.Binding{Var: _t876, Type: type452} + return _t877 } func (p *Parser) parse_type() *pb.Type { - var _t858 int64 + var _t878 int64 if p.matchLookaheadLiteral("UNKNOWN", 0) { - _t858 = 0 + _t878 = 0 } else { - var _t859 int64 + var _t879 int64 if p.matchLookaheadLiteral("UINT128", 0) { - _t859 = 4 + _t879 = 4 } else { - var _t860 int64 + var _t880 int64 if p.matchLookaheadLiteral("STRING", 0) { - _t860 = 1 + _t880 = 1 } else { - var _t861 int64 + var _t881 int64 if p.matchLookaheadLiteral("MISSING", 0) { - _t861 = 8 + _t881 = 8 } else { - var _t862 int64 + var _t882 int64 if p.matchLookaheadLiteral("INT128", 0) { - _t862 = 5 + _t882 = 5 } else { - var _t863 int64 + var _t883 int64 if p.matchLookaheadLiteral("INT", 0) { - _t863 = 2 + _t883 = 2 } else { - var _t864 int64 + var _t884 int64 if p.matchLookaheadLiteral("FLOAT", 0) { - _t864 = 3 + _t884 = 3 } else { - var _t865 int64 + var _t885 int64 if p.matchLookaheadLiteral("DATETIME", 0) { - _t865 = 7 + _t885 = 7 } else { - var _t866 int64 + var _t886 int64 if p.matchLookaheadLiteral("DATE", 0) { - _t866 = 6 + _t886 = 6 } else { - var _t867 int64 + var _t887 int64 if p.matchLookaheadLiteral("BOOLEAN", 0) { - _t867 = 10 + _t887 = 10 } else { - var _t868 int64 + var _t888 int64 if p.matchLookaheadLiteral("(", 0) { - _t868 = 9 + _t888 = 9 } else { - _t868 = -1 + _t888 = -1 } - _t867 = _t868 + _t887 = _t888 } - _t866 = _t867 + _t886 = _t887 } - _t865 = _t866 + _t885 = _t886 } - _t864 = _t865 + _t884 = _t885 } - _t863 = _t864 + _t883 = _t884 } - _t862 = _t863 + _t882 = _t883 } - _t861 = _t862 + _t881 = _t882 } - _t860 = _t861 + _t880 = _t881 } - _t859 = _t860 + _t879 = _t880 } - _t858 = _t859 - } - prediction443 := _t858 - var _t869 *pb.Type - if prediction443 == 10 { - _t870 := p.parse_boolean_type() - boolean_type454 := _t870 - _t871 := &pb.Type{} - _t871.Type = &pb.Type_BooleanType{BooleanType: boolean_type454} - _t869 = _t871 + _t878 = _t879 + } + prediction453 := _t878 + var _t889 *pb.Type + if prediction453 == 10 { + _t890 := p.parse_boolean_type() + boolean_type464 := _t890 + _t891 := &pb.Type{} + _t891.Type = &pb.Type_BooleanType{BooleanType: boolean_type464} + _t889 = _t891 } else { - var _t872 *pb.Type - if prediction443 == 9 { - _t873 := p.parse_decimal_type() - decimal_type453 := _t873 - _t874 := &pb.Type{} - _t874.Type = &pb.Type_DecimalType{DecimalType: decimal_type453} - _t872 = _t874 + var _t892 *pb.Type + if prediction453 == 9 { + _t893 := p.parse_decimal_type() + decimal_type463 := _t893 + _t894 := &pb.Type{} + _t894.Type = &pb.Type_DecimalType{DecimalType: decimal_type463} + _t892 = _t894 } else { - var _t875 *pb.Type - if prediction443 == 8 { - _t876 := p.parse_missing_type() - missing_type452 := _t876 - _t877 := &pb.Type{} - _t877.Type = &pb.Type_MissingType{MissingType: missing_type452} - _t875 = _t877 + var _t895 *pb.Type + if prediction453 == 8 { + _t896 := p.parse_missing_type() + missing_type462 := _t896 + _t897 := &pb.Type{} + _t897.Type = &pb.Type_MissingType{MissingType: missing_type462} + _t895 = _t897 } else { - var _t878 *pb.Type - if prediction443 == 7 { - _t879 := p.parse_datetime_type() - datetime_type451 := _t879 - _t880 := &pb.Type{} - _t880.Type = &pb.Type_DatetimeType{DatetimeType: datetime_type451} - _t878 = _t880 + var _t898 *pb.Type + if prediction453 == 7 { + _t899 := p.parse_datetime_type() + datetime_type461 := _t899 + _t900 := &pb.Type{} + _t900.Type = &pb.Type_DatetimeType{DatetimeType: datetime_type461} + _t898 = _t900 } else { - var _t881 *pb.Type - if prediction443 == 6 { - _t882 := p.parse_date_type() - date_type450 := _t882 - _t883 := &pb.Type{} - _t883.Type = &pb.Type_DateType{DateType: date_type450} - _t881 = _t883 + var _t901 *pb.Type + if prediction453 == 6 { + _t902 := p.parse_date_type() + date_type460 := _t902 + _t903 := &pb.Type{} + _t903.Type = &pb.Type_DateType{DateType: date_type460} + _t901 = _t903 } else { - var _t884 *pb.Type - if prediction443 == 5 { - _t885 := p.parse_int128_type() - int128_type449 := _t885 - _t886 := &pb.Type{} - _t886.Type = &pb.Type_Int128Type{Int128Type: int128_type449} - _t884 = _t886 + var _t904 *pb.Type + if prediction453 == 5 { + _t905 := p.parse_int128_type() + int128_type459 := _t905 + _t906 := &pb.Type{} + _t906.Type = &pb.Type_Int128Type{Int128Type: int128_type459} + _t904 = _t906 } else { - var _t887 *pb.Type - if prediction443 == 4 { - _t888 := p.parse_uint128_type() - uint128_type448 := _t888 - _t889 := &pb.Type{} - _t889.Type = &pb.Type_Uint128Type{Uint128Type: uint128_type448} - _t887 = _t889 + var _t907 *pb.Type + if prediction453 == 4 { + _t908 := p.parse_uint128_type() + uint128_type458 := _t908 + _t909 := &pb.Type{} + _t909.Type = &pb.Type_Uint128Type{Uint128Type: uint128_type458} + _t907 = _t909 } else { - var _t890 *pb.Type - if prediction443 == 3 { - _t891 := p.parse_float_type() - float_type447 := _t891 - _t892 := &pb.Type{} - _t892.Type = &pb.Type_FloatType{FloatType: float_type447} - _t890 = _t892 + var _t910 *pb.Type + if prediction453 == 3 { + _t911 := p.parse_float_type() + float_type457 := _t911 + _t912 := &pb.Type{} + _t912.Type = &pb.Type_FloatType{FloatType: float_type457} + _t910 = _t912 } else { - var _t893 *pb.Type - if prediction443 == 2 { - _t894 := p.parse_int_type() - int_type446 := _t894 - _t895 := &pb.Type{} - _t895.Type = &pb.Type_IntType{IntType: int_type446} - _t893 = _t895 + var _t913 *pb.Type + if prediction453 == 2 { + _t914 := p.parse_int_type() + int_type456 := _t914 + _t915 := &pb.Type{} + _t915.Type = &pb.Type_IntType{IntType: int_type456} + _t913 = _t915 } else { - var _t896 *pb.Type - if prediction443 == 1 { - _t897 := p.parse_string_type() - string_type445 := _t897 - _t898 := &pb.Type{} - _t898.Type = &pb.Type_StringType{StringType: string_type445} - _t896 = _t898 + var _t916 *pb.Type + if prediction453 == 1 { + _t917 := p.parse_string_type() + string_type455 := _t917 + _t918 := &pb.Type{} + _t918.Type = &pb.Type_StringType{StringType: string_type455} + _t916 = _t918 } else { - var _t899 *pb.Type - if prediction443 == 0 { - _t900 := p.parse_unspecified_type() - unspecified_type444 := _t900 - _t901 := &pb.Type{} - _t901.Type = &pb.Type_UnspecifiedType{UnspecifiedType: unspecified_type444} - _t899 = _t901 + var _t919 *pb.Type + if prediction453 == 0 { + _t920 := p.parse_unspecified_type() + unspecified_type454 := _t920 + _t921 := &pb.Type{} + _t921.Type = &pb.Type_UnspecifiedType{UnspecifiedType: unspecified_type454} + _t919 = _t921 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in type", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t896 = _t899 + _t916 = _t919 } - _t893 = _t896 + _t913 = _t916 } - _t890 = _t893 + _t910 = _t913 } - _t887 = _t890 + _t907 = _t910 } - _t884 = _t887 + _t904 = _t907 } - _t881 = _t884 + _t901 = _t904 } - _t878 = _t881 + _t898 = _t901 } - _t875 = _t878 + _t895 = _t898 } - _t872 = _t875 + _t892 = _t895 } - _t869 = _t872 + _t889 = _t892 } - return _t869 + return _t889 } func (p *Parser) parse_unspecified_type() *pb.UnspecifiedType { p.consumeLiteral("UNKNOWN") - _t902 := &pb.UnspecifiedType{} - return _t902 + _t922 := &pb.UnspecifiedType{} + return _t922 } func (p *Parser) parse_string_type() *pb.StringType { p.consumeLiteral("STRING") - _t903 := &pb.StringType{} - return _t903 + _t923 := &pb.StringType{} + return _t923 } func (p *Parser) parse_int_type() *pb.IntType { p.consumeLiteral("INT") - _t904 := &pb.IntType{} - return _t904 + _t924 := &pb.IntType{} + return _t924 } func (p *Parser) parse_float_type() *pb.FloatType { p.consumeLiteral("FLOAT") - _t905 := &pb.FloatType{} - return _t905 + _t925 := &pb.FloatType{} + return _t925 } func (p *Parser) parse_uint128_type() *pb.UInt128Type { p.consumeLiteral("UINT128") - _t906 := &pb.UInt128Type{} - return _t906 + _t926 := &pb.UInt128Type{} + return _t926 } func (p *Parser) parse_int128_type() *pb.Int128Type { p.consumeLiteral("INT128") - _t907 := &pb.Int128Type{} - return _t907 + _t927 := &pb.Int128Type{} + return _t927 } func (p *Parser) parse_date_type() *pb.DateType { p.consumeLiteral("DATE") - _t908 := &pb.DateType{} - return _t908 + _t928 := &pb.DateType{} + return _t928 } func (p *Parser) parse_datetime_type() *pb.DateTimeType { p.consumeLiteral("DATETIME") - _t909 := &pb.DateTimeType{} - return _t909 + _t929 := &pb.DateTimeType{} + return _t929 } func (p *Parser) parse_missing_type() *pb.MissingType { p.consumeLiteral("MISSING") - _t910 := &pb.MissingType{} - return _t910 + _t930 := &pb.MissingType{} + return _t930 } func (p *Parser) parse_decimal_type() *pb.DecimalType { p.consumeLiteral("(") p.consumeLiteral("DECIMAL") - int455 := p.consumeTerminal("INT").Value.i64 - int_3456 := p.consumeTerminal("INT").Value.i64 + int465 := p.consumeTerminal("INT").Value.i64 + int_3466 := p.consumeTerminal("INT").Value.i64 p.consumeLiteral(")") - _t911 := &pb.DecimalType{Precision: int32(int455), Scale: int32(int_3456)} - return _t911 + _t931 := &pb.DecimalType{Precision: int32(int465), Scale: int32(int_3466)} + return _t931 } func (p *Parser) parse_boolean_type() *pb.BooleanType { p.consumeLiteral("BOOLEAN") - _t912 := &pb.BooleanType{} - return _t912 + _t932 := &pb.BooleanType{} + return _t932 } func (p *Parser) parse_value_bindings() []*pb.Binding { p.consumeLiteral("|") - xs457 := []*pb.Binding{} - cond458 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond458 { - _t913 := p.parse_binding() - item459 := _t913 - xs457 = append(xs457, item459) - cond458 = p.matchLookaheadTerminal("SYMBOL", 0) + xs467 := []*pb.Binding{} + cond468 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond468 { + _t933 := p.parse_binding() + item469 := _t933 + xs467 = append(xs467, item469) + cond468 = p.matchLookaheadTerminal("SYMBOL", 0) } - bindings460 := xs457 - return bindings460 + bindings470 := xs467 + return bindings470 } func (p *Parser) parse_formula() *pb.Formula { - var _t914 int64 + var _t934 int64 if p.matchLookaheadLiteral("(", 0) { - var _t915 int64 + var _t935 int64 if p.matchLookaheadLiteral("true", 1) { - _t915 = 0 + _t935 = 0 } else { - var _t916 int64 + var _t936 int64 if p.matchLookaheadLiteral("relatom", 1) { - _t916 = 11 + _t936 = 11 } else { - var _t917 int64 + var _t937 int64 if p.matchLookaheadLiteral("reduce", 1) { - _t917 = 3 + _t937 = 3 } else { - var _t918 int64 + var _t938 int64 if p.matchLookaheadLiteral("primitive", 1) { - _t918 = 10 + _t938 = 10 } else { - var _t919 int64 + var _t939 int64 if p.matchLookaheadLiteral("pragma", 1) { - _t919 = 9 + _t939 = 9 } else { - var _t920 int64 + var _t940 int64 if p.matchLookaheadLiteral("or", 1) { - _t920 = 5 + _t940 = 5 } else { - var _t921 int64 + var _t941 int64 if p.matchLookaheadLiteral("not", 1) { - _t921 = 6 + _t941 = 6 } else { - var _t922 int64 + var _t942 int64 if p.matchLookaheadLiteral("ffi", 1) { - _t922 = 7 + _t942 = 7 } else { - var _t923 int64 + var _t943 int64 if p.matchLookaheadLiteral("false", 1) { - _t923 = 1 + _t943 = 1 } else { - var _t924 int64 + var _t944 int64 if p.matchLookaheadLiteral("exists", 1) { - _t924 = 2 + _t944 = 2 } else { - var _t925 int64 + var _t945 int64 if p.matchLookaheadLiteral("cast", 1) { - _t925 = 12 + _t945 = 12 } else { - var _t926 int64 + var _t946 int64 if p.matchLookaheadLiteral("atom", 1) { - _t926 = 8 + _t946 = 8 } else { - var _t927 int64 + var _t947 int64 if p.matchLookaheadLiteral("and", 1) { - _t927 = 4 + _t947 = 4 } else { - var _t928 int64 + var _t948 int64 if p.matchLookaheadLiteral(">=", 1) { - _t928 = 10 + _t948 = 10 } else { - var _t929 int64 + var _t949 int64 if p.matchLookaheadLiteral(">", 1) { - _t929 = 10 + _t949 = 10 } else { - var _t930 int64 + var _t950 int64 if p.matchLookaheadLiteral("=", 1) { - _t930 = 10 + _t950 = 10 } else { - var _t931 int64 + var _t951 int64 if p.matchLookaheadLiteral("<=", 1) { - _t931 = 10 + _t951 = 10 } else { - var _t932 int64 + var _t952 int64 if p.matchLookaheadLiteral("<", 1) { - _t932 = 10 + _t952 = 10 } else { - var _t933 int64 + var _t953 int64 if p.matchLookaheadLiteral("/", 1) { - _t933 = 10 + _t953 = 10 } else { - var _t934 int64 + var _t954 int64 if p.matchLookaheadLiteral("-", 1) { - _t934 = 10 + _t954 = 10 } else { - var _t935 int64 + var _t955 int64 if p.matchLookaheadLiteral("+", 1) { - _t935 = 10 + _t955 = 10 } else { - var _t936 int64 + var _t956 int64 if p.matchLookaheadLiteral("*", 1) { - _t936 = 10 + _t956 = 10 } else { - _t936 = -1 + _t956 = -1 } - _t935 = _t936 + _t955 = _t956 } - _t934 = _t935 + _t954 = _t955 } - _t933 = _t934 + _t953 = _t954 } - _t932 = _t933 + _t952 = _t953 } - _t931 = _t932 + _t951 = _t952 } - _t930 = _t931 + _t950 = _t951 } - _t929 = _t930 + _t949 = _t950 } - _t928 = _t929 + _t948 = _t949 } - _t927 = _t928 + _t947 = _t948 } - _t926 = _t927 + _t946 = _t947 } - _t925 = _t926 + _t945 = _t946 } - _t924 = _t925 + _t944 = _t945 } - _t923 = _t924 + _t943 = _t944 } - _t922 = _t923 + _t942 = _t943 } - _t921 = _t922 + _t941 = _t942 } - _t920 = _t921 + _t940 = _t941 } - _t919 = _t920 + _t939 = _t940 } - _t918 = _t919 + _t938 = _t939 } - _t917 = _t918 + _t937 = _t938 } - _t916 = _t917 + _t936 = _t937 } - _t915 = _t916 + _t935 = _t936 } - _t914 = _t915 + _t934 = _t935 } else { - _t914 = -1 - } - prediction461 := _t914 - var _t937 *pb.Formula - if prediction461 == 12 { - _t938 := p.parse_cast() - cast474 := _t938 - _t939 := &pb.Formula{} - _t939.FormulaType = &pb.Formula_Cast{Cast: cast474} - _t937 = _t939 + _t934 = -1 + } + prediction471 := _t934 + var _t957 *pb.Formula + if prediction471 == 12 { + _t958 := p.parse_cast() + cast484 := _t958 + _t959 := &pb.Formula{} + _t959.FormulaType = &pb.Formula_Cast{Cast: cast484} + _t957 = _t959 } else { - var _t940 *pb.Formula - if prediction461 == 11 { - _t941 := p.parse_rel_atom() - rel_atom473 := _t941 - _t942 := &pb.Formula{} - _t942.FormulaType = &pb.Formula_RelAtom{RelAtom: rel_atom473} - _t940 = _t942 + var _t960 *pb.Formula + if prediction471 == 11 { + _t961 := p.parse_rel_atom() + rel_atom483 := _t961 + _t962 := &pb.Formula{} + _t962.FormulaType = &pb.Formula_RelAtom{RelAtom: rel_atom483} + _t960 = _t962 } else { - var _t943 *pb.Formula - if prediction461 == 10 { - _t944 := p.parse_primitive() - primitive472 := _t944 - _t945 := &pb.Formula{} - _t945.FormulaType = &pb.Formula_Primitive{Primitive: primitive472} - _t943 = _t945 + var _t963 *pb.Formula + if prediction471 == 10 { + _t964 := p.parse_primitive() + primitive482 := _t964 + _t965 := &pb.Formula{} + _t965.FormulaType = &pb.Formula_Primitive{Primitive: primitive482} + _t963 = _t965 } else { - var _t946 *pb.Formula - if prediction461 == 9 { - _t947 := p.parse_pragma() - pragma471 := _t947 - _t948 := &pb.Formula{} - _t948.FormulaType = &pb.Formula_Pragma{Pragma: pragma471} - _t946 = _t948 + var _t966 *pb.Formula + if prediction471 == 9 { + _t967 := p.parse_pragma() + pragma481 := _t967 + _t968 := &pb.Formula{} + _t968.FormulaType = &pb.Formula_Pragma{Pragma: pragma481} + _t966 = _t968 } else { - var _t949 *pb.Formula - if prediction461 == 8 { - _t950 := p.parse_atom() - atom470 := _t950 - _t951 := &pb.Formula{} - _t951.FormulaType = &pb.Formula_Atom{Atom: atom470} - _t949 = _t951 + var _t969 *pb.Formula + if prediction471 == 8 { + _t970 := p.parse_atom() + atom480 := _t970 + _t971 := &pb.Formula{} + _t971.FormulaType = &pb.Formula_Atom{Atom: atom480} + _t969 = _t971 } else { - var _t952 *pb.Formula - if prediction461 == 7 { - _t953 := p.parse_ffi() - ffi469 := _t953 - _t954 := &pb.Formula{} - _t954.FormulaType = &pb.Formula_Ffi{Ffi: ffi469} - _t952 = _t954 + var _t972 *pb.Formula + if prediction471 == 7 { + _t973 := p.parse_ffi() + ffi479 := _t973 + _t974 := &pb.Formula{} + _t974.FormulaType = &pb.Formula_Ffi{Ffi: ffi479} + _t972 = _t974 } else { - var _t955 *pb.Formula - if prediction461 == 6 { - _t956 := p.parse_not() - not468 := _t956 - _t957 := &pb.Formula{} - _t957.FormulaType = &pb.Formula_Not{Not: not468} - _t955 = _t957 + var _t975 *pb.Formula + if prediction471 == 6 { + _t976 := p.parse_not() + not478 := _t976 + _t977 := &pb.Formula{} + _t977.FormulaType = &pb.Formula_Not{Not: not478} + _t975 = _t977 } else { - var _t958 *pb.Formula - if prediction461 == 5 { - _t959 := p.parse_disjunction() - disjunction467 := _t959 - _t960 := &pb.Formula{} - _t960.FormulaType = &pb.Formula_Disjunction{Disjunction: disjunction467} - _t958 = _t960 + var _t978 *pb.Formula + if prediction471 == 5 { + _t979 := p.parse_disjunction() + disjunction477 := _t979 + _t980 := &pb.Formula{} + _t980.FormulaType = &pb.Formula_Disjunction{Disjunction: disjunction477} + _t978 = _t980 } else { - var _t961 *pb.Formula - if prediction461 == 4 { - _t962 := p.parse_conjunction() - conjunction466 := _t962 - _t963 := &pb.Formula{} - _t963.FormulaType = &pb.Formula_Conjunction{Conjunction: conjunction466} - _t961 = _t963 + var _t981 *pb.Formula + if prediction471 == 4 { + _t982 := p.parse_conjunction() + conjunction476 := _t982 + _t983 := &pb.Formula{} + _t983.FormulaType = &pb.Formula_Conjunction{Conjunction: conjunction476} + _t981 = _t983 } else { - var _t964 *pb.Formula - if prediction461 == 3 { - _t965 := p.parse_reduce() - reduce465 := _t965 - _t966 := &pb.Formula{} - _t966.FormulaType = &pb.Formula_Reduce{Reduce: reduce465} - _t964 = _t966 + var _t984 *pb.Formula + if prediction471 == 3 { + _t985 := p.parse_reduce() + reduce475 := _t985 + _t986 := &pb.Formula{} + _t986.FormulaType = &pb.Formula_Reduce{Reduce: reduce475} + _t984 = _t986 } else { - var _t967 *pb.Formula - if prediction461 == 2 { - _t968 := p.parse_exists() - exists464 := _t968 - _t969 := &pb.Formula{} - _t969.FormulaType = &pb.Formula_Exists{Exists: exists464} - _t967 = _t969 + var _t987 *pb.Formula + if prediction471 == 2 { + _t988 := p.parse_exists() + exists474 := _t988 + _t989 := &pb.Formula{} + _t989.FormulaType = &pb.Formula_Exists{Exists: exists474} + _t987 = _t989 } else { - var _t970 *pb.Formula - if prediction461 == 1 { - _t971 := p.parse_false() - false463 := _t971 - _t972 := &pb.Formula{} - _t972.FormulaType = &pb.Formula_Disjunction{Disjunction: false463} - _t970 = _t972 + var _t990 *pb.Formula + if prediction471 == 1 { + _t991 := p.parse_false() + false473 := _t991 + _t992 := &pb.Formula{} + _t992.FormulaType = &pb.Formula_Disjunction{Disjunction: false473} + _t990 = _t992 } else { - var _t973 *pb.Formula - if prediction461 == 0 { - _t974 := p.parse_true() - true462 := _t974 - _t975 := &pb.Formula{} - _t975.FormulaType = &pb.Formula_Conjunction{Conjunction: true462} - _t973 = _t975 + var _t993 *pb.Formula + if prediction471 == 0 { + _t994 := p.parse_true() + true472 := _t994 + _t995 := &pb.Formula{} + _t995.FormulaType = &pb.Formula_Conjunction{Conjunction: true472} + _t993 = _t995 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in formula", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t970 = _t973 + _t990 = _t993 } - _t967 = _t970 + _t987 = _t990 } - _t964 = _t967 + _t984 = _t987 } - _t961 = _t964 + _t981 = _t984 } - _t958 = _t961 + _t978 = _t981 } - _t955 = _t958 + _t975 = _t978 } - _t952 = _t955 + _t972 = _t975 } - _t949 = _t952 + _t969 = _t972 } - _t946 = _t949 + _t966 = _t969 } - _t943 = _t946 + _t963 = _t966 } - _t940 = _t943 + _t960 = _t963 } - _t937 = _t940 + _t957 = _t960 } - return _t937 + return _t957 } func (p *Parser) parse_true() *pb.Conjunction { p.consumeLiteral("(") p.consumeLiteral("true") p.consumeLiteral(")") - _t976 := &pb.Conjunction{Args: []*pb.Formula{}} - return _t976 + _t996 := &pb.Conjunction{Args: []*pb.Formula{}} + return _t996 } func (p *Parser) parse_false() *pb.Disjunction { p.consumeLiteral("(") p.consumeLiteral("false") p.consumeLiteral(")") - _t977 := &pb.Disjunction{Args: []*pb.Formula{}} - return _t977 + _t997 := &pb.Disjunction{Args: []*pb.Formula{}} + return _t997 } func (p *Parser) parse_exists() *pb.Exists { p.consumeLiteral("(") p.consumeLiteral("exists") - _t978 := p.parse_bindings() - bindings475 := _t978 - _t979 := p.parse_formula() - formula476 := _t979 + _t998 := p.parse_bindings() + bindings485 := _t998 + _t999 := p.parse_formula() + formula486 := _t999 p.consumeLiteral(")") - _t980 := &pb.Abstraction{Vars: listConcat(bindings475[0].([]*pb.Binding), bindings475[1].([]*pb.Binding)), Value: formula476} - _t981 := &pb.Exists{Body: _t980} - return _t981 + _t1000 := &pb.Abstraction{Vars: listConcat(bindings485[0].([]*pb.Binding), bindings485[1].([]*pb.Binding)), Value: formula486} + _t1001 := &pb.Exists{Body: _t1000} + return _t1001 } func (p *Parser) parse_reduce() *pb.Reduce { p.consumeLiteral("(") p.consumeLiteral("reduce") - _t982 := p.parse_abstraction() - abstraction477 := _t982 - _t983 := p.parse_abstraction() - abstraction_3478 := _t983 - _t984 := p.parse_terms() - terms479 := _t984 + _t1002 := p.parse_abstraction() + abstraction487 := _t1002 + _t1003 := p.parse_abstraction() + abstraction_3488 := _t1003 + _t1004 := p.parse_terms() + terms489 := _t1004 p.consumeLiteral(")") - _t985 := &pb.Reduce{Op: abstraction477, Body: abstraction_3478, Terms: terms479} - return _t985 + _t1005 := &pb.Reduce{Op: abstraction487, Body: abstraction_3488, Terms: terms489} + return _t1005 } func (p *Parser) parse_terms() []*pb.Term { p.consumeLiteral("(") p.consumeLiteral("terms") - xs480 := []*pb.Term{} - cond481 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) - for cond481 { - _t986 := p.parse_term() - item482 := _t986 - xs480 = append(xs480, item482) - cond481 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) + xs490 := []*pb.Term{} + cond491 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) + for cond491 { + _t1006 := p.parse_term() + item492 := _t1006 + xs490 = append(xs490, item492) + cond491 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) } - terms483 := xs480 + terms493 := xs490 p.consumeLiteral(")") - return terms483 + return terms493 } func (p *Parser) parse_term() *pb.Term { - var _t987 int64 + var _t1007 int64 if p.matchLookaheadLiteral("true", 0) { - _t987 = 1 + _t1007 = 1 } else { - var _t988 int64 + var _t1008 int64 if p.matchLookaheadLiteral("missing", 0) { - _t988 = 1 + _t1008 = 1 } else { - var _t989 int64 + var _t1009 int64 if p.matchLookaheadLiteral("false", 0) { - _t989 = 1 + _t1009 = 1 } else { - var _t990 int64 + var _t1010 int64 if p.matchLookaheadLiteral("(", 0) { - _t990 = 1 + _t1010 = 1 } else { - var _t991 int64 + var _t1011 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t991 = 1 + _t1011 = 1 } else { - var _t992 int64 + var _t1012 int64 if p.matchLookaheadTerminal("SYMBOL", 0) { - _t992 = 0 + _t1012 = 0 } else { - var _t993 int64 + var _t1013 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t993 = 1 + _t1013 = 1 } else { - var _t994 int64 + var _t1014 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t994 = 1 + _t1014 = 1 } else { - var _t995 int64 + var _t1015 int64 if p.matchLookaheadTerminal("INT", 0) { - _t995 = 1 + _t1015 = 1 } else { - var _t996 int64 + var _t1016 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t996 = 1 + _t1016 = 1 } else { - var _t997 int64 + var _t1017 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t997 = 1 + _t1017 = 1 } else { - _t997 = -1 + _t1017 = -1 } - _t996 = _t997 + _t1016 = _t1017 } - _t995 = _t996 + _t1015 = _t1016 } - _t994 = _t995 + _t1014 = _t1015 } - _t993 = _t994 + _t1013 = _t1014 } - _t992 = _t993 + _t1012 = _t1013 } - _t991 = _t992 + _t1011 = _t1012 } - _t990 = _t991 + _t1010 = _t1011 } - _t989 = _t990 + _t1009 = _t1010 } - _t988 = _t989 + _t1008 = _t1009 } - _t987 = _t988 - } - prediction484 := _t987 - var _t998 *pb.Term - if prediction484 == 1 { - _t999 := p.parse_constant() - constant486 := _t999 - _t1000 := &pb.Term{} - _t1000.TermType = &pb.Term_Constant{Constant: constant486} - _t998 = _t1000 + _t1007 = _t1008 + } + prediction494 := _t1007 + var _t1018 *pb.Term + if prediction494 == 1 { + _t1019 := p.parse_constant() + constant496 := _t1019 + _t1020 := &pb.Term{} + _t1020.TermType = &pb.Term_Constant{Constant: constant496} + _t1018 = _t1020 } else { - var _t1001 *pb.Term - if prediction484 == 0 { - _t1002 := p.parse_var() - var485 := _t1002 - _t1003 := &pb.Term{} - _t1003.TermType = &pb.Term_Var{Var: var485} - _t1001 = _t1003 + var _t1021 *pb.Term + if prediction494 == 0 { + _t1022 := p.parse_var() + var495 := _t1022 + _t1023 := &pb.Term{} + _t1023.TermType = &pb.Term_Var{Var: var495} + _t1021 = _t1023 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in term", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t998 = _t1001 + _t1018 = _t1021 } - return _t998 + return _t1018 } func (p *Parser) parse_var() *pb.Var { - symbol487 := p.consumeTerminal("SYMBOL").Value.str - _t1004 := &pb.Var{Name: symbol487} - return _t1004 + symbol497 := p.consumeTerminal("SYMBOL").Value.str + _t1024 := &pb.Var{Name: symbol497} + return _t1024 } func (p *Parser) parse_constant() *pb.Value { - _t1005 := p.parse_value() - value488 := _t1005 - return value488 + _t1025 := p.parse_value() + value498 := _t1025 + return value498 } func (p *Parser) parse_conjunction() *pb.Conjunction { p.consumeLiteral("(") p.consumeLiteral("and") - xs489 := []*pb.Formula{} - cond490 := p.matchLookaheadLiteral("(", 0) - for cond490 { - _t1006 := p.parse_formula() - item491 := _t1006 - xs489 = append(xs489, item491) - cond490 = p.matchLookaheadLiteral("(", 0) + xs499 := []*pb.Formula{} + cond500 := p.matchLookaheadLiteral("(", 0) + for cond500 { + _t1026 := p.parse_formula() + item501 := _t1026 + xs499 = append(xs499, item501) + cond500 = p.matchLookaheadLiteral("(", 0) } - formulas492 := xs489 + formulas502 := xs499 p.consumeLiteral(")") - _t1007 := &pb.Conjunction{Args: formulas492} - return _t1007 + _t1027 := &pb.Conjunction{Args: formulas502} + return _t1027 } func (p *Parser) parse_disjunction() *pb.Disjunction { p.consumeLiteral("(") p.consumeLiteral("or") - xs493 := []*pb.Formula{} - cond494 := p.matchLookaheadLiteral("(", 0) - for cond494 { - _t1008 := p.parse_formula() - item495 := _t1008 - xs493 = append(xs493, item495) - cond494 = p.matchLookaheadLiteral("(", 0) + xs503 := []*pb.Formula{} + cond504 := p.matchLookaheadLiteral("(", 0) + for cond504 { + _t1028 := p.parse_formula() + item505 := _t1028 + xs503 = append(xs503, item505) + cond504 = p.matchLookaheadLiteral("(", 0) } - formulas496 := xs493 + formulas506 := xs503 p.consumeLiteral(")") - _t1009 := &pb.Disjunction{Args: formulas496} - return _t1009 + _t1029 := &pb.Disjunction{Args: formulas506} + return _t1029 } func (p *Parser) parse_not() *pb.Not { p.consumeLiteral("(") p.consumeLiteral("not") - _t1010 := p.parse_formula() - formula497 := _t1010 + _t1030 := p.parse_formula() + formula507 := _t1030 p.consumeLiteral(")") - _t1011 := &pb.Not{Arg: formula497} - return _t1011 + _t1031 := &pb.Not{Arg: formula507} + return _t1031 } func (p *Parser) parse_ffi() *pb.FFI { p.consumeLiteral("(") p.consumeLiteral("ffi") - _t1012 := p.parse_name() - name498 := _t1012 - _t1013 := p.parse_ffi_args() - ffi_args499 := _t1013 - _t1014 := p.parse_terms() - terms500 := _t1014 + _t1032 := p.parse_name() + name508 := _t1032 + _t1033 := p.parse_ffi_args() + ffi_args509 := _t1033 + _t1034 := p.parse_terms() + terms510 := _t1034 p.consumeLiteral(")") - _t1015 := &pb.FFI{Name: name498, Args: ffi_args499, Terms: terms500} - return _t1015 + _t1035 := &pb.FFI{Name: name508, Args: ffi_args509, Terms: terms510} + return _t1035 } func (p *Parser) parse_name() string { p.consumeLiteral(":") - symbol501 := p.consumeTerminal("SYMBOL").Value.str - return symbol501 + symbol511 := p.consumeTerminal("SYMBOL").Value.str + return symbol511 } func (p *Parser) parse_ffi_args() []*pb.Abstraction { p.consumeLiteral("(") p.consumeLiteral("args") - xs502 := []*pb.Abstraction{} - cond503 := p.matchLookaheadLiteral("(", 0) - for cond503 { - _t1016 := p.parse_abstraction() - item504 := _t1016 - xs502 = append(xs502, item504) - cond503 = p.matchLookaheadLiteral("(", 0) + xs512 := []*pb.Abstraction{} + cond513 := p.matchLookaheadLiteral("(", 0) + for cond513 { + _t1036 := p.parse_abstraction() + item514 := _t1036 + xs512 = append(xs512, item514) + cond513 = p.matchLookaheadLiteral("(", 0) } - abstractions505 := xs502 + abstractions515 := xs512 p.consumeLiteral(")") - return abstractions505 + return abstractions515 } func (p *Parser) parse_atom() *pb.Atom { p.consumeLiteral("(") p.consumeLiteral("atom") - _t1017 := p.parse_relation_id() - relation_id506 := _t1017 - xs507 := []*pb.Term{} - cond508 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) - for cond508 { - _t1018 := p.parse_term() - item509 := _t1018 - xs507 = append(xs507, item509) - cond508 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) + _t1037 := p.parse_relation_id() + relation_id516 := _t1037 + xs517 := []*pb.Term{} + cond518 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) + for cond518 { + _t1038 := p.parse_term() + item519 := _t1038 + xs517 = append(xs517, item519) + cond518 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) } - terms510 := xs507 + terms520 := xs517 p.consumeLiteral(")") - _t1019 := &pb.Atom{Name: relation_id506, Terms: terms510} - return _t1019 + _t1039 := &pb.Atom{Name: relation_id516, Terms: terms520} + return _t1039 } func (p *Parser) parse_pragma() *pb.Pragma { p.consumeLiteral("(") p.consumeLiteral("pragma") - _t1020 := p.parse_name() - name511 := _t1020 - xs512 := []*pb.Term{} - cond513 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) - for cond513 { - _t1021 := p.parse_term() - item514 := _t1021 - xs512 = append(xs512, item514) - cond513 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) + _t1040 := p.parse_name() + name521 := _t1040 + xs522 := []*pb.Term{} + cond523 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) + for cond523 { + _t1041 := p.parse_term() + item524 := _t1041 + xs522 = append(xs522, item524) + cond523 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) } - terms515 := xs512 + terms525 := xs522 p.consumeLiteral(")") - _t1022 := &pb.Pragma{Name: name511, Terms: terms515} - return _t1022 + _t1042 := &pb.Pragma{Name: name521, Terms: terms525} + return _t1042 } func (p *Parser) parse_primitive() *pb.Primitive { - var _t1023 int64 + var _t1043 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1024 int64 + var _t1044 int64 if p.matchLookaheadLiteral("primitive", 1) { - _t1024 = 9 + _t1044 = 9 } else { - var _t1025 int64 + var _t1045 int64 if p.matchLookaheadLiteral(">=", 1) { - _t1025 = 4 + _t1045 = 4 } else { - var _t1026 int64 + var _t1046 int64 if p.matchLookaheadLiteral(">", 1) { - _t1026 = 3 + _t1046 = 3 } else { - var _t1027 int64 + var _t1047 int64 if p.matchLookaheadLiteral("=", 1) { - _t1027 = 0 + _t1047 = 0 } else { - var _t1028 int64 + var _t1048 int64 if p.matchLookaheadLiteral("<=", 1) { - _t1028 = 2 + _t1048 = 2 } else { - var _t1029 int64 + var _t1049 int64 if p.matchLookaheadLiteral("<", 1) { - _t1029 = 1 + _t1049 = 1 } else { - var _t1030 int64 + var _t1050 int64 if p.matchLookaheadLiteral("/", 1) { - _t1030 = 8 + _t1050 = 8 } else { - var _t1031 int64 + var _t1051 int64 if p.matchLookaheadLiteral("-", 1) { - _t1031 = 6 + _t1051 = 6 } else { - var _t1032 int64 + var _t1052 int64 if p.matchLookaheadLiteral("+", 1) { - _t1032 = 5 + _t1052 = 5 } else { - var _t1033 int64 + var _t1053 int64 if p.matchLookaheadLiteral("*", 1) { - _t1033 = 7 + _t1053 = 7 } else { - _t1033 = -1 + _t1053 = -1 } - _t1032 = _t1033 + _t1052 = _t1053 } - _t1031 = _t1032 + _t1051 = _t1052 } - _t1030 = _t1031 + _t1050 = _t1051 } - _t1029 = _t1030 + _t1049 = _t1050 } - _t1028 = _t1029 + _t1048 = _t1049 } - _t1027 = _t1028 + _t1047 = _t1048 } - _t1026 = _t1027 + _t1046 = _t1047 } - _t1025 = _t1026 + _t1045 = _t1046 } - _t1024 = _t1025 + _t1044 = _t1045 } - _t1023 = _t1024 + _t1043 = _t1044 } else { - _t1023 = -1 + _t1043 = -1 } - prediction516 := _t1023 - var _t1034 *pb.Primitive - if prediction516 == 9 { + prediction526 := _t1043 + var _t1054 *pb.Primitive + if prediction526 == 9 { p.consumeLiteral("(") p.consumeLiteral("primitive") - _t1035 := p.parse_name() - name526 := _t1035 - xs527 := []*pb.RelTerm{} - cond528 := (((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) - for cond528 { - _t1036 := p.parse_rel_term() - item529 := _t1036 - xs527 = append(xs527, item529) - cond528 = (((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) + _t1055 := p.parse_name() + name536 := _t1055 + xs537 := []*pb.RelTerm{} + cond538 := (((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) + for cond538 { + _t1056 := p.parse_rel_term() + item539 := _t1056 + xs537 = append(xs537, item539) + cond538 = (((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) } - rel_terms530 := xs527 + rel_terms540 := xs537 p.consumeLiteral(")") - _t1037 := &pb.Primitive{Name: name526, Terms: rel_terms530} - _t1034 = _t1037 + _t1057 := &pb.Primitive{Name: name536, Terms: rel_terms540} + _t1054 = _t1057 } else { - var _t1038 *pb.Primitive - if prediction516 == 8 { - _t1039 := p.parse_divide() - divide525 := _t1039 - _t1038 = divide525 + var _t1058 *pb.Primitive + if prediction526 == 8 { + _t1059 := p.parse_divide() + divide535 := _t1059 + _t1058 = divide535 } else { - var _t1040 *pb.Primitive - if prediction516 == 7 { - _t1041 := p.parse_multiply() - multiply524 := _t1041 - _t1040 = multiply524 + var _t1060 *pb.Primitive + if prediction526 == 7 { + _t1061 := p.parse_multiply() + multiply534 := _t1061 + _t1060 = multiply534 } else { - var _t1042 *pb.Primitive - if prediction516 == 6 { - _t1043 := p.parse_minus() - minus523 := _t1043 - _t1042 = minus523 + var _t1062 *pb.Primitive + if prediction526 == 6 { + _t1063 := p.parse_minus() + minus533 := _t1063 + _t1062 = minus533 } else { - var _t1044 *pb.Primitive - if prediction516 == 5 { - _t1045 := p.parse_add() - add522 := _t1045 - _t1044 = add522 + var _t1064 *pb.Primitive + if prediction526 == 5 { + _t1065 := p.parse_add() + add532 := _t1065 + _t1064 = add532 } else { - var _t1046 *pb.Primitive - if prediction516 == 4 { - _t1047 := p.parse_gt_eq() - gt_eq521 := _t1047 - _t1046 = gt_eq521 + var _t1066 *pb.Primitive + if prediction526 == 4 { + _t1067 := p.parse_gt_eq() + gt_eq531 := _t1067 + _t1066 = gt_eq531 } else { - var _t1048 *pb.Primitive - if prediction516 == 3 { - _t1049 := p.parse_gt() - gt520 := _t1049 - _t1048 = gt520 + var _t1068 *pb.Primitive + if prediction526 == 3 { + _t1069 := p.parse_gt() + gt530 := _t1069 + _t1068 = gt530 } else { - var _t1050 *pb.Primitive - if prediction516 == 2 { - _t1051 := p.parse_lt_eq() - lt_eq519 := _t1051 - _t1050 = lt_eq519 + var _t1070 *pb.Primitive + if prediction526 == 2 { + _t1071 := p.parse_lt_eq() + lt_eq529 := _t1071 + _t1070 = lt_eq529 } else { - var _t1052 *pb.Primitive - if prediction516 == 1 { - _t1053 := p.parse_lt() - lt518 := _t1053 - _t1052 = lt518 + var _t1072 *pb.Primitive + if prediction526 == 1 { + _t1073 := p.parse_lt() + lt528 := _t1073 + _t1072 = lt528 } else { - var _t1054 *pb.Primitive - if prediction516 == 0 { - _t1055 := p.parse_eq() - eq517 := _t1055 - _t1054 = eq517 + var _t1074 *pb.Primitive + if prediction526 == 0 { + _t1075 := p.parse_eq() + eq527 := _t1075 + _t1074 = eq527 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in primitive", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1052 = _t1054 + _t1072 = _t1074 } - _t1050 = _t1052 + _t1070 = _t1072 } - _t1048 = _t1050 + _t1068 = _t1070 } - _t1046 = _t1048 + _t1066 = _t1068 } - _t1044 = _t1046 + _t1064 = _t1066 } - _t1042 = _t1044 + _t1062 = _t1064 } - _t1040 = _t1042 + _t1060 = _t1062 } - _t1038 = _t1040 + _t1058 = _t1060 } - _t1034 = _t1038 + _t1054 = _t1058 } - return _t1034 + return _t1054 } func (p *Parser) parse_eq() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("=") - _t1056 := p.parse_term() - term531 := _t1056 - _t1057 := p.parse_term() - term_3532 := _t1057 + _t1076 := p.parse_term() + term541 := _t1076 + _t1077 := p.parse_term() + term_3542 := _t1077 p.consumeLiteral(")") - _t1058 := &pb.RelTerm{} - _t1058.RelTermType = &pb.RelTerm_Term{Term: term531} - _t1059 := &pb.RelTerm{} - _t1059.RelTermType = &pb.RelTerm_Term{Term: term_3532} - _t1060 := &pb.Primitive{Name: "rel_primitive_eq", Terms: []*pb.RelTerm{_t1058, _t1059}} - return _t1060 + _t1078 := &pb.RelTerm{} + _t1078.RelTermType = &pb.RelTerm_Term{Term: term541} + _t1079 := &pb.RelTerm{} + _t1079.RelTermType = &pb.RelTerm_Term{Term: term_3542} + _t1080 := &pb.Primitive{Name: "rel_primitive_eq", Terms: []*pb.RelTerm{_t1078, _t1079}} + return _t1080 } func (p *Parser) parse_lt() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("<") - _t1061 := p.parse_term() - term533 := _t1061 - _t1062 := p.parse_term() - term_3534 := _t1062 + _t1081 := p.parse_term() + term543 := _t1081 + _t1082 := p.parse_term() + term_3544 := _t1082 p.consumeLiteral(")") - _t1063 := &pb.RelTerm{} - _t1063.RelTermType = &pb.RelTerm_Term{Term: term533} - _t1064 := &pb.RelTerm{} - _t1064.RelTermType = &pb.RelTerm_Term{Term: term_3534} - _t1065 := &pb.Primitive{Name: "rel_primitive_lt_monotype", Terms: []*pb.RelTerm{_t1063, _t1064}} - return _t1065 + _t1083 := &pb.RelTerm{} + _t1083.RelTermType = &pb.RelTerm_Term{Term: term543} + _t1084 := &pb.RelTerm{} + _t1084.RelTermType = &pb.RelTerm_Term{Term: term_3544} + _t1085 := &pb.Primitive{Name: "rel_primitive_lt_monotype", Terms: []*pb.RelTerm{_t1083, _t1084}} + return _t1085 } func (p *Parser) parse_lt_eq() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("<=") - _t1066 := p.parse_term() - term535 := _t1066 - _t1067 := p.parse_term() - term_3536 := _t1067 + _t1086 := p.parse_term() + term545 := _t1086 + _t1087 := p.parse_term() + term_3546 := _t1087 p.consumeLiteral(")") - _t1068 := &pb.RelTerm{} - _t1068.RelTermType = &pb.RelTerm_Term{Term: term535} - _t1069 := &pb.RelTerm{} - _t1069.RelTermType = &pb.RelTerm_Term{Term: term_3536} - _t1070 := &pb.Primitive{Name: "rel_primitive_lt_eq_monotype", Terms: []*pb.RelTerm{_t1068, _t1069}} - return _t1070 + _t1088 := &pb.RelTerm{} + _t1088.RelTermType = &pb.RelTerm_Term{Term: term545} + _t1089 := &pb.RelTerm{} + _t1089.RelTermType = &pb.RelTerm_Term{Term: term_3546} + _t1090 := &pb.Primitive{Name: "rel_primitive_lt_eq_monotype", Terms: []*pb.RelTerm{_t1088, _t1089}} + return _t1090 } func (p *Parser) parse_gt() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral(">") - _t1071 := p.parse_term() - term537 := _t1071 - _t1072 := p.parse_term() - term_3538 := _t1072 + _t1091 := p.parse_term() + term547 := _t1091 + _t1092 := p.parse_term() + term_3548 := _t1092 p.consumeLiteral(")") - _t1073 := &pb.RelTerm{} - _t1073.RelTermType = &pb.RelTerm_Term{Term: term537} - _t1074 := &pb.RelTerm{} - _t1074.RelTermType = &pb.RelTerm_Term{Term: term_3538} - _t1075 := &pb.Primitive{Name: "rel_primitive_gt_monotype", Terms: []*pb.RelTerm{_t1073, _t1074}} - return _t1075 + _t1093 := &pb.RelTerm{} + _t1093.RelTermType = &pb.RelTerm_Term{Term: term547} + _t1094 := &pb.RelTerm{} + _t1094.RelTermType = &pb.RelTerm_Term{Term: term_3548} + _t1095 := &pb.Primitive{Name: "rel_primitive_gt_monotype", Terms: []*pb.RelTerm{_t1093, _t1094}} + return _t1095 } func (p *Parser) parse_gt_eq() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral(">=") - _t1076 := p.parse_term() - term539 := _t1076 - _t1077 := p.parse_term() - term_3540 := _t1077 + _t1096 := p.parse_term() + term549 := _t1096 + _t1097 := p.parse_term() + term_3550 := _t1097 p.consumeLiteral(")") - _t1078 := &pb.RelTerm{} - _t1078.RelTermType = &pb.RelTerm_Term{Term: term539} - _t1079 := &pb.RelTerm{} - _t1079.RelTermType = &pb.RelTerm_Term{Term: term_3540} - _t1080 := &pb.Primitive{Name: "rel_primitive_gt_eq_monotype", Terms: []*pb.RelTerm{_t1078, _t1079}} - return _t1080 + _t1098 := &pb.RelTerm{} + _t1098.RelTermType = &pb.RelTerm_Term{Term: term549} + _t1099 := &pb.RelTerm{} + _t1099.RelTermType = &pb.RelTerm_Term{Term: term_3550} + _t1100 := &pb.Primitive{Name: "rel_primitive_gt_eq_monotype", Terms: []*pb.RelTerm{_t1098, _t1099}} + return _t1100 } func (p *Parser) parse_add() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("+") - _t1081 := p.parse_term() - term541 := _t1081 - _t1082 := p.parse_term() - term_3542 := _t1082 - _t1083 := p.parse_term() - term_4543 := _t1083 + _t1101 := p.parse_term() + term551 := _t1101 + _t1102 := p.parse_term() + term_3552 := _t1102 + _t1103 := p.parse_term() + term_4553 := _t1103 p.consumeLiteral(")") - _t1084 := &pb.RelTerm{} - _t1084.RelTermType = &pb.RelTerm_Term{Term: term541} - _t1085 := &pb.RelTerm{} - _t1085.RelTermType = &pb.RelTerm_Term{Term: term_3542} - _t1086 := &pb.RelTerm{} - _t1086.RelTermType = &pb.RelTerm_Term{Term: term_4543} - _t1087 := &pb.Primitive{Name: "rel_primitive_add_monotype", Terms: []*pb.RelTerm{_t1084, _t1085, _t1086}} - return _t1087 + _t1104 := &pb.RelTerm{} + _t1104.RelTermType = &pb.RelTerm_Term{Term: term551} + _t1105 := &pb.RelTerm{} + _t1105.RelTermType = &pb.RelTerm_Term{Term: term_3552} + _t1106 := &pb.RelTerm{} + _t1106.RelTermType = &pb.RelTerm_Term{Term: term_4553} + _t1107 := &pb.Primitive{Name: "rel_primitive_add_monotype", Terms: []*pb.RelTerm{_t1104, _t1105, _t1106}} + return _t1107 } func (p *Parser) parse_minus() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("-") - _t1088 := p.parse_term() - term544 := _t1088 - _t1089 := p.parse_term() - term_3545 := _t1089 - _t1090 := p.parse_term() - term_4546 := _t1090 - p.consumeLiteral(")") - _t1091 := &pb.RelTerm{} - _t1091.RelTermType = &pb.RelTerm_Term{Term: term544} - _t1092 := &pb.RelTerm{} - _t1092.RelTermType = &pb.RelTerm_Term{Term: term_3545} - _t1093 := &pb.RelTerm{} - _t1093.RelTermType = &pb.RelTerm_Term{Term: term_4546} - _t1094 := &pb.Primitive{Name: "rel_primitive_subtract_monotype", Terms: []*pb.RelTerm{_t1091, _t1092, _t1093}} - return _t1094 + _t1108 := p.parse_term() + term554 := _t1108 + _t1109 := p.parse_term() + term_3555 := _t1109 + _t1110 := p.parse_term() + term_4556 := _t1110 + p.consumeLiteral(")") + _t1111 := &pb.RelTerm{} + _t1111.RelTermType = &pb.RelTerm_Term{Term: term554} + _t1112 := &pb.RelTerm{} + _t1112.RelTermType = &pb.RelTerm_Term{Term: term_3555} + _t1113 := &pb.RelTerm{} + _t1113.RelTermType = &pb.RelTerm_Term{Term: term_4556} + _t1114 := &pb.Primitive{Name: "rel_primitive_subtract_monotype", Terms: []*pb.RelTerm{_t1111, _t1112, _t1113}} + return _t1114 } func (p *Parser) parse_multiply() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("*") - _t1095 := p.parse_term() - term547 := _t1095 - _t1096 := p.parse_term() - term_3548 := _t1096 - _t1097 := p.parse_term() - term_4549 := _t1097 - p.consumeLiteral(")") - _t1098 := &pb.RelTerm{} - _t1098.RelTermType = &pb.RelTerm_Term{Term: term547} - _t1099 := &pb.RelTerm{} - _t1099.RelTermType = &pb.RelTerm_Term{Term: term_3548} - _t1100 := &pb.RelTerm{} - _t1100.RelTermType = &pb.RelTerm_Term{Term: term_4549} - _t1101 := &pb.Primitive{Name: "rel_primitive_multiply_monotype", Terms: []*pb.RelTerm{_t1098, _t1099, _t1100}} - return _t1101 + _t1115 := p.parse_term() + term557 := _t1115 + _t1116 := p.parse_term() + term_3558 := _t1116 + _t1117 := p.parse_term() + term_4559 := _t1117 + p.consumeLiteral(")") + _t1118 := &pb.RelTerm{} + _t1118.RelTermType = &pb.RelTerm_Term{Term: term557} + _t1119 := &pb.RelTerm{} + _t1119.RelTermType = &pb.RelTerm_Term{Term: term_3558} + _t1120 := &pb.RelTerm{} + _t1120.RelTermType = &pb.RelTerm_Term{Term: term_4559} + _t1121 := &pb.Primitive{Name: "rel_primitive_multiply_monotype", Terms: []*pb.RelTerm{_t1118, _t1119, _t1120}} + return _t1121 } func (p *Parser) parse_divide() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("/") - _t1102 := p.parse_term() - term550 := _t1102 - _t1103 := p.parse_term() - term_3551 := _t1103 - _t1104 := p.parse_term() - term_4552 := _t1104 - p.consumeLiteral(")") - _t1105 := &pb.RelTerm{} - _t1105.RelTermType = &pb.RelTerm_Term{Term: term550} - _t1106 := &pb.RelTerm{} - _t1106.RelTermType = &pb.RelTerm_Term{Term: term_3551} - _t1107 := &pb.RelTerm{} - _t1107.RelTermType = &pb.RelTerm_Term{Term: term_4552} - _t1108 := &pb.Primitive{Name: "rel_primitive_divide_monotype", Terms: []*pb.RelTerm{_t1105, _t1106, _t1107}} - return _t1108 + _t1122 := p.parse_term() + term560 := _t1122 + _t1123 := p.parse_term() + term_3561 := _t1123 + _t1124 := p.parse_term() + term_4562 := _t1124 + p.consumeLiteral(")") + _t1125 := &pb.RelTerm{} + _t1125.RelTermType = &pb.RelTerm_Term{Term: term560} + _t1126 := &pb.RelTerm{} + _t1126.RelTermType = &pb.RelTerm_Term{Term: term_3561} + _t1127 := &pb.RelTerm{} + _t1127.RelTermType = &pb.RelTerm_Term{Term: term_4562} + _t1128 := &pb.Primitive{Name: "rel_primitive_divide_monotype", Terms: []*pb.RelTerm{_t1125, _t1126, _t1127}} + return _t1128 } func (p *Parser) parse_rel_term() *pb.RelTerm { - var _t1109 int64 + var _t1129 int64 if p.matchLookaheadLiteral("true", 0) { - _t1109 = 1 + _t1129 = 1 } else { - var _t1110 int64 + var _t1130 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1110 = 1 + _t1130 = 1 } else { - var _t1111 int64 + var _t1131 int64 if p.matchLookaheadLiteral("false", 0) { - _t1111 = 1 + _t1131 = 1 } else { - var _t1112 int64 + var _t1132 int64 if p.matchLookaheadLiteral("(", 0) { - _t1112 = 1 + _t1132 = 1 } else { - var _t1113 int64 + var _t1133 int64 if p.matchLookaheadLiteral("#", 0) { - _t1113 = 0 + _t1133 = 0 } else { - var _t1114 int64 + var _t1134 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1114 = 1 + _t1134 = 1 } else { - var _t1115 int64 + var _t1135 int64 if p.matchLookaheadTerminal("SYMBOL", 0) { - _t1115 = 1 + _t1135 = 1 } else { - var _t1116 int64 + var _t1136 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1116 = 1 + _t1136 = 1 } else { - var _t1117 int64 + var _t1137 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1117 = 1 + _t1137 = 1 } else { - var _t1118 int64 + var _t1138 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1118 = 1 + _t1138 = 1 } else { - var _t1119 int64 + var _t1139 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1119 = 1 + _t1139 = 1 } else { - var _t1120 int64 + var _t1140 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1120 = 1 + _t1140 = 1 } else { - _t1120 = -1 + _t1140 = -1 } - _t1119 = _t1120 + _t1139 = _t1140 } - _t1118 = _t1119 + _t1138 = _t1139 } - _t1117 = _t1118 + _t1137 = _t1138 } - _t1116 = _t1117 + _t1136 = _t1137 } - _t1115 = _t1116 + _t1135 = _t1136 } - _t1114 = _t1115 + _t1134 = _t1135 } - _t1113 = _t1114 + _t1133 = _t1134 } - _t1112 = _t1113 + _t1132 = _t1133 } - _t1111 = _t1112 + _t1131 = _t1132 } - _t1110 = _t1111 + _t1130 = _t1131 } - _t1109 = _t1110 - } - prediction553 := _t1109 - var _t1121 *pb.RelTerm - if prediction553 == 1 { - _t1122 := p.parse_term() - term555 := _t1122 - _t1123 := &pb.RelTerm{} - _t1123.RelTermType = &pb.RelTerm_Term{Term: term555} - _t1121 = _t1123 + _t1129 = _t1130 + } + prediction563 := _t1129 + var _t1141 *pb.RelTerm + if prediction563 == 1 { + _t1142 := p.parse_term() + term565 := _t1142 + _t1143 := &pb.RelTerm{} + _t1143.RelTermType = &pb.RelTerm_Term{Term: term565} + _t1141 = _t1143 } else { - var _t1124 *pb.RelTerm - if prediction553 == 0 { - _t1125 := p.parse_specialized_value() - specialized_value554 := _t1125 - _t1126 := &pb.RelTerm{} - _t1126.RelTermType = &pb.RelTerm_SpecializedValue{SpecializedValue: specialized_value554} - _t1124 = _t1126 + var _t1144 *pb.RelTerm + if prediction563 == 0 { + _t1145 := p.parse_specialized_value() + specialized_value564 := _t1145 + _t1146 := &pb.RelTerm{} + _t1146.RelTermType = &pb.RelTerm_SpecializedValue{SpecializedValue: specialized_value564} + _t1144 = _t1146 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in rel_term", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1121 = _t1124 + _t1141 = _t1144 } - return _t1121 + return _t1141 } func (p *Parser) parse_specialized_value() *pb.Value { p.consumeLiteral("#") - _t1127 := p.parse_value() - value556 := _t1127 - return value556 + _t1147 := p.parse_value() + value566 := _t1147 + return value566 } func (p *Parser) parse_rel_atom() *pb.RelAtom { p.consumeLiteral("(") p.consumeLiteral("relatom") - _t1128 := p.parse_name() - name557 := _t1128 - xs558 := []*pb.RelTerm{} - cond559 := (((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) - for cond559 { - _t1129 := p.parse_rel_term() - item560 := _t1129 - xs558 = append(xs558, item560) - cond559 = (((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) - } - rel_terms561 := xs558 - p.consumeLiteral(")") - _t1130 := &pb.RelAtom{Name: name557, Terms: rel_terms561} - return _t1130 + _t1148 := p.parse_name() + name567 := _t1148 + xs568 := []*pb.RelTerm{} + cond569 := (((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) + for cond569 { + _t1149 := p.parse_rel_term() + item570 := _t1149 + xs568 = append(xs568, item570) + cond569 = (((((((((((p.matchLookaheadLiteral("#", 0) || p.matchLookaheadLiteral("(", 0)) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) + } + rel_terms571 := xs568 + p.consumeLiteral(")") + _t1150 := &pb.RelAtom{Name: name567, Terms: rel_terms571} + return _t1150 } func (p *Parser) parse_cast() *pb.Cast { p.consumeLiteral("(") p.consumeLiteral("cast") - _t1131 := p.parse_term() - term562 := _t1131 - _t1132 := p.parse_term() - term_3563 := _t1132 + _t1151 := p.parse_term() + term572 := _t1151 + _t1152 := p.parse_term() + term_3573 := _t1152 p.consumeLiteral(")") - _t1133 := &pb.Cast{Input: term562, Result: term_3563} - return _t1133 + _t1153 := &pb.Cast{Input: term572, Result: term_3573} + return _t1153 } func (p *Parser) parse_attrs() []*pb.Attribute { p.consumeLiteral("(") p.consumeLiteral("attrs") - xs564 := []*pb.Attribute{} - cond565 := p.matchLookaheadLiteral("(", 0) - for cond565 { - _t1134 := p.parse_attribute() - item566 := _t1134 - xs564 = append(xs564, item566) - cond565 = p.matchLookaheadLiteral("(", 0) + xs574 := []*pb.Attribute{} + cond575 := p.matchLookaheadLiteral("(", 0) + for cond575 { + _t1154 := p.parse_attribute() + item576 := _t1154 + xs574 = append(xs574, item576) + cond575 = p.matchLookaheadLiteral("(", 0) } - attributes567 := xs564 + attributes577 := xs574 p.consumeLiteral(")") - return attributes567 + return attributes577 } func (p *Parser) parse_attribute() *pb.Attribute { p.consumeLiteral("(") p.consumeLiteral("attribute") - _t1135 := p.parse_name() - name568 := _t1135 - xs569 := []*pb.Value{} - cond570 := (((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) - for cond570 { - _t1136 := p.parse_value() - item571 := _t1136 - xs569 = append(xs569, item571) - cond570 = (((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) + _t1155 := p.parse_name() + name578 := _t1155 + xs579 := []*pb.Value{} + cond580 := (((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) + for cond580 { + _t1156 := p.parse_value() + item581 := _t1156 + xs579 = append(xs579, item581) + cond580 = (((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("false", 0)) || p.matchLookaheadLiteral("missing", 0)) || p.matchLookaheadLiteral("true", 0)) || p.matchLookaheadTerminal("DECIMAL", 0)) || p.matchLookaheadTerminal("FLOAT", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) } - values572 := xs569 + values582 := xs579 p.consumeLiteral(")") - _t1137 := &pb.Attribute{Name: name568, Args: values572} - return _t1137 + _t1157 := &pb.Attribute{Name: name578, Args: values582} + return _t1157 } func (p *Parser) parse_algorithm() *pb.Algorithm { p.consumeLiteral("(") p.consumeLiteral("algorithm") - xs573 := []*pb.RelationId{} - cond574 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - for cond574 { - _t1138 := p.parse_relation_id() - item575 := _t1138 - xs573 = append(xs573, item575) - cond574 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + xs583 := []*pb.RelationId{} + cond584 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + for cond584 { + _t1158 := p.parse_relation_id() + item585 := _t1158 + xs583 = append(xs583, item585) + cond584 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) } - relation_ids576 := xs573 - _t1139 := p.parse_script() - script577 := _t1139 + relation_ids586 := xs583 + _t1159 := p.parse_script() + script587 := _t1159 p.consumeLiteral(")") - _t1140 := &pb.Algorithm{Global: relation_ids576, Body: script577} - return _t1140 + _t1160 := &pb.Algorithm{Global: relation_ids586, Body: script587} + return _t1160 } func (p *Parser) parse_script() *pb.Script { p.consumeLiteral("(") p.consumeLiteral("script") - xs578 := []*pb.Construct{} - cond579 := p.matchLookaheadLiteral("(", 0) - for cond579 { - _t1141 := p.parse_construct() - item580 := _t1141 - xs578 = append(xs578, item580) - cond579 = p.matchLookaheadLiteral("(", 0) + xs588 := []*pb.Construct{} + cond589 := p.matchLookaheadLiteral("(", 0) + for cond589 { + _t1161 := p.parse_construct() + item590 := _t1161 + xs588 = append(xs588, item590) + cond589 = p.matchLookaheadLiteral("(", 0) } - constructs581 := xs578 + constructs591 := xs588 p.consumeLiteral(")") - _t1142 := &pb.Script{Constructs: constructs581} - return _t1142 + _t1162 := &pb.Script{Constructs: constructs591} + return _t1162 } func (p *Parser) parse_construct() *pb.Construct { - var _t1143 int64 + var _t1163 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1144 int64 + var _t1164 int64 if p.matchLookaheadLiteral("upsert", 1) { - _t1144 = 1 + _t1164 = 1 } else { - var _t1145 int64 + var _t1165 int64 if p.matchLookaheadLiteral("monus", 1) { - _t1145 = 1 + _t1165 = 1 } else { - var _t1146 int64 + var _t1166 int64 if p.matchLookaheadLiteral("monoid", 1) { - _t1146 = 1 + _t1166 = 1 } else { - var _t1147 int64 + var _t1167 int64 if p.matchLookaheadLiteral("loop", 1) { - _t1147 = 0 + _t1167 = 0 } else { - var _t1148 int64 + var _t1168 int64 if p.matchLookaheadLiteral("break", 1) { - _t1148 = 1 + _t1168 = 1 } else { - var _t1149 int64 + var _t1169 int64 if p.matchLookaheadLiteral("assign", 1) { - _t1149 = 1 + _t1169 = 1 } else { - _t1149 = -1 + _t1169 = -1 } - _t1148 = _t1149 + _t1168 = _t1169 } - _t1147 = _t1148 + _t1167 = _t1168 } - _t1146 = _t1147 + _t1166 = _t1167 } - _t1145 = _t1146 + _t1165 = _t1166 } - _t1144 = _t1145 + _t1164 = _t1165 } - _t1143 = _t1144 + _t1163 = _t1164 } else { - _t1143 = -1 - } - prediction582 := _t1143 - var _t1150 *pb.Construct - if prediction582 == 1 { - _t1151 := p.parse_instruction() - instruction584 := _t1151 - _t1152 := &pb.Construct{} - _t1152.ConstructType = &pb.Construct_Instruction{Instruction: instruction584} - _t1150 = _t1152 + _t1163 = -1 + } + prediction592 := _t1163 + var _t1170 *pb.Construct + if prediction592 == 1 { + _t1171 := p.parse_instruction() + instruction594 := _t1171 + _t1172 := &pb.Construct{} + _t1172.ConstructType = &pb.Construct_Instruction{Instruction: instruction594} + _t1170 = _t1172 } else { - var _t1153 *pb.Construct - if prediction582 == 0 { - _t1154 := p.parse_loop() - loop583 := _t1154 - _t1155 := &pb.Construct{} - _t1155.ConstructType = &pb.Construct_Loop{Loop: loop583} - _t1153 = _t1155 + var _t1173 *pb.Construct + if prediction592 == 0 { + _t1174 := p.parse_loop() + loop593 := _t1174 + _t1175 := &pb.Construct{} + _t1175.ConstructType = &pb.Construct_Loop{Loop: loop593} + _t1173 = _t1175 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in construct", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1150 = _t1153 + _t1170 = _t1173 } - return _t1150 + return _t1170 } func (p *Parser) parse_loop() *pb.Loop { p.consumeLiteral("(") p.consumeLiteral("loop") - _t1156 := p.parse_init() - init585 := _t1156 - _t1157 := p.parse_script() - script586 := _t1157 + _t1176 := p.parse_init() + init595 := _t1176 + _t1177 := p.parse_script() + script596 := _t1177 p.consumeLiteral(")") - _t1158 := &pb.Loop{Init: init585, Body: script586} - return _t1158 + _t1178 := &pb.Loop{Init: init595, Body: script596} + return _t1178 } func (p *Parser) parse_init() []*pb.Instruction { p.consumeLiteral("(") p.consumeLiteral("init") - xs587 := []*pb.Instruction{} - cond588 := p.matchLookaheadLiteral("(", 0) - for cond588 { - _t1159 := p.parse_instruction() - item589 := _t1159 - xs587 = append(xs587, item589) - cond588 = p.matchLookaheadLiteral("(", 0) + xs597 := []*pb.Instruction{} + cond598 := p.matchLookaheadLiteral("(", 0) + for cond598 { + _t1179 := p.parse_instruction() + item599 := _t1179 + xs597 = append(xs597, item599) + cond598 = p.matchLookaheadLiteral("(", 0) } - instructions590 := xs587 + instructions600 := xs597 p.consumeLiteral(")") - return instructions590 + return instructions600 } func (p *Parser) parse_instruction() *pb.Instruction { - var _t1160 int64 + var _t1180 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1161 int64 + var _t1181 int64 if p.matchLookaheadLiteral("upsert", 1) { - _t1161 = 1 + _t1181 = 1 } else { - var _t1162 int64 + var _t1182 int64 if p.matchLookaheadLiteral("monus", 1) { - _t1162 = 4 + _t1182 = 4 } else { - var _t1163 int64 + var _t1183 int64 if p.matchLookaheadLiteral("monoid", 1) { - _t1163 = 3 + _t1183 = 3 } else { - var _t1164 int64 + var _t1184 int64 if p.matchLookaheadLiteral("break", 1) { - _t1164 = 2 + _t1184 = 2 } else { - var _t1165 int64 + var _t1185 int64 if p.matchLookaheadLiteral("assign", 1) { - _t1165 = 0 + _t1185 = 0 } else { - _t1165 = -1 + _t1185 = -1 } - _t1164 = _t1165 + _t1184 = _t1185 } - _t1163 = _t1164 + _t1183 = _t1184 } - _t1162 = _t1163 + _t1182 = _t1183 } - _t1161 = _t1162 + _t1181 = _t1182 } - _t1160 = _t1161 + _t1180 = _t1181 } else { - _t1160 = -1 - } - prediction591 := _t1160 - var _t1166 *pb.Instruction - if prediction591 == 4 { - _t1167 := p.parse_monus_def() - monus_def596 := _t1167 - _t1168 := &pb.Instruction{} - _t1168.InstrType = &pb.Instruction_MonusDef{MonusDef: monus_def596} - _t1166 = _t1168 + _t1180 = -1 + } + prediction601 := _t1180 + var _t1186 *pb.Instruction + if prediction601 == 4 { + _t1187 := p.parse_monus_def() + monus_def606 := _t1187 + _t1188 := &pb.Instruction{} + _t1188.InstrType = &pb.Instruction_MonusDef{MonusDef: monus_def606} + _t1186 = _t1188 } else { - var _t1169 *pb.Instruction - if prediction591 == 3 { - _t1170 := p.parse_monoid_def() - monoid_def595 := _t1170 - _t1171 := &pb.Instruction{} - _t1171.InstrType = &pb.Instruction_MonoidDef{MonoidDef: monoid_def595} - _t1169 = _t1171 + var _t1189 *pb.Instruction + if prediction601 == 3 { + _t1190 := p.parse_monoid_def() + monoid_def605 := _t1190 + _t1191 := &pb.Instruction{} + _t1191.InstrType = &pb.Instruction_MonoidDef{MonoidDef: monoid_def605} + _t1189 = _t1191 } else { - var _t1172 *pb.Instruction - if prediction591 == 2 { - _t1173 := p.parse_break() - break594 := _t1173 - _t1174 := &pb.Instruction{} - _t1174.InstrType = &pb.Instruction_Break{Break: break594} - _t1172 = _t1174 + var _t1192 *pb.Instruction + if prediction601 == 2 { + _t1193 := p.parse_break() + break604 := _t1193 + _t1194 := &pb.Instruction{} + _t1194.InstrType = &pb.Instruction_Break{Break: break604} + _t1192 = _t1194 } else { - var _t1175 *pb.Instruction - if prediction591 == 1 { - _t1176 := p.parse_upsert() - upsert593 := _t1176 - _t1177 := &pb.Instruction{} - _t1177.InstrType = &pb.Instruction_Upsert{Upsert: upsert593} - _t1175 = _t1177 + var _t1195 *pb.Instruction + if prediction601 == 1 { + _t1196 := p.parse_upsert() + upsert603 := _t1196 + _t1197 := &pb.Instruction{} + _t1197.InstrType = &pb.Instruction_Upsert{Upsert: upsert603} + _t1195 = _t1197 } else { - var _t1178 *pb.Instruction - if prediction591 == 0 { - _t1179 := p.parse_assign() - assign592 := _t1179 - _t1180 := &pb.Instruction{} - _t1180.InstrType = &pb.Instruction_Assign{Assign: assign592} - _t1178 = _t1180 + var _t1198 *pb.Instruction + if prediction601 == 0 { + _t1199 := p.parse_assign() + assign602 := _t1199 + _t1200 := &pb.Instruction{} + _t1200.InstrType = &pb.Instruction_Assign{Assign: assign602} + _t1198 = _t1200 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in instruction", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1175 = _t1178 + _t1195 = _t1198 } - _t1172 = _t1175 + _t1192 = _t1195 } - _t1169 = _t1172 + _t1189 = _t1192 } - _t1166 = _t1169 + _t1186 = _t1189 } - return _t1166 + return _t1186 } func (p *Parser) parse_assign() *pb.Assign { p.consumeLiteral("(") p.consumeLiteral("assign") - _t1181 := p.parse_relation_id() - relation_id597 := _t1181 - _t1182 := p.parse_abstraction() - abstraction598 := _t1182 - var _t1183 []*pb.Attribute + _t1201 := p.parse_relation_id() + relation_id607 := _t1201 + _t1202 := p.parse_abstraction() + abstraction608 := _t1202 + var _t1203 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1184 := p.parse_attrs() - _t1183 = _t1184 + _t1204 := p.parse_attrs() + _t1203 = _t1204 } - attrs599 := _t1183 + attrs609 := _t1203 p.consumeLiteral(")") - _t1185 := attrs599 - if attrs599 == nil { - _t1185 = []*pb.Attribute{} + _t1205 := attrs609 + if attrs609 == nil { + _t1205 = []*pb.Attribute{} } - _t1186 := &pb.Assign{Name: relation_id597, Body: abstraction598, Attrs: _t1185} - return _t1186 + _t1206 := &pb.Assign{Name: relation_id607, Body: abstraction608, Attrs: _t1205} + return _t1206 } func (p *Parser) parse_upsert() *pb.Upsert { p.consumeLiteral("(") p.consumeLiteral("upsert") - _t1187 := p.parse_relation_id() - relation_id600 := _t1187 - _t1188 := p.parse_abstraction_with_arity() - abstraction_with_arity601 := _t1188 - var _t1189 []*pb.Attribute + _t1207 := p.parse_relation_id() + relation_id610 := _t1207 + _t1208 := p.parse_abstraction_with_arity() + abstraction_with_arity611 := _t1208 + var _t1209 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1190 := p.parse_attrs() - _t1189 = _t1190 + _t1210 := p.parse_attrs() + _t1209 = _t1210 } - attrs602 := _t1189 + attrs612 := _t1209 p.consumeLiteral(")") - _t1191 := attrs602 - if attrs602 == nil { - _t1191 = []*pb.Attribute{} + _t1211 := attrs612 + if attrs612 == nil { + _t1211 = []*pb.Attribute{} } - _t1192 := &pb.Upsert{Name: relation_id600, Body: abstraction_with_arity601[0].(*pb.Abstraction), Attrs: _t1191, ValueArity: abstraction_with_arity601[1].(int64)} - return _t1192 + _t1212 := &pb.Upsert{Name: relation_id610, Body: abstraction_with_arity611[0].(*pb.Abstraction), Attrs: _t1211, ValueArity: abstraction_with_arity611[1].(int64)} + return _t1212 } func (p *Parser) parse_abstraction_with_arity() []interface{} { p.consumeLiteral("(") - _t1193 := p.parse_bindings() - bindings603 := _t1193 - _t1194 := p.parse_formula() - formula604 := _t1194 + _t1213 := p.parse_bindings() + bindings613 := _t1213 + _t1214 := p.parse_formula() + formula614 := _t1214 p.consumeLiteral(")") - _t1195 := &pb.Abstraction{Vars: listConcat(bindings603[0].([]*pb.Binding), bindings603[1].([]*pb.Binding)), Value: formula604} - return []interface{}{_t1195, int64(len(bindings603[1].([]*pb.Binding)))} + _t1215 := &pb.Abstraction{Vars: listConcat(bindings613[0].([]*pb.Binding), bindings613[1].([]*pb.Binding)), Value: formula614} + return []interface{}{_t1215, int64(len(bindings613[1].([]*pb.Binding)))} } func (p *Parser) parse_break() *pb.Break { p.consumeLiteral("(") p.consumeLiteral("break") - _t1196 := p.parse_relation_id() - relation_id605 := _t1196 - _t1197 := p.parse_abstraction() - abstraction606 := _t1197 - var _t1198 []*pb.Attribute + _t1216 := p.parse_relation_id() + relation_id615 := _t1216 + _t1217 := p.parse_abstraction() + abstraction616 := _t1217 + var _t1218 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1199 := p.parse_attrs() - _t1198 = _t1199 + _t1219 := p.parse_attrs() + _t1218 = _t1219 } - attrs607 := _t1198 + attrs617 := _t1218 p.consumeLiteral(")") - _t1200 := attrs607 - if attrs607 == nil { - _t1200 = []*pb.Attribute{} + _t1220 := attrs617 + if attrs617 == nil { + _t1220 = []*pb.Attribute{} } - _t1201 := &pb.Break{Name: relation_id605, Body: abstraction606, Attrs: _t1200} - return _t1201 + _t1221 := &pb.Break{Name: relation_id615, Body: abstraction616, Attrs: _t1220} + return _t1221 } func (p *Parser) parse_monoid_def() *pb.MonoidDef { p.consumeLiteral("(") p.consumeLiteral("monoid") - _t1202 := p.parse_monoid() - monoid608 := _t1202 - _t1203 := p.parse_relation_id() - relation_id609 := _t1203 - _t1204 := p.parse_abstraction_with_arity() - abstraction_with_arity610 := _t1204 - var _t1205 []*pb.Attribute + _t1222 := p.parse_monoid() + monoid618 := _t1222 + _t1223 := p.parse_relation_id() + relation_id619 := _t1223 + _t1224 := p.parse_abstraction_with_arity() + abstraction_with_arity620 := _t1224 + var _t1225 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1206 := p.parse_attrs() - _t1205 = _t1206 + _t1226 := p.parse_attrs() + _t1225 = _t1226 } - attrs611 := _t1205 + attrs621 := _t1225 p.consumeLiteral(")") - _t1207 := attrs611 - if attrs611 == nil { - _t1207 = []*pb.Attribute{} + _t1227 := attrs621 + if attrs621 == nil { + _t1227 = []*pb.Attribute{} } - _t1208 := &pb.MonoidDef{Monoid: monoid608, Name: relation_id609, Body: abstraction_with_arity610[0].(*pb.Abstraction), Attrs: _t1207, ValueArity: abstraction_with_arity610[1].(int64)} - return _t1208 + _t1228 := &pb.MonoidDef{Monoid: monoid618, Name: relation_id619, Body: abstraction_with_arity620[0].(*pb.Abstraction), Attrs: _t1227, ValueArity: abstraction_with_arity620[1].(int64)} + return _t1228 } func (p *Parser) parse_monoid() *pb.Monoid { - var _t1209 int64 + var _t1229 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1210 int64 + var _t1230 int64 if p.matchLookaheadLiteral("sum", 1) { - _t1210 = 3 + _t1230 = 3 } else { - var _t1211 int64 + var _t1231 int64 if p.matchLookaheadLiteral("or", 1) { - _t1211 = 0 + _t1231 = 0 } else { - var _t1212 int64 + var _t1232 int64 if p.matchLookaheadLiteral("min", 1) { - _t1212 = 1 + _t1232 = 1 } else { - var _t1213 int64 + var _t1233 int64 if p.matchLookaheadLiteral("max", 1) { - _t1213 = 2 + _t1233 = 2 } else { - _t1213 = -1 + _t1233 = -1 } - _t1212 = _t1213 + _t1232 = _t1233 } - _t1211 = _t1212 + _t1231 = _t1232 } - _t1210 = _t1211 + _t1230 = _t1231 } - _t1209 = _t1210 + _t1229 = _t1230 } else { - _t1209 = -1 - } - prediction612 := _t1209 - var _t1214 *pb.Monoid - if prediction612 == 3 { - _t1215 := p.parse_sum_monoid() - sum_monoid616 := _t1215 - _t1216 := &pb.Monoid{} - _t1216.Value = &pb.Monoid_SumMonoid{SumMonoid: sum_monoid616} - _t1214 = _t1216 + _t1229 = -1 + } + prediction622 := _t1229 + var _t1234 *pb.Monoid + if prediction622 == 3 { + _t1235 := p.parse_sum_monoid() + sum_monoid626 := _t1235 + _t1236 := &pb.Monoid{} + _t1236.Value = &pb.Monoid_SumMonoid{SumMonoid: sum_monoid626} + _t1234 = _t1236 } else { - var _t1217 *pb.Monoid - if prediction612 == 2 { - _t1218 := p.parse_max_monoid() - max_monoid615 := _t1218 - _t1219 := &pb.Monoid{} - _t1219.Value = &pb.Monoid_MaxMonoid{MaxMonoid: max_monoid615} - _t1217 = _t1219 + var _t1237 *pb.Monoid + if prediction622 == 2 { + _t1238 := p.parse_max_monoid() + max_monoid625 := _t1238 + _t1239 := &pb.Monoid{} + _t1239.Value = &pb.Monoid_MaxMonoid{MaxMonoid: max_monoid625} + _t1237 = _t1239 } else { - var _t1220 *pb.Monoid - if prediction612 == 1 { - _t1221 := p.parse_min_monoid() - min_monoid614 := _t1221 - _t1222 := &pb.Monoid{} - _t1222.Value = &pb.Monoid_MinMonoid{MinMonoid: min_monoid614} - _t1220 = _t1222 + var _t1240 *pb.Monoid + if prediction622 == 1 { + _t1241 := p.parse_min_monoid() + min_monoid624 := _t1241 + _t1242 := &pb.Monoid{} + _t1242.Value = &pb.Monoid_MinMonoid{MinMonoid: min_monoid624} + _t1240 = _t1242 } else { - var _t1223 *pb.Monoid - if prediction612 == 0 { - _t1224 := p.parse_or_monoid() - or_monoid613 := _t1224 - _t1225 := &pb.Monoid{} - _t1225.Value = &pb.Monoid_OrMonoid{OrMonoid: or_monoid613} - _t1223 = _t1225 + var _t1243 *pb.Monoid + if prediction622 == 0 { + _t1244 := p.parse_or_monoid() + or_monoid623 := _t1244 + _t1245 := &pb.Monoid{} + _t1245.Value = &pb.Monoid_OrMonoid{OrMonoid: or_monoid623} + _t1243 = _t1245 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in monoid", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1220 = _t1223 + _t1240 = _t1243 } - _t1217 = _t1220 + _t1237 = _t1240 } - _t1214 = _t1217 + _t1234 = _t1237 } - return _t1214 + return _t1234 } func (p *Parser) parse_or_monoid() *pb.OrMonoid { p.consumeLiteral("(") p.consumeLiteral("or") p.consumeLiteral(")") - _t1226 := &pb.OrMonoid{} - return _t1226 + _t1246 := &pb.OrMonoid{} + return _t1246 } func (p *Parser) parse_min_monoid() *pb.MinMonoid { p.consumeLiteral("(") p.consumeLiteral("min") - _t1227 := p.parse_type() - type617 := _t1227 + _t1247 := p.parse_type() + type627 := _t1247 p.consumeLiteral(")") - _t1228 := &pb.MinMonoid{Type: type617} - return _t1228 + _t1248 := &pb.MinMonoid{Type: type627} + return _t1248 } func (p *Parser) parse_max_monoid() *pb.MaxMonoid { p.consumeLiteral("(") p.consumeLiteral("max") - _t1229 := p.parse_type() - type618 := _t1229 + _t1249 := p.parse_type() + type628 := _t1249 p.consumeLiteral(")") - _t1230 := &pb.MaxMonoid{Type: type618} - return _t1230 + _t1250 := &pb.MaxMonoid{Type: type628} + return _t1250 } func (p *Parser) parse_sum_monoid() *pb.SumMonoid { p.consumeLiteral("(") p.consumeLiteral("sum") - _t1231 := p.parse_type() - type619 := _t1231 + _t1251 := p.parse_type() + type629 := _t1251 p.consumeLiteral(")") - _t1232 := &pb.SumMonoid{Type: type619} - return _t1232 + _t1252 := &pb.SumMonoid{Type: type629} + return _t1252 } func (p *Parser) parse_monus_def() *pb.MonusDef { p.consumeLiteral("(") p.consumeLiteral("monus") - _t1233 := p.parse_monoid() - monoid620 := _t1233 - _t1234 := p.parse_relation_id() - relation_id621 := _t1234 - _t1235 := p.parse_abstraction_with_arity() - abstraction_with_arity622 := _t1235 - var _t1236 []*pb.Attribute + _t1253 := p.parse_monoid() + monoid630 := _t1253 + _t1254 := p.parse_relation_id() + relation_id631 := _t1254 + _t1255 := p.parse_abstraction_with_arity() + abstraction_with_arity632 := _t1255 + var _t1256 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1237 := p.parse_attrs() - _t1236 = _t1237 + _t1257 := p.parse_attrs() + _t1256 = _t1257 } - attrs623 := _t1236 + attrs633 := _t1256 p.consumeLiteral(")") - _t1238 := attrs623 - if attrs623 == nil { - _t1238 = []*pb.Attribute{} + _t1258 := attrs633 + if attrs633 == nil { + _t1258 = []*pb.Attribute{} } - _t1239 := &pb.MonusDef{Monoid: monoid620, Name: relation_id621, Body: abstraction_with_arity622[0].(*pb.Abstraction), Attrs: _t1238, ValueArity: abstraction_with_arity622[1].(int64)} - return _t1239 + _t1259 := &pb.MonusDef{Monoid: monoid630, Name: relation_id631, Body: abstraction_with_arity632[0].(*pb.Abstraction), Attrs: _t1258, ValueArity: abstraction_with_arity632[1].(int64)} + return _t1259 } func (p *Parser) parse_constraint() *pb.Constraint { p.consumeLiteral("(") p.consumeLiteral("functional_dependency") - _t1240 := p.parse_relation_id() - relation_id624 := _t1240 - _t1241 := p.parse_abstraction() - abstraction625 := _t1241 - _t1242 := p.parse_functional_dependency_keys() - functional_dependency_keys626 := _t1242 - _t1243 := p.parse_functional_dependency_values() - functional_dependency_values627 := _t1243 + _t1260 := p.parse_relation_id() + relation_id634 := _t1260 + _t1261 := p.parse_abstraction() + abstraction635 := _t1261 + _t1262 := p.parse_functional_dependency_keys() + functional_dependency_keys636 := _t1262 + _t1263 := p.parse_functional_dependency_values() + functional_dependency_values637 := _t1263 p.consumeLiteral(")") - _t1244 := &pb.FunctionalDependency{Guard: abstraction625, Keys: functional_dependency_keys626, Values: functional_dependency_values627} - _t1245 := &pb.Constraint{Name: relation_id624} - _t1245.ConstraintType = &pb.Constraint_FunctionalDependency{FunctionalDependency: _t1244} - return _t1245 + _t1264 := &pb.FunctionalDependency{Guard: abstraction635, Keys: functional_dependency_keys636, Values: functional_dependency_values637} + _t1265 := &pb.Constraint{Name: relation_id634} + _t1265.ConstraintType = &pb.Constraint_FunctionalDependency{FunctionalDependency: _t1264} + return _t1265 } func (p *Parser) parse_functional_dependency_keys() []*pb.Var { p.consumeLiteral("(") p.consumeLiteral("keys") - xs628 := []*pb.Var{} - cond629 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond629 { - _t1246 := p.parse_var() - item630 := _t1246 - xs628 = append(xs628, item630) - cond629 = p.matchLookaheadTerminal("SYMBOL", 0) + xs638 := []*pb.Var{} + cond639 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond639 { + _t1266 := p.parse_var() + item640 := _t1266 + xs638 = append(xs638, item640) + cond639 = p.matchLookaheadTerminal("SYMBOL", 0) } - vars631 := xs628 + vars641 := xs638 p.consumeLiteral(")") - return vars631 + return vars641 } func (p *Parser) parse_functional_dependency_values() []*pb.Var { p.consumeLiteral("(") p.consumeLiteral("values") - xs632 := []*pb.Var{} - cond633 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond633 { - _t1247 := p.parse_var() - item634 := _t1247 - xs632 = append(xs632, item634) - cond633 = p.matchLookaheadTerminal("SYMBOL", 0) + xs642 := []*pb.Var{} + cond643 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond643 { + _t1267 := p.parse_var() + item644 := _t1267 + xs642 = append(xs642, item644) + cond643 = p.matchLookaheadTerminal("SYMBOL", 0) } - vars635 := xs632 + vars645 := xs642 p.consumeLiteral(")") - return vars635 + return vars645 } func (p *Parser) parse_data() *pb.Data { - var _t1248 int64 + var _t1268 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1249 int64 + var _t1269 int64 if p.matchLookaheadLiteral("edb", 1) { - _t1249 = 0 + _t1269 = 0 } else { - var _t1250 int64 + var _t1270 int64 if p.matchLookaheadLiteral("csv_data", 1) { - _t1250 = 2 + _t1270 = 2 } else { - var _t1251 int64 + var _t1271 int64 if p.matchLookaheadLiteral("betree_relation", 1) { - _t1251 = 1 + _t1271 = 1 } else { - _t1251 = -1 + _t1271 = -1 } - _t1250 = _t1251 + _t1270 = _t1271 } - _t1249 = _t1250 + _t1269 = _t1270 } - _t1248 = _t1249 + _t1268 = _t1269 } else { - _t1248 = -1 - } - prediction636 := _t1248 - var _t1252 *pb.Data - if prediction636 == 2 { - _t1253 := p.parse_csv_data() - csv_data639 := _t1253 - _t1254 := &pb.Data{} - _t1254.DataType = &pb.Data_CsvData{CsvData: csv_data639} - _t1252 = _t1254 + _t1268 = -1 + } + prediction646 := _t1268 + var _t1272 *pb.Data + if prediction646 == 2 { + _t1273 := p.parse_csv_data() + csv_data649 := _t1273 + _t1274 := &pb.Data{} + _t1274.DataType = &pb.Data_CsvData{CsvData: csv_data649} + _t1272 = _t1274 } else { - var _t1255 *pb.Data - if prediction636 == 1 { - _t1256 := p.parse_betree_relation() - betree_relation638 := _t1256 - _t1257 := &pb.Data{} - _t1257.DataType = &pb.Data_BetreeRelation{BetreeRelation: betree_relation638} - _t1255 = _t1257 + var _t1275 *pb.Data + if prediction646 == 1 { + _t1276 := p.parse_betree_relation() + betree_relation648 := _t1276 + _t1277 := &pb.Data{} + _t1277.DataType = &pb.Data_BetreeRelation{BetreeRelation: betree_relation648} + _t1275 = _t1277 } else { - var _t1258 *pb.Data - if prediction636 == 0 { - _t1259 := p.parse_edb() - edb637 := _t1259 - _t1260 := &pb.Data{} - _t1260.DataType = &pb.Data_Edb{Edb: edb637} - _t1258 = _t1260 + var _t1278 *pb.Data + if prediction646 == 0 { + _t1279 := p.parse_edb() + edb647 := _t1279 + _t1280 := &pb.Data{} + _t1280.DataType = &pb.Data_Edb{Edb: edb647} + _t1278 = _t1280 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in data", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1255 = _t1258 + _t1275 = _t1278 } - _t1252 = _t1255 + _t1272 = _t1275 } - return _t1252 + return _t1272 } func (p *Parser) parse_edb() *pb.EDB { p.consumeLiteral("(") p.consumeLiteral("edb") - _t1261 := p.parse_relation_id() - relation_id640 := _t1261 - _t1262 := p.parse_edb_path() - edb_path641 := _t1262 - _t1263 := p.parse_edb_types() - edb_types642 := _t1263 + _t1281 := p.parse_relation_id() + relation_id650 := _t1281 + _t1282 := p.parse_edb_path() + edb_path651 := _t1282 + _t1283 := p.parse_edb_types() + edb_types652 := _t1283 p.consumeLiteral(")") - _t1264 := &pb.EDB{TargetId: relation_id640, Path: edb_path641, Types: edb_types642} - return _t1264 + _t1284 := &pb.EDB{TargetId: relation_id650, Path: edb_path651, Types: edb_types652} + return _t1284 } func (p *Parser) parse_edb_path() []string { p.consumeLiteral("[") - xs643 := []string{} - cond644 := p.matchLookaheadTerminal("STRING", 0) - for cond644 { - item645 := p.consumeTerminal("STRING").Value.str - xs643 = append(xs643, item645) - cond644 = p.matchLookaheadTerminal("STRING", 0) - } - strings646 := xs643 + xs653 := []string{} + cond654 := p.matchLookaheadTerminal("STRING", 0) + for cond654 { + item655 := p.consumeTerminal("STRING").Value.str + xs653 = append(xs653, item655) + cond654 = p.matchLookaheadTerminal("STRING", 0) + } + strings656 := xs653 p.consumeLiteral("]") - return strings646 + return strings656 } func (p *Parser) parse_edb_types() []*pb.Type { p.consumeLiteral("[") - xs647 := []*pb.Type{} - cond648 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - for cond648 { - _t1265 := p.parse_type() - item649 := _t1265 - xs647 = append(xs647, item649) - cond648 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - } - types650 := xs647 + xs657 := []*pb.Type{} + cond658 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + for cond658 { + _t1285 := p.parse_type() + item659 := _t1285 + xs657 = append(xs657, item659) + cond658 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + } + types660 := xs657 p.consumeLiteral("]") - return types650 + return types660 } func (p *Parser) parse_betree_relation() *pb.BeTreeRelation { p.consumeLiteral("(") p.consumeLiteral("betree_relation") - _t1266 := p.parse_relation_id() - relation_id651 := _t1266 - _t1267 := p.parse_betree_info() - betree_info652 := _t1267 + _t1286 := p.parse_relation_id() + relation_id661 := _t1286 + _t1287 := p.parse_betree_info() + betree_info662 := _t1287 p.consumeLiteral(")") - _t1268 := &pb.BeTreeRelation{Name: relation_id651, RelationInfo: betree_info652} - return _t1268 + _t1288 := &pb.BeTreeRelation{Name: relation_id661, RelationInfo: betree_info662} + return _t1288 } func (p *Parser) parse_betree_info() *pb.BeTreeInfo { p.consumeLiteral("(") p.consumeLiteral("betree_info") - _t1269 := p.parse_betree_info_key_types() - betree_info_key_types653 := _t1269 - _t1270 := p.parse_betree_info_value_types() - betree_info_value_types654 := _t1270 - _t1271 := p.parse_config_dict() - config_dict655 := _t1271 - p.consumeLiteral(")") - _t1272 := p.construct_betree_info(betree_info_key_types653, betree_info_value_types654, config_dict655) - return _t1272 + _t1289 := p.parse_betree_info_key_types() + betree_info_key_types663 := _t1289 + _t1290 := p.parse_betree_info_value_types() + betree_info_value_types664 := _t1290 + _t1291 := p.parse_config_dict() + config_dict665 := _t1291 + p.consumeLiteral(")") + _t1292 := p.construct_betree_info(betree_info_key_types663, betree_info_value_types664, config_dict665) + return _t1292 } func (p *Parser) parse_betree_info_key_types() []*pb.Type { p.consumeLiteral("(") p.consumeLiteral("key_types") - xs656 := []*pb.Type{} - cond657 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - for cond657 { - _t1273 := p.parse_type() - item658 := _t1273 - xs656 = append(xs656, item658) - cond657 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + xs666 := []*pb.Type{} + cond667 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + for cond667 { + _t1293 := p.parse_type() + item668 := _t1293 + xs666 = append(xs666, item668) + cond667 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) } - types659 := xs656 + types669 := xs666 p.consumeLiteral(")") - return types659 + return types669 } func (p *Parser) parse_betree_info_value_types() []*pb.Type { p.consumeLiteral("(") p.consumeLiteral("value_types") - xs660 := []*pb.Type{} - cond661 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - for cond661 { - _t1274 := p.parse_type() - item662 := _t1274 - xs660 = append(xs660, item662) - cond661 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + xs670 := []*pb.Type{} + cond671 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + for cond671 { + _t1294 := p.parse_type() + item672 := _t1294 + xs670 = append(xs670, item672) + cond671 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) } - types663 := xs660 + types673 := xs670 p.consumeLiteral(")") - return types663 + return types673 } func (p *Parser) parse_csv_data() *pb.CSVData { p.consumeLiteral("(") p.consumeLiteral("csv_data") - _t1275 := p.parse_csvlocator() - csvlocator664 := _t1275 - _t1276 := p.parse_csv_config() - csv_config665 := _t1276 - _t1277 := p.parse_gnf_columns() - gnf_columns666 := _t1277 - _t1278 := p.parse_csv_asof() - csv_asof667 := _t1278 - p.consumeLiteral(")") - _t1279 := &pb.CSVData{Locator: csvlocator664, Config: csv_config665, Columns: gnf_columns666, Asof: csv_asof667} - return _t1279 + _t1295 := p.parse_csvlocator() + csvlocator674 := _t1295 + _t1296 := p.parse_csv_config() + csv_config675 := _t1296 + _t1297 := p.parse_gnf_columns() + gnf_columns676 := _t1297 + _t1298 := p.parse_csv_asof() + csv_asof677 := _t1298 + p.consumeLiteral(")") + _t1299 := &pb.CSVData{Locator: csvlocator674, Config: csv_config675, Columns: gnf_columns676, Asof: csv_asof677} + return _t1299 } func (p *Parser) parse_csvlocator() *pb.CSVLocator { p.consumeLiteral("(") p.consumeLiteral("csv_locator") - var _t1280 []string + var _t1300 []string if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("paths", 1)) { - _t1281 := p.parse_csv_locator_paths() - _t1280 = _t1281 + _t1301 := p.parse_csv_locator_paths() + _t1300 = _t1301 } - csv_locator_paths668 := _t1280 - var _t1282 *string + csv_locator_paths678 := _t1300 + var _t1302 *string if p.matchLookaheadLiteral("(", 0) { - _t1283 := p.parse_csv_locator_inline_data() - _t1282 = ptr(_t1283) + _t1303 := p.parse_csv_locator_inline_data() + _t1302 = ptr(_t1303) } - csv_locator_inline_data669 := _t1282 + csv_locator_inline_data679 := _t1302 p.consumeLiteral(")") - _t1284 := csv_locator_paths668 - if csv_locator_paths668 == nil { - _t1284 = []string{} + _t1304 := csv_locator_paths678 + if csv_locator_paths678 == nil { + _t1304 = []string{} } - _t1285 := &pb.CSVLocator{Paths: _t1284, InlineData: []byte(deref(csv_locator_inline_data669, ""))} - return _t1285 + _t1305 := &pb.CSVLocator{Paths: _t1304, InlineData: []byte(deref(csv_locator_inline_data679, ""))} + return _t1305 } func (p *Parser) parse_csv_locator_paths() []string { p.consumeLiteral("(") p.consumeLiteral("paths") - xs670 := []string{} - cond671 := p.matchLookaheadTerminal("STRING", 0) - for cond671 { - item672 := p.consumeTerminal("STRING").Value.str - xs670 = append(xs670, item672) - cond671 = p.matchLookaheadTerminal("STRING", 0) + xs680 := []string{} + cond681 := p.matchLookaheadTerminal("STRING", 0) + for cond681 { + item682 := p.consumeTerminal("STRING").Value.str + xs680 = append(xs680, item682) + cond681 = p.matchLookaheadTerminal("STRING", 0) } - strings673 := xs670 + strings683 := xs680 p.consumeLiteral(")") - return strings673 + return strings683 } func (p *Parser) parse_csv_locator_inline_data() string { p.consumeLiteral("(") p.consumeLiteral("inline_data") - string674 := p.consumeTerminal("STRING").Value.str + string684 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string674 + return string684 } func (p *Parser) parse_csv_config() *pb.CSVConfig { p.consumeLiteral("(") p.consumeLiteral("csv_config") - _t1286 := p.parse_config_dict() - config_dict675 := _t1286 + _t1306 := p.parse_config_dict() + config_dict685 := _t1306 p.consumeLiteral(")") - _t1287 := p.construct_csv_config(config_dict675) - return _t1287 + _t1307 := p.construct_csv_config(config_dict685) + return _t1307 } func (p *Parser) parse_gnf_columns() []*pb.GNFColumn { p.consumeLiteral("(") p.consumeLiteral("columns") - xs676 := []*pb.GNFColumn{} - cond677 := p.matchLookaheadLiteral("(", 0) - for cond677 { - _t1288 := p.parse_gnf_column() - item678 := _t1288 - xs676 = append(xs676, item678) - cond677 = p.matchLookaheadLiteral("(", 0) + xs686 := []*pb.GNFColumn{} + cond687 := p.matchLookaheadLiteral("(", 0) + for cond687 { + _t1308 := p.parse_gnf_column() + item688 := _t1308 + xs686 = append(xs686, item688) + cond687 = p.matchLookaheadLiteral("(", 0) } - gnf_columns679 := xs676 + gnf_columns689 := xs686 p.consumeLiteral(")") - return gnf_columns679 + return gnf_columns689 } func (p *Parser) parse_gnf_column() *pb.GNFColumn { p.consumeLiteral("(") p.consumeLiteral("column") - _t1289 := p.parse_gnf_column_path() - gnf_column_path680 := _t1289 - var _t1290 *pb.RelationId + _t1309 := p.parse_gnf_column_path() + gnf_column_path690 := _t1309 + var _t1310 *pb.RelationId if (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) { - _t1291 := p.parse_relation_id() - _t1290 = _t1291 + _t1311 := p.parse_relation_id() + _t1310 = _t1311 } - relation_id681 := _t1290 + relation_id691 := _t1310 p.consumeLiteral("[") - xs682 := []*pb.Type{} - cond683 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - for cond683 { - _t1292 := p.parse_type() - item684 := _t1292 - xs682 = append(xs682, item684) - cond683 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - } - types685 := xs682 + xs692 := []*pb.Type{} + cond693 := ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + for cond693 { + _t1312 := p.parse_type() + item694 := _t1312 + xs692 = append(xs692, item694) + cond693 = ((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + } + types695 := xs692 p.consumeLiteral("]") p.consumeLiteral(")") - _t1293 := &pb.GNFColumn{ColumnPath: gnf_column_path680, TargetId: relation_id681, Types: types685} - return _t1293 + _t1313 := &pb.GNFColumn{ColumnPath: gnf_column_path690, TargetId: relation_id691, Types: types695} + return _t1313 } func (p *Parser) parse_gnf_column_path() []string { - var _t1294 int64 + var _t1314 int64 if p.matchLookaheadLiteral("[", 0) { - _t1294 = 1 + _t1314 = 1 } else { - var _t1295 int64 + var _t1315 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1295 = 0 + _t1315 = 0 } else { - _t1295 = -1 + _t1315 = -1 } - _t1294 = _t1295 + _t1314 = _t1315 } - prediction686 := _t1294 - var _t1296 []string - if prediction686 == 1 { + prediction696 := _t1314 + var _t1316 []string + if prediction696 == 1 { p.consumeLiteral("[") - xs688 := []string{} - cond689 := p.matchLookaheadTerminal("STRING", 0) - for cond689 { - item690 := p.consumeTerminal("STRING").Value.str - xs688 = append(xs688, item690) - cond689 = p.matchLookaheadTerminal("STRING", 0) + xs698 := []string{} + cond699 := p.matchLookaheadTerminal("STRING", 0) + for cond699 { + item700 := p.consumeTerminal("STRING").Value.str + xs698 = append(xs698, item700) + cond699 = p.matchLookaheadTerminal("STRING", 0) } - strings691 := xs688 + strings701 := xs698 p.consumeLiteral("]") - _t1296 = strings691 + _t1316 = strings701 } else { - var _t1297 []string - if prediction686 == 0 { - string687 := p.consumeTerminal("STRING").Value.str - _ = string687 - _t1297 = []string{string687} + var _t1317 []string + if prediction696 == 0 { + string697 := p.consumeTerminal("STRING").Value.str + _ = string697 + _t1317 = []string{string697} } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in gnf_column_path", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1296 = _t1297 + _t1316 = _t1317 } - return _t1296 + return _t1316 } func (p *Parser) parse_csv_asof() string { p.consumeLiteral("(") p.consumeLiteral("asof") - string692 := p.consumeTerminal("STRING").Value.str + string702 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string692 + return string702 } func (p *Parser) parse_undefine() *pb.Undefine { p.consumeLiteral("(") p.consumeLiteral("undefine") - _t1298 := p.parse_fragment_id() - fragment_id693 := _t1298 + _t1318 := p.parse_fragment_id() + fragment_id703 := _t1318 p.consumeLiteral(")") - _t1299 := &pb.Undefine{FragmentId: fragment_id693} - return _t1299 + _t1319 := &pb.Undefine{FragmentId: fragment_id703} + return _t1319 } func (p *Parser) parse_context() *pb.Context { p.consumeLiteral("(") p.consumeLiteral("context") - xs694 := []*pb.RelationId{} - cond695 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - for cond695 { - _t1300 := p.parse_relation_id() - item696 := _t1300 - xs694 = append(xs694, item696) - cond695 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + xs704 := []*pb.RelationId{} + cond705 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + for cond705 { + _t1320 := p.parse_relation_id() + item706 := _t1320 + xs704 = append(xs704, item706) + cond705 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) } - relation_ids697 := xs694 + relation_ids707 := xs704 p.consumeLiteral(")") - _t1301 := &pb.Context{Relations: relation_ids697} - return _t1301 + _t1321 := &pb.Context{Relations: relation_ids707} + return _t1321 } func (p *Parser) parse_snapshot() *pb.Snapshot { p.consumeLiteral("(") p.consumeLiteral("snapshot") - xs698 := []*pb.SnapshotMapping{} - cond699 := p.matchLookaheadLiteral("[", 0) - for cond699 { - _t1302 := p.parse_snapshot_mapping() - item700 := _t1302 - xs698 = append(xs698, item700) - cond699 = p.matchLookaheadLiteral("[", 0) + xs708 := []*pb.SnapshotMapping{} + cond709 := p.matchLookaheadLiteral("[", 0) + for cond709 { + _t1322 := p.parse_snapshot_mapping() + item710 := _t1322 + xs708 = append(xs708, item710) + cond709 = p.matchLookaheadLiteral("[", 0) } - snapshot_mappings701 := xs698 + snapshot_mappings711 := xs708 p.consumeLiteral(")") - _t1303 := &pb.Snapshot{Mappings: snapshot_mappings701} - return _t1303 + _t1323 := &pb.Snapshot{Mappings: snapshot_mappings711} + return _t1323 } func (p *Parser) parse_snapshot_mapping() *pb.SnapshotMapping { - _t1304 := p.parse_edb_path() - edb_path702 := _t1304 - _t1305 := p.parse_relation_id() - relation_id703 := _t1305 - _t1306 := &pb.SnapshotMapping{DestinationPath: edb_path702, SourceRelation: relation_id703} - return _t1306 + _t1324 := p.parse_edb_path() + edb_path712 := _t1324 + _t1325 := p.parse_relation_id() + relation_id713 := _t1325 + _t1326 := &pb.SnapshotMapping{DestinationPath: edb_path712, SourceRelation: relation_id713} + return _t1326 } func (p *Parser) parse_epoch_reads() []*pb.Read { p.consumeLiteral("(") p.consumeLiteral("reads") - xs704 := []*pb.Read{} - cond705 := p.matchLookaheadLiteral("(", 0) - for cond705 { - _t1307 := p.parse_read() - item706 := _t1307 - xs704 = append(xs704, item706) - cond705 = p.matchLookaheadLiteral("(", 0) + xs714 := []*pb.Read{} + cond715 := p.matchLookaheadLiteral("(", 0) + for cond715 { + _t1327 := p.parse_read() + item716 := _t1327 + xs714 = append(xs714, item716) + cond715 = p.matchLookaheadLiteral("(", 0) } - reads707 := xs704 + reads717 := xs714 p.consumeLiteral(")") - return reads707 + return reads717 } func (p *Parser) parse_read() *pb.Read { - var _t1308 int64 + var _t1328 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1309 int64 + var _t1329 int64 if p.matchLookaheadLiteral("what_if", 1) { - _t1309 = 2 + _t1329 = 2 } else { - var _t1310 int64 + var _t1330 int64 if p.matchLookaheadLiteral("output", 1) { - _t1310 = 1 + _t1330 = 1 } else { - var _t1311 int64 + var _t1331 int64 if p.matchLookaheadLiteral("export", 1) { - _t1311 = 4 + _t1331 = 4 } else { - var _t1312 int64 + var _t1332 int64 if p.matchLookaheadLiteral("demand", 1) { - _t1312 = 0 + _t1332 = 0 } else { - var _t1313 int64 + var _t1333 int64 if p.matchLookaheadLiteral("abort", 1) { - _t1313 = 3 + _t1333 = 3 } else { - _t1313 = -1 + _t1333 = -1 } - _t1312 = _t1313 + _t1332 = _t1333 } - _t1311 = _t1312 + _t1331 = _t1332 } - _t1310 = _t1311 + _t1330 = _t1331 } - _t1309 = _t1310 + _t1329 = _t1330 } - _t1308 = _t1309 + _t1328 = _t1329 } else { - _t1308 = -1 - } - prediction708 := _t1308 - var _t1314 *pb.Read - if prediction708 == 4 { - _t1315 := p.parse_export() - export713 := _t1315 - _t1316 := &pb.Read{} - _t1316.ReadType = &pb.Read_Export{Export: export713} - _t1314 = _t1316 + _t1328 = -1 + } + prediction718 := _t1328 + var _t1334 *pb.Read + if prediction718 == 4 { + _t1335 := p.parse_export() + export723 := _t1335 + _t1336 := &pb.Read{} + _t1336.ReadType = &pb.Read_Export{Export: export723} + _t1334 = _t1336 } else { - var _t1317 *pb.Read - if prediction708 == 3 { - _t1318 := p.parse_abort() - abort712 := _t1318 - _t1319 := &pb.Read{} - _t1319.ReadType = &pb.Read_Abort{Abort: abort712} - _t1317 = _t1319 + var _t1337 *pb.Read + if prediction718 == 3 { + _t1338 := p.parse_abort() + abort722 := _t1338 + _t1339 := &pb.Read{} + _t1339.ReadType = &pb.Read_Abort{Abort: abort722} + _t1337 = _t1339 } else { - var _t1320 *pb.Read - if prediction708 == 2 { - _t1321 := p.parse_what_if() - what_if711 := _t1321 - _t1322 := &pb.Read{} - _t1322.ReadType = &pb.Read_WhatIf{WhatIf: what_if711} - _t1320 = _t1322 + var _t1340 *pb.Read + if prediction718 == 2 { + _t1341 := p.parse_what_if() + what_if721 := _t1341 + _t1342 := &pb.Read{} + _t1342.ReadType = &pb.Read_WhatIf{WhatIf: what_if721} + _t1340 = _t1342 } else { - var _t1323 *pb.Read - if prediction708 == 1 { - _t1324 := p.parse_output() - output710 := _t1324 - _t1325 := &pb.Read{} - _t1325.ReadType = &pb.Read_Output{Output: output710} - _t1323 = _t1325 + var _t1343 *pb.Read + if prediction718 == 1 { + _t1344 := p.parse_output() + output720 := _t1344 + _t1345 := &pb.Read{} + _t1345.ReadType = &pb.Read_Output{Output: output720} + _t1343 = _t1345 } else { - var _t1326 *pb.Read - if prediction708 == 0 { - _t1327 := p.parse_demand() - demand709 := _t1327 - _t1328 := &pb.Read{} - _t1328.ReadType = &pb.Read_Demand{Demand: demand709} - _t1326 = _t1328 + var _t1346 *pb.Read + if prediction718 == 0 { + _t1347 := p.parse_demand() + demand719 := _t1347 + _t1348 := &pb.Read{} + _t1348.ReadType = &pb.Read_Demand{Demand: demand719} + _t1346 = _t1348 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in read", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1323 = _t1326 + _t1343 = _t1346 } - _t1320 = _t1323 + _t1340 = _t1343 } - _t1317 = _t1320 + _t1337 = _t1340 } - _t1314 = _t1317 + _t1334 = _t1337 } - return _t1314 + return _t1334 } func (p *Parser) parse_demand() *pb.Demand { p.consumeLiteral("(") p.consumeLiteral("demand") - _t1329 := p.parse_relation_id() - relation_id714 := _t1329 + _t1349 := p.parse_relation_id() + relation_id724 := _t1349 p.consumeLiteral(")") - _t1330 := &pb.Demand{RelationId: relation_id714} - return _t1330 + _t1350 := &pb.Demand{RelationId: relation_id724} + return _t1350 } func (p *Parser) parse_output() *pb.Output { p.consumeLiteral("(") p.consumeLiteral("output") - _t1331 := p.parse_name() - name715 := _t1331 - _t1332 := p.parse_relation_id() - relation_id716 := _t1332 + _t1351 := p.parse_name() + name725 := _t1351 + _t1352 := p.parse_relation_id() + relation_id726 := _t1352 p.consumeLiteral(")") - _t1333 := &pb.Output{Name: name715, RelationId: relation_id716} - return _t1333 + _t1353 := &pb.Output{Name: name725, RelationId: relation_id726} + return _t1353 } func (p *Parser) parse_what_if() *pb.WhatIf { p.consumeLiteral("(") p.consumeLiteral("what_if") - _t1334 := p.parse_name() - name717 := _t1334 - _t1335 := p.parse_epoch() - epoch718 := _t1335 + _t1354 := p.parse_name() + name727 := _t1354 + _t1355 := p.parse_epoch() + epoch728 := _t1355 p.consumeLiteral(")") - _t1336 := &pb.WhatIf{Branch: name717, Epoch: epoch718} - return _t1336 + _t1356 := &pb.WhatIf{Branch: name727, Epoch: epoch728} + return _t1356 } func (p *Parser) parse_abort() *pb.Abort { p.consumeLiteral("(") p.consumeLiteral("abort") - var _t1337 *string + var _t1357 *string if (p.matchLookaheadLiteral(":", 0) && p.matchLookaheadTerminal("SYMBOL", 1)) { - _t1338 := p.parse_name() - _t1337 = ptr(_t1338) + _t1358 := p.parse_name() + _t1357 = ptr(_t1358) } - name719 := _t1337 - _t1339 := p.parse_relation_id() - relation_id720 := _t1339 + name729 := _t1357 + _t1359 := p.parse_relation_id() + relation_id730 := _t1359 p.consumeLiteral(")") - _t1340 := &pb.Abort{Name: deref(name719, "abort"), RelationId: relation_id720} - return _t1340 + _t1360 := &pb.Abort{Name: deref(name729, "abort"), RelationId: relation_id730} + return _t1360 } func (p *Parser) parse_export() *pb.Export { p.consumeLiteral("(") p.consumeLiteral("export") - _t1341 := p.parse_export_csv_config() - export_csv_config721 := _t1341 + _t1361 := p.parse_export_csv_config() + export_csv_config731 := _t1361 p.consumeLiteral(")") - _t1342 := &pb.Export{} - _t1342.ExportConfig = &pb.Export_CsvConfig{CsvConfig: export_csv_config721} - return _t1342 + _t1362 := &pb.Export{} + _t1362.ExportConfig = &pb.Export_CsvConfig{CsvConfig: export_csv_config731} + return _t1362 } func (p *Parser) parse_export_csv_config() *pb.ExportCSVConfig { - p.consumeLiteral("(") - p.consumeLiteral("export_csv_config") - _t1343 := p.parse_export_csv_path() - export_csv_path722 := _t1343 - _t1344 := p.parse_export_csv_columns() - export_csv_columns723 := _t1344 - _t1345 := p.parse_config_dict() - config_dict724 := _t1345 - p.consumeLiteral(")") - _t1346 := p.export_csv_config(export_csv_path722, export_csv_columns723, config_dict724) - return _t1346 + var _t1363 int64 + if p.matchLookaheadLiteral("(", 0) { + var _t1364 int64 + if p.matchLookaheadLiteral("export_csv_config_v2", 1) { + _t1364 = 0 + } else { + var _t1365 int64 + if p.matchLookaheadLiteral("export_csv_config", 1) { + _t1365 = 1 + } else { + _t1365 = -1 + } + _t1364 = _t1365 + } + _t1363 = _t1364 + } else { + _t1363 = -1 + } + prediction732 := _t1363 + var _t1366 *pb.ExportCSVConfig + if prediction732 == 1 { + p.consumeLiteral("(") + p.consumeLiteral("export_csv_config") + _t1367 := p.parse_export_csv_path() + export_csv_path736 := _t1367 + _t1368 := p.parse_export_csv_columns_list() + export_csv_columns_list737 := _t1368 + _t1369 := p.parse_config_dict() + config_dict738 := _t1369 + p.consumeLiteral(")") + _t1370 := p.construct_export_csv_config(export_csv_path736, export_csv_columns_list737, config_dict738) + _t1366 = _t1370 + } else { + var _t1371 *pb.ExportCSVConfig + if prediction732 == 0 { + p.consumeLiteral("(") + p.consumeLiteral("export_csv_config_v2") + _t1372 := p.parse_export_csv_path() + export_csv_path733 := _t1372 + _t1373 := p.parse_export_csv_source() + export_csv_source734 := _t1373 + _t1374 := p.parse_csv_config() + csv_config735 := _t1374 + p.consumeLiteral(")") + _t1375 := p.construct_export_csv_config_with_source(export_csv_path733, export_csv_source734, csv_config735) + _t1371 = _t1375 + } else { + panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export_csv_config", p.lookahead(0).Type, p.lookahead(0).Value)}) + } + _t1366 = _t1371 + } + return _t1366 } func (p *Parser) parse_export_csv_path() string { p.consumeLiteral("(") p.consumeLiteral("path") - string725 := p.consumeTerminal("STRING").Value.str + string739 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string725 + return string739 } -func (p *Parser) parse_export_csv_columns() []*pb.ExportCSVColumn { - p.consumeLiteral("(") - p.consumeLiteral("columns") - xs726 := []*pb.ExportCSVColumn{} - cond727 := p.matchLookaheadLiteral("(", 0) - for cond727 { - _t1347 := p.parse_export_csv_column() - item728 := _t1347 - xs726 = append(xs726, item728) - cond727 = p.matchLookaheadLiteral("(", 0) +func (p *Parser) parse_export_csv_source() *pb.ExportCSVSource { + var _t1376 int64 + if p.matchLookaheadLiteral("(", 0) { + var _t1377 int64 + if p.matchLookaheadLiteral("table_def", 1) { + _t1377 = 1 + } else { + var _t1378 int64 + if p.matchLookaheadLiteral("gnf_columns", 1) { + _t1378 = 0 + } else { + _t1378 = -1 + } + _t1377 = _t1378 + } + _t1376 = _t1377 + } else { + _t1376 = -1 } - export_csv_columns729 := xs726 - p.consumeLiteral(")") - return export_csv_columns729 + prediction740 := _t1376 + var _t1379 *pb.ExportCSVSource + if prediction740 == 1 { + p.consumeLiteral("(") + p.consumeLiteral("table_def") + _t1380 := p.parse_relation_id() + relation_id745 := _t1380 + p.consumeLiteral(")") + _t1381 := &pb.ExportCSVSource{} + _t1381.CsvSource = &pb.ExportCSVSource_TableDef{TableDef: relation_id745} + _t1379 = _t1381 + } else { + var _t1382 *pb.ExportCSVSource + if prediction740 == 0 { + p.consumeLiteral("(") + p.consumeLiteral("gnf_columns") + xs741 := []*pb.ExportCSVColumn{} + cond742 := p.matchLookaheadLiteral("(", 0) + for cond742 { + _t1383 := p.parse_export_csv_column() + item743 := _t1383 + xs741 = append(xs741, item743) + cond742 = p.matchLookaheadLiteral("(", 0) + } + export_csv_columns744 := xs741 + p.consumeLiteral(")") + _t1384 := &pb.ExportCSVColumns{Columns: export_csv_columns744} + _t1385 := &pb.ExportCSVSource{} + _t1385.CsvSource = &pb.ExportCSVSource_GnfColumns{GnfColumns: _t1384} + _t1382 = _t1385 + } else { + panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export_csv_source", p.lookahead(0).Type, p.lookahead(0).Value)}) + } + _t1379 = _t1382 + } + return _t1379 } func (p *Parser) parse_export_csv_column() *pb.ExportCSVColumn { p.consumeLiteral("(") p.consumeLiteral("column") - string730 := p.consumeTerminal("STRING").Value.str - _t1348 := p.parse_relation_id() - relation_id731 := _t1348 + string746 := p.consumeTerminal("STRING").Value.str + _t1386 := p.parse_relation_id() + relation_id747 := _t1386 + p.consumeLiteral(")") + _t1387 := &pb.ExportCSVColumn{ColumnName: string746, ColumnData: relation_id747} + return _t1387 +} + +func (p *Parser) parse_export_csv_columns_list() []*pb.ExportCSVColumn { + p.consumeLiteral("(") + p.consumeLiteral("columns") + xs748 := []*pb.ExportCSVColumn{} + cond749 := p.matchLookaheadLiteral("(", 0) + for cond749 { + _t1388 := p.parse_export_csv_column() + item750 := _t1388 + xs748 = append(xs748, item750) + cond749 = p.matchLookaheadLiteral("(", 0) + } + export_csv_columns751 := xs748 p.consumeLiteral(")") - _t1349 := &pb.ExportCSVColumn{ColumnName: string730, ColumnData: relation_id731} - return _t1349 + return export_csv_columns751 } diff --git a/sdks/go/src/pretty.go b/sdks/go/src/pretty.go index 4d3a5575..b673da41 100644 --- a/sdks/go/src/pretty.go +++ b/sdks/go/src/pretty.go @@ -311,153 +311,157 @@ func formatBool(b bool) string { // --- Helper functions --- func (p *PrettyPrinter) _make_value_int32(v int32) *pb.Value { - _t1395 := &pb.Value{} - _t1395.Value = &pb.Value_IntValue{IntValue: int64(v)} - return _t1395 + _t1423 := &pb.Value{} + _t1423.Value = &pb.Value_IntValue{IntValue: int64(v)} + return _t1423 } func (p *PrettyPrinter) _make_value_int64(v int64) *pb.Value { - _t1396 := &pb.Value{} - _t1396.Value = &pb.Value_IntValue{IntValue: v} - return _t1396 + _t1424 := &pb.Value{} + _t1424.Value = &pb.Value_IntValue{IntValue: v} + return _t1424 } func (p *PrettyPrinter) _make_value_float64(v float64) *pb.Value { - _t1397 := &pb.Value{} - _t1397.Value = &pb.Value_FloatValue{FloatValue: v} - return _t1397 + _t1425 := &pb.Value{} + _t1425.Value = &pb.Value_FloatValue{FloatValue: v} + return _t1425 } func (p *PrettyPrinter) _make_value_string(v string) *pb.Value { - _t1398 := &pb.Value{} - _t1398.Value = &pb.Value_StringValue{StringValue: v} - return _t1398 + _t1426 := &pb.Value{} + _t1426.Value = &pb.Value_StringValue{StringValue: v} + return _t1426 } func (p *PrettyPrinter) _make_value_boolean(v bool) *pb.Value { - _t1399 := &pb.Value{} - _t1399.Value = &pb.Value_BooleanValue{BooleanValue: v} - return _t1399 + _t1427 := &pb.Value{} + _t1427.Value = &pb.Value_BooleanValue{BooleanValue: v} + return _t1427 } func (p *PrettyPrinter) _make_value_uint128(v *pb.UInt128Value) *pb.Value { - _t1400 := &pb.Value{} - _t1400.Value = &pb.Value_Uint128Value{Uint128Value: v} - return _t1400 + _t1428 := &pb.Value{} + _t1428.Value = &pb.Value_Uint128Value{Uint128Value: v} + return _t1428 } func (p *PrettyPrinter) deconstruct_configure(msg *pb.Configure) [][]interface{} { result := [][]interface{}{} if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_AUTO { - _t1401 := p._make_value_string("auto") - result = append(result, []interface{}{"ivm.maintenance_level", _t1401}) + _t1429 := p._make_value_string("auto") + result = append(result, []interface{}{"ivm.maintenance_level", _t1429}) } else { if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_ALL { - _t1402 := p._make_value_string("all") - result = append(result, []interface{}{"ivm.maintenance_level", _t1402}) + _t1430 := p._make_value_string("all") + result = append(result, []interface{}{"ivm.maintenance_level", _t1430}) } else { if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF { - _t1403 := p._make_value_string("off") - result = append(result, []interface{}{"ivm.maintenance_level", _t1403}) + _t1431 := p._make_value_string("off") + result = append(result, []interface{}{"ivm.maintenance_level", _t1431}) } } } - _t1404 := p._make_value_int64(msg.GetSemanticsVersion()) - result = append(result, []interface{}{"semantics_version", _t1404}) + _t1432 := p._make_value_int64(msg.GetSemanticsVersion()) + result = append(result, []interface{}{"semantics_version", _t1432}) return listSort(result) } func (p *PrettyPrinter) deconstruct_csv_config(msg *pb.CSVConfig) [][]interface{} { result := [][]interface{}{} - _t1405 := p._make_value_int32(msg.GetHeaderRow()) - result = append(result, []interface{}{"csv_header_row", _t1405}) - _t1406 := p._make_value_int64(msg.GetSkip()) - result = append(result, []interface{}{"csv_skip", _t1406}) + _t1433 := p._make_value_int32(msg.GetHeaderRow()) + result = append(result, []interface{}{"csv_header_row", _t1433}) + _t1434 := p._make_value_int64(msg.GetSkip()) + result = append(result, []interface{}{"csv_skip", _t1434}) if msg.GetNewLine() != "" { - _t1407 := p._make_value_string(msg.GetNewLine()) - result = append(result, []interface{}{"csv_new_line", _t1407}) - } - _t1408 := p._make_value_string(msg.GetDelimiter()) - result = append(result, []interface{}{"csv_delimiter", _t1408}) - _t1409 := p._make_value_string(msg.GetQuotechar()) - result = append(result, []interface{}{"csv_quotechar", _t1409}) - _t1410 := p._make_value_string(msg.GetEscapechar()) - result = append(result, []interface{}{"csv_escapechar", _t1410}) + _t1435 := p._make_value_string(msg.GetNewLine()) + result = append(result, []interface{}{"csv_new_line", _t1435}) + } + _t1436 := p._make_value_string(msg.GetDelimiter()) + result = append(result, []interface{}{"csv_delimiter", _t1436}) + _t1437 := p._make_value_string(msg.GetQuotechar()) + result = append(result, []interface{}{"csv_quotechar", _t1437}) + _t1438 := p._make_value_string(msg.GetEscapechar()) + result = append(result, []interface{}{"csv_escapechar", _t1438}) if msg.GetComment() != "" { - _t1411 := p._make_value_string(msg.GetComment()) - result = append(result, []interface{}{"csv_comment", _t1411}) + _t1439 := p._make_value_string(msg.GetComment()) + result = append(result, []interface{}{"csv_comment", _t1439}) } for _, missing_string := range msg.GetMissingStrings() { - _t1412 := p._make_value_string(missing_string) - result = append(result, []interface{}{"csv_missing_strings", _t1412}) - } - _t1413 := p._make_value_string(msg.GetDecimalSeparator()) - result = append(result, []interface{}{"csv_decimal_separator", _t1413}) - _t1414 := p._make_value_string(msg.GetEncoding()) - result = append(result, []interface{}{"csv_encoding", _t1414}) - _t1415 := p._make_value_string(msg.GetCompression()) - result = append(result, []interface{}{"csv_compression", _t1415}) + _t1440 := p._make_value_string(missing_string) + result = append(result, []interface{}{"csv_missing_strings", _t1440}) + } + _t1441 := p._make_value_string(msg.GetDecimalSeparator()) + result = append(result, []interface{}{"csv_decimal_separator", _t1441}) + _t1442 := p._make_value_string(msg.GetEncoding()) + result = append(result, []interface{}{"csv_encoding", _t1442}) + _t1443 := p._make_value_string(msg.GetCompression()) + result = append(result, []interface{}{"csv_compression", _t1443}) + if msg.GetPartitionSizeMb() != 0 { + _t1444 := p._make_value_int64(msg.GetPartitionSizeMb()) + result = append(result, []interface{}{"csv_partition_size_mb", _t1444}) + } return listSort(result) } func (p *PrettyPrinter) deconstruct_betree_info_config(msg *pb.BeTreeInfo) [][]interface{} { result := [][]interface{}{} - _t1416 := p._make_value_float64(msg.GetStorageConfig().GetEpsilon()) - result = append(result, []interface{}{"betree_config_epsilon", _t1416}) - _t1417 := p._make_value_int64(msg.GetStorageConfig().GetMaxPivots()) - result = append(result, []interface{}{"betree_config_max_pivots", _t1417}) - _t1418 := p._make_value_int64(msg.GetStorageConfig().GetMaxDeltas()) - result = append(result, []interface{}{"betree_config_max_deltas", _t1418}) - _t1419 := p._make_value_int64(msg.GetStorageConfig().GetMaxLeaf()) - result = append(result, []interface{}{"betree_config_max_leaf", _t1419}) + _t1445 := p._make_value_float64(msg.GetStorageConfig().GetEpsilon()) + result = append(result, []interface{}{"betree_config_epsilon", _t1445}) + _t1446 := p._make_value_int64(msg.GetStorageConfig().GetMaxPivots()) + result = append(result, []interface{}{"betree_config_max_pivots", _t1446}) + _t1447 := p._make_value_int64(msg.GetStorageConfig().GetMaxDeltas()) + result = append(result, []interface{}{"betree_config_max_deltas", _t1447}) + _t1448 := p._make_value_int64(msg.GetStorageConfig().GetMaxLeaf()) + result = append(result, []interface{}{"betree_config_max_leaf", _t1448}) if hasProtoField(msg.GetRelationLocator(), "root_pageid") { if msg.GetRelationLocator().GetRootPageid() != nil { - _t1420 := p._make_value_uint128(msg.GetRelationLocator().GetRootPageid()) - result = append(result, []interface{}{"betree_locator_root_pageid", _t1420}) + _t1449 := p._make_value_uint128(msg.GetRelationLocator().GetRootPageid()) + result = append(result, []interface{}{"betree_locator_root_pageid", _t1449}) } } if hasProtoField(msg.GetRelationLocator(), "inline_data") { if msg.GetRelationLocator().GetInlineData() != nil { - _t1421 := p._make_value_string(string(msg.GetRelationLocator().GetInlineData())) - result = append(result, []interface{}{"betree_locator_inline_data", _t1421}) + _t1450 := p._make_value_string(string(msg.GetRelationLocator().GetInlineData())) + result = append(result, []interface{}{"betree_locator_inline_data", _t1450}) } } - _t1422 := p._make_value_int64(msg.GetRelationLocator().GetElementCount()) - result = append(result, []interface{}{"betree_locator_element_count", _t1422}) - _t1423 := p._make_value_int64(msg.GetRelationLocator().GetTreeHeight()) - result = append(result, []interface{}{"betree_locator_tree_height", _t1423}) + _t1451 := p._make_value_int64(msg.GetRelationLocator().GetElementCount()) + result = append(result, []interface{}{"betree_locator_element_count", _t1451}) + _t1452 := p._make_value_int64(msg.GetRelationLocator().GetTreeHeight()) + result = append(result, []interface{}{"betree_locator_tree_height", _t1452}) return listSort(result) } func (p *PrettyPrinter) deconstruct_export_csv_config(msg *pb.ExportCSVConfig) [][]interface{} { result := [][]interface{}{} if msg.PartitionSize != nil { - _t1424 := p._make_value_int64(*msg.PartitionSize) - result = append(result, []interface{}{"partition_size", _t1424}) + _t1453 := p._make_value_int64(*msg.PartitionSize) + result = append(result, []interface{}{"partition_size", _t1453}) } if msg.Compression != nil { - _t1425 := p._make_value_string(*msg.Compression) - result = append(result, []interface{}{"compression", _t1425}) + _t1454 := p._make_value_string(*msg.Compression) + result = append(result, []interface{}{"compression", _t1454}) } if msg.SyntaxHeaderRow != nil { - _t1426 := p._make_value_boolean(*msg.SyntaxHeaderRow) - result = append(result, []interface{}{"syntax_header_row", _t1426}) + _t1455 := p._make_value_boolean(*msg.SyntaxHeaderRow) + result = append(result, []interface{}{"syntax_header_row", _t1455}) } if msg.SyntaxMissingString != nil { - _t1427 := p._make_value_string(*msg.SyntaxMissingString) - result = append(result, []interface{}{"syntax_missing_string", _t1427}) + _t1456 := p._make_value_string(*msg.SyntaxMissingString) + result = append(result, []interface{}{"syntax_missing_string", _t1456}) } if msg.SyntaxDelim != nil { - _t1428 := p._make_value_string(*msg.SyntaxDelim) - result = append(result, []interface{}{"syntax_delim", _t1428}) + _t1457 := p._make_value_string(*msg.SyntaxDelim) + result = append(result, []interface{}{"syntax_delim", _t1457}) } if msg.SyntaxQuotechar != nil { - _t1429 := p._make_value_string(*msg.SyntaxQuotechar) - result = append(result, []interface{}{"syntax_quotechar", _t1429}) + _t1458 := p._make_value_string(*msg.SyntaxQuotechar) + result = append(result, []interface{}{"syntax_quotechar", _t1458}) } if msg.SyntaxEscapechar != nil { - _t1430 := p._make_value_string(*msg.SyntaxEscapechar) - result = append(result, []interface{}{"syntax_escapechar", _t1430}) + _t1459 := p._make_value_string(*msg.SyntaxEscapechar) + result = append(result, []interface{}{"syntax_escapechar", _t1459}) } return listSort(result) } @@ -469,11 +473,11 @@ func (p *PrettyPrinter) deconstruct_relation_id_string(msg *pb.RelationId) strin func (p *PrettyPrinter) deconstruct_relation_id_uint128(msg *pb.RelationId) *pb.UInt128Value { name := p.relationIdToString(msg) - var _t1431 interface{} + var _t1460 interface{} if name == nil { return p.relationIdToUint128(msg) } - _ = _t1431 + _ = _t1460 return nil } @@ -491,45 +495,45 @@ func (p *PrettyPrinter) deconstruct_bindings_with_arity(abs *pb.Abstraction, val // --- Pretty-print methods --- func (p *PrettyPrinter) pretty_transaction(msg *pb.Transaction) interface{} { - flat651 := p.tryFlat(msg, func() { p.pretty_transaction(msg) }) - if flat651 != nil { - p.write(*flat651) + flat663 := p.tryFlat(msg, func() { p.pretty_transaction(msg) }) + if flat663 != nil { + p.write(*flat663) return nil } else { _dollar_dollar := msg - var _t1284 *pb.Configure + var _t1308 *pb.Configure if hasProtoField(_dollar_dollar, "configure") { - _t1284 = _dollar_dollar.GetConfigure() + _t1308 = _dollar_dollar.GetConfigure() } - var _t1285 *pb.Sync + var _t1309 *pb.Sync if hasProtoField(_dollar_dollar, "sync") { - _t1285 = _dollar_dollar.GetSync() + _t1309 = _dollar_dollar.GetSync() } - fields642 := []interface{}{_t1284, _t1285, _dollar_dollar.GetEpochs()} - unwrapped_fields643 := fields642 + fields654 := []interface{}{_t1308, _t1309, _dollar_dollar.GetEpochs()} + unwrapped_fields655 := fields654 p.write("(") p.write("transaction") p.indentSexp() - field644 := unwrapped_fields643[0].(*pb.Configure) - if field644 != nil { + field656 := unwrapped_fields655[0].(*pb.Configure) + if field656 != nil { p.newline() - opt_val645 := field644 - p.pretty_configure(opt_val645) + opt_val657 := field656 + p.pretty_configure(opt_val657) } - field646 := unwrapped_fields643[1].(*pb.Sync) - if field646 != nil { + field658 := unwrapped_fields655[1].(*pb.Sync) + if field658 != nil { p.newline() - opt_val647 := field646 - p.pretty_sync(opt_val647) + opt_val659 := field658 + p.pretty_sync(opt_val659) } - field648 := unwrapped_fields643[2].([]*pb.Epoch) - if !(len(field648) == 0) { + field660 := unwrapped_fields655[2].([]*pb.Epoch) + if !(len(field660) == 0) { p.newline() - for i650, elem649 := range field648 { - if (i650 > 0) { + for i662, elem661 := range field660 { + if (i662 > 0) { p.newline() } - p.pretty_epoch(elem649) + p.pretty_epoch(elem661) } } p.dedent() @@ -539,20 +543,20 @@ func (p *PrettyPrinter) pretty_transaction(msg *pb.Transaction) interface{} { } func (p *PrettyPrinter) pretty_configure(msg *pb.Configure) interface{} { - flat654 := p.tryFlat(msg, func() { p.pretty_configure(msg) }) - if flat654 != nil { - p.write(*flat654) + flat666 := p.tryFlat(msg, func() { p.pretty_configure(msg) }) + if flat666 != nil { + p.write(*flat666) return nil } else { _dollar_dollar := msg - _t1286 := p.deconstruct_configure(_dollar_dollar) - fields652 := _t1286 - unwrapped_fields653 := fields652 + _t1310 := p.deconstruct_configure(_dollar_dollar) + fields664 := _t1310 + unwrapped_fields665 := fields664 p.write("(") p.write("configure") p.indentSexp() p.newline() - p.pretty_config_dict(unwrapped_fields653) + p.pretty_config_dict(unwrapped_fields665) p.dedent() p.write(")") } @@ -560,21 +564,21 @@ func (p *PrettyPrinter) pretty_configure(msg *pb.Configure) interface{} { } func (p *PrettyPrinter) pretty_config_dict(msg [][]interface{}) interface{} { - flat658 := p.tryFlat(msg, func() { p.pretty_config_dict(msg) }) - if flat658 != nil { - p.write(*flat658) + flat670 := p.tryFlat(msg, func() { p.pretty_config_dict(msg) }) + if flat670 != nil { + p.write(*flat670) return nil } else { - fields655 := msg + fields667 := msg p.write("{") p.indent() - if !(len(fields655) == 0) { + if !(len(fields667) == 0) { p.newline() - for i657, elem656 := range fields655 { - if (i657 > 0) { + for i669, elem668 := range fields667 { + if (i669 > 0) { p.newline() } - p.pretty_config_key_value(elem656) + p.pretty_config_key_value(elem668) } } p.dedent() @@ -584,122 +588,122 @@ func (p *PrettyPrinter) pretty_config_dict(msg [][]interface{}) interface{} { } func (p *PrettyPrinter) pretty_config_key_value(msg []interface{}) interface{} { - flat663 := p.tryFlat(msg, func() { p.pretty_config_key_value(msg) }) - if flat663 != nil { - p.write(*flat663) + flat675 := p.tryFlat(msg, func() { p.pretty_config_key_value(msg) }) + if flat675 != nil { + p.write(*flat675) return nil } else { _dollar_dollar := msg - fields659 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(*pb.Value)} - unwrapped_fields660 := fields659 + fields671 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(*pb.Value)} + unwrapped_fields672 := fields671 p.write(":") - field661 := unwrapped_fields660[0].(string) - p.write(field661) + field673 := unwrapped_fields672[0].(string) + p.write(field673) p.write(" ") - field662 := unwrapped_fields660[1].(*pb.Value) - p.pretty_value(field662) + field674 := unwrapped_fields672[1].(*pb.Value) + p.pretty_value(field674) } return nil } func (p *PrettyPrinter) pretty_value(msg *pb.Value) interface{} { - flat683 := p.tryFlat(msg, func() { p.pretty_value(msg) }) - if flat683 != nil { - p.write(*flat683) + flat695 := p.tryFlat(msg, func() { p.pretty_value(msg) }) + if flat695 != nil { + p.write(*flat695) return nil } else { _dollar_dollar := msg - var _t1287 *pb.DateValue + var _t1311 *pb.DateValue if hasProtoField(_dollar_dollar, "date_value") { - _t1287 = _dollar_dollar.GetDateValue() + _t1311 = _dollar_dollar.GetDateValue() } - deconstruct_result681 := _t1287 - if deconstruct_result681 != nil { - unwrapped682 := deconstruct_result681 - p.pretty_date(unwrapped682) + deconstruct_result693 := _t1311 + if deconstruct_result693 != nil { + unwrapped694 := deconstruct_result693 + p.pretty_date(unwrapped694) } else { _dollar_dollar := msg - var _t1288 *pb.DateTimeValue + var _t1312 *pb.DateTimeValue if hasProtoField(_dollar_dollar, "datetime_value") { - _t1288 = _dollar_dollar.GetDatetimeValue() + _t1312 = _dollar_dollar.GetDatetimeValue() } - deconstruct_result679 := _t1288 - if deconstruct_result679 != nil { - unwrapped680 := deconstruct_result679 - p.pretty_datetime(unwrapped680) + deconstruct_result691 := _t1312 + if deconstruct_result691 != nil { + unwrapped692 := deconstruct_result691 + p.pretty_datetime(unwrapped692) } else { _dollar_dollar := msg - var _t1289 *string + var _t1313 *string if hasProtoField(_dollar_dollar, "string_value") { - _t1289 = ptr(_dollar_dollar.GetStringValue()) + _t1313 = ptr(_dollar_dollar.GetStringValue()) } - deconstruct_result677 := _t1289 - if deconstruct_result677 != nil { - unwrapped678 := *deconstruct_result677 - p.write(p.formatStringValue(unwrapped678)) + deconstruct_result689 := _t1313 + if deconstruct_result689 != nil { + unwrapped690 := *deconstruct_result689 + p.write(p.formatStringValue(unwrapped690)) } else { _dollar_dollar := msg - var _t1290 *int64 + var _t1314 *int64 if hasProtoField(_dollar_dollar, "int_value") { - _t1290 = ptr(_dollar_dollar.GetIntValue()) + _t1314 = ptr(_dollar_dollar.GetIntValue()) } - deconstruct_result675 := _t1290 - if deconstruct_result675 != nil { - unwrapped676 := *deconstruct_result675 - p.write(fmt.Sprintf("%d", unwrapped676)) + deconstruct_result687 := _t1314 + if deconstruct_result687 != nil { + unwrapped688 := *deconstruct_result687 + p.write(fmt.Sprintf("%d", unwrapped688)) } else { _dollar_dollar := msg - var _t1291 *float64 + var _t1315 *float64 if hasProtoField(_dollar_dollar, "float_value") { - _t1291 = ptr(_dollar_dollar.GetFloatValue()) + _t1315 = ptr(_dollar_dollar.GetFloatValue()) } - deconstruct_result673 := _t1291 - if deconstruct_result673 != nil { - unwrapped674 := *deconstruct_result673 - p.write(formatFloat64(unwrapped674)) + deconstruct_result685 := _t1315 + if deconstruct_result685 != nil { + unwrapped686 := *deconstruct_result685 + p.write(formatFloat64(unwrapped686)) } else { _dollar_dollar := msg - var _t1292 *pb.UInt128Value + var _t1316 *pb.UInt128Value if hasProtoField(_dollar_dollar, "uint128_value") { - _t1292 = _dollar_dollar.GetUint128Value() + _t1316 = _dollar_dollar.GetUint128Value() } - deconstruct_result671 := _t1292 - if deconstruct_result671 != nil { - unwrapped672 := deconstruct_result671 - p.write(p.formatUint128(unwrapped672)) + deconstruct_result683 := _t1316 + if deconstruct_result683 != nil { + unwrapped684 := deconstruct_result683 + p.write(p.formatUint128(unwrapped684)) } else { _dollar_dollar := msg - var _t1293 *pb.Int128Value + var _t1317 *pb.Int128Value if hasProtoField(_dollar_dollar, "int128_value") { - _t1293 = _dollar_dollar.GetInt128Value() + _t1317 = _dollar_dollar.GetInt128Value() } - deconstruct_result669 := _t1293 - if deconstruct_result669 != nil { - unwrapped670 := deconstruct_result669 - p.write(p.formatInt128(unwrapped670)) + deconstruct_result681 := _t1317 + if deconstruct_result681 != nil { + unwrapped682 := deconstruct_result681 + p.write(p.formatInt128(unwrapped682)) } else { _dollar_dollar := msg - var _t1294 *pb.DecimalValue + var _t1318 *pb.DecimalValue if hasProtoField(_dollar_dollar, "decimal_value") { - _t1294 = _dollar_dollar.GetDecimalValue() + _t1318 = _dollar_dollar.GetDecimalValue() } - deconstruct_result667 := _t1294 - if deconstruct_result667 != nil { - unwrapped668 := deconstruct_result667 - p.write(p.formatDecimal(unwrapped668)) + deconstruct_result679 := _t1318 + if deconstruct_result679 != nil { + unwrapped680 := deconstruct_result679 + p.write(p.formatDecimal(unwrapped680)) } else { _dollar_dollar := msg - var _t1295 *bool + var _t1319 *bool if hasProtoField(_dollar_dollar, "boolean_value") { - _t1295 = ptr(_dollar_dollar.GetBooleanValue()) + _t1319 = ptr(_dollar_dollar.GetBooleanValue()) } - deconstruct_result665 := _t1295 - if deconstruct_result665 != nil { - unwrapped666 := *deconstruct_result665 - p.pretty_boolean_value(unwrapped666) + deconstruct_result677 := _t1319 + if deconstruct_result677 != nil { + unwrapped678 := *deconstruct_result677 + p.pretty_boolean_value(unwrapped678) } else { - fields664 := msg - _ = fields664 + fields676 := msg + _ = fields676 p.write("missing") } } @@ -715,26 +719,26 @@ func (p *PrettyPrinter) pretty_value(msg *pb.Value) interface{} { } func (p *PrettyPrinter) pretty_date(msg *pb.DateValue) interface{} { - flat689 := p.tryFlat(msg, func() { p.pretty_date(msg) }) - if flat689 != nil { - p.write(*flat689) + flat701 := p.tryFlat(msg, func() { p.pretty_date(msg) }) + if flat701 != nil { + p.write(*flat701) return nil } else { _dollar_dollar := msg - fields684 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} - unwrapped_fields685 := fields684 + fields696 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} + unwrapped_fields697 := fields696 p.write("(") p.write("date") p.indentSexp() p.newline() - field686 := unwrapped_fields685[0].(int64) - p.write(fmt.Sprintf("%d", field686)) + field698 := unwrapped_fields697[0].(int64) + p.write(fmt.Sprintf("%d", field698)) p.newline() - field687 := unwrapped_fields685[1].(int64) - p.write(fmt.Sprintf("%d", field687)) + field699 := unwrapped_fields697[1].(int64) + p.write(fmt.Sprintf("%d", field699)) p.newline() - field688 := unwrapped_fields685[2].(int64) - p.write(fmt.Sprintf("%d", field688)) + field700 := unwrapped_fields697[2].(int64) + p.write(fmt.Sprintf("%d", field700)) p.dedent() p.write(")") } @@ -742,40 +746,40 @@ func (p *PrettyPrinter) pretty_date(msg *pb.DateValue) interface{} { } func (p *PrettyPrinter) pretty_datetime(msg *pb.DateTimeValue) interface{} { - flat700 := p.tryFlat(msg, func() { p.pretty_datetime(msg) }) - if flat700 != nil { - p.write(*flat700) + flat712 := p.tryFlat(msg, func() { p.pretty_datetime(msg) }) + if flat712 != nil { + p.write(*flat712) return nil } else { _dollar_dollar := msg - fields690 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay()), int64(_dollar_dollar.GetHour()), int64(_dollar_dollar.GetMinute()), int64(_dollar_dollar.GetSecond()), ptr(int64(_dollar_dollar.GetMicrosecond()))} - unwrapped_fields691 := fields690 + fields702 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay()), int64(_dollar_dollar.GetHour()), int64(_dollar_dollar.GetMinute()), int64(_dollar_dollar.GetSecond()), ptr(int64(_dollar_dollar.GetMicrosecond()))} + unwrapped_fields703 := fields702 p.write("(") p.write("datetime") p.indentSexp() p.newline() - field692 := unwrapped_fields691[0].(int64) - p.write(fmt.Sprintf("%d", field692)) + field704 := unwrapped_fields703[0].(int64) + p.write(fmt.Sprintf("%d", field704)) p.newline() - field693 := unwrapped_fields691[1].(int64) - p.write(fmt.Sprintf("%d", field693)) + field705 := unwrapped_fields703[1].(int64) + p.write(fmt.Sprintf("%d", field705)) p.newline() - field694 := unwrapped_fields691[2].(int64) - p.write(fmt.Sprintf("%d", field694)) + field706 := unwrapped_fields703[2].(int64) + p.write(fmt.Sprintf("%d", field706)) p.newline() - field695 := unwrapped_fields691[3].(int64) - p.write(fmt.Sprintf("%d", field695)) + field707 := unwrapped_fields703[3].(int64) + p.write(fmt.Sprintf("%d", field707)) p.newline() - field696 := unwrapped_fields691[4].(int64) - p.write(fmt.Sprintf("%d", field696)) + field708 := unwrapped_fields703[4].(int64) + p.write(fmt.Sprintf("%d", field708)) p.newline() - field697 := unwrapped_fields691[5].(int64) - p.write(fmt.Sprintf("%d", field697)) - field698 := unwrapped_fields691[6].(*int64) - if field698 != nil { + field709 := unwrapped_fields703[5].(int64) + p.write(fmt.Sprintf("%d", field709)) + field710 := unwrapped_fields703[6].(*int64) + if field710 != nil { p.newline() - opt_val699 := *field698 - p.write(fmt.Sprintf("%d", opt_val699)) + opt_val711 := *field710 + p.write(fmt.Sprintf("%d", opt_val711)) } p.dedent() p.write(")") @@ -785,25 +789,25 @@ func (p *PrettyPrinter) pretty_datetime(msg *pb.DateTimeValue) interface{} { func (p *PrettyPrinter) pretty_boolean_value(msg bool) interface{} { _dollar_dollar := msg - var _t1296 []interface{} + var _t1320 []interface{} if _dollar_dollar { - _t1296 = []interface{}{} + _t1320 = []interface{}{} } - deconstruct_result703 := _t1296 - if deconstruct_result703 != nil { - unwrapped704 := deconstruct_result703 - _ = unwrapped704 + deconstruct_result715 := _t1320 + if deconstruct_result715 != nil { + unwrapped716 := deconstruct_result715 + _ = unwrapped716 p.write("true") } else { _dollar_dollar := msg - var _t1297 []interface{} + var _t1321 []interface{} if !(_dollar_dollar) { - _t1297 = []interface{}{} + _t1321 = []interface{}{} } - deconstruct_result701 := _t1297 - if deconstruct_result701 != nil { - unwrapped702 := deconstruct_result701 - _ = unwrapped702 + deconstruct_result713 := _t1321 + if deconstruct_result713 != nil { + unwrapped714 := deconstruct_result713 + _ = unwrapped714 p.write("false") } else { panic(ParseError{msg: "No matching rule for boolean_value"}) @@ -813,24 +817,24 @@ func (p *PrettyPrinter) pretty_boolean_value(msg bool) interface{} { } func (p *PrettyPrinter) pretty_sync(msg *pb.Sync) interface{} { - flat709 := p.tryFlat(msg, func() { p.pretty_sync(msg) }) - if flat709 != nil { - p.write(*flat709) + flat721 := p.tryFlat(msg, func() { p.pretty_sync(msg) }) + if flat721 != nil { + p.write(*flat721) return nil } else { _dollar_dollar := msg - fields705 := _dollar_dollar.GetFragments() - unwrapped_fields706 := fields705 + fields717 := _dollar_dollar.GetFragments() + unwrapped_fields718 := fields717 p.write("(") p.write("sync") p.indentSexp() - if !(len(unwrapped_fields706) == 0) { + if !(len(unwrapped_fields718) == 0) { p.newline() - for i708, elem707 := range unwrapped_fields706 { - if (i708 > 0) { + for i720, elem719 := range unwrapped_fields718 { + if (i720 > 0) { p.newline() } - p.pretty_fragment_id(elem707) + p.pretty_fragment_id(elem719) } } p.dedent() @@ -840,51 +844,51 @@ func (p *PrettyPrinter) pretty_sync(msg *pb.Sync) interface{} { } func (p *PrettyPrinter) pretty_fragment_id(msg *pb.FragmentId) interface{} { - flat712 := p.tryFlat(msg, func() { p.pretty_fragment_id(msg) }) - if flat712 != nil { - p.write(*flat712) + flat724 := p.tryFlat(msg, func() { p.pretty_fragment_id(msg) }) + if flat724 != nil { + p.write(*flat724) return nil } else { _dollar_dollar := msg - fields710 := p.fragmentIdToString(_dollar_dollar) - unwrapped_fields711 := fields710 + fields722 := p.fragmentIdToString(_dollar_dollar) + unwrapped_fields723 := fields722 p.write(":") - p.write(unwrapped_fields711) + p.write(unwrapped_fields723) } return nil } func (p *PrettyPrinter) pretty_epoch(msg *pb.Epoch) interface{} { - flat719 := p.tryFlat(msg, func() { p.pretty_epoch(msg) }) - if flat719 != nil { - p.write(*flat719) + flat731 := p.tryFlat(msg, func() { p.pretty_epoch(msg) }) + if flat731 != nil { + p.write(*flat731) return nil } else { _dollar_dollar := msg - var _t1298 []*pb.Write + var _t1322 []*pb.Write if !(len(_dollar_dollar.GetWrites()) == 0) { - _t1298 = _dollar_dollar.GetWrites() + _t1322 = _dollar_dollar.GetWrites() } - var _t1299 []*pb.Read + var _t1323 []*pb.Read if !(len(_dollar_dollar.GetReads()) == 0) { - _t1299 = _dollar_dollar.GetReads() + _t1323 = _dollar_dollar.GetReads() } - fields713 := []interface{}{_t1298, _t1299} - unwrapped_fields714 := fields713 + fields725 := []interface{}{_t1322, _t1323} + unwrapped_fields726 := fields725 p.write("(") p.write("epoch") p.indentSexp() - field715 := unwrapped_fields714[0].([]*pb.Write) - if field715 != nil { + field727 := unwrapped_fields726[0].([]*pb.Write) + if field727 != nil { p.newline() - opt_val716 := field715 - p.pretty_epoch_writes(opt_val716) + opt_val728 := field727 + p.pretty_epoch_writes(opt_val728) } - field717 := unwrapped_fields714[1].([]*pb.Read) - if field717 != nil { + field729 := unwrapped_fields726[1].([]*pb.Read) + if field729 != nil { p.newline() - opt_val718 := field717 - p.pretty_epoch_reads(opt_val718) + opt_val730 := field729 + p.pretty_epoch_reads(opt_val730) } p.dedent() p.write(")") @@ -893,22 +897,22 @@ func (p *PrettyPrinter) pretty_epoch(msg *pb.Epoch) interface{} { } func (p *PrettyPrinter) pretty_epoch_writes(msg []*pb.Write) interface{} { - flat723 := p.tryFlat(msg, func() { p.pretty_epoch_writes(msg) }) - if flat723 != nil { - p.write(*flat723) + flat735 := p.tryFlat(msg, func() { p.pretty_epoch_writes(msg) }) + if flat735 != nil { + p.write(*flat735) return nil } else { - fields720 := msg + fields732 := msg p.write("(") p.write("writes") p.indentSexp() - if !(len(fields720) == 0) { + if !(len(fields732) == 0) { p.newline() - for i722, elem721 := range fields720 { - if (i722 > 0) { + for i734, elem733 := range fields732 { + if (i734 > 0) { p.newline() } - p.pretty_write(elem721) + p.pretty_write(elem733) } } p.dedent() @@ -918,50 +922,50 @@ func (p *PrettyPrinter) pretty_epoch_writes(msg []*pb.Write) interface{} { } func (p *PrettyPrinter) pretty_write(msg *pb.Write) interface{} { - flat732 := p.tryFlat(msg, func() { p.pretty_write(msg) }) - if flat732 != nil { - p.write(*flat732) + flat744 := p.tryFlat(msg, func() { p.pretty_write(msg) }) + if flat744 != nil { + p.write(*flat744) return nil } else { _dollar_dollar := msg - var _t1300 *pb.Define + var _t1324 *pb.Define if hasProtoField(_dollar_dollar, "define") { - _t1300 = _dollar_dollar.GetDefine() + _t1324 = _dollar_dollar.GetDefine() } - deconstruct_result730 := _t1300 - if deconstruct_result730 != nil { - unwrapped731 := deconstruct_result730 - p.pretty_define(unwrapped731) + deconstruct_result742 := _t1324 + if deconstruct_result742 != nil { + unwrapped743 := deconstruct_result742 + p.pretty_define(unwrapped743) } else { _dollar_dollar := msg - var _t1301 *pb.Undefine + var _t1325 *pb.Undefine if hasProtoField(_dollar_dollar, "undefine") { - _t1301 = _dollar_dollar.GetUndefine() + _t1325 = _dollar_dollar.GetUndefine() } - deconstruct_result728 := _t1301 - if deconstruct_result728 != nil { - unwrapped729 := deconstruct_result728 - p.pretty_undefine(unwrapped729) + deconstruct_result740 := _t1325 + if deconstruct_result740 != nil { + unwrapped741 := deconstruct_result740 + p.pretty_undefine(unwrapped741) } else { _dollar_dollar := msg - var _t1302 *pb.Context + var _t1326 *pb.Context if hasProtoField(_dollar_dollar, "context") { - _t1302 = _dollar_dollar.GetContext() + _t1326 = _dollar_dollar.GetContext() } - deconstruct_result726 := _t1302 - if deconstruct_result726 != nil { - unwrapped727 := deconstruct_result726 - p.pretty_context(unwrapped727) + deconstruct_result738 := _t1326 + if deconstruct_result738 != nil { + unwrapped739 := deconstruct_result738 + p.pretty_context(unwrapped739) } else { _dollar_dollar := msg - var _t1303 *pb.Snapshot + var _t1327 *pb.Snapshot if hasProtoField(_dollar_dollar, "snapshot") { - _t1303 = _dollar_dollar.GetSnapshot() + _t1327 = _dollar_dollar.GetSnapshot() } - deconstruct_result724 := _t1303 - if deconstruct_result724 != nil { - unwrapped725 := deconstruct_result724 - p.pretty_snapshot(unwrapped725) + deconstruct_result736 := _t1327 + if deconstruct_result736 != nil { + unwrapped737 := deconstruct_result736 + p.pretty_snapshot(unwrapped737) } else { panic(ParseError{msg: "No matching rule for write"}) } @@ -973,19 +977,19 @@ func (p *PrettyPrinter) pretty_write(msg *pb.Write) interface{} { } func (p *PrettyPrinter) pretty_define(msg *pb.Define) interface{} { - flat735 := p.tryFlat(msg, func() { p.pretty_define(msg) }) - if flat735 != nil { - p.write(*flat735) + flat747 := p.tryFlat(msg, func() { p.pretty_define(msg) }) + if flat747 != nil { + p.write(*flat747) return nil } else { _dollar_dollar := msg - fields733 := _dollar_dollar.GetFragment() - unwrapped_fields734 := fields733 + fields745 := _dollar_dollar.GetFragment() + unwrapped_fields746 := fields745 p.write("(") p.write("define") p.indentSexp() p.newline() - p.pretty_fragment(unwrapped_fields734) + p.pretty_fragment(unwrapped_fields746) p.dedent() p.write(")") } @@ -993,29 +997,29 @@ func (p *PrettyPrinter) pretty_define(msg *pb.Define) interface{} { } func (p *PrettyPrinter) pretty_fragment(msg *pb.Fragment) interface{} { - flat742 := p.tryFlat(msg, func() { p.pretty_fragment(msg) }) - if flat742 != nil { - p.write(*flat742) + flat754 := p.tryFlat(msg, func() { p.pretty_fragment(msg) }) + if flat754 != nil { + p.write(*flat754) return nil } else { _dollar_dollar := msg p.startPrettyFragment(_dollar_dollar) - fields736 := []interface{}{_dollar_dollar.GetId(), _dollar_dollar.GetDeclarations()} - unwrapped_fields737 := fields736 + fields748 := []interface{}{_dollar_dollar.GetId(), _dollar_dollar.GetDeclarations()} + unwrapped_fields749 := fields748 p.write("(") p.write("fragment") p.indentSexp() p.newline() - field738 := unwrapped_fields737[0].(*pb.FragmentId) - p.pretty_new_fragment_id(field738) - field739 := unwrapped_fields737[1].([]*pb.Declaration) - if !(len(field739) == 0) { + field750 := unwrapped_fields749[0].(*pb.FragmentId) + p.pretty_new_fragment_id(field750) + field751 := unwrapped_fields749[1].([]*pb.Declaration) + if !(len(field751) == 0) { p.newline() - for i741, elem740 := range field739 { - if (i741 > 0) { + for i753, elem752 := range field751 { + if (i753 > 0) { p.newline() } - p.pretty_declaration(elem740) + p.pretty_declaration(elem752) } } p.dedent() @@ -1025,62 +1029,62 @@ func (p *PrettyPrinter) pretty_fragment(msg *pb.Fragment) interface{} { } func (p *PrettyPrinter) pretty_new_fragment_id(msg *pb.FragmentId) interface{} { - flat744 := p.tryFlat(msg, func() { p.pretty_new_fragment_id(msg) }) - if flat744 != nil { - p.write(*flat744) + flat756 := p.tryFlat(msg, func() { p.pretty_new_fragment_id(msg) }) + if flat756 != nil { + p.write(*flat756) return nil } else { - fields743 := msg - p.pretty_fragment_id(fields743) + fields755 := msg + p.pretty_fragment_id(fields755) } return nil } func (p *PrettyPrinter) pretty_declaration(msg *pb.Declaration) interface{} { - flat753 := p.tryFlat(msg, func() { p.pretty_declaration(msg) }) - if flat753 != nil { - p.write(*flat753) + flat765 := p.tryFlat(msg, func() { p.pretty_declaration(msg) }) + if flat765 != nil { + p.write(*flat765) return nil } else { _dollar_dollar := msg - var _t1304 *pb.Def + var _t1328 *pb.Def if hasProtoField(_dollar_dollar, "def") { - _t1304 = _dollar_dollar.GetDef() + _t1328 = _dollar_dollar.GetDef() } - deconstruct_result751 := _t1304 - if deconstruct_result751 != nil { - unwrapped752 := deconstruct_result751 - p.pretty_def(unwrapped752) + deconstruct_result763 := _t1328 + if deconstruct_result763 != nil { + unwrapped764 := deconstruct_result763 + p.pretty_def(unwrapped764) } else { _dollar_dollar := msg - var _t1305 *pb.Algorithm + var _t1329 *pb.Algorithm if hasProtoField(_dollar_dollar, "algorithm") { - _t1305 = _dollar_dollar.GetAlgorithm() + _t1329 = _dollar_dollar.GetAlgorithm() } - deconstruct_result749 := _t1305 - if deconstruct_result749 != nil { - unwrapped750 := deconstruct_result749 - p.pretty_algorithm(unwrapped750) + deconstruct_result761 := _t1329 + if deconstruct_result761 != nil { + unwrapped762 := deconstruct_result761 + p.pretty_algorithm(unwrapped762) } else { _dollar_dollar := msg - var _t1306 *pb.Constraint + var _t1330 *pb.Constraint if hasProtoField(_dollar_dollar, "constraint") { - _t1306 = _dollar_dollar.GetConstraint() + _t1330 = _dollar_dollar.GetConstraint() } - deconstruct_result747 := _t1306 - if deconstruct_result747 != nil { - unwrapped748 := deconstruct_result747 - p.pretty_constraint(unwrapped748) + deconstruct_result759 := _t1330 + if deconstruct_result759 != nil { + unwrapped760 := deconstruct_result759 + p.pretty_constraint(unwrapped760) } else { _dollar_dollar := msg - var _t1307 *pb.Data + var _t1331 *pb.Data if hasProtoField(_dollar_dollar, "data") { - _t1307 = _dollar_dollar.GetData() + _t1331 = _dollar_dollar.GetData() } - deconstruct_result745 := _t1307 - if deconstruct_result745 != nil { - unwrapped746 := deconstruct_result745 - p.pretty_data(unwrapped746) + deconstruct_result757 := _t1331 + if deconstruct_result757 != nil { + unwrapped758 := deconstruct_result757 + p.pretty_data(unwrapped758) } else { panic(ParseError{msg: "No matching rule for declaration"}) } @@ -1092,32 +1096,32 @@ func (p *PrettyPrinter) pretty_declaration(msg *pb.Declaration) interface{} { } func (p *PrettyPrinter) pretty_def(msg *pb.Def) interface{} { - flat760 := p.tryFlat(msg, func() { p.pretty_def(msg) }) - if flat760 != nil { - p.write(*flat760) + flat772 := p.tryFlat(msg, func() { p.pretty_def(msg) }) + if flat772 != nil { + p.write(*flat772) return nil } else { _dollar_dollar := msg - var _t1308 []*pb.Attribute + var _t1332 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1308 = _dollar_dollar.GetAttrs() + _t1332 = _dollar_dollar.GetAttrs() } - fields754 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1308} - unwrapped_fields755 := fields754 + fields766 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1332} + unwrapped_fields767 := fields766 p.write("(") p.write("def") p.indentSexp() p.newline() - field756 := unwrapped_fields755[0].(*pb.RelationId) - p.pretty_relation_id(field756) + field768 := unwrapped_fields767[0].(*pb.RelationId) + p.pretty_relation_id(field768) p.newline() - field757 := unwrapped_fields755[1].(*pb.Abstraction) - p.pretty_abstraction(field757) - field758 := unwrapped_fields755[2].([]*pb.Attribute) - if field758 != nil { + field769 := unwrapped_fields767[1].(*pb.Abstraction) + p.pretty_abstraction(field769) + field770 := unwrapped_fields767[2].([]*pb.Attribute) + if field770 != nil { p.newline() - opt_val759 := field758 - p.pretty_attrs(opt_val759) + opt_val771 := field770 + p.pretty_attrs(opt_val771) } p.dedent() p.write(")") @@ -1126,29 +1130,29 @@ func (p *PrettyPrinter) pretty_def(msg *pb.Def) interface{} { } func (p *PrettyPrinter) pretty_relation_id(msg *pb.RelationId) interface{} { - flat765 := p.tryFlat(msg, func() { p.pretty_relation_id(msg) }) - if flat765 != nil { - p.write(*flat765) + flat777 := p.tryFlat(msg, func() { p.pretty_relation_id(msg) }) + if flat777 != nil { + p.write(*flat777) return nil } else { _dollar_dollar := msg - var _t1309 *string + var _t1333 *string if p.relationIdToString(_dollar_dollar) != nil { - _t1310 := p.deconstruct_relation_id_string(_dollar_dollar) - _t1309 = ptr(_t1310) + _t1334 := p.deconstruct_relation_id_string(_dollar_dollar) + _t1333 = ptr(_t1334) } - deconstruct_result763 := _t1309 - if deconstruct_result763 != nil { - unwrapped764 := *deconstruct_result763 + deconstruct_result775 := _t1333 + if deconstruct_result775 != nil { + unwrapped776 := *deconstruct_result775 p.write(":") - p.write(unwrapped764) + p.write(unwrapped776) } else { _dollar_dollar := msg - _t1311 := p.deconstruct_relation_id_uint128(_dollar_dollar) - deconstruct_result761 := _t1311 - if deconstruct_result761 != nil { - unwrapped762 := deconstruct_result761 - p.write(p.formatUint128(unwrapped762)) + _t1335 := p.deconstruct_relation_id_uint128(_dollar_dollar) + deconstruct_result773 := _t1335 + if deconstruct_result773 != nil { + unwrapped774 := deconstruct_result773 + p.write(p.formatUint128(unwrapped774)) } else { panic(ParseError{msg: "No matching rule for relation_id"}) } @@ -1158,22 +1162,22 @@ func (p *PrettyPrinter) pretty_relation_id(msg *pb.RelationId) interface{} { } func (p *PrettyPrinter) pretty_abstraction(msg *pb.Abstraction) interface{} { - flat770 := p.tryFlat(msg, func() { p.pretty_abstraction(msg) }) - if flat770 != nil { - p.write(*flat770) + flat782 := p.tryFlat(msg, func() { p.pretty_abstraction(msg) }) + if flat782 != nil { + p.write(*flat782) return nil } else { _dollar_dollar := msg - _t1312 := p.deconstruct_bindings(_dollar_dollar) - fields766 := []interface{}{_t1312, _dollar_dollar.GetValue()} - unwrapped_fields767 := fields766 + _t1336 := p.deconstruct_bindings(_dollar_dollar) + fields778 := []interface{}{_t1336, _dollar_dollar.GetValue()} + unwrapped_fields779 := fields778 p.write("(") p.indent() - field768 := unwrapped_fields767[0].([]interface{}) - p.pretty_bindings(field768) + field780 := unwrapped_fields779[0].([]interface{}) + p.pretty_bindings(field780) p.newline() - field769 := unwrapped_fields767[1].(*pb.Formula) - p.pretty_formula(field769) + field781 := unwrapped_fields779[1].(*pb.Formula) + p.pretty_formula(field781) p.dedent() p.write(")") } @@ -1181,32 +1185,32 @@ func (p *PrettyPrinter) pretty_abstraction(msg *pb.Abstraction) interface{} { } func (p *PrettyPrinter) pretty_bindings(msg []interface{}) interface{} { - flat778 := p.tryFlat(msg, func() { p.pretty_bindings(msg) }) - if flat778 != nil { - p.write(*flat778) + flat790 := p.tryFlat(msg, func() { p.pretty_bindings(msg) }) + if flat790 != nil { + p.write(*flat790) return nil } else { _dollar_dollar := msg - var _t1313 []*pb.Binding + var _t1337 []*pb.Binding if !(len(_dollar_dollar[1].([]*pb.Binding)) == 0) { - _t1313 = _dollar_dollar[1].([]*pb.Binding) + _t1337 = _dollar_dollar[1].([]*pb.Binding) } - fields771 := []interface{}{_dollar_dollar[0].([]*pb.Binding), _t1313} - unwrapped_fields772 := fields771 + fields783 := []interface{}{_dollar_dollar[0].([]*pb.Binding), _t1337} + unwrapped_fields784 := fields783 p.write("[") p.indent() - field773 := unwrapped_fields772[0].([]*pb.Binding) - for i775, elem774 := range field773 { - if (i775 > 0) { + field785 := unwrapped_fields784[0].([]*pb.Binding) + for i787, elem786 := range field785 { + if (i787 > 0) { p.newline() } - p.pretty_binding(elem774) + p.pretty_binding(elem786) } - field776 := unwrapped_fields772[1].([]*pb.Binding) - if field776 != nil { + field788 := unwrapped_fields784[1].([]*pb.Binding) + if field788 != nil { p.newline() - opt_val777 := field776 - p.pretty_value_bindings(opt_val777) + opt_val789 := field788 + p.pretty_value_bindings(opt_val789) } p.dedent() p.write("]") @@ -1215,138 +1219,138 @@ func (p *PrettyPrinter) pretty_bindings(msg []interface{}) interface{} { } func (p *PrettyPrinter) pretty_binding(msg *pb.Binding) interface{} { - flat783 := p.tryFlat(msg, func() { p.pretty_binding(msg) }) - if flat783 != nil { - p.write(*flat783) + flat795 := p.tryFlat(msg, func() { p.pretty_binding(msg) }) + if flat795 != nil { + p.write(*flat795) return nil } else { _dollar_dollar := msg - fields779 := []interface{}{_dollar_dollar.GetVar().GetName(), _dollar_dollar.GetType()} - unwrapped_fields780 := fields779 - field781 := unwrapped_fields780[0].(string) - p.write(field781) + fields791 := []interface{}{_dollar_dollar.GetVar().GetName(), _dollar_dollar.GetType()} + unwrapped_fields792 := fields791 + field793 := unwrapped_fields792[0].(string) + p.write(field793) p.write("::") - field782 := unwrapped_fields780[1].(*pb.Type) - p.pretty_type(field782) + field794 := unwrapped_fields792[1].(*pb.Type) + p.pretty_type(field794) } return nil } func (p *PrettyPrinter) pretty_type(msg *pb.Type) interface{} { - flat806 := p.tryFlat(msg, func() { p.pretty_type(msg) }) - if flat806 != nil { - p.write(*flat806) + flat818 := p.tryFlat(msg, func() { p.pretty_type(msg) }) + if flat818 != nil { + p.write(*flat818) return nil } else { _dollar_dollar := msg - var _t1314 *pb.UnspecifiedType + var _t1338 *pb.UnspecifiedType if hasProtoField(_dollar_dollar, "unspecified_type") { - _t1314 = _dollar_dollar.GetUnspecifiedType() + _t1338 = _dollar_dollar.GetUnspecifiedType() } - deconstruct_result804 := _t1314 - if deconstruct_result804 != nil { - unwrapped805 := deconstruct_result804 - p.pretty_unspecified_type(unwrapped805) + deconstruct_result816 := _t1338 + if deconstruct_result816 != nil { + unwrapped817 := deconstruct_result816 + p.pretty_unspecified_type(unwrapped817) } else { _dollar_dollar := msg - var _t1315 *pb.StringType + var _t1339 *pb.StringType if hasProtoField(_dollar_dollar, "string_type") { - _t1315 = _dollar_dollar.GetStringType() + _t1339 = _dollar_dollar.GetStringType() } - deconstruct_result802 := _t1315 - if deconstruct_result802 != nil { - unwrapped803 := deconstruct_result802 - p.pretty_string_type(unwrapped803) + deconstruct_result814 := _t1339 + if deconstruct_result814 != nil { + unwrapped815 := deconstruct_result814 + p.pretty_string_type(unwrapped815) } else { _dollar_dollar := msg - var _t1316 *pb.IntType + var _t1340 *pb.IntType if hasProtoField(_dollar_dollar, "int_type") { - _t1316 = _dollar_dollar.GetIntType() + _t1340 = _dollar_dollar.GetIntType() } - deconstruct_result800 := _t1316 - if deconstruct_result800 != nil { - unwrapped801 := deconstruct_result800 - p.pretty_int_type(unwrapped801) + deconstruct_result812 := _t1340 + if deconstruct_result812 != nil { + unwrapped813 := deconstruct_result812 + p.pretty_int_type(unwrapped813) } else { _dollar_dollar := msg - var _t1317 *pb.FloatType + var _t1341 *pb.FloatType if hasProtoField(_dollar_dollar, "float_type") { - _t1317 = _dollar_dollar.GetFloatType() + _t1341 = _dollar_dollar.GetFloatType() } - deconstruct_result798 := _t1317 - if deconstruct_result798 != nil { - unwrapped799 := deconstruct_result798 - p.pretty_float_type(unwrapped799) + deconstruct_result810 := _t1341 + if deconstruct_result810 != nil { + unwrapped811 := deconstruct_result810 + p.pretty_float_type(unwrapped811) } else { _dollar_dollar := msg - var _t1318 *pb.UInt128Type + var _t1342 *pb.UInt128Type if hasProtoField(_dollar_dollar, "uint128_type") { - _t1318 = _dollar_dollar.GetUint128Type() + _t1342 = _dollar_dollar.GetUint128Type() } - deconstruct_result796 := _t1318 - if deconstruct_result796 != nil { - unwrapped797 := deconstruct_result796 - p.pretty_uint128_type(unwrapped797) + deconstruct_result808 := _t1342 + if deconstruct_result808 != nil { + unwrapped809 := deconstruct_result808 + p.pretty_uint128_type(unwrapped809) } else { _dollar_dollar := msg - var _t1319 *pb.Int128Type + var _t1343 *pb.Int128Type if hasProtoField(_dollar_dollar, "int128_type") { - _t1319 = _dollar_dollar.GetInt128Type() + _t1343 = _dollar_dollar.GetInt128Type() } - deconstruct_result794 := _t1319 - if deconstruct_result794 != nil { - unwrapped795 := deconstruct_result794 - p.pretty_int128_type(unwrapped795) + deconstruct_result806 := _t1343 + if deconstruct_result806 != nil { + unwrapped807 := deconstruct_result806 + p.pretty_int128_type(unwrapped807) } else { _dollar_dollar := msg - var _t1320 *pb.DateType + var _t1344 *pb.DateType if hasProtoField(_dollar_dollar, "date_type") { - _t1320 = _dollar_dollar.GetDateType() + _t1344 = _dollar_dollar.GetDateType() } - deconstruct_result792 := _t1320 - if deconstruct_result792 != nil { - unwrapped793 := deconstruct_result792 - p.pretty_date_type(unwrapped793) + deconstruct_result804 := _t1344 + if deconstruct_result804 != nil { + unwrapped805 := deconstruct_result804 + p.pretty_date_type(unwrapped805) } else { _dollar_dollar := msg - var _t1321 *pb.DateTimeType + var _t1345 *pb.DateTimeType if hasProtoField(_dollar_dollar, "datetime_type") { - _t1321 = _dollar_dollar.GetDatetimeType() + _t1345 = _dollar_dollar.GetDatetimeType() } - deconstruct_result790 := _t1321 - if deconstruct_result790 != nil { - unwrapped791 := deconstruct_result790 - p.pretty_datetime_type(unwrapped791) + deconstruct_result802 := _t1345 + if deconstruct_result802 != nil { + unwrapped803 := deconstruct_result802 + p.pretty_datetime_type(unwrapped803) } else { _dollar_dollar := msg - var _t1322 *pb.MissingType + var _t1346 *pb.MissingType if hasProtoField(_dollar_dollar, "missing_type") { - _t1322 = _dollar_dollar.GetMissingType() + _t1346 = _dollar_dollar.GetMissingType() } - deconstruct_result788 := _t1322 - if deconstruct_result788 != nil { - unwrapped789 := deconstruct_result788 - p.pretty_missing_type(unwrapped789) + deconstruct_result800 := _t1346 + if deconstruct_result800 != nil { + unwrapped801 := deconstruct_result800 + p.pretty_missing_type(unwrapped801) } else { _dollar_dollar := msg - var _t1323 *pb.DecimalType + var _t1347 *pb.DecimalType if hasProtoField(_dollar_dollar, "decimal_type") { - _t1323 = _dollar_dollar.GetDecimalType() + _t1347 = _dollar_dollar.GetDecimalType() } - deconstruct_result786 := _t1323 - if deconstruct_result786 != nil { - unwrapped787 := deconstruct_result786 - p.pretty_decimal_type(unwrapped787) + deconstruct_result798 := _t1347 + if deconstruct_result798 != nil { + unwrapped799 := deconstruct_result798 + p.pretty_decimal_type(unwrapped799) } else { _dollar_dollar := msg - var _t1324 *pb.BooleanType + var _t1348 *pb.BooleanType if hasProtoField(_dollar_dollar, "boolean_type") { - _t1324 = _dollar_dollar.GetBooleanType() + _t1348 = _dollar_dollar.GetBooleanType() } - deconstruct_result784 := _t1324 - if deconstruct_result784 != nil { - unwrapped785 := deconstruct_result784 - p.pretty_boolean_type(unwrapped785) + deconstruct_result796 := _t1348 + if deconstruct_result796 != nil { + unwrapped797 := deconstruct_result796 + p.pretty_boolean_type(unwrapped797) } else { panic(ParseError{msg: "No matching rule for type"}) } @@ -1365,86 +1369,86 @@ func (p *PrettyPrinter) pretty_type(msg *pb.Type) interface{} { } func (p *PrettyPrinter) pretty_unspecified_type(msg *pb.UnspecifiedType) interface{} { - fields807 := msg - _ = fields807 + fields819 := msg + _ = fields819 p.write("UNKNOWN") return nil } func (p *PrettyPrinter) pretty_string_type(msg *pb.StringType) interface{} { - fields808 := msg - _ = fields808 + fields820 := msg + _ = fields820 p.write("STRING") return nil } func (p *PrettyPrinter) pretty_int_type(msg *pb.IntType) interface{} { - fields809 := msg - _ = fields809 + fields821 := msg + _ = fields821 p.write("INT") return nil } func (p *PrettyPrinter) pretty_float_type(msg *pb.FloatType) interface{} { - fields810 := msg - _ = fields810 + fields822 := msg + _ = fields822 p.write("FLOAT") return nil } func (p *PrettyPrinter) pretty_uint128_type(msg *pb.UInt128Type) interface{} { - fields811 := msg - _ = fields811 + fields823 := msg + _ = fields823 p.write("UINT128") return nil } func (p *PrettyPrinter) pretty_int128_type(msg *pb.Int128Type) interface{} { - fields812 := msg - _ = fields812 + fields824 := msg + _ = fields824 p.write("INT128") return nil } func (p *PrettyPrinter) pretty_date_type(msg *pb.DateType) interface{} { - fields813 := msg - _ = fields813 + fields825 := msg + _ = fields825 p.write("DATE") return nil } func (p *PrettyPrinter) pretty_datetime_type(msg *pb.DateTimeType) interface{} { - fields814 := msg - _ = fields814 + fields826 := msg + _ = fields826 p.write("DATETIME") return nil } func (p *PrettyPrinter) pretty_missing_type(msg *pb.MissingType) interface{} { - fields815 := msg - _ = fields815 + fields827 := msg + _ = fields827 p.write("MISSING") return nil } func (p *PrettyPrinter) pretty_decimal_type(msg *pb.DecimalType) interface{} { - flat820 := p.tryFlat(msg, func() { p.pretty_decimal_type(msg) }) - if flat820 != nil { - p.write(*flat820) + flat832 := p.tryFlat(msg, func() { p.pretty_decimal_type(msg) }) + if flat832 != nil { + p.write(*flat832) return nil } else { _dollar_dollar := msg - fields816 := []interface{}{int64(_dollar_dollar.GetPrecision()), int64(_dollar_dollar.GetScale())} - unwrapped_fields817 := fields816 + fields828 := []interface{}{int64(_dollar_dollar.GetPrecision()), int64(_dollar_dollar.GetScale())} + unwrapped_fields829 := fields828 p.write("(") p.write("DECIMAL") p.indentSexp() p.newline() - field818 := unwrapped_fields817[0].(int64) - p.write(fmt.Sprintf("%d", field818)) + field830 := unwrapped_fields829[0].(int64) + p.write(fmt.Sprintf("%d", field830)) p.newline() - field819 := unwrapped_fields817[1].(int64) - p.write(fmt.Sprintf("%d", field819)) + field831 := unwrapped_fields829[1].(int64) + p.write(fmt.Sprintf("%d", field831)) p.dedent() p.write(")") } @@ -1452,27 +1456,27 @@ func (p *PrettyPrinter) pretty_decimal_type(msg *pb.DecimalType) interface{} { } func (p *PrettyPrinter) pretty_boolean_type(msg *pb.BooleanType) interface{} { - fields821 := msg - _ = fields821 + fields833 := msg + _ = fields833 p.write("BOOLEAN") return nil } func (p *PrettyPrinter) pretty_value_bindings(msg []*pb.Binding) interface{} { - flat825 := p.tryFlat(msg, func() { p.pretty_value_bindings(msg) }) - if flat825 != nil { - p.write(*flat825) + flat837 := p.tryFlat(msg, func() { p.pretty_value_bindings(msg) }) + if flat837 != nil { + p.write(*flat837) return nil } else { - fields822 := msg + fields834 := msg p.write("|") - if !(len(fields822) == 0) { + if !(len(fields834) == 0) { p.write(" ") - for i824, elem823 := range fields822 { - if (i824 > 0) { + for i836, elem835 := range fields834 { + if (i836 > 0) { p.newline() } - p.pretty_binding(elem823) + p.pretty_binding(elem835) } } } @@ -1480,140 +1484,140 @@ func (p *PrettyPrinter) pretty_value_bindings(msg []*pb.Binding) interface{} { } func (p *PrettyPrinter) pretty_formula(msg *pb.Formula) interface{} { - flat852 := p.tryFlat(msg, func() { p.pretty_formula(msg) }) - if flat852 != nil { - p.write(*flat852) + flat864 := p.tryFlat(msg, func() { p.pretty_formula(msg) }) + if flat864 != nil { + p.write(*flat864) return nil } else { _dollar_dollar := msg - var _t1325 *pb.Conjunction + var _t1349 *pb.Conjunction if (hasProtoField(_dollar_dollar, "conjunction") && len(_dollar_dollar.GetConjunction().GetArgs()) == 0) { - _t1325 = _dollar_dollar.GetConjunction() + _t1349 = _dollar_dollar.GetConjunction() } - deconstruct_result850 := _t1325 - if deconstruct_result850 != nil { - unwrapped851 := deconstruct_result850 - p.pretty_true(unwrapped851) + deconstruct_result862 := _t1349 + if deconstruct_result862 != nil { + unwrapped863 := deconstruct_result862 + p.pretty_true(unwrapped863) } else { _dollar_dollar := msg - var _t1326 *pb.Disjunction + var _t1350 *pb.Disjunction if (hasProtoField(_dollar_dollar, "disjunction") && len(_dollar_dollar.GetDisjunction().GetArgs()) == 0) { - _t1326 = _dollar_dollar.GetDisjunction() + _t1350 = _dollar_dollar.GetDisjunction() } - deconstruct_result848 := _t1326 - if deconstruct_result848 != nil { - unwrapped849 := deconstruct_result848 - p.pretty_false(unwrapped849) + deconstruct_result860 := _t1350 + if deconstruct_result860 != nil { + unwrapped861 := deconstruct_result860 + p.pretty_false(unwrapped861) } else { _dollar_dollar := msg - var _t1327 *pb.Exists + var _t1351 *pb.Exists if hasProtoField(_dollar_dollar, "exists") { - _t1327 = _dollar_dollar.GetExists() + _t1351 = _dollar_dollar.GetExists() } - deconstruct_result846 := _t1327 - if deconstruct_result846 != nil { - unwrapped847 := deconstruct_result846 - p.pretty_exists(unwrapped847) + deconstruct_result858 := _t1351 + if deconstruct_result858 != nil { + unwrapped859 := deconstruct_result858 + p.pretty_exists(unwrapped859) } else { _dollar_dollar := msg - var _t1328 *pb.Reduce + var _t1352 *pb.Reduce if hasProtoField(_dollar_dollar, "reduce") { - _t1328 = _dollar_dollar.GetReduce() + _t1352 = _dollar_dollar.GetReduce() } - deconstruct_result844 := _t1328 - if deconstruct_result844 != nil { - unwrapped845 := deconstruct_result844 - p.pretty_reduce(unwrapped845) + deconstruct_result856 := _t1352 + if deconstruct_result856 != nil { + unwrapped857 := deconstruct_result856 + p.pretty_reduce(unwrapped857) } else { _dollar_dollar := msg - var _t1329 *pb.Conjunction + var _t1353 *pb.Conjunction if (hasProtoField(_dollar_dollar, "conjunction") && !(len(_dollar_dollar.GetConjunction().GetArgs()) == 0)) { - _t1329 = _dollar_dollar.GetConjunction() + _t1353 = _dollar_dollar.GetConjunction() } - deconstruct_result842 := _t1329 - if deconstruct_result842 != nil { - unwrapped843 := deconstruct_result842 - p.pretty_conjunction(unwrapped843) + deconstruct_result854 := _t1353 + if deconstruct_result854 != nil { + unwrapped855 := deconstruct_result854 + p.pretty_conjunction(unwrapped855) } else { _dollar_dollar := msg - var _t1330 *pb.Disjunction + var _t1354 *pb.Disjunction if (hasProtoField(_dollar_dollar, "disjunction") && !(len(_dollar_dollar.GetDisjunction().GetArgs()) == 0)) { - _t1330 = _dollar_dollar.GetDisjunction() + _t1354 = _dollar_dollar.GetDisjunction() } - deconstruct_result840 := _t1330 - if deconstruct_result840 != nil { - unwrapped841 := deconstruct_result840 - p.pretty_disjunction(unwrapped841) + deconstruct_result852 := _t1354 + if deconstruct_result852 != nil { + unwrapped853 := deconstruct_result852 + p.pretty_disjunction(unwrapped853) } else { _dollar_dollar := msg - var _t1331 *pb.Not + var _t1355 *pb.Not if hasProtoField(_dollar_dollar, "not") { - _t1331 = _dollar_dollar.GetNot() + _t1355 = _dollar_dollar.GetNot() } - deconstruct_result838 := _t1331 - if deconstruct_result838 != nil { - unwrapped839 := deconstruct_result838 - p.pretty_not(unwrapped839) + deconstruct_result850 := _t1355 + if deconstruct_result850 != nil { + unwrapped851 := deconstruct_result850 + p.pretty_not(unwrapped851) } else { _dollar_dollar := msg - var _t1332 *pb.FFI + var _t1356 *pb.FFI if hasProtoField(_dollar_dollar, "ffi") { - _t1332 = _dollar_dollar.GetFfi() + _t1356 = _dollar_dollar.GetFfi() } - deconstruct_result836 := _t1332 - if deconstruct_result836 != nil { - unwrapped837 := deconstruct_result836 - p.pretty_ffi(unwrapped837) + deconstruct_result848 := _t1356 + if deconstruct_result848 != nil { + unwrapped849 := deconstruct_result848 + p.pretty_ffi(unwrapped849) } else { _dollar_dollar := msg - var _t1333 *pb.Atom + var _t1357 *pb.Atom if hasProtoField(_dollar_dollar, "atom") { - _t1333 = _dollar_dollar.GetAtom() + _t1357 = _dollar_dollar.GetAtom() } - deconstruct_result834 := _t1333 - if deconstruct_result834 != nil { - unwrapped835 := deconstruct_result834 - p.pretty_atom(unwrapped835) + deconstruct_result846 := _t1357 + if deconstruct_result846 != nil { + unwrapped847 := deconstruct_result846 + p.pretty_atom(unwrapped847) } else { _dollar_dollar := msg - var _t1334 *pb.Pragma + var _t1358 *pb.Pragma if hasProtoField(_dollar_dollar, "pragma") { - _t1334 = _dollar_dollar.GetPragma() + _t1358 = _dollar_dollar.GetPragma() } - deconstruct_result832 := _t1334 - if deconstruct_result832 != nil { - unwrapped833 := deconstruct_result832 - p.pretty_pragma(unwrapped833) + deconstruct_result844 := _t1358 + if deconstruct_result844 != nil { + unwrapped845 := deconstruct_result844 + p.pretty_pragma(unwrapped845) } else { _dollar_dollar := msg - var _t1335 *pb.Primitive + var _t1359 *pb.Primitive if hasProtoField(_dollar_dollar, "primitive") { - _t1335 = _dollar_dollar.GetPrimitive() + _t1359 = _dollar_dollar.GetPrimitive() } - deconstruct_result830 := _t1335 - if deconstruct_result830 != nil { - unwrapped831 := deconstruct_result830 - p.pretty_primitive(unwrapped831) + deconstruct_result842 := _t1359 + if deconstruct_result842 != nil { + unwrapped843 := deconstruct_result842 + p.pretty_primitive(unwrapped843) } else { _dollar_dollar := msg - var _t1336 *pb.RelAtom + var _t1360 *pb.RelAtom if hasProtoField(_dollar_dollar, "rel_atom") { - _t1336 = _dollar_dollar.GetRelAtom() + _t1360 = _dollar_dollar.GetRelAtom() } - deconstruct_result828 := _t1336 - if deconstruct_result828 != nil { - unwrapped829 := deconstruct_result828 - p.pretty_rel_atom(unwrapped829) + deconstruct_result840 := _t1360 + if deconstruct_result840 != nil { + unwrapped841 := deconstruct_result840 + p.pretty_rel_atom(unwrapped841) } else { _dollar_dollar := msg - var _t1337 *pb.Cast + var _t1361 *pb.Cast if hasProtoField(_dollar_dollar, "cast") { - _t1337 = _dollar_dollar.GetCast() + _t1361 = _dollar_dollar.GetCast() } - deconstruct_result826 := _t1337 - if deconstruct_result826 != nil { - unwrapped827 := deconstruct_result826 - p.pretty_cast(unwrapped827) + deconstruct_result838 := _t1361 + if deconstruct_result838 != nil { + unwrapped839 := deconstruct_result838 + p.pretty_cast(unwrapped839) } else { panic(ParseError{msg: "No matching rule for formula"}) } @@ -1634,8 +1638,8 @@ func (p *PrettyPrinter) pretty_formula(msg *pb.Formula) interface{} { } func (p *PrettyPrinter) pretty_true(msg *pb.Conjunction) interface{} { - fields853 := msg - _ = fields853 + fields865 := msg + _ = fields865 p.write("(") p.write("true") p.write(")") @@ -1643,8 +1647,8 @@ func (p *PrettyPrinter) pretty_true(msg *pb.Conjunction) interface{} { } func (p *PrettyPrinter) pretty_false(msg *pb.Disjunction) interface{} { - fields854 := msg - _ = fields854 + fields866 := msg + _ = fields866 p.write("(") p.write("false") p.write(")") @@ -1652,24 +1656,24 @@ func (p *PrettyPrinter) pretty_false(msg *pb.Disjunction) interface{} { } func (p *PrettyPrinter) pretty_exists(msg *pb.Exists) interface{} { - flat859 := p.tryFlat(msg, func() { p.pretty_exists(msg) }) - if flat859 != nil { - p.write(*flat859) + flat871 := p.tryFlat(msg, func() { p.pretty_exists(msg) }) + if flat871 != nil { + p.write(*flat871) return nil } else { _dollar_dollar := msg - _t1338 := p.deconstruct_bindings(_dollar_dollar.GetBody()) - fields855 := []interface{}{_t1338, _dollar_dollar.GetBody().GetValue()} - unwrapped_fields856 := fields855 + _t1362 := p.deconstruct_bindings(_dollar_dollar.GetBody()) + fields867 := []interface{}{_t1362, _dollar_dollar.GetBody().GetValue()} + unwrapped_fields868 := fields867 p.write("(") p.write("exists") p.indentSexp() p.newline() - field857 := unwrapped_fields856[0].([]interface{}) - p.pretty_bindings(field857) + field869 := unwrapped_fields868[0].([]interface{}) + p.pretty_bindings(field869) p.newline() - field858 := unwrapped_fields856[1].(*pb.Formula) - p.pretty_formula(field858) + field870 := unwrapped_fields868[1].(*pb.Formula) + p.pretty_formula(field870) p.dedent() p.write(")") } @@ -1677,26 +1681,26 @@ func (p *PrettyPrinter) pretty_exists(msg *pb.Exists) interface{} { } func (p *PrettyPrinter) pretty_reduce(msg *pb.Reduce) interface{} { - flat865 := p.tryFlat(msg, func() { p.pretty_reduce(msg) }) - if flat865 != nil { - p.write(*flat865) + flat877 := p.tryFlat(msg, func() { p.pretty_reduce(msg) }) + if flat877 != nil { + p.write(*flat877) return nil } else { _dollar_dollar := msg - fields860 := []interface{}{_dollar_dollar.GetOp(), _dollar_dollar.GetBody(), _dollar_dollar.GetTerms()} - unwrapped_fields861 := fields860 + fields872 := []interface{}{_dollar_dollar.GetOp(), _dollar_dollar.GetBody(), _dollar_dollar.GetTerms()} + unwrapped_fields873 := fields872 p.write("(") p.write("reduce") p.indentSexp() p.newline() - field862 := unwrapped_fields861[0].(*pb.Abstraction) - p.pretty_abstraction(field862) + field874 := unwrapped_fields873[0].(*pb.Abstraction) + p.pretty_abstraction(field874) p.newline() - field863 := unwrapped_fields861[1].(*pb.Abstraction) - p.pretty_abstraction(field863) + field875 := unwrapped_fields873[1].(*pb.Abstraction) + p.pretty_abstraction(field875) p.newline() - field864 := unwrapped_fields861[2].([]*pb.Term) - p.pretty_terms(field864) + field876 := unwrapped_fields873[2].([]*pb.Term) + p.pretty_terms(field876) p.dedent() p.write(")") } @@ -1704,22 +1708,22 @@ func (p *PrettyPrinter) pretty_reduce(msg *pb.Reduce) interface{} { } func (p *PrettyPrinter) pretty_terms(msg []*pb.Term) interface{} { - flat869 := p.tryFlat(msg, func() { p.pretty_terms(msg) }) - if flat869 != nil { - p.write(*flat869) + flat881 := p.tryFlat(msg, func() { p.pretty_terms(msg) }) + if flat881 != nil { + p.write(*flat881) return nil } else { - fields866 := msg + fields878 := msg p.write("(") p.write("terms") p.indentSexp() - if !(len(fields866) == 0) { + if !(len(fields878) == 0) { p.newline() - for i868, elem867 := range fields866 { - if (i868 > 0) { + for i880, elem879 := range fields878 { + if (i880 > 0) { p.newline() } - p.pretty_term(elem867) + p.pretty_term(elem879) } } p.dedent() @@ -1729,30 +1733,30 @@ func (p *PrettyPrinter) pretty_terms(msg []*pb.Term) interface{} { } func (p *PrettyPrinter) pretty_term(msg *pb.Term) interface{} { - flat874 := p.tryFlat(msg, func() { p.pretty_term(msg) }) - if flat874 != nil { - p.write(*flat874) + flat886 := p.tryFlat(msg, func() { p.pretty_term(msg) }) + if flat886 != nil { + p.write(*flat886) return nil } else { _dollar_dollar := msg - var _t1339 *pb.Var + var _t1363 *pb.Var if hasProtoField(_dollar_dollar, "var") { - _t1339 = _dollar_dollar.GetVar() + _t1363 = _dollar_dollar.GetVar() } - deconstruct_result872 := _t1339 - if deconstruct_result872 != nil { - unwrapped873 := deconstruct_result872 - p.pretty_var(unwrapped873) + deconstruct_result884 := _t1363 + if deconstruct_result884 != nil { + unwrapped885 := deconstruct_result884 + p.pretty_var(unwrapped885) } else { _dollar_dollar := msg - var _t1340 *pb.Value + var _t1364 *pb.Value if hasProtoField(_dollar_dollar, "constant") { - _t1340 = _dollar_dollar.GetConstant() + _t1364 = _dollar_dollar.GetConstant() } - deconstruct_result870 := _t1340 - if deconstruct_result870 != nil { - unwrapped871 := deconstruct_result870 - p.pretty_constant(unwrapped871) + deconstruct_result882 := _t1364 + if deconstruct_result882 != nil { + unwrapped883 := deconstruct_result882 + p.pretty_constant(unwrapped883) } else { panic(ParseError{msg: "No matching rule for term"}) } @@ -1762,50 +1766,50 @@ func (p *PrettyPrinter) pretty_term(msg *pb.Term) interface{} { } func (p *PrettyPrinter) pretty_var(msg *pb.Var) interface{} { - flat877 := p.tryFlat(msg, func() { p.pretty_var(msg) }) - if flat877 != nil { - p.write(*flat877) + flat889 := p.tryFlat(msg, func() { p.pretty_var(msg) }) + if flat889 != nil { + p.write(*flat889) return nil } else { _dollar_dollar := msg - fields875 := _dollar_dollar.GetName() - unwrapped_fields876 := fields875 - p.write(unwrapped_fields876) + fields887 := _dollar_dollar.GetName() + unwrapped_fields888 := fields887 + p.write(unwrapped_fields888) } return nil } func (p *PrettyPrinter) pretty_constant(msg *pb.Value) interface{} { - flat879 := p.tryFlat(msg, func() { p.pretty_constant(msg) }) - if flat879 != nil { - p.write(*flat879) + flat891 := p.tryFlat(msg, func() { p.pretty_constant(msg) }) + if flat891 != nil { + p.write(*flat891) return nil } else { - fields878 := msg - p.pretty_value(fields878) + fields890 := msg + p.pretty_value(fields890) } return nil } func (p *PrettyPrinter) pretty_conjunction(msg *pb.Conjunction) interface{} { - flat884 := p.tryFlat(msg, func() { p.pretty_conjunction(msg) }) - if flat884 != nil { - p.write(*flat884) + flat896 := p.tryFlat(msg, func() { p.pretty_conjunction(msg) }) + if flat896 != nil { + p.write(*flat896) return nil } else { _dollar_dollar := msg - fields880 := _dollar_dollar.GetArgs() - unwrapped_fields881 := fields880 + fields892 := _dollar_dollar.GetArgs() + unwrapped_fields893 := fields892 p.write("(") p.write("and") p.indentSexp() - if !(len(unwrapped_fields881) == 0) { + if !(len(unwrapped_fields893) == 0) { p.newline() - for i883, elem882 := range unwrapped_fields881 { - if (i883 > 0) { + for i895, elem894 := range unwrapped_fields893 { + if (i895 > 0) { p.newline() } - p.pretty_formula(elem882) + p.pretty_formula(elem894) } } p.dedent() @@ -1815,24 +1819,24 @@ func (p *PrettyPrinter) pretty_conjunction(msg *pb.Conjunction) interface{} { } func (p *PrettyPrinter) pretty_disjunction(msg *pb.Disjunction) interface{} { - flat889 := p.tryFlat(msg, func() { p.pretty_disjunction(msg) }) - if flat889 != nil { - p.write(*flat889) + flat901 := p.tryFlat(msg, func() { p.pretty_disjunction(msg) }) + if flat901 != nil { + p.write(*flat901) return nil } else { _dollar_dollar := msg - fields885 := _dollar_dollar.GetArgs() - unwrapped_fields886 := fields885 + fields897 := _dollar_dollar.GetArgs() + unwrapped_fields898 := fields897 p.write("(") p.write("or") p.indentSexp() - if !(len(unwrapped_fields886) == 0) { + if !(len(unwrapped_fields898) == 0) { p.newline() - for i888, elem887 := range unwrapped_fields886 { - if (i888 > 0) { + for i900, elem899 := range unwrapped_fields898 { + if (i900 > 0) { p.newline() } - p.pretty_formula(elem887) + p.pretty_formula(elem899) } } p.dedent() @@ -1842,19 +1846,19 @@ func (p *PrettyPrinter) pretty_disjunction(msg *pb.Disjunction) interface{} { } func (p *PrettyPrinter) pretty_not(msg *pb.Not) interface{} { - flat892 := p.tryFlat(msg, func() { p.pretty_not(msg) }) - if flat892 != nil { - p.write(*flat892) + flat904 := p.tryFlat(msg, func() { p.pretty_not(msg) }) + if flat904 != nil { + p.write(*flat904) return nil } else { _dollar_dollar := msg - fields890 := _dollar_dollar.GetArg() - unwrapped_fields891 := fields890 + fields902 := _dollar_dollar.GetArg() + unwrapped_fields903 := fields902 p.write("(") p.write("not") p.indentSexp() p.newline() - p.pretty_formula(unwrapped_fields891) + p.pretty_formula(unwrapped_fields903) p.dedent() p.write(")") } @@ -1862,26 +1866,26 @@ func (p *PrettyPrinter) pretty_not(msg *pb.Not) interface{} { } func (p *PrettyPrinter) pretty_ffi(msg *pb.FFI) interface{} { - flat898 := p.tryFlat(msg, func() { p.pretty_ffi(msg) }) - if flat898 != nil { - p.write(*flat898) + flat910 := p.tryFlat(msg, func() { p.pretty_ffi(msg) }) + if flat910 != nil { + p.write(*flat910) return nil } else { _dollar_dollar := msg - fields893 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs(), _dollar_dollar.GetTerms()} - unwrapped_fields894 := fields893 + fields905 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs(), _dollar_dollar.GetTerms()} + unwrapped_fields906 := fields905 p.write("(") p.write("ffi") p.indentSexp() p.newline() - field895 := unwrapped_fields894[0].(string) - p.pretty_name(field895) + field907 := unwrapped_fields906[0].(string) + p.pretty_name(field907) p.newline() - field896 := unwrapped_fields894[1].([]*pb.Abstraction) - p.pretty_ffi_args(field896) + field908 := unwrapped_fields906[1].([]*pb.Abstraction) + p.pretty_ffi_args(field908) p.newline() - field897 := unwrapped_fields894[2].([]*pb.Term) - p.pretty_terms(field897) + field909 := unwrapped_fields906[2].([]*pb.Term) + p.pretty_terms(field909) p.dedent() p.write(")") } @@ -1889,35 +1893,35 @@ func (p *PrettyPrinter) pretty_ffi(msg *pb.FFI) interface{} { } func (p *PrettyPrinter) pretty_name(msg string) interface{} { - flat900 := p.tryFlat(msg, func() { p.pretty_name(msg) }) - if flat900 != nil { - p.write(*flat900) + flat912 := p.tryFlat(msg, func() { p.pretty_name(msg) }) + if flat912 != nil { + p.write(*flat912) return nil } else { - fields899 := msg + fields911 := msg p.write(":") - p.write(fields899) + p.write(fields911) } return nil } func (p *PrettyPrinter) pretty_ffi_args(msg []*pb.Abstraction) interface{} { - flat904 := p.tryFlat(msg, func() { p.pretty_ffi_args(msg) }) - if flat904 != nil { - p.write(*flat904) + flat916 := p.tryFlat(msg, func() { p.pretty_ffi_args(msg) }) + if flat916 != nil { + p.write(*flat916) return nil } else { - fields901 := msg + fields913 := msg p.write("(") p.write("args") p.indentSexp() - if !(len(fields901) == 0) { + if !(len(fields913) == 0) { p.newline() - for i903, elem902 := range fields901 { - if (i903 > 0) { + for i915, elem914 := range fields913 { + if (i915 > 0) { p.newline() } - p.pretty_abstraction(elem902) + p.pretty_abstraction(elem914) } } p.dedent() @@ -1927,28 +1931,28 @@ func (p *PrettyPrinter) pretty_ffi_args(msg []*pb.Abstraction) interface{} { } func (p *PrettyPrinter) pretty_atom(msg *pb.Atom) interface{} { - flat911 := p.tryFlat(msg, func() { p.pretty_atom(msg) }) - if flat911 != nil { - p.write(*flat911) + flat923 := p.tryFlat(msg, func() { p.pretty_atom(msg) }) + if flat923 != nil { + p.write(*flat923) return nil } else { _dollar_dollar := msg - fields905 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields906 := fields905 + fields917 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields918 := fields917 p.write("(") p.write("atom") p.indentSexp() p.newline() - field907 := unwrapped_fields906[0].(*pb.RelationId) - p.pretty_relation_id(field907) - field908 := unwrapped_fields906[1].([]*pb.Term) - if !(len(field908) == 0) { + field919 := unwrapped_fields918[0].(*pb.RelationId) + p.pretty_relation_id(field919) + field920 := unwrapped_fields918[1].([]*pb.Term) + if !(len(field920) == 0) { p.newline() - for i910, elem909 := range field908 { - if (i910 > 0) { + for i922, elem921 := range field920 { + if (i922 > 0) { p.newline() } - p.pretty_term(elem909) + p.pretty_term(elem921) } } p.dedent() @@ -1958,28 +1962,28 @@ func (p *PrettyPrinter) pretty_atom(msg *pb.Atom) interface{} { } func (p *PrettyPrinter) pretty_pragma(msg *pb.Pragma) interface{} { - flat918 := p.tryFlat(msg, func() { p.pretty_pragma(msg) }) - if flat918 != nil { - p.write(*flat918) + flat930 := p.tryFlat(msg, func() { p.pretty_pragma(msg) }) + if flat930 != nil { + p.write(*flat930) return nil } else { _dollar_dollar := msg - fields912 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields913 := fields912 + fields924 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields925 := fields924 p.write("(") p.write("pragma") p.indentSexp() p.newline() - field914 := unwrapped_fields913[0].(string) - p.pretty_name(field914) - field915 := unwrapped_fields913[1].([]*pb.Term) - if !(len(field915) == 0) { + field926 := unwrapped_fields925[0].(string) + p.pretty_name(field926) + field927 := unwrapped_fields925[1].([]*pb.Term) + if !(len(field927) == 0) { p.newline() - for i917, elem916 := range field915 { - if (i917 > 0) { + for i929, elem928 := range field927 { + if (i929 > 0) { p.newline() } - p.pretty_term(elem916) + p.pretty_term(elem928) } } p.dedent() @@ -1989,109 +1993,109 @@ func (p *PrettyPrinter) pretty_pragma(msg *pb.Pragma) interface{} { } func (p *PrettyPrinter) pretty_primitive(msg *pb.Primitive) interface{} { - flat934 := p.tryFlat(msg, func() { p.pretty_primitive(msg) }) - if flat934 != nil { - p.write(*flat934) + flat946 := p.tryFlat(msg, func() { p.pretty_primitive(msg) }) + if flat946 != nil { + p.write(*flat946) return nil } else { _dollar_dollar := msg - var _t1341 []interface{} + var _t1365 []interface{} if _dollar_dollar.GetName() == "rel_primitive_eq" { - _t1341 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1365 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result933 := _t1341 - if guard_result933 != nil { + guard_result945 := _t1365 + if guard_result945 != nil { p.pretty_eq(msg) } else { _dollar_dollar := msg - var _t1342 []interface{} + var _t1366 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_monotype" { - _t1342 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1366 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result932 := _t1342 - if guard_result932 != nil { + guard_result944 := _t1366 + if guard_result944 != nil { p.pretty_lt(msg) } else { _dollar_dollar := msg - var _t1343 []interface{} + var _t1367 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_eq_monotype" { - _t1343 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1367 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result931 := _t1343 - if guard_result931 != nil { + guard_result943 := _t1367 + if guard_result943 != nil { p.pretty_lt_eq(msg) } else { _dollar_dollar := msg - var _t1344 []interface{} + var _t1368 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_monotype" { - _t1344 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1368 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result930 := _t1344 - if guard_result930 != nil { + guard_result942 := _t1368 + if guard_result942 != nil { p.pretty_gt(msg) } else { _dollar_dollar := msg - var _t1345 []interface{} + var _t1369 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_eq_monotype" { - _t1345 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1369 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result929 := _t1345 - if guard_result929 != nil { + guard_result941 := _t1369 + if guard_result941 != nil { p.pretty_gt_eq(msg) } else { _dollar_dollar := msg - var _t1346 []interface{} + var _t1370 []interface{} if _dollar_dollar.GetName() == "rel_primitive_add_monotype" { - _t1346 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1370 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result928 := _t1346 - if guard_result928 != nil { + guard_result940 := _t1370 + if guard_result940 != nil { p.pretty_add(msg) } else { _dollar_dollar := msg - var _t1347 []interface{} + var _t1371 []interface{} if _dollar_dollar.GetName() == "rel_primitive_subtract_monotype" { - _t1347 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1371 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result927 := _t1347 - if guard_result927 != nil { + guard_result939 := _t1371 + if guard_result939 != nil { p.pretty_minus(msg) } else { _dollar_dollar := msg - var _t1348 []interface{} + var _t1372 []interface{} if _dollar_dollar.GetName() == "rel_primitive_multiply_monotype" { - _t1348 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1372 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result926 := _t1348 - if guard_result926 != nil { + guard_result938 := _t1372 + if guard_result938 != nil { p.pretty_multiply(msg) } else { _dollar_dollar := msg - var _t1349 []interface{} + var _t1373 []interface{} if _dollar_dollar.GetName() == "rel_primitive_divide_monotype" { - _t1349 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1373 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result925 := _t1349 - if guard_result925 != nil { + guard_result937 := _t1373 + if guard_result937 != nil { p.pretty_divide(msg) } else { _dollar_dollar := msg - fields919 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields920 := fields919 + fields931 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields932 := fields931 p.write("(") p.write("primitive") p.indentSexp() p.newline() - field921 := unwrapped_fields920[0].(string) - p.pretty_name(field921) - field922 := unwrapped_fields920[1].([]*pb.RelTerm) - if !(len(field922) == 0) { + field933 := unwrapped_fields932[0].(string) + p.pretty_name(field933) + field934 := unwrapped_fields932[1].([]*pb.RelTerm) + if !(len(field934) == 0) { p.newline() - for i924, elem923 := range field922 { - if (i924 > 0) { + for i936, elem935 := range field934 { + if (i936 > 0) { p.newline() } - p.pretty_rel_term(elem923) + p.pretty_rel_term(elem935) } } p.dedent() @@ -2110,27 +2114,27 @@ func (p *PrettyPrinter) pretty_primitive(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_eq(msg *pb.Primitive) interface{} { - flat939 := p.tryFlat(msg, func() { p.pretty_eq(msg) }) - if flat939 != nil { - p.write(*flat939) + flat951 := p.tryFlat(msg, func() { p.pretty_eq(msg) }) + if flat951 != nil { + p.write(*flat951) return nil } else { _dollar_dollar := msg - var _t1350 []interface{} + var _t1374 []interface{} if _dollar_dollar.GetName() == "rel_primitive_eq" { - _t1350 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1374 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields935 := _t1350 - unwrapped_fields936 := fields935 + fields947 := _t1374 + unwrapped_fields948 := fields947 p.write("(") p.write("=") p.indentSexp() p.newline() - field937 := unwrapped_fields936[0].(*pb.Term) - p.pretty_term(field937) + field949 := unwrapped_fields948[0].(*pb.Term) + p.pretty_term(field949) p.newline() - field938 := unwrapped_fields936[1].(*pb.Term) - p.pretty_term(field938) + field950 := unwrapped_fields948[1].(*pb.Term) + p.pretty_term(field950) p.dedent() p.write(")") } @@ -2138,27 +2142,27 @@ func (p *PrettyPrinter) pretty_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_lt(msg *pb.Primitive) interface{} { - flat944 := p.tryFlat(msg, func() { p.pretty_lt(msg) }) - if flat944 != nil { - p.write(*flat944) + flat956 := p.tryFlat(msg, func() { p.pretty_lt(msg) }) + if flat956 != nil { + p.write(*flat956) return nil } else { _dollar_dollar := msg - var _t1351 []interface{} + var _t1375 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_monotype" { - _t1351 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1375 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields940 := _t1351 - unwrapped_fields941 := fields940 + fields952 := _t1375 + unwrapped_fields953 := fields952 p.write("(") p.write("<") p.indentSexp() p.newline() - field942 := unwrapped_fields941[0].(*pb.Term) - p.pretty_term(field942) + field954 := unwrapped_fields953[0].(*pb.Term) + p.pretty_term(field954) p.newline() - field943 := unwrapped_fields941[1].(*pb.Term) - p.pretty_term(field943) + field955 := unwrapped_fields953[1].(*pb.Term) + p.pretty_term(field955) p.dedent() p.write(")") } @@ -2166,27 +2170,27 @@ func (p *PrettyPrinter) pretty_lt(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_lt_eq(msg *pb.Primitive) interface{} { - flat949 := p.tryFlat(msg, func() { p.pretty_lt_eq(msg) }) - if flat949 != nil { - p.write(*flat949) + flat961 := p.tryFlat(msg, func() { p.pretty_lt_eq(msg) }) + if flat961 != nil { + p.write(*flat961) return nil } else { _dollar_dollar := msg - var _t1352 []interface{} + var _t1376 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_eq_monotype" { - _t1352 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1376 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields945 := _t1352 - unwrapped_fields946 := fields945 + fields957 := _t1376 + unwrapped_fields958 := fields957 p.write("(") p.write("<=") p.indentSexp() p.newline() - field947 := unwrapped_fields946[0].(*pb.Term) - p.pretty_term(field947) + field959 := unwrapped_fields958[0].(*pb.Term) + p.pretty_term(field959) p.newline() - field948 := unwrapped_fields946[1].(*pb.Term) - p.pretty_term(field948) + field960 := unwrapped_fields958[1].(*pb.Term) + p.pretty_term(field960) p.dedent() p.write(")") } @@ -2194,27 +2198,27 @@ func (p *PrettyPrinter) pretty_lt_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_gt(msg *pb.Primitive) interface{} { - flat954 := p.tryFlat(msg, func() { p.pretty_gt(msg) }) - if flat954 != nil { - p.write(*flat954) + flat966 := p.tryFlat(msg, func() { p.pretty_gt(msg) }) + if flat966 != nil { + p.write(*flat966) return nil } else { _dollar_dollar := msg - var _t1353 []interface{} + var _t1377 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_monotype" { - _t1353 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1377 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields950 := _t1353 - unwrapped_fields951 := fields950 + fields962 := _t1377 + unwrapped_fields963 := fields962 p.write("(") p.write(">") p.indentSexp() p.newline() - field952 := unwrapped_fields951[0].(*pb.Term) - p.pretty_term(field952) + field964 := unwrapped_fields963[0].(*pb.Term) + p.pretty_term(field964) p.newline() - field953 := unwrapped_fields951[1].(*pb.Term) - p.pretty_term(field953) + field965 := unwrapped_fields963[1].(*pb.Term) + p.pretty_term(field965) p.dedent() p.write(")") } @@ -2222,27 +2226,27 @@ func (p *PrettyPrinter) pretty_gt(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_gt_eq(msg *pb.Primitive) interface{} { - flat959 := p.tryFlat(msg, func() { p.pretty_gt_eq(msg) }) - if flat959 != nil { - p.write(*flat959) + flat971 := p.tryFlat(msg, func() { p.pretty_gt_eq(msg) }) + if flat971 != nil { + p.write(*flat971) return nil } else { _dollar_dollar := msg - var _t1354 []interface{} + var _t1378 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_eq_monotype" { - _t1354 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1378 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields955 := _t1354 - unwrapped_fields956 := fields955 + fields967 := _t1378 + unwrapped_fields968 := fields967 p.write("(") p.write(">=") p.indentSexp() p.newline() - field957 := unwrapped_fields956[0].(*pb.Term) - p.pretty_term(field957) + field969 := unwrapped_fields968[0].(*pb.Term) + p.pretty_term(field969) p.newline() - field958 := unwrapped_fields956[1].(*pb.Term) - p.pretty_term(field958) + field970 := unwrapped_fields968[1].(*pb.Term) + p.pretty_term(field970) p.dedent() p.write(")") } @@ -2250,30 +2254,30 @@ func (p *PrettyPrinter) pretty_gt_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_add(msg *pb.Primitive) interface{} { - flat965 := p.tryFlat(msg, func() { p.pretty_add(msg) }) - if flat965 != nil { - p.write(*flat965) + flat977 := p.tryFlat(msg, func() { p.pretty_add(msg) }) + if flat977 != nil { + p.write(*flat977) return nil } else { _dollar_dollar := msg - var _t1355 []interface{} + var _t1379 []interface{} if _dollar_dollar.GetName() == "rel_primitive_add_monotype" { - _t1355 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1379 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields960 := _t1355 - unwrapped_fields961 := fields960 + fields972 := _t1379 + unwrapped_fields973 := fields972 p.write("(") p.write("+") p.indentSexp() p.newline() - field962 := unwrapped_fields961[0].(*pb.Term) - p.pretty_term(field962) + field974 := unwrapped_fields973[0].(*pb.Term) + p.pretty_term(field974) p.newline() - field963 := unwrapped_fields961[1].(*pb.Term) - p.pretty_term(field963) + field975 := unwrapped_fields973[1].(*pb.Term) + p.pretty_term(field975) p.newline() - field964 := unwrapped_fields961[2].(*pb.Term) - p.pretty_term(field964) + field976 := unwrapped_fields973[2].(*pb.Term) + p.pretty_term(field976) p.dedent() p.write(")") } @@ -2281,30 +2285,30 @@ func (p *PrettyPrinter) pretty_add(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_minus(msg *pb.Primitive) interface{} { - flat971 := p.tryFlat(msg, func() { p.pretty_minus(msg) }) - if flat971 != nil { - p.write(*flat971) + flat983 := p.tryFlat(msg, func() { p.pretty_minus(msg) }) + if flat983 != nil { + p.write(*flat983) return nil } else { _dollar_dollar := msg - var _t1356 []interface{} + var _t1380 []interface{} if _dollar_dollar.GetName() == "rel_primitive_subtract_monotype" { - _t1356 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1380 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields966 := _t1356 - unwrapped_fields967 := fields966 + fields978 := _t1380 + unwrapped_fields979 := fields978 p.write("(") p.write("-") p.indentSexp() p.newline() - field968 := unwrapped_fields967[0].(*pb.Term) - p.pretty_term(field968) + field980 := unwrapped_fields979[0].(*pb.Term) + p.pretty_term(field980) p.newline() - field969 := unwrapped_fields967[1].(*pb.Term) - p.pretty_term(field969) + field981 := unwrapped_fields979[1].(*pb.Term) + p.pretty_term(field981) p.newline() - field970 := unwrapped_fields967[2].(*pb.Term) - p.pretty_term(field970) + field982 := unwrapped_fields979[2].(*pb.Term) + p.pretty_term(field982) p.dedent() p.write(")") } @@ -2312,30 +2316,30 @@ func (p *PrettyPrinter) pretty_minus(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_multiply(msg *pb.Primitive) interface{} { - flat977 := p.tryFlat(msg, func() { p.pretty_multiply(msg) }) - if flat977 != nil { - p.write(*flat977) + flat989 := p.tryFlat(msg, func() { p.pretty_multiply(msg) }) + if flat989 != nil { + p.write(*flat989) return nil } else { _dollar_dollar := msg - var _t1357 []interface{} + var _t1381 []interface{} if _dollar_dollar.GetName() == "rel_primitive_multiply_monotype" { - _t1357 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1381 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields972 := _t1357 - unwrapped_fields973 := fields972 + fields984 := _t1381 + unwrapped_fields985 := fields984 p.write("(") p.write("*") p.indentSexp() p.newline() - field974 := unwrapped_fields973[0].(*pb.Term) - p.pretty_term(field974) + field986 := unwrapped_fields985[0].(*pb.Term) + p.pretty_term(field986) p.newline() - field975 := unwrapped_fields973[1].(*pb.Term) - p.pretty_term(field975) + field987 := unwrapped_fields985[1].(*pb.Term) + p.pretty_term(field987) p.newline() - field976 := unwrapped_fields973[2].(*pb.Term) - p.pretty_term(field976) + field988 := unwrapped_fields985[2].(*pb.Term) + p.pretty_term(field988) p.dedent() p.write(")") } @@ -2343,30 +2347,30 @@ func (p *PrettyPrinter) pretty_multiply(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_divide(msg *pb.Primitive) interface{} { - flat983 := p.tryFlat(msg, func() { p.pretty_divide(msg) }) - if flat983 != nil { - p.write(*flat983) + flat995 := p.tryFlat(msg, func() { p.pretty_divide(msg) }) + if flat995 != nil { + p.write(*flat995) return nil } else { _dollar_dollar := msg - var _t1358 []interface{} + var _t1382 []interface{} if _dollar_dollar.GetName() == "rel_primitive_divide_monotype" { - _t1358 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1382 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields978 := _t1358 - unwrapped_fields979 := fields978 + fields990 := _t1382 + unwrapped_fields991 := fields990 p.write("(") p.write("/") p.indentSexp() p.newline() - field980 := unwrapped_fields979[0].(*pb.Term) - p.pretty_term(field980) + field992 := unwrapped_fields991[0].(*pb.Term) + p.pretty_term(field992) p.newline() - field981 := unwrapped_fields979[1].(*pb.Term) - p.pretty_term(field981) + field993 := unwrapped_fields991[1].(*pb.Term) + p.pretty_term(field993) p.newline() - field982 := unwrapped_fields979[2].(*pb.Term) - p.pretty_term(field982) + field994 := unwrapped_fields991[2].(*pb.Term) + p.pretty_term(field994) p.dedent() p.write(")") } @@ -2374,30 +2378,30 @@ func (p *PrettyPrinter) pretty_divide(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_rel_term(msg *pb.RelTerm) interface{} { - flat988 := p.tryFlat(msg, func() { p.pretty_rel_term(msg) }) - if flat988 != nil { - p.write(*flat988) + flat1000 := p.tryFlat(msg, func() { p.pretty_rel_term(msg) }) + if flat1000 != nil { + p.write(*flat1000) return nil } else { _dollar_dollar := msg - var _t1359 *pb.Value + var _t1383 *pb.Value if hasProtoField(_dollar_dollar, "specialized_value") { - _t1359 = _dollar_dollar.GetSpecializedValue() + _t1383 = _dollar_dollar.GetSpecializedValue() } - deconstruct_result986 := _t1359 - if deconstruct_result986 != nil { - unwrapped987 := deconstruct_result986 - p.pretty_specialized_value(unwrapped987) + deconstruct_result998 := _t1383 + if deconstruct_result998 != nil { + unwrapped999 := deconstruct_result998 + p.pretty_specialized_value(unwrapped999) } else { _dollar_dollar := msg - var _t1360 *pb.Term + var _t1384 *pb.Term if hasProtoField(_dollar_dollar, "term") { - _t1360 = _dollar_dollar.GetTerm() + _t1384 = _dollar_dollar.GetTerm() } - deconstruct_result984 := _t1360 - if deconstruct_result984 != nil { - unwrapped985 := deconstruct_result984 - p.pretty_term(unwrapped985) + deconstruct_result996 := _t1384 + if deconstruct_result996 != nil { + unwrapped997 := deconstruct_result996 + p.pretty_term(unwrapped997) } else { panic(ParseError{msg: "No matching rule for rel_term"}) } @@ -2407,41 +2411,41 @@ func (p *PrettyPrinter) pretty_rel_term(msg *pb.RelTerm) interface{} { } func (p *PrettyPrinter) pretty_specialized_value(msg *pb.Value) interface{} { - flat990 := p.tryFlat(msg, func() { p.pretty_specialized_value(msg) }) - if flat990 != nil { - p.write(*flat990) + flat1002 := p.tryFlat(msg, func() { p.pretty_specialized_value(msg) }) + if flat1002 != nil { + p.write(*flat1002) return nil } else { - fields989 := msg + fields1001 := msg p.write("#") - p.pretty_value(fields989) + p.pretty_value(fields1001) } return nil } func (p *PrettyPrinter) pretty_rel_atom(msg *pb.RelAtom) interface{} { - flat997 := p.tryFlat(msg, func() { p.pretty_rel_atom(msg) }) - if flat997 != nil { - p.write(*flat997) + flat1009 := p.tryFlat(msg, func() { p.pretty_rel_atom(msg) }) + if flat1009 != nil { + p.write(*flat1009) return nil } else { _dollar_dollar := msg - fields991 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields992 := fields991 + fields1003 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1004 := fields1003 p.write("(") p.write("relatom") p.indentSexp() p.newline() - field993 := unwrapped_fields992[0].(string) - p.pretty_name(field993) - field994 := unwrapped_fields992[1].([]*pb.RelTerm) - if !(len(field994) == 0) { + field1005 := unwrapped_fields1004[0].(string) + p.pretty_name(field1005) + field1006 := unwrapped_fields1004[1].([]*pb.RelTerm) + if !(len(field1006) == 0) { p.newline() - for i996, elem995 := range field994 { - if (i996 > 0) { + for i1008, elem1007 := range field1006 { + if (i1008 > 0) { p.newline() } - p.pretty_rel_term(elem995) + p.pretty_rel_term(elem1007) } } p.dedent() @@ -2451,23 +2455,23 @@ func (p *PrettyPrinter) pretty_rel_atom(msg *pb.RelAtom) interface{} { } func (p *PrettyPrinter) pretty_cast(msg *pb.Cast) interface{} { - flat1002 := p.tryFlat(msg, func() { p.pretty_cast(msg) }) - if flat1002 != nil { - p.write(*flat1002) + flat1014 := p.tryFlat(msg, func() { p.pretty_cast(msg) }) + if flat1014 != nil { + p.write(*flat1014) return nil } else { _dollar_dollar := msg - fields998 := []interface{}{_dollar_dollar.GetInput(), _dollar_dollar.GetResult()} - unwrapped_fields999 := fields998 + fields1010 := []interface{}{_dollar_dollar.GetInput(), _dollar_dollar.GetResult()} + unwrapped_fields1011 := fields1010 p.write("(") p.write("cast") p.indentSexp() p.newline() - field1000 := unwrapped_fields999[0].(*pb.Term) - p.pretty_term(field1000) + field1012 := unwrapped_fields1011[0].(*pb.Term) + p.pretty_term(field1012) p.newline() - field1001 := unwrapped_fields999[1].(*pb.Term) - p.pretty_term(field1001) + field1013 := unwrapped_fields1011[1].(*pb.Term) + p.pretty_term(field1013) p.dedent() p.write(")") } @@ -2475,22 +2479,22 @@ func (p *PrettyPrinter) pretty_cast(msg *pb.Cast) interface{} { } func (p *PrettyPrinter) pretty_attrs(msg []*pb.Attribute) interface{} { - flat1006 := p.tryFlat(msg, func() { p.pretty_attrs(msg) }) - if flat1006 != nil { - p.write(*flat1006) + flat1018 := p.tryFlat(msg, func() { p.pretty_attrs(msg) }) + if flat1018 != nil { + p.write(*flat1018) return nil } else { - fields1003 := msg + fields1015 := msg p.write("(") p.write("attrs") p.indentSexp() - if !(len(fields1003) == 0) { + if !(len(fields1015) == 0) { p.newline() - for i1005, elem1004 := range fields1003 { - if (i1005 > 0) { + for i1017, elem1016 := range fields1015 { + if (i1017 > 0) { p.newline() } - p.pretty_attribute(elem1004) + p.pretty_attribute(elem1016) } } p.dedent() @@ -2500,28 +2504,28 @@ func (p *PrettyPrinter) pretty_attrs(msg []*pb.Attribute) interface{} { } func (p *PrettyPrinter) pretty_attribute(msg *pb.Attribute) interface{} { - flat1013 := p.tryFlat(msg, func() { p.pretty_attribute(msg) }) - if flat1013 != nil { - p.write(*flat1013) + flat1025 := p.tryFlat(msg, func() { p.pretty_attribute(msg) }) + if flat1025 != nil { + p.write(*flat1025) return nil } else { _dollar_dollar := msg - fields1007 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs()} - unwrapped_fields1008 := fields1007 + fields1019 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs()} + unwrapped_fields1020 := fields1019 p.write("(") p.write("attribute") p.indentSexp() p.newline() - field1009 := unwrapped_fields1008[0].(string) - p.pretty_name(field1009) - field1010 := unwrapped_fields1008[1].([]*pb.Value) - if !(len(field1010) == 0) { + field1021 := unwrapped_fields1020[0].(string) + p.pretty_name(field1021) + field1022 := unwrapped_fields1020[1].([]*pb.Value) + if !(len(field1022) == 0) { p.newline() - for i1012, elem1011 := range field1010 { - if (i1012 > 0) { + for i1024, elem1023 := range field1022 { + if (i1024 > 0) { p.newline() } - p.pretty_value(elem1011) + p.pretty_value(elem1023) } } p.dedent() @@ -2531,30 +2535,30 @@ func (p *PrettyPrinter) pretty_attribute(msg *pb.Attribute) interface{} { } func (p *PrettyPrinter) pretty_algorithm(msg *pb.Algorithm) interface{} { - flat1020 := p.tryFlat(msg, func() { p.pretty_algorithm(msg) }) - if flat1020 != nil { - p.write(*flat1020) + flat1032 := p.tryFlat(msg, func() { p.pretty_algorithm(msg) }) + if flat1032 != nil { + p.write(*flat1032) return nil } else { _dollar_dollar := msg - fields1014 := []interface{}{_dollar_dollar.GetGlobal(), _dollar_dollar.GetBody()} - unwrapped_fields1015 := fields1014 + fields1026 := []interface{}{_dollar_dollar.GetGlobal(), _dollar_dollar.GetBody()} + unwrapped_fields1027 := fields1026 p.write("(") p.write("algorithm") p.indentSexp() - field1016 := unwrapped_fields1015[0].([]*pb.RelationId) - if !(len(field1016) == 0) { + field1028 := unwrapped_fields1027[0].([]*pb.RelationId) + if !(len(field1028) == 0) { p.newline() - for i1018, elem1017 := range field1016 { - if (i1018 > 0) { + for i1030, elem1029 := range field1028 { + if (i1030 > 0) { p.newline() } - p.pretty_relation_id(elem1017) + p.pretty_relation_id(elem1029) } } p.newline() - field1019 := unwrapped_fields1015[1].(*pb.Script) - p.pretty_script(field1019) + field1031 := unwrapped_fields1027[1].(*pb.Script) + p.pretty_script(field1031) p.dedent() p.write(")") } @@ -2562,24 +2566,24 @@ func (p *PrettyPrinter) pretty_algorithm(msg *pb.Algorithm) interface{} { } func (p *PrettyPrinter) pretty_script(msg *pb.Script) interface{} { - flat1025 := p.tryFlat(msg, func() { p.pretty_script(msg) }) - if flat1025 != nil { - p.write(*flat1025) + flat1037 := p.tryFlat(msg, func() { p.pretty_script(msg) }) + if flat1037 != nil { + p.write(*flat1037) return nil } else { _dollar_dollar := msg - fields1021 := _dollar_dollar.GetConstructs() - unwrapped_fields1022 := fields1021 + fields1033 := _dollar_dollar.GetConstructs() + unwrapped_fields1034 := fields1033 p.write("(") p.write("script") p.indentSexp() - if !(len(unwrapped_fields1022) == 0) { + if !(len(unwrapped_fields1034) == 0) { p.newline() - for i1024, elem1023 := range unwrapped_fields1022 { - if (i1024 > 0) { + for i1036, elem1035 := range unwrapped_fields1034 { + if (i1036 > 0) { p.newline() } - p.pretty_construct(elem1023) + p.pretty_construct(elem1035) } } p.dedent() @@ -2589,30 +2593,30 @@ func (p *PrettyPrinter) pretty_script(msg *pb.Script) interface{} { } func (p *PrettyPrinter) pretty_construct(msg *pb.Construct) interface{} { - flat1030 := p.tryFlat(msg, func() { p.pretty_construct(msg) }) - if flat1030 != nil { - p.write(*flat1030) + flat1042 := p.tryFlat(msg, func() { p.pretty_construct(msg) }) + if flat1042 != nil { + p.write(*flat1042) return nil } else { _dollar_dollar := msg - var _t1361 *pb.Loop + var _t1385 *pb.Loop if hasProtoField(_dollar_dollar, "loop") { - _t1361 = _dollar_dollar.GetLoop() + _t1385 = _dollar_dollar.GetLoop() } - deconstruct_result1028 := _t1361 - if deconstruct_result1028 != nil { - unwrapped1029 := deconstruct_result1028 - p.pretty_loop(unwrapped1029) + deconstruct_result1040 := _t1385 + if deconstruct_result1040 != nil { + unwrapped1041 := deconstruct_result1040 + p.pretty_loop(unwrapped1041) } else { _dollar_dollar := msg - var _t1362 *pb.Instruction + var _t1386 *pb.Instruction if hasProtoField(_dollar_dollar, "instruction") { - _t1362 = _dollar_dollar.GetInstruction() + _t1386 = _dollar_dollar.GetInstruction() } - deconstruct_result1026 := _t1362 - if deconstruct_result1026 != nil { - unwrapped1027 := deconstruct_result1026 - p.pretty_instruction(unwrapped1027) + deconstruct_result1038 := _t1386 + if deconstruct_result1038 != nil { + unwrapped1039 := deconstruct_result1038 + p.pretty_instruction(unwrapped1039) } else { panic(ParseError{msg: "No matching rule for construct"}) } @@ -2622,23 +2626,23 @@ func (p *PrettyPrinter) pretty_construct(msg *pb.Construct) interface{} { } func (p *PrettyPrinter) pretty_loop(msg *pb.Loop) interface{} { - flat1035 := p.tryFlat(msg, func() { p.pretty_loop(msg) }) - if flat1035 != nil { - p.write(*flat1035) + flat1047 := p.tryFlat(msg, func() { p.pretty_loop(msg) }) + if flat1047 != nil { + p.write(*flat1047) return nil } else { _dollar_dollar := msg - fields1031 := []interface{}{_dollar_dollar.GetInit(), _dollar_dollar.GetBody()} - unwrapped_fields1032 := fields1031 + fields1043 := []interface{}{_dollar_dollar.GetInit(), _dollar_dollar.GetBody()} + unwrapped_fields1044 := fields1043 p.write("(") p.write("loop") p.indentSexp() p.newline() - field1033 := unwrapped_fields1032[0].([]*pb.Instruction) - p.pretty_init(field1033) + field1045 := unwrapped_fields1044[0].([]*pb.Instruction) + p.pretty_init(field1045) p.newline() - field1034 := unwrapped_fields1032[1].(*pb.Script) - p.pretty_script(field1034) + field1046 := unwrapped_fields1044[1].(*pb.Script) + p.pretty_script(field1046) p.dedent() p.write(")") } @@ -2646,22 +2650,22 @@ func (p *PrettyPrinter) pretty_loop(msg *pb.Loop) interface{} { } func (p *PrettyPrinter) pretty_init(msg []*pb.Instruction) interface{} { - flat1039 := p.tryFlat(msg, func() { p.pretty_init(msg) }) - if flat1039 != nil { - p.write(*flat1039) + flat1051 := p.tryFlat(msg, func() { p.pretty_init(msg) }) + if flat1051 != nil { + p.write(*flat1051) return nil } else { - fields1036 := msg + fields1048 := msg p.write("(") p.write("init") p.indentSexp() - if !(len(fields1036) == 0) { + if !(len(fields1048) == 0) { p.newline() - for i1038, elem1037 := range fields1036 { - if (i1038 > 0) { + for i1050, elem1049 := range fields1048 { + if (i1050 > 0) { p.newline() } - p.pretty_instruction(elem1037) + p.pretty_instruction(elem1049) } } p.dedent() @@ -2671,60 +2675,60 @@ func (p *PrettyPrinter) pretty_init(msg []*pb.Instruction) interface{} { } func (p *PrettyPrinter) pretty_instruction(msg *pb.Instruction) interface{} { - flat1050 := p.tryFlat(msg, func() { p.pretty_instruction(msg) }) - if flat1050 != nil { - p.write(*flat1050) + flat1062 := p.tryFlat(msg, func() { p.pretty_instruction(msg) }) + if flat1062 != nil { + p.write(*flat1062) return nil } else { _dollar_dollar := msg - var _t1363 *pb.Assign + var _t1387 *pb.Assign if hasProtoField(_dollar_dollar, "assign") { - _t1363 = _dollar_dollar.GetAssign() + _t1387 = _dollar_dollar.GetAssign() } - deconstruct_result1048 := _t1363 - if deconstruct_result1048 != nil { - unwrapped1049 := deconstruct_result1048 - p.pretty_assign(unwrapped1049) + deconstruct_result1060 := _t1387 + if deconstruct_result1060 != nil { + unwrapped1061 := deconstruct_result1060 + p.pretty_assign(unwrapped1061) } else { _dollar_dollar := msg - var _t1364 *pb.Upsert + var _t1388 *pb.Upsert if hasProtoField(_dollar_dollar, "upsert") { - _t1364 = _dollar_dollar.GetUpsert() + _t1388 = _dollar_dollar.GetUpsert() } - deconstruct_result1046 := _t1364 - if deconstruct_result1046 != nil { - unwrapped1047 := deconstruct_result1046 - p.pretty_upsert(unwrapped1047) + deconstruct_result1058 := _t1388 + if deconstruct_result1058 != nil { + unwrapped1059 := deconstruct_result1058 + p.pretty_upsert(unwrapped1059) } else { _dollar_dollar := msg - var _t1365 *pb.Break + var _t1389 *pb.Break if hasProtoField(_dollar_dollar, "break") { - _t1365 = _dollar_dollar.GetBreak() + _t1389 = _dollar_dollar.GetBreak() } - deconstruct_result1044 := _t1365 - if deconstruct_result1044 != nil { - unwrapped1045 := deconstruct_result1044 - p.pretty_break(unwrapped1045) + deconstruct_result1056 := _t1389 + if deconstruct_result1056 != nil { + unwrapped1057 := deconstruct_result1056 + p.pretty_break(unwrapped1057) } else { _dollar_dollar := msg - var _t1366 *pb.MonoidDef + var _t1390 *pb.MonoidDef if hasProtoField(_dollar_dollar, "monoid_def") { - _t1366 = _dollar_dollar.GetMonoidDef() + _t1390 = _dollar_dollar.GetMonoidDef() } - deconstruct_result1042 := _t1366 - if deconstruct_result1042 != nil { - unwrapped1043 := deconstruct_result1042 - p.pretty_monoid_def(unwrapped1043) + deconstruct_result1054 := _t1390 + if deconstruct_result1054 != nil { + unwrapped1055 := deconstruct_result1054 + p.pretty_monoid_def(unwrapped1055) } else { _dollar_dollar := msg - var _t1367 *pb.MonusDef + var _t1391 *pb.MonusDef if hasProtoField(_dollar_dollar, "monus_def") { - _t1367 = _dollar_dollar.GetMonusDef() + _t1391 = _dollar_dollar.GetMonusDef() } - deconstruct_result1040 := _t1367 - if deconstruct_result1040 != nil { - unwrapped1041 := deconstruct_result1040 - p.pretty_monus_def(unwrapped1041) + deconstruct_result1052 := _t1391 + if deconstruct_result1052 != nil { + unwrapped1053 := deconstruct_result1052 + p.pretty_monus_def(unwrapped1053) } else { panic(ParseError{msg: "No matching rule for instruction"}) } @@ -2737,32 +2741,32 @@ func (p *PrettyPrinter) pretty_instruction(msg *pb.Instruction) interface{} { } func (p *PrettyPrinter) pretty_assign(msg *pb.Assign) interface{} { - flat1057 := p.tryFlat(msg, func() { p.pretty_assign(msg) }) - if flat1057 != nil { - p.write(*flat1057) + flat1069 := p.tryFlat(msg, func() { p.pretty_assign(msg) }) + if flat1069 != nil { + p.write(*flat1069) return nil } else { _dollar_dollar := msg - var _t1368 []*pb.Attribute + var _t1392 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1368 = _dollar_dollar.GetAttrs() + _t1392 = _dollar_dollar.GetAttrs() } - fields1051 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1368} - unwrapped_fields1052 := fields1051 + fields1063 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1392} + unwrapped_fields1064 := fields1063 p.write("(") p.write("assign") p.indentSexp() p.newline() - field1053 := unwrapped_fields1052[0].(*pb.RelationId) - p.pretty_relation_id(field1053) + field1065 := unwrapped_fields1064[0].(*pb.RelationId) + p.pretty_relation_id(field1065) p.newline() - field1054 := unwrapped_fields1052[1].(*pb.Abstraction) - p.pretty_abstraction(field1054) - field1055 := unwrapped_fields1052[2].([]*pb.Attribute) - if field1055 != nil { + field1066 := unwrapped_fields1064[1].(*pb.Abstraction) + p.pretty_abstraction(field1066) + field1067 := unwrapped_fields1064[2].([]*pb.Attribute) + if field1067 != nil { p.newline() - opt_val1056 := field1055 - p.pretty_attrs(opt_val1056) + opt_val1068 := field1067 + p.pretty_attrs(opt_val1068) } p.dedent() p.write(")") @@ -2771,32 +2775,32 @@ func (p *PrettyPrinter) pretty_assign(msg *pb.Assign) interface{} { } func (p *PrettyPrinter) pretty_upsert(msg *pb.Upsert) interface{} { - flat1064 := p.tryFlat(msg, func() { p.pretty_upsert(msg) }) - if flat1064 != nil { - p.write(*flat1064) + flat1076 := p.tryFlat(msg, func() { p.pretty_upsert(msg) }) + if flat1076 != nil { + p.write(*flat1076) return nil } else { _dollar_dollar := msg - var _t1369 []*pb.Attribute + var _t1393 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1369 = _dollar_dollar.GetAttrs() + _t1393 = _dollar_dollar.GetAttrs() } - fields1058 := []interface{}{_dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1369} - unwrapped_fields1059 := fields1058 + fields1070 := []interface{}{_dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1393} + unwrapped_fields1071 := fields1070 p.write("(") p.write("upsert") p.indentSexp() p.newline() - field1060 := unwrapped_fields1059[0].(*pb.RelationId) - p.pretty_relation_id(field1060) + field1072 := unwrapped_fields1071[0].(*pb.RelationId) + p.pretty_relation_id(field1072) p.newline() - field1061 := unwrapped_fields1059[1].([]interface{}) - p.pretty_abstraction_with_arity(field1061) - field1062 := unwrapped_fields1059[2].([]*pb.Attribute) - if field1062 != nil { + field1073 := unwrapped_fields1071[1].([]interface{}) + p.pretty_abstraction_with_arity(field1073) + field1074 := unwrapped_fields1071[2].([]*pb.Attribute) + if field1074 != nil { p.newline() - opt_val1063 := field1062 - p.pretty_attrs(opt_val1063) + opt_val1075 := field1074 + p.pretty_attrs(opt_val1075) } p.dedent() p.write(")") @@ -2805,22 +2809,22 @@ func (p *PrettyPrinter) pretty_upsert(msg *pb.Upsert) interface{} { } func (p *PrettyPrinter) pretty_abstraction_with_arity(msg []interface{}) interface{} { - flat1069 := p.tryFlat(msg, func() { p.pretty_abstraction_with_arity(msg) }) - if flat1069 != nil { - p.write(*flat1069) + flat1081 := p.tryFlat(msg, func() { p.pretty_abstraction_with_arity(msg) }) + if flat1081 != nil { + p.write(*flat1081) return nil } else { _dollar_dollar := msg - _t1370 := p.deconstruct_bindings_with_arity(_dollar_dollar[0].(*pb.Abstraction), _dollar_dollar[1].(int64)) - fields1065 := []interface{}{_t1370, _dollar_dollar[0].(*pb.Abstraction).GetValue()} - unwrapped_fields1066 := fields1065 + _t1394 := p.deconstruct_bindings_with_arity(_dollar_dollar[0].(*pb.Abstraction), _dollar_dollar[1].(int64)) + fields1077 := []interface{}{_t1394, _dollar_dollar[0].(*pb.Abstraction).GetValue()} + unwrapped_fields1078 := fields1077 p.write("(") p.indent() - field1067 := unwrapped_fields1066[0].([]interface{}) - p.pretty_bindings(field1067) + field1079 := unwrapped_fields1078[0].([]interface{}) + p.pretty_bindings(field1079) p.newline() - field1068 := unwrapped_fields1066[1].(*pb.Formula) - p.pretty_formula(field1068) + field1080 := unwrapped_fields1078[1].(*pb.Formula) + p.pretty_formula(field1080) p.dedent() p.write(")") } @@ -2828,32 +2832,32 @@ func (p *PrettyPrinter) pretty_abstraction_with_arity(msg []interface{}) interfa } func (p *PrettyPrinter) pretty_break(msg *pb.Break) interface{} { - flat1076 := p.tryFlat(msg, func() { p.pretty_break(msg) }) - if flat1076 != nil { - p.write(*flat1076) + flat1088 := p.tryFlat(msg, func() { p.pretty_break(msg) }) + if flat1088 != nil { + p.write(*flat1088) return nil } else { _dollar_dollar := msg - var _t1371 []*pb.Attribute + var _t1395 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1371 = _dollar_dollar.GetAttrs() + _t1395 = _dollar_dollar.GetAttrs() } - fields1070 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1371} - unwrapped_fields1071 := fields1070 + fields1082 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1395} + unwrapped_fields1083 := fields1082 p.write("(") p.write("break") p.indentSexp() p.newline() - field1072 := unwrapped_fields1071[0].(*pb.RelationId) - p.pretty_relation_id(field1072) + field1084 := unwrapped_fields1083[0].(*pb.RelationId) + p.pretty_relation_id(field1084) p.newline() - field1073 := unwrapped_fields1071[1].(*pb.Abstraction) - p.pretty_abstraction(field1073) - field1074 := unwrapped_fields1071[2].([]*pb.Attribute) - if field1074 != nil { + field1085 := unwrapped_fields1083[1].(*pb.Abstraction) + p.pretty_abstraction(field1085) + field1086 := unwrapped_fields1083[2].([]*pb.Attribute) + if field1086 != nil { p.newline() - opt_val1075 := field1074 - p.pretty_attrs(opt_val1075) + opt_val1087 := field1086 + p.pretty_attrs(opt_val1087) } p.dedent() p.write(")") @@ -2862,35 +2866,35 @@ func (p *PrettyPrinter) pretty_break(msg *pb.Break) interface{} { } func (p *PrettyPrinter) pretty_monoid_def(msg *pb.MonoidDef) interface{} { - flat1084 := p.tryFlat(msg, func() { p.pretty_monoid_def(msg) }) - if flat1084 != nil { - p.write(*flat1084) + flat1096 := p.tryFlat(msg, func() { p.pretty_monoid_def(msg) }) + if flat1096 != nil { + p.write(*flat1096) return nil } else { _dollar_dollar := msg - var _t1372 []*pb.Attribute + var _t1396 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1372 = _dollar_dollar.GetAttrs() + _t1396 = _dollar_dollar.GetAttrs() } - fields1077 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1372} - unwrapped_fields1078 := fields1077 + fields1089 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1396} + unwrapped_fields1090 := fields1089 p.write("(") p.write("monoid") p.indentSexp() p.newline() - field1079 := unwrapped_fields1078[0].(*pb.Monoid) - p.pretty_monoid(field1079) + field1091 := unwrapped_fields1090[0].(*pb.Monoid) + p.pretty_monoid(field1091) p.newline() - field1080 := unwrapped_fields1078[1].(*pb.RelationId) - p.pretty_relation_id(field1080) + field1092 := unwrapped_fields1090[1].(*pb.RelationId) + p.pretty_relation_id(field1092) p.newline() - field1081 := unwrapped_fields1078[2].([]interface{}) - p.pretty_abstraction_with_arity(field1081) - field1082 := unwrapped_fields1078[3].([]*pb.Attribute) - if field1082 != nil { + field1093 := unwrapped_fields1090[2].([]interface{}) + p.pretty_abstraction_with_arity(field1093) + field1094 := unwrapped_fields1090[3].([]*pb.Attribute) + if field1094 != nil { p.newline() - opt_val1083 := field1082 - p.pretty_attrs(opt_val1083) + opt_val1095 := field1094 + p.pretty_attrs(opt_val1095) } p.dedent() p.write(")") @@ -2899,50 +2903,50 @@ func (p *PrettyPrinter) pretty_monoid_def(msg *pb.MonoidDef) interface{} { } func (p *PrettyPrinter) pretty_monoid(msg *pb.Monoid) interface{} { - flat1093 := p.tryFlat(msg, func() { p.pretty_monoid(msg) }) - if flat1093 != nil { - p.write(*flat1093) + flat1105 := p.tryFlat(msg, func() { p.pretty_monoid(msg) }) + if flat1105 != nil { + p.write(*flat1105) return nil } else { _dollar_dollar := msg - var _t1373 *pb.OrMonoid + var _t1397 *pb.OrMonoid if hasProtoField(_dollar_dollar, "or_monoid") { - _t1373 = _dollar_dollar.GetOrMonoid() + _t1397 = _dollar_dollar.GetOrMonoid() } - deconstruct_result1091 := _t1373 - if deconstruct_result1091 != nil { - unwrapped1092 := deconstruct_result1091 - p.pretty_or_monoid(unwrapped1092) + deconstruct_result1103 := _t1397 + if deconstruct_result1103 != nil { + unwrapped1104 := deconstruct_result1103 + p.pretty_or_monoid(unwrapped1104) } else { _dollar_dollar := msg - var _t1374 *pb.MinMonoid + var _t1398 *pb.MinMonoid if hasProtoField(_dollar_dollar, "min_monoid") { - _t1374 = _dollar_dollar.GetMinMonoid() + _t1398 = _dollar_dollar.GetMinMonoid() } - deconstruct_result1089 := _t1374 - if deconstruct_result1089 != nil { - unwrapped1090 := deconstruct_result1089 - p.pretty_min_monoid(unwrapped1090) + deconstruct_result1101 := _t1398 + if deconstruct_result1101 != nil { + unwrapped1102 := deconstruct_result1101 + p.pretty_min_monoid(unwrapped1102) } else { _dollar_dollar := msg - var _t1375 *pb.MaxMonoid + var _t1399 *pb.MaxMonoid if hasProtoField(_dollar_dollar, "max_monoid") { - _t1375 = _dollar_dollar.GetMaxMonoid() + _t1399 = _dollar_dollar.GetMaxMonoid() } - deconstruct_result1087 := _t1375 - if deconstruct_result1087 != nil { - unwrapped1088 := deconstruct_result1087 - p.pretty_max_monoid(unwrapped1088) + deconstruct_result1099 := _t1399 + if deconstruct_result1099 != nil { + unwrapped1100 := deconstruct_result1099 + p.pretty_max_monoid(unwrapped1100) } else { _dollar_dollar := msg - var _t1376 *pb.SumMonoid + var _t1400 *pb.SumMonoid if hasProtoField(_dollar_dollar, "sum_monoid") { - _t1376 = _dollar_dollar.GetSumMonoid() + _t1400 = _dollar_dollar.GetSumMonoid() } - deconstruct_result1085 := _t1376 - if deconstruct_result1085 != nil { - unwrapped1086 := deconstruct_result1085 - p.pretty_sum_monoid(unwrapped1086) + deconstruct_result1097 := _t1400 + if deconstruct_result1097 != nil { + unwrapped1098 := deconstruct_result1097 + p.pretty_sum_monoid(unwrapped1098) } else { panic(ParseError{msg: "No matching rule for monoid"}) } @@ -2954,8 +2958,8 @@ func (p *PrettyPrinter) pretty_monoid(msg *pb.Monoid) interface{} { } func (p *PrettyPrinter) pretty_or_monoid(msg *pb.OrMonoid) interface{} { - fields1094 := msg - _ = fields1094 + fields1106 := msg + _ = fields1106 p.write("(") p.write("or") p.write(")") @@ -2963,19 +2967,19 @@ func (p *PrettyPrinter) pretty_or_monoid(msg *pb.OrMonoid) interface{} { } func (p *PrettyPrinter) pretty_min_monoid(msg *pb.MinMonoid) interface{} { - flat1097 := p.tryFlat(msg, func() { p.pretty_min_monoid(msg) }) - if flat1097 != nil { - p.write(*flat1097) + flat1109 := p.tryFlat(msg, func() { p.pretty_min_monoid(msg) }) + if flat1109 != nil { + p.write(*flat1109) return nil } else { _dollar_dollar := msg - fields1095 := _dollar_dollar.GetType() - unwrapped_fields1096 := fields1095 + fields1107 := _dollar_dollar.GetType() + unwrapped_fields1108 := fields1107 p.write("(") p.write("min") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1096) + p.pretty_type(unwrapped_fields1108) p.dedent() p.write(")") } @@ -2983,19 +2987,19 @@ func (p *PrettyPrinter) pretty_min_monoid(msg *pb.MinMonoid) interface{} { } func (p *PrettyPrinter) pretty_max_monoid(msg *pb.MaxMonoid) interface{} { - flat1100 := p.tryFlat(msg, func() { p.pretty_max_monoid(msg) }) - if flat1100 != nil { - p.write(*flat1100) + flat1112 := p.tryFlat(msg, func() { p.pretty_max_monoid(msg) }) + if flat1112 != nil { + p.write(*flat1112) return nil } else { _dollar_dollar := msg - fields1098 := _dollar_dollar.GetType() - unwrapped_fields1099 := fields1098 + fields1110 := _dollar_dollar.GetType() + unwrapped_fields1111 := fields1110 p.write("(") p.write("max") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1099) + p.pretty_type(unwrapped_fields1111) p.dedent() p.write(")") } @@ -3003,19 +3007,19 @@ func (p *PrettyPrinter) pretty_max_monoid(msg *pb.MaxMonoid) interface{} { } func (p *PrettyPrinter) pretty_sum_monoid(msg *pb.SumMonoid) interface{} { - flat1103 := p.tryFlat(msg, func() { p.pretty_sum_monoid(msg) }) - if flat1103 != nil { - p.write(*flat1103) + flat1115 := p.tryFlat(msg, func() { p.pretty_sum_monoid(msg) }) + if flat1115 != nil { + p.write(*flat1115) return nil } else { _dollar_dollar := msg - fields1101 := _dollar_dollar.GetType() - unwrapped_fields1102 := fields1101 + fields1113 := _dollar_dollar.GetType() + unwrapped_fields1114 := fields1113 p.write("(") p.write("sum") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1102) + p.pretty_type(unwrapped_fields1114) p.dedent() p.write(")") } @@ -3023,35 +3027,35 @@ func (p *PrettyPrinter) pretty_sum_monoid(msg *pb.SumMonoid) interface{} { } func (p *PrettyPrinter) pretty_monus_def(msg *pb.MonusDef) interface{} { - flat1111 := p.tryFlat(msg, func() { p.pretty_monus_def(msg) }) - if flat1111 != nil { - p.write(*flat1111) + flat1123 := p.tryFlat(msg, func() { p.pretty_monus_def(msg) }) + if flat1123 != nil { + p.write(*flat1123) return nil } else { _dollar_dollar := msg - var _t1377 []*pb.Attribute + var _t1401 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1377 = _dollar_dollar.GetAttrs() + _t1401 = _dollar_dollar.GetAttrs() } - fields1104 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1377} - unwrapped_fields1105 := fields1104 + fields1116 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1401} + unwrapped_fields1117 := fields1116 p.write("(") p.write("monus") p.indentSexp() p.newline() - field1106 := unwrapped_fields1105[0].(*pb.Monoid) - p.pretty_monoid(field1106) + field1118 := unwrapped_fields1117[0].(*pb.Monoid) + p.pretty_monoid(field1118) p.newline() - field1107 := unwrapped_fields1105[1].(*pb.RelationId) - p.pretty_relation_id(field1107) + field1119 := unwrapped_fields1117[1].(*pb.RelationId) + p.pretty_relation_id(field1119) p.newline() - field1108 := unwrapped_fields1105[2].([]interface{}) - p.pretty_abstraction_with_arity(field1108) - field1109 := unwrapped_fields1105[3].([]*pb.Attribute) - if field1109 != nil { + field1120 := unwrapped_fields1117[2].([]interface{}) + p.pretty_abstraction_with_arity(field1120) + field1121 := unwrapped_fields1117[3].([]*pb.Attribute) + if field1121 != nil { p.newline() - opt_val1110 := field1109 - p.pretty_attrs(opt_val1110) + opt_val1122 := field1121 + p.pretty_attrs(opt_val1122) } p.dedent() p.write(")") @@ -3060,29 +3064,29 @@ func (p *PrettyPrinter) pretty_monus_def(msg *pb.MonusDef) interface{} { } func (p *PrettyPrinter) pretty_constraint(msg *pb.Constraint) interface{} { - flat1118 := p.tryFlat(msg, func() { p.pretty_constraint(msg) }) - if flat1118 != nil { - p.write(*flat1118) + flat1130 := p.tryFlat(msg, func() { p.pretty_constraint(msg) }) + if flat1130 != nil { + p.write(*flat1130) return nil } else { _dollar_dollar := msg - fields1112 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetFunctionalDependency().GetGuard(), _dollar_dollar.GetFunctionalDependency().GetKeys(), _dollar_dollar.GetFunctionalDependency().GetValues()} - unwrapped_fields1113 := fields1112 + fields1124 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetFunctionalDependency().GetGuard(), _dollar_dollar.GetFunctionalDependency().GetKeys(), _dollar_dollar.GetFunctionalDependency().GetValues()} + unwrapped_fields1125 := fields1124 p.write("(") p.write("functional_dependency") p.indentSexp() p.newline() - field1114 := unwrapped_fields1113[0].(*pb.RelationId) - p.pretty_relation_id(field1114) + field1126 := unwrapped_fields1125[0].(*pb.RelationId) + p.pretty_relation_id(field1126) p.newline() - field1115 := unwrapped_fields1113[1].(*pb.Abstraction) - p.pretty_abstraction(field1115) + field1127 := unwrapped_fields1125[1].(*pb.Abstraction) + p.pretty_abstraction(field1127) p.newline() - field1116 := unwrapped_fields1113[2].([]*pb.Var) - p.pretty_functional_dependency_keys(field1116) + field1128 := unwrapped_fields1125[2].([]*pb.Var) + p.pretty_functional_dependency_keys(field1128) p.newline() - field1117 := unwrapped_fields1113[3].([]*pb.Var) - p.pretty_functional_dependency_values(field1117) + field1129 := unwrapped_fields1125[3].([]*pb.Var) + p.pretty_functional_dependency_values(field1129) p.dedent() p.write(")") } @@ -3090,22 +3094,22 @@ func (p *PrettyPrinter) pretty_constraint(msg *pb.Constraint) interface{} { } func (p *PrettyPrinter) pretty_functional_dependency_keys(msg []*pb.Var) interface{} { - flat1122 := p.tryFlat(msg, func() { p.pretty_functional_dependency_keys(msg) }) - if flat1122 != nil { - p.write(*flat1122) + flat1134 := p.tryFlat(msg, func() { p.pretty_functional_dependency_keys(msg) }) + if flat1134 != nil { + p.write(*flat1134) return nil } else { - fields1119 := msg + fields1131 := msg p.write("(") p.write("keys") p.indentSexp() - if !(len(fields1119) == 0) { + if !(len(fields1131) == 0) { p.newline() - for i1121, elem1120 := range fields1119 { - if (i1121 > 0) { + for i1133, elem1132 := range fields1131 { + if (i1133 > 0) { p.newline() } - p.pretty_var(elem1120) + p.pretty_var(elem1132) } } p.dedent() @@ -3115,22 +3119,22 @@ func (p *PrettyPrinter) pretty_functional_dependency_keys(msg []*pb.Var) interfa } func (p *PrettyPrinter) pretty_functional_dependency_values(msg []*pb.Var) interface{} { - flat1126 := p.tryFlat(msg, func() { p.pretty_functional_dependency_values(msg) }) - if flat1126 != nil { - p.write(*flat1126) + flat1138 := p.tryFlat(msg, func() { p.pretty_functional_dependency_values(msg) }) + if flat1138 != nil { + p.write(*flat1138) return nil } else { - fields1123 := msg + fields1135 := msg p.write("(") p.write("values") p.indentSexp() - if !(len(fields1123) == 0) { + if !(len(fields1135) == 0) { p.newline() - for i1125, elem1124 := range fields1123 { - if (i1125 > 0) { + for i1137, elem1136 := range fields1135 { + if (i1137 > 0) { p.newline() } - p.pretty_var(elem1124) + p.pretty_var(elem1136) } } p.dedent() @@ -3140,40 +3144,40 @@ func (p *PrettyPrinter) pretty_functional_dependency_values(msg []*pb.Var) inter } func (p *PrettyPrinter) pretty_data(msg *pb.Data) interface{} { - flat1133 := p.tryFlat(msg, func() { p.pretty_data(msg) }) - if flat1133 != nil { - p.write(*flat1133) + flat1145 := p.tryFlat(msg, func() { p.pretty_data(msg) }) + if flat1145 != nil { + p.write(*flat1145) return nil } else { _dollar_dollar := msg - var _t1378 *pb.EDB + var _t1402 *pb.EDB if hasProtoField(_dollar_dollar, "edb") { - _t1378 = _dollar_dollar.GetEdb() + _t1402 = _dollar_dollar.GetEdb() } - deconstruct_result1131 := _t1378 - if deconstruct_result1131 != nil { - unwrapped1132 := deconstruct_result1131 - p.pretty_edb(unwrapped1132) + deconstruct_result1143 := _t1402 + if deconstruct_result1143 != nil { + unwrapped1144 := deconstruct_result1143 + p.pretty_edb(unwrapped1144) } else { _dollar_dollar := msg - var _t1379 *pb.BeTreeRelation + var _t1403 *pb.BeTreeRelation if hasProtoField(_dollar_dollar, "betree_relation") { - _t1379 = _dollar_dollar.GetBetreeRelation() + _t1403 = _dollar_dollar.GetBetreeRelation() } - deconstruct_result1129 := _t1379 - if deconstruct_result1129 != nil { - unwrapped1130 := deconstruct_result1129 - p.pretty_betree_relation(unwrapped1130) + deconstruct_result1141 := _t1403 + if deconstruct_result1141 != nil { + unwrapped1142 := deconstruct_result1141 + p.pretty_betree_relation(unwrapped1142) } else { _dollar_dollar := msg - var _t1380 *pb.CSVData + var _t1404 *pb.CSVData if hasProtoField(_dollar_dollar, "csv_data") { - _t1380 = _dollar_dollar.GetCsvData() + _t1404 = _dollar_dollar.GetCsvData() } - deconstruct_result1127 := _t1380 - if deconstruct_result1127 != nil { - unwrapped1128 := deconstruct_result1127 - p.pretty_csv_data(unwrapped1128) + deconstruct_result1139 := _t1404 + if deconstruct_result1139 != nil { + unwrapped1140 := deconstruct_result1139 + p.pretty_csv_data(unwrapped1140) } else { panic(ParseError{msg: "No matching rule for data"}) } @@ -3184,26 +3188,26 @@ func (p *PrettyPrinter) pretty_data(msg *pb.Data) interface{} { } func (p *PrettyPrinter) pretty_edb(msg *pb.EDB) interface{} { - flat1139 := p.tryFlat(msg, func() { p.pretty_edb(msg) }) - if flat1139 != nil { - p.write(*flat1139) + flat1151 := p.tryFlat(msg, func() { p.pretty_edb(msg) }) + if flat1151 != nil { + p.write(*flat1151) return nil } else { _dollar_dollar := msg - fields1134 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetPath(), _dollar_dollar.GetTypes()} - unwrapped_fields1135 := fields1134 + fields1146 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetPath(), _dollar_dollar.GetTypes()} + unwrapped_fields1147 := fields1146 p.write("(") p.write("edb") p.indentSexp() p.newline() - field1136 := unwrapped_fields1135[0].(*pb.RelationId) - p.pretty_relation_id(field1136) + field1148 := unwrapped_fields1147[0].(*pb.RelationId) + p.pretty_relation_id(field1148) p.newline() - field1137 := unwrapped_fields1135[1].([]string) - p.pretty_edb_path(field1137) + field1149 := unwrapped_fields1147[1].([]string) + p.pretty_edb_path(field1149) p.newline() - field1138 := unwrapped_fields1135[2].([]*pb.Type) - p.pretty_edb_types(field1138) + field1150 := unwrapped_fields1147[2].([]*pb.Type) + p.pretty_edb_types(field1150) p.dedent() p.write(")") } @@ -3211,19 +3215,19 @@ func (p *PrettyPrinter) pretty_edb(msg *pb.EDB) interface{} { } func (p *PrettyPrinter) pretty_edb_path(msg []string) interface{} { - flat1143 := p.tryFlat(msg, func() { p.pretty_edb_path(msg) }) - if flat1143 != nil { - p.write(*flat1143) + flat1155 := p.tryFlat(msg, func() { p.pretty_edb_path(msg) }) + if flat1155 != nil { + p.write(*flat1155) return nil } else { - fields1140 := msg + fields1152 := msg p.write("[") p.indent() - for i1142, elem1141 := range fields1140 { - if (i1142 > 0) { + for i1154, elem1153 := range fields1152 { + if (i1154 > 0) { p.newline() } - p.write(p.formatStringValue(elem1141)) + p.write(p.formatStringValue(elem1153)) } p.dedent() p.write("]") @@ -3232,19 +3236,19 @@ func (p *PrettyPrinter) pretty_edb_path(msg []string) interface{} { } func (p *PrettyPrinter) pretty_edb_types(msg []*pb.Type) interface{} { - flat1147 := p.tryFlat(msg, func() { p.pretty_edb_types(msg) }) - if flat1147 != nil { - p.write(*flat1147) + flat1159 := p.tryFlat(msg, func() { p.pretty_edb_types(msg) }) + if flat1159 != nil { + p.write(*flat1159) return nil } else { - fields1144 := msg + fields1156 := msg p.write("[") p.indent() - for i1146, elem1145 := range fields1144 { - if (i1146 > 0) { + for i1158, elem1157 := range fields1156 { + if (i1158 > 0) { p.newline() } - p.pretty_type(elem1145) + p.pretty_type(elem1157) } p.dedent() p.write("]") @@ -3253,23 +3257,23 @@ func (p *PrettyPrinter) pretty_edb_types(msg []*pb.Type) interface{} { } func (p *PrettyPrinter) pretty_betree_relation(msg *pb.BeTreeRelation) interface{} { - flat1152 := p.tryFlat(msg, func() { p.pretty_betree_relation(msg) }) - if flat1152 != nil { - p.write(*flat1152) + flat1164 := p.tryFlat(msg, func() { p.pretty_betree_relation(msg) }) + if flat1164 != nil { + p.write(*flat1164) return nil } else { _dollar_dollar := msg - fields1148 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationInfo()} - unwrapped_fields1149 := fields1148 + fields1160 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationInfo()} + unwrapped_fields1161 := fields1160 p.write("(") p.write("betree_relation") p.indentSexp() p.newline() - field1150 := unwrapped_fields1149[0].(*pb.RelationId) - p.pretty_relation_id(field1150) + field1162 := unwrapped_fields1161[0].(*pb.RelationId) + p.pretty_relation_id(field1162) p.newline() - field1151 := unwrapped_fields1149[1].(*pb.BeTreeInfo) - p.pretty_betree_info(field1151) + field1163 := unwrapped_fields1161[1].(*pb.BeTreeInfo) + p.pretty_betree_info(field1163) p.dedent() p.write(")") } @@ -3277,27 +3281,27 @@ func (p *PrettyPrinter) pretty_betree_relation(msg *pb.BeTreeRelation) interface } func (p *PrettyPrinter) pretty_betree_info(msg *pb.BeTreeInfo) interface{} { - flat1158 := p.tryFlat(msg, func() { p.pretty_betree_info(msg) }) - if flat1158 != nil { - p.write(*flat1158) + flat1170 := p.tryFlat(msg, func() { p.pretty_betree_info(msg) }) + if flat1170 != nil { + p.write(*flat1170) return nil } else { _dollar_dollar := msg - _t1381 := p.deconstruct_betree_info_config(_dollar_dollar) - fields1153 := []interface{}{_dollar_dollar.GetKeyTypes(), _dollar_dollar.GetValueTypes(), _t1381} - unwrapped_fields1154 := fields1153 + _t1405 := p.deconstruct_betree_info_config(_dollar_dollar) + fields1165 := []interface{}{_dollar_dollar.GetKeyTypes(), _dollar_dollar.GetValueTypes(), _t1405} + unwrapped_fields1166 := fields1165 p.write("(") p.write("betree_info") p.indentSexp() p.newline() - field1155 := unwrapped_fields1154[0].([]*pb.Type) - p.pretty_betree_info_key_types(field1155) + field1167 := unwrapped_fields1166[0].([]*pb.Type) + p.pretty_betree_info_key_types(field1167) p.newline() - field1156 := unwrapped_fields1154[1].([]*pb.Type) - p.pretty_betree_info_value_types(field1156) + field1168 := unwrapped_fields1166[1].([]*pb.Type) + p.pretty_betree_info_value_types(field1168) p.newline() - field1157 := unwrapped_fields1154[2].([][]interface{}) - p.pretty_config_dict(field1157) + field1169 := unwrapped_fields1166[2].([][]interface{}) + p.pretty_config_dict(field1169) p.dedent() p.write(")") } @@ -3305,22 +3309,22 @@ func (p *PrettyPrinter) pretty_betree_info(msg *pb.BeTreeInfo) interface{} { } func (p *PrettyPrinter) pretty_betree_info_key_types(msg []*pb.Type) interface{} { - flat1162 := p.tryFlat(msg, func() { p.pretty_betree_info_key_types(msg) }) - if flat1162 != nil { - p.write(*flat1162) + flat1174 := p.tryFlat(msg, func() { p.pretty_betree_info_key_types(msg) }) + if flat1174 != nil { + p.write(*flat1174) return nil } else { - fields1159 := msg + fields1171 := msg p.write("(") p.write("key_types") p.indentSexp() - if !(len(fields1159) == 0) { + if !(len(fields1171) == 0) { p.newline() - for i1161, elem1160 := range fields1159 { - if (i1161 > 0) { + for i1173, elem1172 := range fields1171 { + if (i1173 > 0) { p.newline() } - p.pretty_type(elem1160) + p.pretty_type(elem1172) } } p.dedent() @@ -3330,22 +3334,22 @@ func (p *PrettyPrinter) pretty_betree_info_key_types(msg []*pb.Type) interface{} } func (p *PrettyPrinter) pretty_betree_info_value_types(msg []*pb.Type) interface{} { - flat1166 := p.tryFlat(msg, func() { p.pretty_betree_info_value_types(msg) }) - if flat1166 != nil { - p.write(*flat1166) + flat1178 := p.tryFlat(msg, func() { p.pretty_betree_info_value_types(msg) }) + if flat1178 != nil { + p.write(*flat1178) return nil } else { - fields1163 := msg + fields1175 := msg p.write("(") p.write("value_types") p.indentSexp() - if !(len(fields1163) == 0) { + if !(len(fields1175) == 0) { p.newline() - for i1165, elem1164 := range fields1163 { - if (i1165 > 0) { + for i1177, elem1176 := range fields1175 { + if (i1177 > 0) { p.newline() } - p.pretty_type(elem1164) + p.pretty_type(elem1176) } } p.dedent() @@ -3355,29 +3359,29 @@ func (p *PrettyPrinter) pretty_betree_info_value_types(msg []*pb.Type) interface } func (p *PrettyPrinter) pretty_csv_data(msg *pb.CSVData) interface{} { - flat1173 := p.tryFlat(msg, func() { p.pretty_csv_data(msg) }) - if flat1173 != nil { - p.write(*flat1173) + flat1185 := p.tryFlat(msg, func() { p.pretty_csv_data(msg) }) + if flat1185 != nil { + p.write(*flat1185) return nil } else { _dollar_dollar := msg - fields1167 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetColumns(), _dollar_dollar.GetAsof()} - unwrapped_fields1168 := fields1167 + fields1179 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetColumns(), _dollar_dollar.GetAsof()} + unwrapped_fields1180 := fields1179 p.write("(") p.write("csv_data") p.indentSexp() p.newline() - field1169 := unwrapped_fields1168[0].(*pb.CSVLocator) - p.pretty_csvlocator(field1169) + field1181 := unwrapped_fields1180[0].(*pb.CSVLocator) + p.pretty_csvlocator(field1181) p.newline() - field1170 := unwrapped_fields1168[1].(*pb.CSVConfig) - p.pretty_csv_config(field1170) + field1182 := unwrapped_fields1180[1].(*pb.CSVConfig) + p.pretty_csv_config(field1182) p.newline() - field1171 := unwrapped_fields1168[2].([]*pb.GNFColumn) - p.pretty_gnf_columns(field1171) + field1183 := unwrapped_fields1180[2].([]*pb.GNFColumn) + p.pretty_gnf_columns(field1183) p.newline() - field1172 := unwrapped_fields1168[3].(string) - p.pretty_csv_asof(field1172) + field1184 := unwrapped_fields1180[3].(string) + p.pretty_csv_asof(field1184) p.dedent() p.write(")") } @@ -3385,36 +3389,36 @@ func (p *PrettyPrinter) pretty_csv_data(msg *pb.CSVData) interface{} { } func (p *PrettyPrinter) pretty_csvlocator(msg *pb.CSVLocator) interface{} { - flat1180 := p.tryFlat(msg, func() { p.pretty_csvlocator(msg) }) - if flat1180 != nil { - p.write(*flat1180) + flat1192 := p.tryFlat(msg, func() { p.pretty_csvlocator(msg) }) + if flat1192 != nil { + p.write(*flat1192) return nil } else { _dollar_dollar := msg - var _t1382 []string + var _t1406 []string if !(len(_dollar_dollar.GetPaths()) == 0) { - _t1382 = _dollar_dollar.GetPaths() + _t1406 = _dollar_dollar.GetPaths() } - var _t1383 *string + var _t1407 *string if string(_dollar_dollar.GetInlineData()) != "" { - _t1383 = ptr(string(_dollar_dollar.GetInlineData())) + _t1407 = ptr(string(_dollar_dollar.GetInlineData())) } - fields1174 := []interface{}{_t1382, _t1383} - unwrapped_fields1175 := fields1174 + fields1186 := []interface{}{_t1406, _t1407} + unwrapped_fields1187 := fields1186 p.write("(") p.write("csv_locator") p.indentSexp() - field1176 := unwrapped_fields1175[0].([]string) - if field1176 != nil { + field1188 := unwrapped_fields1187[0].([]string) + if field1188 != nil { p.newline() - opt_val1177 := field1176 - p.pretty_csv_locator_paths(opt_val1177) + opt_val1189 := field1188 + p.pretty_csv_locator_paths(opt_val1189) } - field1178 := unwrapped_fields1175[1].(*string) - if field1178 != nil { + field1190 := unwrapped_fields1187[1].(*string) + if field1190 != nil { p.newline() - opt_val1179 := *field1178 - p.pretty_csv_locator_inline_data(opt_val1179) + opt_val1191 := *field1190 + p.pretty_csv_locator_inline_data(opt_val1191) } p.dedent() p.write(")") @@ -3423,22 +3427,22 @@ func (p *PrettyPrinter) pretty_csvlocator(msg *pb.CSVLocator) interface{} { } func (p *PrettyPrinter) pretty_csv_locator_paths(msg []string) interface{} { - flat1184 := p.tryFlat(msg, func() { p.pretty_csv_locator_paths(msg) }) - if flat1184 != nil { - p.write(*flat1184) + flat1196 := p.tryFlat(msg, func() { p.pretty_csv_locator_paths(msg) }) + if flat1196 != nil { + p.write(*flat1196) return nil } else { - fields1181 := msg + fields1193 := msg p.write("(") p.write("paths") p.indentSexp() - if !(len(fields1181) == 0) { + if !(len(fields1193) == 0) { p.newline() - for i1183, elem1182 := range fields1181 { - if (i1183 > 0) { + for i1195, elem1194 := range fields1193 { + if (i1195 > 0) { p.newline() } - p.write(p.formatStringValue(elem1182)) + p.write(p.formatStringValue(elem1194)) } } p.dedent() @@ -3448,17 +3452,17 @@ func (p *PrettyPrinter) pretty_csv_locator_paths(msg []string) interface{} { } func (p *PrettyPrinter) pretty_csv_locator_inline_data(msg string) interface{} { - flat1186 := p.tryFlat(msg, func() { p.pretty_csv_locator_inline_data(msg) }) - if flat1186 != nil { - p.write(*flat1186) + flat1198 := p.tryFlat(msg, func() { p.pretty_csv_locator_inline_data(msg) }) + if flat1198 != nil { + p.write(*flat1198) return nil } else { - fields1185 := msg + fields1197 := msg p.write("(") p.write("inline_data") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1185)) + p.write(p.formatStringValue(fields1197)) p.dedent() p.write(")") } @@ -3466,20 +3470,20 @@ func (p *PrettyPrinter) pretty_csv_locator_inline_data(msg string) interface{} { } func (p *PrettyPrinter) pretty_csv_config(msg *pb.CSVConfig) interface{} { - flat1189 := p.tryFlat(msg, func() { p.pretty_csv_config(msg) }) - if flat1189 != nil { - p.write(*flat1189) + flat1201 := p.tryFlat(msg, func() { p.pretty_csv_config(msg) }) + if flat1201 != nil { + p.write(*flat1201) return nil } else { _dollar_dollar := msg - _t1384 := p.deconstruct_csv_config(_dollar_dollar) - fields1187 := _t1384 - unwrapped_fields1188 := fields1187 + _t1408 := p.deconstruct_csv_config(_dollar_dollar) + fields1199 := _t1408 + unwrapped_fields1200 := fields1199 p.write("(") p.write("csv_config") p.indentSexp() p.newline() - p.pretty_config_dict(unwrapped_fields1188) + p.pretty_config_dict(unwrapped_fields1200) p.dedent() p.write(")") } @@ -3487,22 +3491,22 @@ func (p *PrettyPrinter) pretty_csv_config(msg *pb.CSVConfig) interface{} { } func (p *PrettyPrinter) pretty_gnf_columns(msg []*pb.GNFColumn) interface{} { - flat1193 := p.tryFlat(msg, func() { p.pretty_gnf_columns(msg) }) - if flat1193 != nil { - p.write(*flat1193) + flat1205 := p.tryFlat(msg, func() { p.pretty_gnf_columns(msg) }) + if flat1205 != nil { + p.write(*flat1205) return nil } else { - fields1190 := msg + fields1202 := msg p.write("(") p.write("columns") p.indentSexp() - if !(len(fields1190) == 0) { + if !(len(fields1202) == 0) { p.newline() - for i1192, elem1191 := range fields1190 { - if (i1192 > 0) { + for i1204, elem1203 := range fields1202 { + if (i1204 > 0) { p.newline() } - p.pretty_gnf_column(elem1191) + p.pretty_gnf_column(elem1203) } } p.dedent() @@ -3512,38 +3516,38 @@ func (p *PrettyPrinter) pretty_gnf_columns(msg []*pb.GNFColumn) interface{} { } func (p *PrettyPrinter) pretty_gnf_column(msg *pb.GNFColumn) interface{} { - flat1202 := p.tryFlat(msg, func() { p.pretty_gnf_column(msg) }) - if flat1202 != nil { - p.write(*flat1202) + flat1214 := p.tryFlat(msg, func() { p.pretty_gnf_column(msg) }) + if flat1214 != nil { + p.write(*flat1214) return nil } else { _dollar_dollar := msg - var _t1385 *pb.RelationId + var _t1409 *pb.RelationId if hasProtoField(_dollar_dollar, "target_id") { - _t1385 = _dollar_dollar.GetTargetId() + _t1409 = _dollar_dollar.GetTargetId() } - fields1194 := []interface{}{_dollar_dollar.GetColumnPath(), _t1385, _dollar_dollar.GetTypes()} - unwrapped_fields1195 := fields1194 + fields1206 := []interface{}{_dollar_dollar.GetColumnPath(), _t1409, _dollar_dollar.GetTypes()} + unwrapped_fields1207 := fields1206 p.write("(") p.write("column") p.indentSexp() p.newline() - field1196 := unwrapped_fields1195[0].([]string) - p.pretty_gnf_column_path(field1196) - field1197 := unwrapped_fields1195[1].(*pb.RelationId) - if field1197 != nil { + field1208 := unwrapped_fields1207[0].([]string) + p.pretty_gnf_column_path(field1208) + field1209 := unwrapped_fields1207[1].(*pb.RelationId) + if field1209 != nil { p.newline() - opt_val1198 := field1197 - p.pretty_relation_id(opt_val1198) + opt_val1210 := field1209 + p.pretty_relation_id(opt_val1210) } p.newline() p.write("[") - field1199 := unwrapped_fields1195[2].([]*pb.Type) - for i1201, elem1200 := range field1199 { - if (i1201 > 0) { + field1211 := unwrapped_fields1207[2].([]*pb.Type) + for i1213, elem1212 := range field1211 { + if (i1213 > 0) { p.newline() } - p.pretty_type(elem1200) + p.pretty_type(elem1212) } p.write("]") p.dedent() @@ -3553,36 +3557,36 @@ func (p *PrettyPrinter) pretty_gnf_column(msg *pb.GNFColumn) interface{} { } func (p *PrettyPrinter) pretty_gnf_column_path(msg []string) interface{} { - flat1209 := p.tryFlat(msg, func() { p.pretty_gnf_column_path(msg) }) - if flat1209 != nil { - p.write(*flat1209) + flat1221 := p.tryFlat(msg, func() { p.pretty_gnf_column_path(msg) }) + if flat1221 != nil { + p.write(*flat1221) return nil } else { _dollar_dollar := msg - var _t1386 *string + var _t1410 *string if int64(len(_dollar_dollar)) == 1 { - _t1386 = ptr(_dollar_dollar[0]) + _t1410 = ptr(_dollar_dollar[0]) } - deconstruct_result1207 := _t1386 - if deconstruct_result1207 != nil { - unwrapped1208 := *deconstruct_result1207 - p.write(p.formatStringValue(unwrapped1208)) + deconstruct_result1219 := _t1410 + if deconstruct_result1219 != nil { + unwrapped1220 := *deconstruct_result1219 + p.write(p.formatStringValue(unwrapped1220)) } else { _dollar_dollar := msg - var _t1387 []string + var _t1411 []string if int64(len(_dollar_dollar)) != 1 { - _t1387 = _dollar_dollar + _t1411 = _dollar_dollar } - deconstruct_result1203 := _t1387 - if deconstruct_result1203 != nil { - unwrapped1204 := deconstruct_result1203 + deconstruct_result1215 := _t1411 + if deconstruct_result1215 != nil { + unwrapped1216 := deconstruct_result1215 p.write("[") p.indent() - for i1206, elem1205 := range unwrapped1204 { - if (i1206 > 0) { + for i1218, elem1217 := range unwrapped1216 { + if (i1218 > 0) { p.newline() } - p.write(p.formatStringValue(elem1205)) + p.write(p.formatStringValue(elem1217)) } p.dedent() p.write("]") @@ -3595,17 +3599,17 @@ func (p *PrettyPrinter) pretty_gnf_column_path(msg []string) interface{} { } func (p *PrettyPrinter) pretty_csv_asof(msg string) interface{} { - flat1211 := p.tryFlat(msg, func() { p.pretty_csv_asof(msg) }) - if flat1211 != nil { - p.write(*flat1211) + flat1223 := p.tryFlat(msg, func() { p.pretty_csv_asof(msg) }) + if flat1223 != nil { + p.write(*flat1223) return nil } else { - fields1210 := msg + fields1222 := msg p.write("(") p.write("asof") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1210)) + p.write(p.formatStringValue(fields1222)) p.dedent() p.write(")") } @@ -3613,19 +3617,19 @@ func (p *PrettyPrinter) pretty_csv_asof(msg string) interface{} { } func (p *PrettyPrinter) pretty_undefine(msg *pb.Undefine) interface{} { - flat1214 := p.tryFlat(msg, func() { p.pretty_undefine(msg) }) - if flat1214 != nil { - p.write(*flat1214) + flat1226 := p.tryFlat(msg, func() { p.pretty_undefine(msg) }) + if flat1226 != nil { + p.write(*flat1226) return nil } else { _dollar_dollar := msg - fields1212 := _dollar_dollar.GetFragmentId() - unwrapped_fields1213 := fields1212 + fields1224 := _dollar_dollar.GetFragmentId() + unwrapped_fields1225 := fields1224 p.write("(") p.write("undefine") p.indentSexp() p.newline() - p.pretty_fragment_id(unwrapped_fields1213) + p.pretty_fragment_id(unwrapped_fields1225) p.dedent() p.write(")") } @@ -3633,24 +3637,24 @@ func (p *PrettyPrinter) pretty_undefine(msg *pb.Undefine) interface{} { } func (p *PrettyPrinter) pretty_context(msg *pb.Context) interface{} { - flat1219 := p.tryFlat(msg, func() { p.pretty_context(msg) }) - if flat1219 != nil { - p.write(*flat1219) + flat1231 := p.tryFlat(msg, func() { p.pretty_context(msg) }) + if flat1231 != nil { + p.write(*flat1231) return nil } else { _dollar_dollar := msg - fields1215 := _dollar_dollar.GetRelations() - unwrapped_fields1216 := fields1215 + fields1227 := _dollar_dollar.GetRelations() + unwrapped_fields1228 := fields1227 p.write("(") p.write("context") p.indentSexp() - if !(len(unwrapped_fields1216) == 0) { + if !(len(unwrapped_fields1228) == 0) { p.newline() - for i1218, elem1217 := range unwrapped_fields1216 { - if (i1218 > 0) { + for i1230, elem1229 := range unwrapped_fields1228 { + if (i1230 > 0) { p.newline() } - p.pretty_relation_id(elem1217) + p.pretty_relation_id(elem1229) } } p.dedent() @@ -3660,24 +3664,24 @@ func (p *PrettyPrinter) pretty_context(msg *pb.Context) interface{} { } func (p *PrettyPrinter) pretty_snapshot(msg *pb.Snapshot) interface{} { - flat1224 := p.tryFlat(msg, func() { p.pretty_snapshot(msg) }) - if flat1224 != nil { - p.write(*flat1224) + flat1236 := p.tryFlat(msg, func() { p.pretty_snapshot(msg) }) + if flat1236 != nil { + p.write(*flat1236) return nil } else { _dollar_dollar := msg - fields1220 := _dollar_dollar.GetMappings() - unwrapped_fields1221 := fields1220 + fields1232 := _dollar_dollar.GetMappings() + unwrapped_fields1233 := fields1232 p.write("(") p.write("snapshot") p.indentSexp() - if !(len(unwrapped_fields1221) == 0) { + if !(len(unwrapped_fields1233) == 0) { p.newline() - for i1223, elem1222 := range unwrapped_fields1221 { - if (i1223 > 0) { + for i1235, elem1234 := range unwrapped_fields1233 { + if (i1235 > 0) { p.newline() } - p.pretty_snapshot_mapping(elem1222) + p.pretty_snapshot_mapping(elem1234) } } p.dedent() @@ -3687,40 +3691,40 @@ func (p *PrettyPrinter) pretty_snapshot(msg *pb.Snapshot) interface{} { } func (p *PrettyPrinter) pretty_snapshot_mapping(msg *pb.SnapshotMapping) interface{} { - flat1229 := p.tryFlat(msg, func() { p.pretty_snapshot_mapping(msg) }) - if flat1229 != nil { - p.write(*flat1229) + flat1241 := p.tryFlat(msg, func() { p.pretty_snapshot_mapping(msg) }) + if flat1241 != nil { + p.write(*flat1241) return nil } else { _dollar_dollar := msg - fields1225 := []interface{}{_dollar_dollar.GetDestinationPath(), _dollar_dollar.GetSourceRelation()} - unwrapped_fields1226 := fields1225 - field1227 := unwrapped_fields1226[0].([]string) - p.pretty_edb_path(field1227) + fields1237 := []interface{}{_dollar_dollar.GetDestinationPath(), _dollar_dollar.GetSourceRelation()} + unwrapped_fields1238 := fields1237 + field1239 := unwrapped_fields1238[0].([]string) + p.pretty_edb_path(field1239) p.write(" ") - field1228 := unwrapped_fields1226[1].(*pb.RelationId) - p.pretty_relation_id(field1228) + field1240 := unwrapped_fields1238[1].(*pb.RelationId) + p.pretty_relation_id(field1240) } return nil } func (p *PrettyPrinter) pretty_epoch_reads(msg []*pb.Read) interface{} { - flat1233 := p.tryFlat(msg, func() { p.pretty_epoch_reads(msg) }) - if flat1233 != nil { - p.write(*flat1233) + flat1245 := p.tryFlat(msg, func() { p.pretty_epoch_reads(msg) }) + if flat1245 != nil { + p.write(*flat1245) return nil } else { - fields1230 := msg + fields1242 := msg p.write("(") p.write("reads") p.indentSexp() - if !(len(fields1230) == 0) { + if !(len(fields1242) == 0) { p.newline() - for i1232, elem1231 := range fields1230 { - if (i1232 > 0) { + for i1244, elem1243 := range fields1242 { + if (i1244 > 0) { p.newline() } - p.pretty_read(elem1231) + p.pretty_read(elem1243) } } p.dedent() @@ -3730,60 +3734,60 @@ func (p *PrettyPrinter) pretty_epoch_reads(msg []*pb.Read) interface{} { } func (p *PrettyPrinter) pretty_read(msg *pb.Read) interface{} { - flat1244 := p.tryFlat(msg, func() { p.pretty_read(msg) }) - if flat1244 != nil { - p.write(*flat1244) + flat1256 := p.tryFlat(msg, func() { p.pretty_read(msg) }) + if flat1256 != nil { + p.write(*flat1256) return nil } else { _dollar_dollar := msg - var _t1388 *pb.Demand + var _t1412 *pb.Demand if hasProtoField(_dollar_dollar, "demand") { - _t1388 = _dollar_dollar.GetDemand() + _t1412 = _dollar_dollar.GetDemand() } - deconstruct_result1242 := _t1388 - if deconstruct_result1242 != nil { - unwrapped1243 := deconstruct_result1242 - p.pretty_demand(unwrapped1243) + deconstruct_result1254 := _t1412 + if deconstruct_result1254 != nil { + unwrapped1255 := deconstruct_result1254 + p.pretty_demand(unwrapped1255) } else { _dollar_dollar := msg - var _t1389 *pb.Output + var _t1413 *pb.Output if hasProtoField(_dollar_dollar, "output") { - _t1389 = _dollar_dollar.GetOutput() + _t1413 = _dollar_dollar.GetOutput() } - deconstruct_result1240 := _t1389 - if deconstruct_result1240 != nil { - unwrapped1241 := deconstruct_result1240 - p.pretty_output(unwrapped1241) + deconstruct_result1252 := _t1413 + if deconstruct_result1252 != nil { + unwrapped1253 := deconstruct_result1252 + p.pretty_output(unwrapped1253) } else { _dollar_dollar := msg - var _t1390 *pb.WhatIf + var _t1414 *pb.WhatIf if hasProtoField(_dollar_dollar, "what_if") { - _t1390 = _dollar_dollar.GetWhatIf() + _t1414 = _dollar_dollar.GetWhatIf() } - deconstruct_result1238 := _t1390 - if deconstruct_result1238 != nil { - unwrapped1239 := deconstruct_result1238 - p.pretty_what_if(unwrapped1239) + deconstruct_result1250 := _t1414 + if deconstruct_result1250 != nil { + unwrapped1251 := deconstruct_result1250 + p.pretty_what_if(unwrapped1251) } else { _dollar_dollar := msg - var _t1391 *pb.Abort + var _t1415 *pb.Abort if hasProtoField(_dollar_dollar, "abort") { - _t1391 = _dollar_dollar.GetAbort() + _t1415 = _dollar_dollar.GetAbort() } - deconstruct_result1236 := _t1391 - if deconstruct_result1236 != nil { - unwrapped1237 := deconstruct_result1236 - p.pretty_abort(unwrapped1237) + deconstruct_result1248 := _t1415 + if deconstruct_result1248 != nil { + unwrapped1249 := deconstruct_result1248 + p.pretty_abort(unwrapped1249) } else { _dollar_dollar := msg - var _t1392 *pb.Export + var _t1416 *pb.Export if hasProtoField(_dollar_dollar, "export") { - _t1392 = _dollar_dollar.GetExport() + _t1416 = _dollar_dollar.GetExport() } - deconstruct_result1234 := _t1392 - if deconstruct_result1234 != nil { - unwrapped1235 := deconstruct_result1234 - p.pretty_export(unwrapped1235) + deconstruct_result1246 := _t1416 + if deconstruct_result1246 != nil { + unwrapped1247 := deconstruct_result1246 + p.pretty_export(unwrapped1247) } else { panic(ParseError{msg: "No matching rule for read"}) } @@ -3796,19 +3800,19 @@ func (p *PrettyPrinter) pretty_read(msg *pb.Read) interface{} { } func (p *PrettyPrinter) pretty_demand(msg *pb.Demand) interface{} { - flat1247 := p.tryFlat(msg, func() { p.pretty_demand(msg) }) - if flat1247 != nil { - p.write(*flat1247) + flat1259 := p.tryFlat(msg, func() { p.pretty_demand(msg) }) + if flat1259 != nil { + p.write(*flat1259) return nil } else { _dollar_dollar := msg - fields1245 := _dollar_dollar.GetRelationId() - unwrapped_fields1246 := fields1245 + fields1257 := _dollar_dollar.GetRelationId() + unwrapped_fields1258 := fields1257 p.write("(") p.write("demand") p.indentSexp() p.newline() - p.pretty_relation_id(unwrapped_fields1246) + p.pretty_relation_id(unwrapped_fields1258) p.dedent() p.write(")") } @@ -3816,23 +3820,23 @@ func (p *PrettyPrinter) pretty_demand(msg *pb.Demand) interface{} { } func (p *PrettyPrinter) pretty_output(msg *pb.Output) interface{} { - flat1252 := p.tryFlat(msg, func() { p.pretty_output(msg) }) - if flat1252 != nil { - p.write(*flat1252) + flat1264 := p.tryFlat(msg, func() { p.pretty_output(msg) }) + if flat1264 != nil { + p.write(*flat1264) return nil } else { _dollar_dollar := msg - fields1248 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationId()} - unwrapped_fields1249 := fields1248 + fields1260 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationId()} + unwrapped_fields1261 := fields1260 p.write("(") p.write("output") p.indentSexp() p.newline() - field1250 := unwrapped_fields1249[0].(string) - p.pretty_name(field1250) + field1262 := unwrapped_fields1261[0].(string) + p.pretty_name(field1262) p.newline() - field1251 := unwrapped_fields1249[1].(*pb.RelationId) - p.pretty_relation_id(field1251) + field1263 := unwrapped_fields1261[1].(*pb.RelationId) + p.pretty_relation_id(field1263) p.dedent() p.write(")") } @@ -3840,23 +3844,23 @@ func (p *PrettyPrinter) pretty_output(msg *pb.Output) interface{} { } func (p *PrettyPrinter) pretty_what_if(msg *pb.WhatIf) interface{} { - flat1257 := p.tryFlat(msg, func() { p.pretty_what_if(msg) }) - if flat1257 != nil { - p.write(*flat1257) + flat1269 := p.tryFlat(msg, func() { p.pretty_what_if(msg) }) + if flat1269 != nil { + p.write(*flat1269) return nil } else { _dollar_dollar := msg - fields1253 := []interface{}{_dollar_dollar.GetBranch(), _dollar_dollar.GetEpoch()} - unwrapped_fields1254 := fields1253 + fields1265 := []interface{}{_dollar_dollar.GetBranch(), _dollar_dollar.GetEpoch()} + unwrapped_fields1266 := fields1265 p.write("(") p.write("what_if") p.indentSexp() p.newline() - field1255 := unwrapped_fields1254[0].(string) - p.pretty_name(field1255) + field1267 := unwrapped_fields1266[0].(string) + p.pretty_name(field1267) p.newline() - field1256 := unwrapped_fields1254[1].(*pb.Epoch) - p.pretty_epoch(field1256) + field1268 := unwrapped_fields1266[1].(*pb.Epoch) + p.pretty_epoch(field1268) p.dedent() p.write(")") } @@ -3864,30 +3868,30 @@ func (p *PrettyPrinter) pretty_what_if(msg *pb.WhatIf) interface{} { } func (p *PrettyPrinter) pretty_abort(msg *pb.Abort) interface{} { - flat1263 := p.tryFlat(msg, func() { p.pretty_abort(msg) }) - if flat1263 != nil { - p.write(*flat1263) + flat1275 := p.tryFlat(msg, func() { p.pretty_abort(msg) }) + if flat1275 != nil { + p.write(*flat1275) return nil } else { _dollar_dollar := msg - var _t1393 *string + var _t1417 *string if _dollar_dollar.GetName() != "abort" { - _t1393 = ptr(_dollar_dollar.GetName()) + _t1417 = ptr(_dollar_dollar.GetName()) } - fields1258 := []interface{}{_t1393, _dollar_dollar.GetRelationId()} - unwrapped_fields1259 := fields1258 + fields1270 := []interface{}{_t1417, _dollar_dollar.GetRelationId()} + unwrapped_fields1271 := fields1270 p.write("(") p.write("abort") p.indentSexp() - field1260 := unwrapped_fields1259[0].(*string) - if field1260 != nil { + field1272 := unwrapped_fields1271[0].(*string) + if field1272 != nil { p.newline() - opt_val1261 := *field1260 - p.pretty_name(opt_val1261) + opt_val1273 := *field1272 + p.pretty_name(opt_val1273) } p.newline() - field1262 := unwrapped_fields1259[1].(*pb.RelationId) - p.pretty_relation_id(field1262) + field1274 := unwrapped_fields1271[1].(*pb.RelationId) + p.pretty_relation_id(field1274) p.dedent() p.write(")") } @@ -3895,19 +3899,19 @@ func (p *PrettyPrinter) pretty_abort(msg *pb.Abort) interface{} { } func (p *PrettyPrinter) pretty_export(msg *pb.Export) interface{} { - flat1266 := p.tryFlat(msg, func() { p.pretty_export(msg) }) - if flat1266 != nil { - p.write(*flat1266) + flat1278 := p.tryFlat(msg, func() { p.pretty_export(msg) }) + if flat1278 != nil { + p.write(*flat1278) return nil } else { _dollar_dollar := msg - fields1264 := _dollar_dollar.GetCsvConfig() - unwrapped_fields1265 := fields1264 + fields1276 := _dollar_dollar.GetCsvConfig() + unwrapped_fields1277 := fields1276 p.write("(") p.write("export") p.indentSexp() p.newline() - p.pretty_export_csv_config(unwrapped_fields1265) + p.pretty_export_csv_config(unwrapped_fields1277) p.dedent() p.write(")") } @@ -3915,94 +3919,178 @@ func (p *PrettyPrinter) pretty_export(msg *pb.Export) interface{} { } func (p *PrettyPrinter) pretty_export_csv_config(msg *pb.ExportCSVConfig) interface{} { - flat1272 := p.tryFlat(msg, func() { p.pretty_export_csv_config(msg) }) - if flat1272 != nil { - p.write(*flat1272) + flat1289 := p.tryFlat(msg, func() { p.pretty_export_csv_config(msg) }) + if flat1289 != nil { + p.write(*flat1289) return nil } else { _dollar_dollar := msg - _t1394 := p.deconstruct_export_csv_config(_dollar_dollar) - fields1267 := []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetDataColumns(), _t1394} - unwrapped_fields1268 := fields1267 - p.write("(") - p.write("export_csv_config") - p.indentSexp() - p.newline() - field1269 := unwrapped_fields1268[0].(string) - p.pretty_export_csv_path(field1269) - p.newline() - field1270 := unwrapped_fields1268[1].([]*pb.ExportCSVColumn) - p.pretty_export_csv_columns(field1270) - p.newline() - field1271 := unwrapped_fields1268[2].([][]interface{}) - p.pretty_config_dict(field1271) - p.dedent() - p.write(")") + var _t1418 []interface{} + if int64(len(_dollar_dollar.GetDataColumns())) == 0 { + _t1418 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetCsvSource(), _dollar_dollar.GetCsvConfig()} + } + deconstruct_result1284 := _t1418 + if deconstruct_result1284 != nil { + unwrapped1285 := deconstruct_result1284 + p.write("(") + p.write("export_csv_config_v2") + p.indentSexp() + p.newline() + field1286 := unwrapped1285[0].(string) + p.pretty_export_csv_path(field1286) + p.newline() + field1287 := unwrapped1285[1].(*pb.ExportCSVSource) + p.pretty_export_csv_source(field1287) + p.newline() + field1288 := unwrapped1285[2].(*pb.CSVConfig) + p.pretty_csv_config(field1288) + p.dedent() + p.write(")") + } else { + _dollar_dollar := msg + var _t1419 []interface{} + if int64(len(_dollar_dollar.GetDataColumns())) != 0 { + _t1420 := p.deconstruct_export_csv_config(_dollar_dollar) + _t1419 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetDataColumns(), _t1420} + } + deconstruct_result1279 := _t1419 + if deconstruct_result1279 != nil { + unwrapped1280 := deconstruct_result1279 + p.write("(") + p.write("export_csv_config") + p.indentSexp() + p.newline() + field1281 := unwrapped1280[0].(string) + p.pretty_export_csv_path(field1281) + p.newline() + field1282 := unwrapped1280[1].([]*pb.ExportCSVColumn) + p.pretty_export_csv_columns_list(field1282) + p.newline() + field1283 := unwrapped1280[2].([][]interface{}) + p.pretty_config_dict(field1283) + p.dedent() + p.write(")") + } else { + panic(ParseError{msg: "No matching rule for export_csv_config"}) + } + } } return nil } func (p *PrettyPrinter) pretty_export_csv_path(msg string) interface{} { - flat1274 := p.tryFlat(msg, func() { p.pretty_export_csv_path(msg) }) - if flat1274 != nil { - p.write(*flat1274) + flat1291 := p.tryFlat(msg, func() { p.pretty_export_csv_path(msg) }) + if flat1291 != nil { + p.write(*flat1291) return nil } else { - fields1273 := msg + fields1290 := msg p.write("(") p.write("path") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1273)) + p.write(p.formatStringValue(fields1290)) p.dedent() p.write(")") } return nil } -func (p *PrettyPrinter) pretty_export_csv_columns(msg []*pb.ExportCSVColumn) interface{} { - flat1278 := p.tryFlat(msg, func() { p.pretty_export_csv_columns(msg) }) - if flat1278 != nil { - p.write(*flat1278) +func (p *PrettyPrinter) pretty_export_csv_source(msg *pb.ExportCSVSource) interface{} { + flat1298 := p.tryFlat(msg, func() { p.pretty_export_csv_source(msg) }) + if flat1298 != nil { + p.write(*flat1298) return nil } else { - fields1275 := msg - p.write("(") - p.write("columns") - p.indentSexp() - if !(len(fields1275) == 0) { - p.newline() - for i1277, elem1276 := range fields1275 { - if (i1277 > 0) { - p.newline() + _dollar_dollar := msg + var _t1421 []*pb.ExportCSVColumn + if hasProtoField(_dollar_dollar, "gnf_columns") { + _t1421 = _dollar_dollar.GetGnfColumns().GetColumns() + } + deconstruct_result1294 := _t1421 + if deconstruct_result1294 != nil { + unwrapped1295 := deconstruct_result1294 + p.write("(") + p.write("gnf_columns") + p.indentSexp() + if !(len(unwrapped1295) == 0) { + p.newline() + for i1297, elem1296 := range unwrapped1295 { + if (i1297 > 0) { + p.newline() + } + p.pretty_export_csv_column(elem1296) } - p.pretty_export_csv_column(elem1276) + } + p.dedent() + p.write(")") + } else { + _dollar_dollar := msg + var _t1422 *pb.RelationId + if hasProtoField(_dollar_dollar, "table_def") { + _t1422 = _dollar_dollar.GetTableDef() + } + deconstruct_result1292 := _t1422 + if deconstruct_result1292 != nil { + unwrapped1293 := deconstruct_result1292 + p.write("(") + p.write("table_def") + p.indentSexp() + p.newline() + p.pretty_relation_id(unwrapped1293) + p.dedent() + p.write(")") + } else { + panic(ParseError{msg: "No matching rule for export_csv_source"}) } } - p.dedent() - p.write(")") } return nil } func (p *PrettyPrinter) pretty_export_csv_column(msg *pb.ExportCSVColumn) interface{} { - flat1283 := p.tryFlat(msg, func() { p.pretty_export_csv_column(msg) }) - if flat1283 != nil { - p.write(*flat1283) + flat1303 := p.tryFlat(msg, func() { p.pretty_export_csv_column(msg) }) + if flat1303 != nil { + p.write(*flat1303) return nil } else { _dollar_dollar := msg - fields1279 := []interface{}{_dollar_dollar.GetColumnName(), _dollar_dollar.GetColumnData()} - unwrapped_fields1280 := fields1279 + fields1299 := []interface{}{_dollar_dollar.GetColumnName(), _dollar_dollar.GetColumnData()} + unwrapped_fields1300 := fields1299 p.write("(") p.write("column") p.indentSexp() p.newline() - field1281 := unwrapped_fields1280[0].(string) - p.write(p.formatStringValue(field1281)) + field1301 := unwrapped_fields1300[0].(string) + p.write(p.formatStringValue(field1301)) p.newline() - field1282 := unwrapped_fields1280[1].(*pb.RelationId) - p.pretty_relation_id(field1282) + field1302 := unwrapped_fields1300[1].(*pb.RelationId) + p.pretty_relation_id(field1302) + p.dedent() + p.write(")") + } + return nil +} + +func (p *PrettyPrinter) pretty_export_csv_columns_list(msg []*pb.ExportCSVColumn) interface{} { + flat1307 := p.tryFlat(msg, func() { p.pretty_export_csv_columns_list(msg) }) + if flat1307 != nil { + p.write(*flat1307) + return nil + } else { + fields1304 := msg + p.write("(") + p.write("columns") + p.indentSexp() + if !(len(fields1304) == 0) { + p.newline() + for i1306, elem1305 := range fields1304 { + if (i1306 > 0) { + p.newline() + } + p.pretty_export_csv_column(elem1305) + } + } p.dedent() p.write(")") } @@ -4018,8 +4106,8 @@ func (p *PrettyPrinter) pretty_debug_info(msg *pb.DebugInfo) interface{} { for _idx, _rid := range msg.GetIds() { p.newline() p.write("(") - _t1432 := &pb.UInt128Value{Low: _rid.GetIdLow(), High: _rid.GetIdHigh()} - p.pprintDispatch(_t1432) + _t1461 := &pb.UInt128Value{Low: _rid.GetIdLow(), High: _rid.GetIdHigh()} + p.pprintDispatch(_t1461) p.write(" ") p.write(p.formatStringValue(msg.GetOrigNames()[_idx])) p.write(")") @@ -4129,6 +4217,24 @@ func (p *PrettyPrinter) pretty_u_int128_value(msg *pb.UInt128Value) interface{} return nil } +func (p *PrettyPrinter) pretty_export_csv_columns(msg *pb.ExportCSVColumns) interface{} { + p.write("(export_csv_columns") + p.indentSexp() + p.newline() + p.write(":columns ") + p.write("(") + for _idx, _elem := range msg.GetColumns() { + if (_idx > 0) { + p.write(" ") + } + p.pprintDispatch(_elem) + } + p.write(")") + p.write(")") + p.dedent() + return nil +} + func (p *PrettyPrinter) pretty_ivm_config(msg *pb.IVMConfig) interface{} { p.write("(ivm_config") p.indentSexp() @@ -4350,10 +4456,12 @@ func (p *PrettyPrinter) pprintDispatch(msg interface{}) { p.pretty_export(m) case *pb.ExportCSVConfig: p.pretty_export_csv_config(m) - case []*pb.ExportCSVColumn: - p.pretty_export_csv_columns(m) + case *pb.ExportCSVSource: + p.pretty_export_csv_source(m) case *pb.ExportCSVColumn: p.pretty_export_csv_column(m) + case []*pb.ExportCSVColumn: + p.pretty_export_csv_columns_list(m) case *pb.DebugInfo: p.pretty_debug_info(m) case *pb.BeTreeConfig: @@ -4370,6 +4478,8 @@ func (p *PrettyPrinter) pprintDispatch(msg interface{}) { p.pretty_missing_value(m) case *pb.UInt128Value: p.pretty_u_int128_value(m) + case *pb.ExportCSVColumns: + p.pretty_export_csv_columns(m) case *pb.IVMConfig: p.pretty_ivm_config(m) case pb.MaintenanceLevel: diff --git a/sdks/go/test/pretty/csv_export_v2.lqp b/sdks/go/test/pretty/csv_export_v2.lqp new file mode 100644 index 00000000..beee9c72 --- /dev/null +++ b/sdks/go/test/pretty/csv_export_v2.lqp @@ -0,0 +1,281 @@ +(transaction + (configure + { :ivm.maintenance_level "off" + :semantics_version 0}) + (epoch + (writes + (define + (fragment :f1 + (def :users + ([id::INT name::STRING score::FLOAT] + (or + (and + (primitive :rel_primitive_eq id 100) + (primitive :rel_primitive_eq name "Alice") + (primitive :rel_primitive_eq score 95.5)) + (and + (primitive :rel_primitive_eq id 200) + (primitive :rel_primitive_eq name "Bob") + (primitive :rel_primitive_eq score 87.3))))) + (def :products + ([id::INT name::STRING price::(DECIMAL 10 2) active::BOOLEAN] + (or + (and + (primitive :rel_primitive_eq id 1) + (primitive :rel_primitive_eq name "Widget") + (primitive :rel_primitive_eq price 19.99) + (primitive :rel_primitive_eq active true)) + (and + (primitive :rel_primitive_eq id 2) + (primitive :rel_primitive_eq name "Gadget") + (primitive :rel_primitive_eq price 29.5) + (primitive :rel_primitive_eq active false))))) + (def :events + ([event_id::INT timestamp::DATETIME description::STRING] + (or + (and + (primitive :rel_primitive_eq event_id 1) + (primitive :rel_primitive_eq timestamp (datetime 2025 1 1 10 30 0 0)) + (primitive :rel_primitive_eq description "Start")) + (and + (primitive :rel_primitive_eq event_id 2) + (primitive :rel_primitive_eq timestamp (datetime 2025 1 2 14 45 0 0)) + (primitive :rel_primitive_eq description "End"))))) + (def :simple + ([key::STRING value::INT] + (or + (and + (primitive :rel_primitive_eq key "a") + (primitive :rel_primitive_eq value 1)) + (and + (primitive :rel_primitive_eq key "b") + (primitive :rel_primitive_eq value 2))))) + (def :names + ([name::STRING] + (or + (primitive :rel_primitive_eq name "Alice") + (primitive :rel_primitive_eq name "Bob") + (primitive :rel_primitive_eq name "Carol")))) + (def :col_id + ([row::INT v::INT] + (or + (and + (primitive :rel_primitive_eq row 1) + (primitive :rel_primitive_eq v 100)) + (and + (primitive :rel_primitive_eq row 2) + (primitive :rel_primitive_eq v 200)) + (and + (primitive :rel_primitive_eq row 3) + (primitive :rel_primitive_eq v 300))))) + (def :col_name + ([row::INT v::STRING] + (or + (and + (primitive :rel_primitive_eq row 1) + (primitive :rel_primitive_eq v "Alice")) + (and + (primitive :rel_primitive_eq row 2) + (primitive :rel_primitive_eq v "Bob")) + (and + (primitive :rel_primitive_eq row 3) + (primitive :rel_primitive_eq v "Carol"))))) + (def :col_score + ([row::INT v::FLOAT] + (or + (and + (primitive :rel_primitive_eq row 1) + (primitive :rel_primitive_eq v 95.5)) + (and + (primitive :rel_primitive_eq row 2) + (primitive :rel_primitive_eq v 87.3)) + (and + (primitive :rel_primitive_eq row 3) + (primitive :rel_primitive_eq v 92.0))))) + (def :col_active + ([row::INT v::BOOLEAN] + (or + (and + (primitive :rel_primitive_eq row 1) + (primitive :rel_primitive_eq v true)) + (and + (primitive :rel_primitive_eq row 2) + (primitive :rel_primitive_eq v false)) + (and + (primitive :rel_primitive_eq row 3) + (primitive :rel_primitive_eq v true)))))))) + (reads + (export + (export_csv_config_v2 + (path "users_basic.csv") + (table_def + :users) + (csv_config + { :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "users_pipe.csv") + (table_def + :users) + (csv_config + { :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "|" + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "users_compressed.csv.gz") + (table_def + :users) + (csv_config + { :csv_compression "gzip" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_partition_size_mb 1000 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "products.csv") + (table_def + :products) + (csv_config + { :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "events.csv") + (table_def + :events) + (csv_config + { :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "users.tsv") + (table_def + :users) + (csv_config + { :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "\t" + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "simple_no_header.csv") + (table_def + :simple) + (csv_config + { :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 0 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "names_only.csv") + (table_def + :names) + (csv_config + { :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "gnf_all_columns.csv") + (gnf_columns + (column "id" :col_id) + (column "name" :col_name) + (column "score" :col_score) + (column "active" :col_active)) + (csv_config + { :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "gnf_subset.csv") + (gnf_columns + (column "user_id" :col_id) + (column "user_name" :col_name)) + (csv_config + { :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "gnf_custom.csv.gz") + (gnf_columns + (column "id" :col_id) + (column "score" :col_score)) + (csv_config + { :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "gnf_single.csv") + (gnf_columns + (column "score" :col_score)) + (csv_config + { :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0})))))) diff --git a/sdks/go/test/pretty/simple_export_v2.lqp b/sdks/go/test/pretty/simple_export_v2.lqp new file mode 100644 index 00000000..0d294bc7 --- /dev/null +++ b/sdks/go/test/pretty/simple_export_v2.lqp @@ -0,0 +1,35 @@ +(transaction + (configure + { :ivm.maintenance_level "off" + :semantics_version 0}) + (epoch + (writes + (define + (fragment :f1 + (def :my_table + ([col1::INT col2::STRING] + (or + (and + (primitive :rel_primitive_eq col1 1) + (primitive :rel_primitive_eq col2 "hello")) + (and + (primitive :rel_primitive_eq col1 2) + (primitive :rel_primitive_eq col2 "world")))) + (attrs + (attribute :csv_export)))))) + (reads + (export + (export_csv_config_v2 + (path "output.csv") + (table_def + :my_table) + (csv_config + { :csv_compression "" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_partition_size_mb 10 + :csv_quotechar "\"" + :csv_skip 0})))))) diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/logic_pb.jl b/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/logic_pb.jl index 7ac85ce5..0d4782e6 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/logic_pb.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/logic_pb.jl @@ -522,10 +522,11 @@ struct CSVConfig decimal_separator::String encoding::String compression::String + partition_size_mb::Int64 end -CSVConfig(;header_row = zero(Int32), skip = zero(Int64), new_line = "", delimiter = "", quotechar = "", escapechar = "", comment = "", missing_strings = Vector{String}(), decimal_separator = "", encoding = "", compression = "") = CSVConfig(header_row, skip, new_line, delimiter, quotechar, escapechar, comment, missing_strings, decimal_separator, encoding, compression) -PB.default_values(::Type{CSVConfig}) = (;header_row = zero(Int32), skip = zero(Int64), new_line = "", delimiter = "", quotechar = "", escapechar = "", comment = "", missing_strings = Vector{String}(), decimal_separator = "", encoding = "", compression = "") -PB.field_numbers(::Type{CSVConfig}) = (;header_row = 1, skip = 2, new_line = 3, delimiter = 4, quotechar = 5, escapechar = 6, comment = 7, missing_strings = 8, decimal_separator = 9, encoding = 10, compression = 11) +CSVConfig(;header_row = zero(Int32), skip = zero(Int64), new_line = "", delimiter = "", quotechar = "", escapechar = "", comment = "", missing_strings = Vector{String}(), decimal_separator = "", encoding = "", compression = "", partition_size_mb = zero(Int64)) = CSVConfig(header_row, skip, new_line, delimiter, quotechar, escapechar, comment, missing_strings, decimal_separator, encoding, compression, partition_size_mb) +PB.default_values(::Type{CSVConfig}) = (;header_row = zero(Int32), skip = zero(Int64), new_line = "", delimiter = "", quotechar = "", escapechar = "", comment = "", missing_strings = Vector{String}(), decimal_separator = "", encoding = "", compression = "", partition_size_mb = zero(Int64)) +PB.field_numbers(::Type{CSVConfig}) = (;header_row = 1, skip = 2, new_line = 3, delimiter = 4, quotechar = 5, escapechar = 6, comment = 7, missing_strings = 8, decimal_separator = 9, encoding = 10, compression = 11, partition_size_mb = 12) function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:CSVConfig}) header_row = zero(Int32) @@ -539,6 +540,7 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:CSVConfig}) decimal_separator = "" encoding = "" compression = "" + partition_size_mb = zero(Int64) while !PB.message_done(d) field_number, wire_type = PB.decode_tag(d) if field_number == 1 @@ -563,11 +565,13 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:CSVConfig}) encoding = PB.decode(d, String) elseif field_number == 11 compression = PB.decode(d, String) + elseif field_number == 12 + partition_size_mb = PB.decode(d, Int64) else Base.skip(d, wire_type) end end - return CSVConfig(header_row, skip, new_line, delimiter, quotechar, escapechar, comment, missing_strings[], decimal_separator, encoding, compression) + return CSVConfig(header_row, skip, new_line, delimiter, quotechar, escapechar, comment, missing_strings[], decimal_separator, encoding, compression, partition_size_mb) end function PB.encode(e::PB.AbstractProtoEncoder, x::CSVConfig) @@ -583,6 +587,7 @@ function PB.encode(e::PB.AbstractProtoEncoder, x::CSVConfig) !isempty(x.decimal_separator) && PB.encode(e, 9, x.decimal_separator) !isempty(x.encoding) && PB.encode(e, 10, x.encoding) !isempty(x.compression) && PB.encode(e, 11, x.compression) + x.partition_size_mb != zero(Int64) && PB.encode(e, 12, x.partition_size_mb) return position(e.io) - initpos end function PB._encoded_size(x::CSVConfig) @@ -598,6 +603,7 @@ function PB._encoded_size(x::CSVConfig) !isempty(x.decimal_separator) && (encoded_size += PB._encoded_size(x.decimal_separator, 9)) !isempty(x.encoding) && (encoded_size += PB._encoded_size(x.encoding, 10)) !isempty(x.compression) && (encoded_size += PB._encoded_size(x.compression, 11)) + x.partition_size_mb != zero(Int64) && (encoded_size += PB._encoded_size(x.partition_size_mb, 12)) return encoded_size end diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/transactions_pb.jl b/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/transactions_pb.jl index ae3e4a62..047fd1d1 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/transactions_pb.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/transactions_pb.jl @@ -6,8 +6,9 @@ using ProtoBuf: OneOf using ProtoBuf.EnumX: @enumx export ExportCSVColumn, Demand, Undefine, MaintenanceLevel, Define, Context, Sync -export SnapshotMapping, Abort, Output, ExportCSVConfig, IVMConfig, Snapshot, Export -export Configure, Write, Epoch, Read, Transaction, WhatIf +export SnapshotMapping, Abort, Output, ExportCSVColumns, IVMConfig, Snapshot +export ExportCSVSource, Configure, Write, ExportCSVConfig, Export, Epoch, Read, Transaction +export WhatIf abstract type var"##Abstract#Transaction" end abstract type var"##Abstract#Epoch" end abstract type var"##Abstract#Read" end @@ -319,82 +320,34 @@ function PB._encoded_size(x::Output) return encoded_size end -struct ExportCSVConfig - path::String - data_columns::Vector{ExportCSVColumn} - partition_size::Int64 - compression::String - syntax_header_row::Bool - syntax_missing_string::String - syntax_delim::String - syntax_quotechar::String - syntax_escapechar::String +struct ExportCSVColumns + columns::Vector{ExportCSVColumn} end -ExportCSVConfig(;path = "", data_columns = Vector{ExportCSVColumn}(), partition_size = zero(Int64), compression = "", syntax_header_row = false, syntax_missing_string = "", syntax_delim = "", syntax_quotechar = "", syntax_escapechar = "") = ExportCSVConfig(path, data_columns, partition_size, compression, syntax_header_row, syntax_missing_string, syntax_delim, syntax_quotechar, syntax_escapechar) -PB.default_values(::Type{ExportCSVConfig}) = (;path = "", data_columns = Vector{ExportCSVColumn}(), partition_size = zero(Int64), compression = "", syntax_header_row = false, syntax_missing_string = "", syntax_delim = "", syntax_quotechar = "", syntax_escapechar = "") -PB.field_numbers(::Type{ExportCSVConfig}) = (;path = 1, data_columns = 2, partition_size = 3, compression = 4, syntax_header_row = 5, syntax_missing_string = 6, syntax_delim = 7, syntax_quotechar = 8, syntax_escapechar = 9) +ExportCSVColumns(;columns = Vector{ExportCSVColumn}()) = ExportCSVColumns(columns) +PB.default_values(::Type{ExportCSVColumns}) = (;columns = Vector{ExportCSVColumn}()) +PB.field_numbers(::Type{ExportCSVColumns}) = (;columns = 1) -function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:ExportCSVConfig}) - path = "" - data_columns = PB.BufferedVector{ExportCSVColumn}() - partition_size = zero(Int64) - compression = "" - syntax_header_row = false - syntax_missing_string = "" - syntax_delim = "" - syntax_quotechar = "" - syntax_escapechar = "" +function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:ExportCSVColumns}) + columns = PB.BufferedVector{ExportCSVColumn}() while !PB.message_done(d) field_number, wire_type = PB.decode_tag(d) if field_number == 1 - path = PB.decode(d, String) - elseif field_number == 2 - PB.decode!(d, data_columns) - elseif field_number == 3 - partition_size = PB.decode(d, Int64) - elseif field_number == 4 - compression = PB.decode(d, String) - elseif field_number == 5 - syntax_header_row = PB.decode(d, Bool) - elseif field_number == 6 - syntax_missing_string = PB.decode(d, String) - elseif field_number == 7 - syntax_delim = PB.decode(d, String) - elseif field_number == 8 - syntax_quotechar = PB.decode(d, String) - elseif field_number == 9 - syntax_escapechar = PB.decode(d, String) + PB.decode!(d, columns) else Base.skip(d, wire_type) end end - return ExportCSVConfig(path, data_columns[], partition_size, compression, syntax_header_row, syntax_missing_string, syntax_delim, syntax_quotechar, syntax_escapechar) + return ExportCSVColumns(columns[]) end -function PB.encode(e::PB.AbstractProtoEncoder, x::ExportCSVConfig) +function PB.encode(e::PB.AbstractProtoEncoder, x::ExportCSVColumns) initpos = position(e.io) - !isempty(x.path) && PB.encode(e, 1, x.path) - !isempty(x.data_columns) && PB.encode(e, 2, x.data_columns) - x.partition_size != zero(Int64) && PB.encode(e, 3, x.partition_size) - !isempty(x.compression) && PB.encode(e, 4, x.compression) - x.syntax_header_row != false && PB.encode(e, 5, x.syntax_header_row) - !isempty(x.syntax_missing_string) && PB.encode(e, 6, x.syntax_missing_string) - !isempty(x.syntax_delim) && PB.encode(e, 7, x.syntax_delim) - !isempty(x.syntax_quotechar) && PB.encode(e, 8, x.syntax_quotechar) - !isempty(x.syntax_escapechar) && PB.encode(e, 9, x.syntax_escapechar) + !isempty(x.columns) && PB.encode(e, 1, x.columns) return position(e.io) - initpos end -function PB._encoded_size(x::ExportCSVConfig) +function PB._encoded_size(x::ExportCSVColumns) encoded_size = 0 - !isempty(x.path) && (encoded_size += PB._encoded_size(x.path, 1)) - !isempty(x.data_columns) && (encoded_size += PB._encoded_size(x.data_columns, 2)) - x.partition_size != zero(Int64) && (encoded_size += PB._encoded_size(x.partition_size, 3)) - !isempty(x.compression) && (encoded_size += PB._encoded_size(x.compression, 4)) - x.syntax_header_row != false && (encoded_size += PB._encoded_size(x.syntax_header_row, 5)) - !isempty(x.syntax_missing_string) && (encoded_size += PB._encoded_size(x.syntax_missing_string, 6)) - !isempty(x.syntax_delim) && (encoded_size += PB._encoded_size(x.syntax_delim, 7)) - !isempty(x.syntax_quotechar) && (encoded_size += PB._encoded_size(x.syntax_quotechar, 8)) - !isempty(x.syntax_escapechar) && (encoded_size += PB._encoded_size(x.syntax_escapechar, 9)) + !isempty(x.columns) && (encoded_size += PB._encoded_size(x.columns, 1)) return encoded_size end @@ -460,42 +413,48 @@ function PB._encoded_size(x::Snapshot) return encoded_size end -struct Export - export_config::Union{Nothing,OneOf{ExportCSVConfig}} +struct ExportCSVSource + csv_source::Union{Nothing,OneOf{<:Union{ExportCSVColumns,RelationId}}} end -Export(;export_config = nothing) = Export(export_config) -PB.oneof_field_types(::Type{Export}) = (; - export_config = (;csv_config=ExportCSVConfig), +ExportCSVSource(;csv_source = nothing) = ExportCSVSource(csv_source) +PB.oneof_field_types(::Type{ExportCSVSource}) = (; + csv_source = (;gnf_columns=ExportCSVColumns, table_def=RelationId), ) -PB.default_values(::Type{Export}) = (;csv_config = nothing) -PB.field_numbers(::Type{Export}) = (;csv_config = 1) +PB.default_values(::Type{ExportCSVSource}) = (;gnf_columns = nothing, table_def = nothing) +PB.field_numbers(::Type{ExportCSVSource}) = (;gnf_columns = 1, table_def = 2) -function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:Export}) - export_config = nothing +function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:ExportCSVSource}) + csv_source = nothing while !PB.message_done(d) field_number, wire_type = PB.decode_tag(d) if field_number == 1 - export_config = OneOf(:csv_config, PB.decode(d, Ref{ExportCSVConfig})) + csv_source = OneOf(:gnf_columns, PB.decode(d, Ref{ExportCSVColumns})) + elseif field_number == 2 + csv_source = OneOf(:table_def, PB.decode(d, Ref{RelationId})) else Base.skip(d, wire_type) end end - return Export(export_config) + return ExportCSVSource(csv_source) end -function PB.encode(e::PB.AbstractProtoEncoder, x::Export) +function PB.encode(e::PB.AbstractProtoEncoder, x::ExportCSVSource) initpos = position(e.io) - if isnothing(x.export_config); - elseif x.export_config.name === :csv_config - PB.encode(e, 1, x.export_config[]::ExportCSVConfig) + if isnothing(x.csv_source); + elseif x.csv_source.name === :gnf_columns + PB.encode(e, 1, x.csv_source[]::ExportCSVColumns) + elseif x.csv_source.name === :table_def + PB.encode(e, 2, x.csv_source[]::RelationId) end return position(e.io) - initpos end -function PB._encoded_size(x::Export) +function PB._encoded_size(x::ExportCSVSource) encoded_size = 0 - if isnothing(x.export_config); - elseif x.export_config.name === :csv_config - encoded_size += PB._encoded_size(x.export_config[]::ExportCSVConfig, 1) + if isnothing(x.csv_source); + elseif x.csv_source.name === :gnf_columns + encoded_size += PB._encoded_size(x.csv_source[]::ExportCSVColumns, 1) + elseif x.csv_source.name === :table_def + encoded_size += PB._encoded_size(x.csv_source[]::RelationId, 2) end return encoded_size end @@ -596,6 +555,137 @@ function PB._encoded_size(x::Write) return encoded_size end +struct ExportCSVConfig + path::String + csv_source::Union{Nothing,ExportCSVSource} + csv_config::Union{Nothing,CSVConfig} + data_columns::Vector{ExportCSVColumn} + partition_size::Int64 + compression::String + syntax_header_row::Bool + syntax_missing_string::String + syntax_delim::String + syntax_quotechar::String + syntax_escapechar::String +end +ExportCSVConfig(;path = "", csv_source = nothing, csv_config = nothing, data_columns = Vector{ExportCSVColumn}(), partition_size = zero(Int64), compression = "", syntax_header_row = false, syntax_missing_string = "", syntax_delim = "", syntax_quotechar = "", syntax_escapechar = "") = ExportCSVConfig(path, csv_source, csv_config, data_columns, partition_size, compression, syntax_header_row, syntax_missing_string, syntax_delim, syntax_quotechar, syntax_escapechar) +PB.default_values(::Type{ExportCSVConfig}) = (;path = "", csv_source = nothing, csv_config = nothing, data_columns = Vector{ExportCSVColumn}(), partition_size = zero(Int64), compression = "", syntax_header_row = false, syntax_missing_string = "", syntax_delim = "", syntax_quotechar = "", syntax_escapechar = "") +PB.field_numbers(::Type{ExportCSVConfig}) = (;path = 1, csv_source = 10, csv_config = 11, data_columns = 2, partition_size = 3, compression = 4, syntax_header_row = 5, syntax_missing_string = 6, syntax_delim = 7, syntax_quotechar = 8, syntax_escapechar = 9) + +function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:ExportCSVConfig}) + path = "" + csv_source = Ref{Union{Nothing,ExportCSVSource}}(nothing) + csv_config = Ref{Union{Nothing,CSVConfig}}(nothing) + data_columns = PB.BufferedVector{ExportCSVColumn}() + partition_size = zero(Int64) + compression = "" + syntax_header_row = false + syntax_missing_string = "" + syntax_delim = "" + syntax_quotechar = "" + syntax_escapechar = "" + while !PB.message_done(d) + field_number, wire_type = PB.decode_tag(d) + if field_number == 1 + path = PB.decode(d, String) + elseif field_number == 10 + PB.decode!(d, csv_source) + elseif field_number == 11 + PB.decode!(d, csv_config) + elseif field_number == 2 + PB.decode!(d, data_columns) + elseif field_number == 3 + partition_size = PB.decode(d, Int64) + elseif field_number == 4 + compression = PB.decode(d, String) + elseif field_number == 5 + syntax_header_row = PB.decode(d, Bool) + elseif field_number == 6 + syntax_missing_string = PB.decode(d, String) + elseif field_number == 7 + syntax_delim = PB.decode(d, String) + elseif field_number == 8 + syntax_quotechar = PB.decode(d, String) + elseif field_number == 9 + syntax_escapechar = PB.decode(d, String) + else + Base.skip(d, wire_type) + end + end + return ExportCSVConfig(path, csv_source[], csv_config[], data_columns[], partition_size, compression, syntax_header_row, syntax_missing_string, syntax_delim, syntax_quotechar, syntax_escapechar) +end + +function PB.encode(e::PB.AbstractProtoEncoder, x::ExportCSVConfig) + initpos = position(e.io) + !isempty(x.path) && PB.encode(e, 1, x.path) + !isnothing(x.csv_source) && PB.encode(e, 10, x.csv_source) + !isnothing(x.csv_config) && PB.encode(e, 11, x.csv_config) + !isempty(x.data_columns) && PB.encode(e, 2, x.data_columns) + x.partition_size != zero(Int64) && PB.encode(e, 3, x.partition_size) + !isempty(x.compression) && PB.encode(e, 4, x.compression) + x.syntax_header_row != false && PB.encode(e, 5, x.syntax_header_row) + !isempty(x.syntax_missing_string) && PB.encode(e, 6, x.syntax_missing_string) + !isempty(x.syntax_delim) && PB.encode(e, 7, x.syntax_delim) + !isempty(x.syntax_quotechar) && PB.encode(e, 8, x.syntax_quotechar) + !isempty(x.syntax_escapechar) && PB.encode(e, 9, x.syntax_escapechar) + return position(e.io) - initpos +end +function PB._encoded_size(x::ExportCSVConfig) + encoded_size = 0 + !isempty(x.path) && (encoded_size += PB._encoded_size(x.path, 1)) + !isnothing(x.csv_source) && (encoded_size += PB._encoded_size(x.csv_source, 10)) + !isnothing(x.csv_config) && (encoded_size += PB._encoded_size(x.csv_config, 11)) + !isempty(x.data_columns) && (encoded_size += PB._encoded_size(x.data_columns, 2)) + x.partition_size != zero(Int64) && (encoded_size += PB._encoded_size(x.partition_size, 3)) + !isempty(x.compression) && (encoded_size += PB._encoded_size(x.compression, 4)) + x.syntax_header_row != false && (encoded_size += PB._encoded_size(x.syntax_header_row, 5)) + !isempty(x.syntax_missing_string) && (encoded_size += PB._encoded_size(x.syntax_missing_string, 6)) + !isempty(x.syntax_delim) && (encoded_size += PB._encoded_size(x.syntax_delim, 7)) + !isempty(x.syntax_quotechar) && (encoded_size += PB._encoded_size(x.syntax_quotechar, 8)) + !isempty(x.syntax_escapechar) && (encoded_size += PB._encoded_size(x.syntax_escapechar, 9)) + return encoded_size +end + +struct Export + export_config::Union{Nothing,OneOf{ExportCSVConfig}} +end +Export(;export_config = nothing) = Export(export_config) +PB.oneof_field_types(::Type{Export}) = (; + export_config = (;csv_config=ExportCSVConfig), +) +PB.default_values(::Type{Export}) = (;csv_config = nothing) +PB.field_numbers(::Type{Export}) = (;csv_config = 1) + +function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:Export}) + export_config = nothing + while !PB.message_done(d) + field_number, wire_type = PB.decode_tag(d) + if field_number == 1 + export_config = OneOf(:csv_config, PB.decode(d, Ref{ExportCSVConfig})) + else + Base.skip(d, wire_type) + end + end + return Export(export_config) +end + +function PB.encode(e::PB.AbstractProtoEncoder, x::Export) + initpos = position(e.io) + if isnothing(x.export_config); + elseif x.export_config.name === :csv_config + PB.encode(e, 1, x.export_config[]::ExportCSVConfig) + end + return position(e.io) - initpos +end +function PB._encoded_size(x::Export) + encoded_size = 0 + if isnothing(x.export_config); + elseif x.export_config.name === :csv_config + encoded_size += PB._encoded_size(x.export_config[]::ExportCSVConfig, 1) + end + return encoded_size +end + # Stub definitions for cyclic types struct var"##Stub#Epoch"{T1<:var"##Abstract#Read"} <: var"##Abstract#Epoch" writes::Vector{Write} diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl b/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl index 40b58a46..50598622 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl @@ -305,7 +305,7 @@ function _extract_value_int32(parser::ParserState, value::Union{Nothing, Proto.V if (!isnothing(value) && _has_proto_field(value, Symbol("int_value"))) return Int32(_get_oneof_field(value, :int_value)) else - _t1339 = nothing + _t1378 = nothing end return Int32(default) end @@ -314,7 +314,7 @@ function _extract_value_int64(parser::ParserState, value::Union{Nothing, Proto.V if (!isnothing(value) && _has_proto_field(value, Symbol("int_value"))) return _get_oneof_field(value, :int_value) else - _t1340 = nothing + _t1379 = nothing end return default end @@ -323,7 +323,7 @@ function _extract_value_string(parser::ParserState, value::Union{Nothing, Proto. if (!isnothing(value) && _has_proto_field(value, Symbol("string_value"))) return _get_oneof_field(value, :string_value) else - _t1341 = nothing + _t1380 = nothing end return default end @@ -332,7 +332,7 @@ function _extract_value_boolean(parser::ParserState, value::Union{Nothing, Proto if (!isnothing(value) && _has_proto_field(value, Symbol("boolean_value"))) return _get_oneof_field(value, :boolean_value) else - _t1342 = nothing + _t1381 = nothing end return default end @@ -341,7 +341,7 @@ function _extract_value_string_list(parser::ParserState, value::Union{Nothing, P if (!isnothing(value) && _has_proto_field(value, Symbol("string_value"))) return String[_get_oneof_field(value, :string_value)] else - _t1343 = nothing + _t1382 = nothing end return default end @@ -350,7 +350,7 @@ function _try_extract_value_int64(parser::ParserState, value::Union{Nothing, Pro if (!isnothing(value) && _has_proto_field(value, Symbol("int_value"))) return _get_oneof_field(value, :int_value) else - _t1344 = nothing + _t1383 = nothing end return nothing end @@ -359,7 +359,7 @@ function _try_extract_value_float64(parser::ParserState, value::Union{Nothing, P if (!isnothing(value) && _has_proto_field(value, Symbol("float_value"))) return _get_oneof_field(value, :float_value) else - _t1345 = nothing + _t1384 = nothing end return nothing end @@ -368,7 +368,7 @@ function _try_extract_value_bytes(parser::ParserState, value::Union{Nothing, Pro if (!isnothing(value) && _has_proto_field(value, Symbol("string_value"))) return Vector{UInt8}(_get_oneof_field(value, :string_value)) else - _t1346 = nothing + _t1385 = nothing end return nothing end @@ -377,70 +377,72 @@ function _try_extract_value_uint128(parser::ParserState, value::Union{Nothing, P if (!isnothing(value) && _has_proto_field(value, Symbol("uint128_value"))) return _get_oneof_field(value, :uint128_value) else - _t1347 = nothing + _t1386 = nothing end return nothing end function construct_csv_config(parser::ParserState, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.CSVConfig config = Dict(config_dict) - _t1348 = _extract_value_int32(parser, get(config, "csv_header_row", nothing), 1) - header_row = _t1348 - _t1349 = _extract_value_int64(parser, get(config, "csv_skip", nothing), 0) - skip = _t1349 - _t1350 = _extract_value_string(parser, get(config, "csv_new_line", nothing), "") - new_line = _t1350 - _t1351 = _extract_value_string(parser, get(config, "csv_delimiter", nothing), ",") - delimiter = _t1351 - _t1352 = _extract_value_string(parser, get(config, "csv_quotechar", nothing), "\"") - quotechar = _t1352 - _t1353 = _extract_value_string(parser, get(config, "csv_escapechar", nothing), "\"") - escapechar = _t1353 - _t1354 = _extract_value_string(parser, get(config, "csv_comment", nothing), "") - comment = _t1354 - _t1355 = _extract_value_string_list(parser, get(config, "csv_missing_strings", nothing), String[]) - missing_strings = _t1355 - _t1356 = _extract_value_string(parser, get(config, "csv_decimal_separator", nothing), ".") - decimal_separator = _t1356 - _t1357 = _extract_value_string(parser, get(config, "csv_encoding", nothing), "utf-8") - encoding = _t1357 - _t1358 = _extract_value_string(parser, get(config, "csv_compression", nothing), "auto") - compression = _t1358 - _t1359 = Proto.CSVConfig(header_row=header_row, skip=skip, new_line=new_line, delimiter=delimiter, quotechar=quotechar, escapechar=escapechar, comment=comment, missing_strings=missing_strings, decimal_separator=decimal_separator, encoding=encoding, compression=compression) - return _t1359 + _t1387 = _extract_value_int32(parser, get(config, "csv_header_row", nothing), 1) + header_row = _t1387 + _t1388 = _extract_value_int64(parser, get(config, "csv_skip", nothing), 0) + skip = _t1388 + _t1389 = _extract_value_string(parser, get(config, "csv_new_line", nothing), "") + new_line = _t1389 + _t1390 = _extract_value_string(parser, get(config, "csv_delimiter", nothing), ",") + delimiter = _t1390 + _t1391 = _extract_value_string(parser, get(config, "csv_quotechar", nothing), "\"") + quotechar = _t1391 + _t1392 = _extract_value_string(parser, get(config, "csv_escapechar", nothing), "\"") + escapechar = _t1392 + _t1393 = _extract_value_string(parser, get(config, "csv_comment", nothing), "") + comment = _t1393 + _t1394 = _extract_value_string_list(parser, get(config, "csv_missing_strings", nothing), String[]) + missing_strings = _t1394 + _t1395 = _extract_value_string(parser, get(config, "csv_decimal_separator", nothing), ".") + decimal_separator = _t1395 + _t1396 = _extract_value_string(parser, get(config, "csv_encoding", nothing), "utf-8") + encoding = _t1396 + _t1397 = _extract_value_string(parser, get(config, "csv_compression", nothing), "auto") + compression = _t1397 + _t1398 = _extract_value_int64(parser, get(config, "csv_partition_size_mb", nothing), 0) + partition_size_mb = _t1398 + _t1399 = Proto.CSVConfig(header_row=header_row, skip=skip, new_line=new_line, delimiter=delimiter, quotechar=quotechar, escapechar=escapechar, comment=comment, missing_strings=missing_strings, decimal_separator=decimal_separator, encoding=encoding, compression=compression, partition_size_mb=partition_size_mb) + return _t1399 end function construct_betree_info(parser::ParserState, key_types::Vector{Proto.var"#Type"}, value_types::Vector{Proto.var"#Type"}, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.BeTreeInfo config = Dict(config_dict) - _t1360 = _try_extract_value_float64(parser, get(config, "betree_config_epsilon", nothing)) - epsilon = _t1360 - _t1361 = _try_extract_value_int64(parser, get(config, "betree_config_max_pivots", nothing)) - max_pivots = _t1361 - _t1362 = _try_extract_value_int64(parser, get(config, "betree_config_max_deltas", nothing)) - max_deltas = _t1362 - _t1363 = _try_extract_value_int64(parser, get(config, "betree_config_max_leaf", nothing)) - max_leaf = _t1363 - _t1364 = Proto.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) - storage_config = _t1364 - _t1365 = _try_extract_value_uint128(parser, get(config, "betree_locator_root_pageid", nothing)) - root_pageid = _t1365 - _t1366 = _try_extract_value_bytes(parser, get(config, "betree_locator_inline_data", nothing)) - inline_data = _t1366 - _t1367 = _try_extract_value_int64(parser, get(config, "betree_locator_element_count", nothing)) - element_count = _t1367 - _t1368 = _try_extract_value_int64(parser, get(config, "betree_locator_tree_height", nothing)) - tree_height = _t1368 - _t1369 = Proto.BeTreeLocator(location=(!isnothing(root_pageid) ? OneOf(:root_pageid, root_pageid) : (!isnothing(inline_data) ? OneOf(:inline_data, inline_data) : nothing)), element_count=element_count, tree_height=tree_height) - relation_locator = _t1369 - _t1370 = Proto.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) - return _t1370 + _t1400 = _try_extract_value_float64(parser, get(config, "betree_config_epsilon", nothing)) + epsilon = _t1400 + _t1401 = _try_extract_value_int64(parser, get(config, "betree_config_max_pivots", nothing)) + max_pivots = _t1401 + _t1402 = _try_extract_value_int64(parser, get(config, "betree_config_max_deltas", nothing)) + max_deltas = _t1402 + _t1403 = _try_extract_value_int64(parser, get(config, "betree_config_max_leaf", nothing)) + max_leaf = _t1403 + _t1404 = Proto.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) + storage_config = _t1404 + _t1405 = _try_extract_value_uint128(parser, get(config, "betree_locator_root_pageid", nothing)) + root_pageid = _t1405 + _t1406 = _try_extract_value_bytes(parser, get(config, "betree_locator_inline_data", nothing)) + inline_data = _t1406 + _t1407 = _try_extract_value_int64(parser, get(config, "betree_locator_element_count", nothing)) + element_count = _t1407 + _t1408 = _try_extract_value_int64(parser, get(config, "betree_locator_tree_height", nothing)) + tree_height = _t1408 + _t1409 = Proto.BeTreeLocator(location=(!isnothing(root_pageid) ? OneOf(:root_pageid, root_pageid) : (!isnothing(inline_data) ? OneOf(:inline_data, inline_data) : nothing)), element_count=element_count, tree_height=tree_height) + relation_locator = _t1409 + _t1410 = Proto.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) + return _t1410 end function default_configure(parser::ParserState)::Proto.Configure - _t1371 = Proto.IVMConfig(level=Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) - ivm_config = _t1371 - _t1372 = Proto.Configure(semantics_version=0, ivm_config=ivm_config) - return _t1372 + _t1411 = Proto.IVMConfig(level=Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) + ivm_config = _t1411 + _t1412 = Proto.Configure(semantics_version=0, ivm_config=ivm_config) + return _t1412 end function construct_configure(parser::ParserState, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.Configure @@ -462,32 +464,37 @@ function construct_configure(parser::ParserState, config_dict::Vector{Tuple{Stri end end end - _t1373 = Proto.IVMConfig(level=maintenance_level) - ivm_config = _t1373 - _t1374 = _extract_value_int64(parser, get(config, "semantics_version", nothing), 0) - semantics_version = _t1374 - _t1375 = Proto.Configure(semantics_version=semantics_version, ivm_config=ivm_config) - return _t1375 + _t1413 = Proto.IVMConfig(level=maintenance_level) + ivm_config = _t1413 + _t1414 = _extract_value_int64(parser, get(config, "semantics_version", nothing), 0) + semantics_version = _t1414 + _t1415 = Proto.Configure(semantics_version=semantics_version, ivm_config=ivm_config) + return _t1415 end -function export_csv_config(parser::ParserState, path::String, columns::Vector{Proto.ExportCSVColumn}, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.ExportCSVConfig +function construct_export_csv_config(parser::ParserState, path::String, columns::Vector{Proto.ExportCSVColumn}, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.ExportCSVConfig config = Dict(config_dict) - _t1376 = _extract_value_int64(parser, get(config, "partition_size", nothing), 0) - partition_size = _t1376 - _t1377 = _extract_value_string(parser, get(config, "compression", nothing), "") - compression = _t1377 - _t1378 = _extract_value_boolean(parser, get(config, "syntax_header_row", nothing), true) - syntax_header_row = _t1378 - _t1379 = _extract_value_string(parser, get(config, "syntax_missing_string", nothing), "") - syntax_missing_string = _t1379 - _t1380 = _extract_value_string(parser, get(config, "syntax_delim", nothing), ",") - syntax_delim = _t1380 - _t1381 = _extract_value_string(parser, get(config, "syntax_quotechar", nothing), "\"") - syntax_quotechar = _t1381 - _t1382 = _extract_value_string(parser, get(config, "syntax_escapechar", nothing), "\\") - syntax_escapechar = _t1382 - _t1383 = Proto.ExportCSVConfig(path=path, data_columns=columns, partition_size=partition_size, compression=compression, syntax_header_row=syntax_header_row, syntax_missing_string=syntax_missing_string, syntax_delim=syntax_delim, syntax_quotechar=syntax_quotechar, syntax_escapechar=syntax_escapechar) - return _t1383 + _t1416 = _extract_value_int64(parser, get(config, "partition_size", nothing), 0) + partition_size = _t1416 + _t1417 = _extract_value_string(parser, get(config, "compression", nothing), "") + compression = _t1417 + _t1418 = _extract_value_boolean(parser, get(config, "syntax_header_row", nothing), true) + syntax_header_row = _t1418 + _t1419 = _extract_value_string(parser, get(config, "syntax_missing_string", nothing), "") + syntax_missing_string = _t1419 + _t1420 = _extract_value_string(parser, get(config, "syntax_delim", nothing), ",") + syntax_delim = _t1420 + _t1421 = _extract_value_string(parser, get(config, "syntax_quotechar", nothing), "\"") + syntax_quotechar = _t1421 + _t1422 = _extract_value_string(parser, get(config, "syntax_escapechar", nothing), "\\") + syntax_escapechar = _t1422 + _t1423 = Proto.ExportCSVConfig(path=path, data_columns=columns, partition_size=partition_size, compression=compression, syntax_header_row=syntax_header_row, syntax_missing_string=syntax_missing_string, syntax_delim=syntax_delim, syntax_quotechar=syntax_quotechar, syntax_escapechar=syntax_escapechar) + return _t1423 +end + +function construct_export_csv_config_with_source(parser::ParserState, path::String, csv_source::Proto.ExportCSVSource, csv_config::Proto.CSVConfig)::Proto.ExportCSVConfig + _t1424 = Proto.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) + return _t1424 end # --- Parse functions --- @@ -496,2755 +503,2841 @@ function parse_transaction(parser::ParserState)::Proto.Transaction consume_literal!(parser, "(") consume_literal!(parser, "transaction") if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "configure", 1)) - _t733 = parse_configure(parser) - _t732 = _t733 + _t753 = parse_configure(parser) + _t752 = _t753 else - _t732 = nothing + _t752 = nothing end - configure366 = _t732 + configure376 = _t752 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "sync", 1)) - _t735 = parse_sync(parser) - _t734 = _t735 + _t755 = parse_sync(parser) + _t754 = _t755 else - _t734 = nothing + _t754 = nothing end - sync367 = _t734 - xs368 = Proto.Epoch[] - cond369 = match_lookahead_literal(parser, "(", 0) - while cond369 - _t736 = parse_epoch(parser) - item370 = _t736 - push!(xs368, item370) - cond369 = match_lookahead_literal(parser, "(", 0) + sync377 = _t754 + xs378 = Proto.Epoch[] + cond379 = match_lookahead_literal(parser, "(", 0) + while cond379 + _t756 = parse_epoch(parser) + item380 = _t756 + push!(xs378, item380) + cond379 = match_lookahead_literal(parser, "(", 0) end - epochs371 = xs368 + epochs381 = xs378 consume_literal!(parser, ")") - _t737 = default_configure(parser) - _t738 = Proto.Transaction(epochs=epochs371, configure=(!isnothing(configure366) ? configure366 : _t737), sync=sync367) - return _t738 + _t757 = default_configure(parser) + _t758 = Proto.Transaction(epochs=epochs381, configure=(!isnothing(configure376) ? configure376 : _t757), sync=sync377) + return _t758 end function parse_configure(parser::ParserState)::Proto.Configure consume_literal!(parser, "(") consume_literal!(parser, "configure") - _t739 = parse_config_dict(parser) - config_dict372 = _t739 + _t759 = parse_config_dict(parser) + config_dict382 = _t759 consume_literal!(parser, ")") - _t740 = construct_configure(parser, config_dict372) - return _t740 + _t760 = construct_configure(parser, config_dict382) + return _t760 end function parse_config_dict(parser::ParserState)::Vector{Tuple{String, Proto.Value}} consume_literal!(parser, "{") - xs373 = Tuple{String, Proto.Value}[] - cond374 = match_lookahead_literal(parser, ":", 0) - while cond374 - _t741 = parse_config_key_value(parser) - item375 = _t741 - push!(xs373, item375) - cond374 = match_lookahead_literal(parser, ":", 0) - end - config_key_values376 = xs373 + xs383 = Tuple{String, Proto.Value}[] + cond384 = match_lookahead_literal(parser, ":", 0) + while cond384 + _t761 = parse_config_key_value(parser) + item385 = _t761 + push!(xs383, item385) + cond384 = match_lookahead_literal(parser, ":", 0) + end + config_key_values386 = xs383 consume_literal!(parser, "}") - return config_key_values376 + return config_key_values386 end function parse_config_key_value(parser::ParserState)::Tuple{String, Proto.Value} consume_literal!(parser, ":") - symbol377 = consume_terminal!(parser, "SYMBOL") - _t742 = parse_value(parser) - value378 = _t742 - return (symbol377, value378,) + symbol387 = consume_terminal!(parser, "SYMBOL") + _t762 = parse_value(parser) + value388 = _t762 + return (symbol387, value388,) end function parse_value(parser::ParserState)::Proto.Value if match_lookahead_literal(parser, "true", 0) - _t743 = 9 + _t763 = 9 else if match_lookahead_literal(parser, "missing", 0) - _t744 = 8 + _t764 = 8 else if match_lookahead_literal(parser, "false", 0) - _t745 = 9 + _t765 = 9 else if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "datetime", 1) - _t747 = 1 + _t767 = 1 else if match_lookahead_literal(parser, "date", 1) - _t748 = 0 + _t768 = 0 else - _t748 = -1 + _t768 = -1 end - _t747 = _t748 + _t767 = _t768 end - _t746 = _t747 + _t766 = _t767 else if match_lookahead_terminal(parser, "UINT128", 0) - _t749 = 5 + _t769 = 5 else if match_lookahead_terminal(parser, "STRING", 0) - _t750 = 2 + _t770 = 2 else if match_lookahead_terminal(parser, "INT128", 0) - _t751 = 6 + _t771 = 6 else if match_lookahead_terminal(parser, "INT", 0) - _t752 = 3 + _t772 = 3 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t753 = 4 + _t773 = 4 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t754 = 7 + _t774 = 7 else - _t754 = -1 + _t774 = -1 end - _t753 = _t754 + _t773 = _t774 end - _t752 = _t753 + _t772 = _t773 end - _t751 = _t752 + _t771 = _t772 end - _t750 = _t751 + _t770 = _t771 end - _t749 = _t750 + _t769 = _t770 end - _t746 = _t749 + _t766 = _t769 end - _t745 = _t746 + _t765 = _t766 end - _t744 = _t745 + _t764 = _t765 end - _t743 = _t744 - end - prediction379 = _t743 - if prediction379 == 9 - _t756 = parse_boolean_value(parser) - boolean_value388 = _t756 - _t757 = Proto.Value(value=OneOf(:boolean_value, boolean_value388)) - _t755 = _t757 + _t763 = _t764 + end + prediction389 = _t763 + if prediction389 == 9 + _t776 = parse_boolean_value(parser) + boolean_value398 = _t776 + _t777 = Proto.Value(value=OneOf(:boolean_value, boolean_value398)) + _t775 = _t777 else - if prediction379 == 8 + if prediction389 == 8 consume_literal!(parser, "missing") - _t759 = Proto.MissingValue() - _t760 = Proto.Value(value=OneOf(:missing_value, _t759)) - _t758 = _t760 + _t779 = Proto.MissingValue() + _t780 = Proto.Value(value=OneOf(:missing_value, _t779)) + _t778 = _t780 else - if prediction379 == 7 - decimal387 = consume_terminal!(parser, "DECIMAL") - _t762 = Proto.Value(value=OneOf(:decimal_value, decimal387)) - _t761 = _t762 + if prediction389 == 7 + decimal397 = consume_terminal!(parser, "DECIMAL") + _t782 = Proto.Value(value=OneOf(:decimal_value, decimal397)) + _t781 = _t782 else - if prediction379 == 6 - int128386 = consume_terminal!(parser, "INT128") - _t764 = Proto.Value(value=OneOf(:int128_value, int128386)) - _t763 = _t764 + if prediction389 == 6 + int128396 = consume_terminal!(parser, "INT128") + _t784 = Proto.Value(value=OneOf(:int128_value, int128396)) + _t783 = _t784 else - if prediction379 == 5 - uint128385 = consume_terminal!(parser, "UINT128") - _t766 = Proto.Value(value=OneOf(:uint128_value, uint128385)) - _t765 = _t766 + if prediction389 == 5 + uint128395 = consume_terminal!(parser, "UINT128") + _t786 = Proto.Value(value=OneOf(:uint128_value, uint128395)) + _t785 = _t786 else - if prediction379 == 4 - float384 = consume_terminal!(parser, "FLOAT") - _t768 = Proto.Value(value=OneOf(:float_value, float384)) - _t767 = _t768 + if prediction389 == 4 + float394 = consume_terminal!(parser, "FLOAT") + _t788 = Proto.Value(value=OneOf(:float_value, float394)) + _t787 = _t788 else - if prediction379 == 3 - int383 = consume_terminal!(parser, "INT") - _t770 = Proto.Value(value=OneOf(:int_value, int383)) - _t769 = _t770 + if prediction389 == 3 + int393 = consume_terminal!(parser, "INT") + _t790 = Proto.Value(value=OneOf(:int_value, int393)) + _t789 = _t790 else - if prediction379 == 2 - string382 = consume_terminal!(parser, "STRING") - _t772 = Proto.Value(value=OneOf(:string_value, string382)) - _t771 = _t772 + if prediction389 == 2 + string392 = consume_terminal!(parser, "STRING") + _t792 = Proto.Value(value=OneOf(:string_value, string392)) + _t791 = _t792 else - if prediction379 == 1 - _t774 = parse_datetime(parser) - datetime381 = _t774 - _t775 = Proto.Value(value=OneOf(:datetime_value, datetime381)) - _t773 = _t775 + if prediction389 == 1 + _t794 = parse_datetime(parser) + datetime391 = _t794 + _t795 = Proto.Value(value=OneOf(:datetime_value, datetime391)) + _t793 = _t795 else - if prediction379 == 0 - _t777 = parse_date(parser) - date380 = _t777 - _t778 = Proto.Value(value=OneOf(:date_value, date380)) - _t776 = _t778 + if prediction389 == 0 + _t797 = parse_date(parser) + date390 = _t797 + _t798 = Proto.Value(value=OneOf(:date_value, date390)) + _t796 = _t798 else throw(ParseError("Unexpected token in value" * ": " * string(lookahead(parser, 0)))) end - _t773 = _t776 + _t793 = _t796 end - _t771 = _t773 + _t791 = _t793 end - _t769 = _t771 + _t789 = _t791 end - _t767 = _t769 + _t787 = _t789 end - _t765 = _t767 + _t785 = _t787 end - _t763 = _t765 + _t783 = _t785 end - _t761 = _t763 + _t781 = _t783 end - _t758 = _t761 + _t778 = _t781 end - _t755 = _t758 + _t775 = _t778 end - return _t755 + return _t775 end function parse_date(parser::ParserState)::Proto.DateValue consume_literal!(parser, "(") consume_literal!(parser, "date") - int389 = consume_terminal!(parser, "INT") - int_3390 = consume_terminal!(parser, "INT") - int_4391 = consume_terminal!(parser, "INT") + int399 = consume_terminal!(parser, "INT") + int_3400 = consume_terminal!(parser, "INT") + int_4401 = consume_terminal!(parser, "INT") consume_literal!(parser, ")") - _t779 = Proto.DateValue(year=Int32(int389), month=Int32(int_3390), day=Int32(int_4391)) - return _t779 + _t799 = Proto.DateValue(year=Int32(int399), month=Int32(int_3400), day=Int32(int_4401)) + return _t799 end function parse_datetime(parser::ParserState)::Proto.DateTimeValue consume_literal!(parser, "(") consume_literal!(parser, "datetime") - int392 = consume_terminal!(parser, "INT") - int_3393 = consume_terminal!(parser, "INT") - int_4394 = consume_terminal!(parser, "INT") - int_5395 = consume_terminal!(parser, "INT") - int_6396 = consume_terminal!(parser, "INT") - int_7397 = consume_terminal!(parser, "INT") + int402 = consume_terminal!(parser, "INT") + int_3403 = consume_terminal!(parser, "INT") + int_4404 = consume_terminal!(parser, "INT") + int_5405 = consume_terminal!(parser, "INT") + int_6406 = consume_terminal!(parser, "INT") + int_7407 = consume_terminal!(parser, "INT") if match_lookahead_terminal(parser, "INT", 0) - _t780 = consume_terminal!(parser, "INT") + _t800 = consume_terminal!(parser, "INT") else - _t780 = nothing + _t800 = nothing end - int_8398 = _t780 + int_8408 = _t800 consume_literal!(parser, ")") - _t781 = Proto.DateTimeValue(year=Int32(int392), month=Int32(int_3393), day=Int32(int_4394), hour=Int32(int_5395), minute=Int32(int_6396), second=Int32(int_7397), microsecond=Int32((!isnothing(int_8398) ? int_8398 : 0))) - return _t781 + _t801 = Proto.DateTimeValue(year=Int32(int402), month=Int32(int_3403), day=Int32(int_4404), hour=Int32(int_5405), minute=Int32(int_6406), second=Int32(int_7407), microsecond=Int32((!isnothing(int_8408) ? int_8408 : 0))) + return _t801 end function parse_boolean_value(parser::ParserState)::Bool if match_lookahead_literal(parser, "true", 0) - _t782 = 0 + _t802 = 0 else if match_lookahead_literal(parser, "false", 0) - _t783 = 1 + _t803 = 1 else - _t783 = -1 + _t803 = -1 end - _t782 = _t783 + _t802 = _t803 end - prediction399 = _t782 - if prediction399 == 1 + prediction409 = _t802 + if prediction409 == 1 consume_literal!(parser, "false") - _t784 = false + _t804 = false else - if prediction399 == 0 + if prediction409 == 0 consume_literal!(parser, "true") - _t785 = true + _t805 = true else throw(ParseError("Unexpected token in boolean_value" * ": " * string(lookahead(parser, 0)))) end - _t784 = _t785 + _t804 = _t805 end - return _t784 + return _t804 end function parse_sync(parser::ParserState)::Proto.Sync consume_literal!(parser, "(") consume_literal!(parser, "sync") - xs400 = Proto.FragmentId[] - cond401 = match_lookahead_literal(parser, ":", 0) - while cond401 - _t786 = parse_fragment_id(parser) - item402 = _t786 - push!(xs400, item402) - cond401 = match_lookahead_literal(parser, ":", 0) + xs410 = Proto.FragmentId[] + cond411 = match_lookahead_literal(parser, ":", 0) + while cond411 + _t806 = parse_fragment_id(parser) + item412 = _t806 + push!(xs410, item412) + cond411 = match_lookahead_literal(parser, ":", 0) end - fragment_ids403 = xs400 + fragment_ids413 = xs410 consume_literal!(parser, ")") - _t787 = Proto.Sync(fragments=fragment_ids403) - return _t787 + _t807 = Proto.Sync(fragments=fragment_ids413) + return _t807 end function parse_fragment_id(parser::ParserState)::Proto.FragmentId consume_literal!(parser, ":") - symbol404 = consume_terminal!(parser, "SYMBOL") - return Proto.FragmentId(Vector{UInt8}(symbol404)) + symbol414 = consume_terminal!(parser, "SYMBOL") + return Proto.FragmentId(Vector{UInt8}(symbol414)) end function parse_epoch(parser::ParserState)::Proto.Epoch consume_literal!(parser, "(") consume_literal!(parser, "epoch") if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "writes", 1)) - _t789 = parse_epoch_writes(parser) - _t788 = _t789 + _t809 = parse_epoch_writes(parser) + _t808 = _t809 else - _t788 = nothing + _t808 = nothing end - epoch_writes405 = _t788 + epoch_writes415 = _t808 if match_lookahead_literal(parser, "(", 0) - _t791 = parse_epoch_reads(parser) - _t790 = _t791 + _t811 = parse_epoch_reads(parser) + _t810 = _t811 else - _t790 = nothing + _t810 = nothing end - epoch_reads406 = _t790 + epoch_reads416 = _t810 consume_literal!(parser, ")") - _t792 = Proto.Epoch(writes=(!isnothing(epoch_writes405) ? epoch_writes405 : Proto.Write[]), reads=(!isnothing(epoch_reads406) ? epoch_reads406 : Proto.Read[])) - return _t792 + _t812 = Proto.Epoch(writes=(!isnothing(epoch_writes415) ? epoch_writes415 : Proto.Write[]), reads=(!isnothing(epoch_reads416) ? epoch_reads416 : Proto.Read[])) + return _t812 end function parse_epoch_writes(parser::ParserState)::Vector{Proto.Write} consume_literal!(parser, "(") consume_literal!(parser, "writes") - xs407 = Proto.Write[] - cond408 = match_lookahead_literal(parser, "(", 0) - while cond408 - _t793 = parse_write(parser) - item409 = _t793 - push!(xs407, item409) - cond408 = match_lookahead_literal(parser, "(", 0) + xs417 = Proto.Write[] + cond418 = match_lookahead_literal(parser, "(", 0) + while cond418 + _t813 = parse_write(parser) + item419 = _t813 + push!(xs417, item419) + cond418 = match_lookahead_literal(parser, "(", 0) end - writes410 = xs407 + writes420 = xs417 consume_literal!(parser, ")") - return writes410 + return writes420 end function parse_write(parser::ParserState)::Proto.Write if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "undefine", 1) - _t795 = 1 + _t815 = 1 else if match_lookahead_literal(parser, "snapshot", 1) - _t796 = 3 + _t816 = 3 else if match_lookahead_literal(parser, "define", 1) - _t797 = 0 + _t817 = 0 else if match_lookahead_literal(parser, "context", 1) - _t798 = 2 + _t818 = 2 else - _t798 = -1 + _t818 = -1 end - _t797 = _t798 + _t817 = _t818 end - _t796 = _t797 + _t816 = _t817 end - _t795 = _t796 + _t815 = _t816 end - _t794 = _t795 + _t814 = _t815 else - _t794 = -1 - end - prediction411 = _t794 - if prediction411 == 3 - _t800 = parse_snapshot(parser) - snapshot415 = _t800 - _t801 = Proto.Write(write_type=OneOf(:snapshot, snapshot415)) - _t799 = _t801 + _t814 = -1 + end + prediction421 = _t814 + if prediction421 == 3 + _t820 = parse_snapshot(parser) + snapshot425 = _t820 + _t821 = Proto.Write(write_type=OneOf(:snapshot, snapshot425)) + _t819 = _t821 else - if prediction411 == 2 - _t803 = parse_context(parser) - context414 = _t803 - _t804 = Proto.Write(write_type=OneOf(:context, context414)) - _t802 = _t804 + if prediction421 == 2 + _t823 = parse_context(parser) + context424 = _t823 + _t824 = Proto.Write(write_type=OneOf(:context, context424)) + _t822 = _t824 else - if prediction411 == 1 - _t806 = parse_undefine(parser) - undefine413 = _t806 - _t807 = Proto.Write(write_type=OneOf(:undefine, undefine413)) - _t805 = _t807 + if prediction421 == 1 + _t826 = parse_undefine(parser) + undefine423 = _t826 + _t827 = Proto.Write(write_type=OneOf(:undefine, undefine423)) + _t825 = _t827 else - if prediction411 == 0 - _t809 = parse_define(parser) - define412 = _t809 - _t810 = Proto.Write(write_type=OneOf(:define, define412)) - _t808 = _t810 + if prediction421 == 0 + _t829 = parse_define(parser) + define422 = _t829 + _t830 = Proto.Write(write_type=OneOf(:define, define422)) + _t828 = _t830 else throw(ParseError("Unexpected token in write" * ": " * string(lookahead(parser, 0)))) end - _t805 = _t808 + _t825 = _t828 end - _t802 = _t805 + _t822 = _t825 end - _t799 = _t802 + _t819 = _t822 end - return _t799 + return _t819 end function parse_define(parser::ParserState)::Proto.Define consume_literal!(parser, "(") consume_literal!(parser, "define") - _t811 = parse_fragment(parser) - fragment416 = _t811 + _t831 = parse_fragment(parser) + fragment426 = _t831 consume_literal!(parser, ")") - _t812 = Proto.Define(fragment=fragment416) - return _t812 + _t832 = Proto.Define(fragment=fragment426) + return _t832 end function parse_fragment(parser::ParserState)::Proto.Fragment consume_literal!(parser, "(") consume_literal!(parser, "fragment") - _t813 = parse_new_fragment_id(parser) - new_fragment_id417 = _t813 - xs418 = Proto.Declaration[] - cond419 = match_lookahead_literal(parser, "(", 0) - while cond419 - _t814 = parse_declaration(parser) - item420 = _t814 - push!(xs418, item420) - cond419 = match_lookahead_literal(parser, "(", 0) + _t833 = parse_new_fragment_id(parser) + new_fragment_id427 = _t833 + xs428 = Proto.Declaration[] + cond429 = match_lookahead_literal(parser, "(", 0) + while cond429 + _t834 = parse_declaration(parser) + item430 = _t834 + push!(xs428, item430) + cond429 = match_lookahead_literal(parser, "(", 0) end - declarations421 = xs418 + declarations431 = xs428 consume_literal!(parser, ")") - return construct_fragment(parser, new_fragment_id417, declarations421) + return construct_fragment(parser, new_fragment_id427, declarations431) end function parse_new_fragment_id(parser::ParserState)::Proto.FragmentId - _t815 = parse_fragment_id(parser) - fragment_id422 = _t815 - start_fragment!(parser, fragment_id422) - return fragment_id422 + _t835 = parse_fragment_id(parser) + fragment_id432 = _t835 + start_fragment!(parser, fragment_id432) + return fragment_id432 end function parse_declaration(parser::ParserState)::Proto.Declaration if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "functional_dependency", 1) - _t817 = 2 + _t837 = 2 else if match_lookahead_literal(parser, "edb", 1) - _t818 = 3 + _t838 = 3 else if match_lookahead_literal(parser, "def", 1) - _t819 = 0 + _t839 = 0 else if match_lookahead_literal(parser, "csv_data", 1) - _t820 = 3 + _t840 = 3 else if match_lookahead_literal(parser, "betree_relation", 1) - _t821 = 3 + _t841 = 3 else if match_lookahead_literal(parser, "algorithm", 1) - _t822 = 1 + _t842 = 1 else - _t822 = -1 + _t842 = -1 end - _t821 = _t822 + _t841 = _t842 end - _t820 = _t821 + _t840 = _t841 end - _t819 = _t820 + _t839 = _t840 end - _t818 = _t819 + _t838 = _t839 end - _t817 = _t818 + _t837 = _t838 end - _t816 = _t817 + _t836 = _t837 else - _t816 = -1 - end - prediction423 = _t816 - if prediction423 == 3 - _t824 = parse_data(parser) - data427 = _t824 - _t825 = Proto.Declaration(declaration_type=OneOf(:data, data427)) - _t823 = _t825 + _t836 = -1 + end + prediction433 = _t836 + if prediction433 == 3 + _t844 = parse_data(parser) + data437 = _t844 + _t845 = Proto.Declaration(declaration_type=OneOf(:data, data437)) + _t843 = _t845 else - if prediction423 == 2 - _t827 = parse_constraint(parser) - constraint426 = _t827 - _t828 = Proto.Declaration(declaration_type=OneOf(:constraint, constraint426)) - _t826 = _t828 + if prediction433 == 2 + _t847 = parse_constraint(parser) + constraint436 = _t847 + _t848 = Proto.Declaration(declaration_type=OneOf(:constraint, constraint436)) + _t846 = _t848 else - if prediction423 == 1 - _t830 = parse_algorithm(parser) - algorithm425 = _t830 - _t831 = Proto.Declaration(declaration_type=OneOf(:algorithm, algorithm425)) - _t829 = _t831 + if prediction433 == 1 + _t850 = parse_algorithm(parser) + algorithm435 = _t850 + _t851 = Proto.Declaration(declaration_type=OneOf(:algorithm, algorithm435)) + _t849 = _t851 else - if prediction423 == 0 - _t833 = parse_def(parser) - def424 = _t833 - _t834 = Proto.Declaration(declaration_type=OneOf(:def, def424)) - _t832 = _t834 + if prediction433 == 0 + _t853 = parse_def(parser) + def434 = _t853 + _t854 = Proto.Declaration(declaration_type=OneOf(:def, def434)) + _t852 = _t854 else throw(ParseError("Unexpected token in declaration" * ": " * string(lookahead(parser, 0)))) end - _t829 = _t832 + _t849 = _t852 end - _t826 = _t829 + _t846 = _t849 end - _t823 = _t826 + _t843 = _t846 end - return _t823 + return _t843 end function parse_def(parser::ParserState)::Proto.Def consume_literal!(parser, "(") consume_literal!(parser, "def") - _t835 = parse_relation_id(parser) - relation_id428 = _t835 - _t836 = parse_abstraction(parser) - abstraction429 = _t836 + _t855 = parse_relation_id(parser) + relation_id438 = _t855 + _t856 = parse_abstraction(parser) + abstraction439 = _t856 if match_lookahead_literal(parser, "(", 0) - _t838 = parse_attrs(parser) - _t837 = _t838 + _t858 = parse_attrs(parser) + _t857 = _t858 else - _t837 = nothing + _t857 = nothing end - attrs430 = _t837 + attrs440 = _t857 consume_literal!(parser, ")") - _t839 = Proto.Def(name=relation_id428, body=abstraction429, attrs=(!isnothing(attrs430) ? attrs430 : Proto.Attribute[])) - return _t839 + _t859 = Proto.Def(name=relation_id438, body=abstraction439, attrs=(!isnothing(attrs440) ? attrs440 : Proto.Attribute[])) + return _t859 end function parse_relation_id(parser::ParserState)::Proto.RelationId if match_lookahead_literal(parser, ":", 0) - _t840 = 0 + _t860 = 0 else if match_lookahead_terminal(parser, "UINT128", 0) - _t841 = 1 + _t861 = 1 else - _t841 = -1 + _t861 = -1 end - _t840 = _t841 + _t860 = _t861 end - prediction431 = _t840 - if prediction431 == 1 - uint128433 = consume_terminal!(parser, "UINT128") - _t842 = Proto.RelationId(uint128433.low, uint128433.high) + prediction441 = _t860 + if prediction441 == 1 + uint128443 = consume_terminal!(parser, "UINT128") + _t862 = Proto.RelationId(uint128443.low, uint128443.high) else - if prediction431 == 0 + if prediction441 == 0 consume_literal!(parser, ":") - symbol432 = consume_terminal!(parser, "SYMBOL") - _t843 = relation_id_from_string(parser, symbol432) + symbol442 = consume_terminal!(parser, "SYMBOL") + _t863 = relation_id_from_string(parser, symbol442) else throw(ParseError("Unexpected token in relation_id" * ": " * string(lookahead(parser, 0)))) end - _t842 = _t843 + _t862 = _t863 end - return _t842 + return _t862 end function parse_abstraction(parser::ParserState)::Proto.Abstraction consume_literal!(parser, "(") - _t844 = parse_bindings(parser) - bindings434 = _t844 - _t845 = parse_formula(parser) - formula435 = _t845 + _t864 = parse_bindings(parser) + bindings444 = _t864 + _t865 = parse_formula(parser) + formula445 = _t865 consume_literal!(parser, ")") - _t846 = Proto.Abstraction(vars=vcat(bindings434[1], !isnothing(bindings434[2]) ? bindings434[2] : []), value=formula435) - return _t846 + _t866 = Proto.Abstraction(vars=vcat(bindings444[1], !isnothing(bindings444[2]) ? bindings444[2] : []), value=formula445) + return _t866 end function parse_bindings(parser::ParserState)::Tuple{Vector{Proto.Binding}, Vector{Proto.Binding}} consume_literal!(parser, "[") - xs436 = Proto.Binding[] - cond437 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond437 - _t847 = parse_binding(parser) - item438 = _t847 - push!(xs436, item438) - cond437 = match_lookahead_terminal(parser, "SYMBOL", 0) - end - bindings439 = xs436 + xs446 = Proto.Binding[] + cond447 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond447 + _t867 = parse_binding(parser) + item448 = _t867 + push!(xs446, item448) + cond447 = match_lookahead_terminal(parser, "SYMBOL", 0) + end + bindings449 = xs446 if match_lookahead_literal(parser, "|", 0) - _t849 = parse_value_bindings(parser) - _t848 = _t849 + _t869 = parse_value_bindings(parser) + _t868 = _t869 else - _t848 = nothing + _t868 = nothing end - value_bindings440 = _t848 + value_bindings450 = _t868 consume_literal!(parser, "]") - return (bindings439, (!isnothing(value_bindings440) ? value_bindings440 : Proto.Binding[]),) + return (bindings449, (!isnothing(value_bindings450) ? value_bindings450 : Proto.Binding[]),) end function parse_binding(parser::ParserState)::Proto.Binding - symbol441 = consume_terminal!(parser, "SYMBOL") + symbol451 = consume_terminal!(parser, "SYMBOL") consume_literal!(parser, "::") - _t850 = parse_type(parser) - type442 = _t850 - _t851 = Proto.Var(name=symbol441) - _t852 = Proto.Binding(var=_t851, var"#type"=type442) - return _t852 + _t870 = parse_type(parser) + type452 = _t870 + _t871 = Proto.Var(name=symbol451) + _t872 = Proto.Binding(var=_t871, var"#type"=type452) + return _t872 end function parse_type(parser::ParserState)::Proto.var"#Type" if match_lookahead_literal(parser, "UNKNOWN", 0) - _t853 = 0 + _t873 = 0 else if match_lookahead_literal(parser, "UINT128", 0) - _t854 = 4 + _t874 = 4 else if match_lookahead_literal(parser, "STRING", 0) - _t855 = 1 + _t875 = 1 else if match_lookahead_literal(parser, "MISSING", 0) - _t856 = 8 + _t876 = 8 else if match_lookahead_literal(parser, "INT128", 0) - _t857 = 5 + _t877 = 5 else if match_lookahead_literal(parser, "INT", 0) - _t858 = 2 + _t878 = 2 else if match_lookahead_literal(parser, "FLOAT", 0) - _t859 = 3 + _t879 = 3 else if match_lookahead_literal(parser, "DATETIME", 0) - _t860 = 7 + _t880 = 7 else if match_lookahead_literal(parser, "DATE", 0) - _t861 = 6 + _t881 = 6 else if match_lookahead_literal(parser, "BOOLEAN", 0) - _t862 = 10 + _t882 = 10 else if match_lookahead_literal(parser, "(", 0) - _t863 = 9 + _t883 = 9 else - _t863 = -1 + _t883 = -1 end - _t862 = _t863 + _t882 = _t883 end - _t861 = _t862 + _t881 = _t882 end - _t860 = _t861 + _t880 = _t881 end - _t859 = _t860 + _t879 = _t880 end - _t858 = _t859 + _t878 = _t879 end - _t857 = _t858 + _t877 = _t878 end - _t856 = _t857 + _t876 = _t877 end - _t855 = _t856 + _t875 = _t876 end - _t854 = _t855 + _t874 = _t875 end - _t853 = _t854 - end - prediction443 = _t853 - if prediction443 == 10 - _t865 = parse_boolean_type(parser) - boolean_type454 = _t865 - _t866 = Proto.var"#Type"(var"#type"=OneOf(:boolean_type, boolean_type454)) - _t864 = _t866 + _t873 = _t874 + end + prediction453 = _t873 + if prediction453 == 10 + _t885 = parse_boolean_type(parser) + boolean_type464 = _t885 + _t886 = Proto.var"#Type"(var"#type"=OneOf(:boolean_type, boolean_type464)) + _t884 = _t886 else - if prediction443 == 9 - _t868 = parse_decimal_type(parser) - decimal_type453 = _t868 - _t869 = Proto.var"#Type"(var"#type"=OneOf(:decimal_type, decimal_type453)) - _t867 = _t869 + if prediction453 == 9 + _t888 = parse_decimal_type(parser) + decimal_type463 = _t888 + _t889 = Proto.var"#Type"(var"#type"=OneOf(:decimal_type, decimal_type463)) + _t887 = _t889 else - if prediction443 == 8 - _t871 = parse_missing_type(parser) - missing_type452 = _t871 - _t872 = Proto.var"#Type"(var"#type"=OneOf(:missing_type, missing_type452)) - _t870 = _t872 + if prediction453 == 8 + _t891 = parse_missing_type(parser) + missing_type462 = _t891 + _t892 = Proto.var"#Type"(var"#type"=OneOf(:missing_type, missing_type462)) + _t890 = _t892 else - if prediction443 == 7 - _t874 = parse_datetime_type(parser) - datetime_type451 = _t874 - _t875 = Proto.var"#Type"(var"#type"=OneOf(:datetime_type, datetime_type451)) - _t873 = _t875 + if prediction453 == 7 + _t894 = parse_datetime_type(parser) + datetime_type461 = _t894 + _t895 = Proto.var"#Type"(var"#type"=OneOf(:datetime_type, datetime_type461)) + _t893 = _t895 else - if prediction443 == 6 - _t877 = parse_date_type(parser) - date_type450 = _t877 - _t878 = Proto.var"#Type"(var"#type"=OneOf(:date_type, date_type450)) - _t876 = _t878 + if prediction453 == 6 + _t897 = parse_date_type(parser) + date_type460 = _t897 + _t898 = Proto.var"#Type"(var"#type"=OneOf(:date_type, date_type460)) + _t896 = _t898 else - if prediction443 == 5 - _t880 = parse_int128_type(parser) - int128_type449 = _t880 - _t881 = Proto.var"#Type"(var"#type"=OneOf(:int128_type, int128_type449)) - _t879 = _t881 + if prediction453 == 5 + _t900 = parse_int128_type(parser) + int128_type459 = _t900 + _t901 = Proto.var"#Type"(var"#type"=OneOf(:int128_type, int128_type459)) + _t899 = _t901 else - if prediction443 == 4 - _t883 = parse_uint128_type(parser) - uint128_type448 = _t883 - _t884 = Proto.var"#Type"(var"#type"=OneOf(:uint128_type, uint128_type448)) - _t882 = _t884 + if prediction453 == 4 + _t903 = parse_uint128_type(parser) + uint128_type458 = _t903 + _t904 = Proto.var"#Type"(var"#type"=OneOf(:uint128_type, uint128_type458)) + _t902 = _t904 else - if prediction443 == 3 - _t886 = parse_float_type(parser) - float_type447 = _t886 - _t887 = Proto.var"#Type"(var"#type"=OneOf(:float_type, float_type447)) - _t885 = _t887 + if prediction453 == 3 + _t906 = parse_float_type(parser) + float_type457 = _t906 + _t907 = Proto.var"#Type"(var"#type"=OneOf(:float_type, float_type457)) + _t905 = _t907 else - if prediction443 == 2 - _t889 = parse_int_type(parser) - int_type446 = _t889 - _t890 = Proto.var"#Type"(var"#type"=OneOf(:int_type, int_type446)) - _t888 = _t890 + if prediction453 == 2 + _t909 = parse_int_type(parser) + int_type456 = _t909 + _t910 = Proto.var"#Type"(var"#type"=OneOf(:int_type, int_type456)) + _t908 = _t910 else - if prediction443 == 1 - _t892 = parse_string_type(parser) - string_type445 = _t892 - _t893 = Proto.var"#Type"(var"#type"=OneOf(:string_type, string_type445)) - _t891 = _t893 + if prediction453 == 1 + _t912 = parse_string_type(parser) + string_type455 = _t912 + _t913 = Proto.var"#Type"(var"#type"=OneOf(:string_type, string_type455)) + _t911 = _t913 else - if prediction443 == 0 - _t895 = parse_unspecified_type(parser) - unspecified_type444 = _t895 - _t896 = Proto.var"#Type"(var"#type"=OneOf(:unspecified_type, unspecified_type444)) - _t894 = _t896 + if prediction453 == 0 + _t915 = parse_unspecified_type(parser) + unspecified_type454 = _t915 + _t916 = Proto.var"#Type"(var"#type"=OneOf(:unspecified_type, unspecified_type454)) + _t914 = _t916 else throw(ParseError("Unexpected token in type" * ": " * string(lookahead(parser, 0)))) end - _t891 = _t894 + _t911 = _t914 end - _t888 = _t891 + _t908 = _t911 end - _t885 = _t888 + _t905 = _t908 end - _t882 = _t885 + _t902 = _t905 end - _t879 = _t882 + _t899 = _t902 end - _t876 = _t879 + _t896 = _t899 end - _t873 = _t876 + _t893 = _t896 end - _t870 = _t873 + _t890 = _t893 end - _t867 = _t870 + _t887 = _t890 end - _t864 = _t867 + _t884 = _t887 end - return _t864 + return _t884 end function parse_unspecified_type(parser::ParserState)::Proto.UnspecifiedType consume_literal!(parser, "UNKNOWN") - _t897 = Proto.UnspecifiedType() - return _t897 + _t917 = Proto.UnspecifiedType() + return _t917 end function parse_string_type(parser::ParserState)::Proto.StringType consume_literal!(parser, "STRING") - _t898 = Proto.StringType() - return _t898 + _t918 = Proto.StringType() + return _t918 end function parse_int_type(parser::ParserState)::Proto.IntType consume_literal!(parser, "INT") - _t899 = Proto.IntType() - return _t899 + _t919 = Proto.IntType() + return _t919 end function parse_float_type(parser::ParserState)::Proto.FloatType consume_literal!(parser, "FLOAT") - _t900 = Proto.FloatType() - return _t900 + _t920 = Proto.FloatType() + return _t920 end function parse_uint128_type(parser::ParserState)::Proto.UInt128Type consume_literal!(parser, "UINT128") - _t901 = Proto.UInt128Type() - return _t901 + _t921 = Proto.UInt128Type() + return _t921 end function parse_int128_type(parser::ParserState)::Proto.Int128Type consume_literal!(parser, "INT128") - _t902 = Proto.Int128Type() - return _t902 + _t922 = Proto.Int128Type() + return _t922 end function parse_date_type(parser::ParserState)::Proto.DateType consume_literal!(parser, "DATE") - _t903 = Proto.DateType() - return _t903 + _t923 = Proto.DateType() + return _t923 end function parse_datetime_type(parser::ParserState)::Proto.DateTimeType consume_literal!(parser, "DATETIME") - _t904 = Proto.DateTimeType() - return _t904 + _t924 = Proto.DateTimeType() + return _t924 end function parse_missing_type(parser::ParserState)::Proto.MissingType consume_literal!(parser, "MISSING") - _t905 = Proto.MissingType() - return _t905 + _t925 = Proto.MissingType() + return _t925 end function parse_decimal_type(parser::ParserState)::Proto.DecimalType consume_literal!(parser, "(") consume_literal!(parser, "DECIMAL") - int455 = consume_terminal!(parser, "INT") - int_3456 = consume_terminal!(parser, "INT") + int465 = consume_terminal!(parser, "INT") + int_3466 = consume_terminal!(parser, "INT") consume_literal!(parser, ")") - _t906 = Proto.DecimalType(precision=Int32(int455), scale=Int32(int_3456)) - return _t906 + _t926 = Proto.DecimalType(precision=Int32(int465), scale=Int32(int_3466)) + return _t926 end function parse_boolean_type(parser::ParserState)::Proto.BooleanType consume_literal!(parser, "BOOLEAN") - _t907 = Proto.BooleanType() - return _t907 + _t927 = Proto.BooleanType() + return _t927 end function parse_value_bindings(parser::ParserState)::Vector{Proto.Binding} consume_literal!(parser, "|") - xs457 = Proto.Binding[] - cond458 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond458 - _t908 = parse_binding(parser) - item459 = _t908 - push!(xs457, item459) - cond458 = match_lookahead_terminal(parser, "SYMBOL", 0) + xs467 = Proto.Binding[] + cond468 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond468 + _t928 = parse_binding(parser) + item469 = _t928 + push!(xs467, item469) + cond468 = match_lookahead_terminal(parser, "SYMBOL", 0) end - bindings460 = xs457 - return bindings460 + bindings470 = xs467 + return bindings470 end function parse_formula(parser::ParserState)::Proto.Formula if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "true", 1) - _t910 = 0 + _t930 = 0 else if match_lookahead_literal(parser, "relatom", 1) - _t911 = 11 + _t931 = 11 else if match_lookahead_literal(parser, "reduce", 1) - _t912 = 3 + _t932 = 3 else if match_lookahead_literal(parser, "primitive", 1) - _t913 = 10 + _t933 = 10 else if match_lookahead_literal(parser, "pragma", 1) - _t914 = 9 + _t934 = 9 else if match_lookahead_literal(parser, "or", 1) - _t915 = 5 + _t935 = 5 else if match_lookahead_literal(parser, "not", 1) - _t916 = 6 + _t936 = 6 else if match_lookahead_literal(parser, "ffi", 1) - _t917 = 7 + _t937 = 7 else if match_lookahead_literal(parser, "false", 1) - _t918 = 1 + _t938 = 1 else if match_lookahead_literal(parser, "exists", 1) - _t919 = 2 + _t939 = 2 else if match_lookahead_literal(parser, "cast", 1) - _t920 = 12 + _t940 = 12 else if match_lookahead_literal(parser, "atom", 1) - _t921 = 8 + _t941 = 8 else if match_lookahead_literal(parser, "and", 1) - _t922 = 4 + _t942 = 4 else if match_lookahead_literal(parser, ">=", 1) - _t923 = 10 + _t943 = 10 else if match_lookahead_literal(parser, ">", 1) - _t924 = 10 + _t944 = 10 else if match_lookahead_literal(parser, "=", 1) - _t925 = 10 + _t945 = 10 else if match_lookahead_literal(parser, "<=", 1) - _t926 = 10 + _t946 = 10 else if match_lookahead_literal(parser, "<", 1) - _t927 = 10 + _t947 = 10 else if match_lookahead_literal(parser, "/", 1) - _t928 = 10 + _t948 = 10 else if match_lookahead_literal(parser, "-", 1) - _t929 = 10 + _t949 = 10 else if match_lookahead_literal(parser, "+", 1) - _t930 = 10 + _t950 = 10 else if match_lookahead_literal(parser, "*", 1) - _t931 = 10 + _t951 = 10 else - _t931 = -1 + _t951 = -1 end - _t930 = _t931 + _t950 = _t951 end - _t929 = _t930 + _t949 = _t950 end - _t928 = _t929 + _t948 = _t949 end - _t927 = _t928 + _t947 = _t948 end - _t926 = _t927 + _t946 = _t947 end - _t925 = _t926 + _t945 = _t946 end - _t924 = _t925 + _t944 = _t945 end - _t923 = _t924 + _t943 = _t944 end - _t922 = _t923 + _t942 = _t943 end - _t921 = _t922 + _t941 = _t942 end - _t920 = _t921 + _t940 = _t941 end - _t919 = _t920 + _t939 = _t940 end - _t918 = _t919 + _t938 = _t939 end - _t917 = _t918 + _t937 = _t938 end - _t916 = _t917 + _t936 = _t937 end - _t915 = _t916 + _t935 = _t936 end - _t914 = _t915 + _t934 = _t935 end - _t913 = _t914 + _t933 = _t934 end - _t912 = _t913 + _t932 = _t933 end - _t911 = _t912 + _t931 = _t932 end - _t910 = _t911 + _t930 = _t931 end - _t909 = _t910 + _t929 = _t930 else - _t909 = -1 - end - prediction461 = _t909 - if prediction461 == 12 - _t933 = parse_cast(parser) - cast474 = _t933 - _t934 = Proto.Formula(formula_type=OneOf(:cast, cast474)) - _t932 = _t934 + _t929 = -1 + end + prediction471 = _t929 + if prediction471 == 12 + _t953 = parse_cast(parser) + cast484 = _t953 + _t954 = Proto.Formula(formula_type=OneOf(:cast, cast484)) + _t952 = _t954 else - if prediction461 == 11 - _t936 = parse_rel_atom(parser) - rel_atom473 = _t936 - _t937 = Proto.Formula(formula_type=OneOf(:rel_atom, rel_atom473)) - _t935 = _t937 + if prediction471 == 11 + _t956 = parse_rel_atom(parser) + rel_atom483 = _t956 + _t957 = Proto.Formula(formula_type=OneOf(:rel_atom, rel_atom483)) + _t955 = _t957 else - if prediction461 == 10 - _t939 = parse_primitive(parser) - primitive472 = _t939 - _t940 = Proto.Formula(formula_type=OneOf(:primitive, primitive472)) - _t938 = _t940 + if prediction471 == 10 + _t959 = parse_primitive(parser) + primitive482 = _t959 + _t960 = Proto.Formula(formula_type=OneOf(:primitive, primitive482)) + _t958 = _t960 else - if prediction461 == 9 - _t942 = parse_pragma(parser) - pragma471 = _t942 - _t943 = Proto.Formula(formula_type=OneOf(:pragma, pragma471)) - _t941 = _t943 + if prediction471 == 9 + _t962 = parse_pragma(parser) + pragma481 = _t962 + _t963 = Proto.Formula(formula_type=OneOf(:pragma, pragma481)) + _t961 = _t963 else - if prediction461 == 8 - _t945 = parse_atom(parser) - atom470 = _t945 - _t946 = Proto.Formula(formula_type=OneOf(:atom, atom470)) - _t944 = _t946 + if prediction471 == 8 + _t965 = parse_atom(parser) + atom480 = _t965 + _t966 = Proto.Formula(formula_type=OneOf(:atom, atom480)) + _t964 = _t966 else - if prediction461 == 7 - _t948 = parse_ffi(parser) - ffi469 = _t948 - _t949 = Proto.Formula(formula_type=OneOf(:ffi, ffi469)) - _t947 = _t949 + if prediction471 == 7 + _t968 = parse_ffi(parser) + ffi479 = _t968 + _t969 = Proto.Formula(formula_type=OneOf(:ffi, ffi479)) + _t967 = _t969 else - if prediction461 == 6 - _t951 = parse_not(parser) - not468 = _t951 - _t952 = Proto.Formula(formula_type=OneOf(:not, not468)) - _t950 = _t952 + if prediction471 == 6 + _t971 = parse_not(parser) + not478 = _t971 + _t972 = Proto.Formula(formula_type=OneOf(:not, not478)) + _t970 = _t972 else - if prediction461 == 5 - _t954 = parse_disjunction(parser) - disjunction467 = _t954 - _t955 = Proto.Formula(formula_type=OneOf(:disjunction, disjunction467)) - _t953 = _t955 + if prediction471 == 5 + _t974 = parse_disjunction(parser) + disjunction477 = _t974 + _t975 = Proto.Formula(formula_type=OneOf(:disjunction, disjunction477)) + _t973 = _t975 else - if prediction461 == 4 - _t957 = parse_conjunction(parser) - conjunction466 = _t957 - _t958 = Proto.Formula(formula_type=OneOf(:conjunction, conjunction466)) - _t956 = _t958 + if prediction471 == 4 + _t977 = parse_conjunction(parser) + conjunction476 = _t977 + _t978 = Proto.Formula(formula_type=OneOf(:conjunction, conjunction476)) + _t976 = _t978 else - if prediction461 == 3 - _t960 = parse_reduce(parser) - reduce465 = _t960 - _t961 = Proto.Formula(formula_type=OneOf(:reduce, reduce465)) - _t959 = _t961 + if prediction471 == 3 + _t980 = parse_reduce(parser) + reduce475 = _t980 + _t981 = Proto.Formula(formula_type=OneOf(:reduce, reduce475)) + _t979 = _t981 else - if prediction461 == 2 - _t963 = parse_exists(parser) - exists464 = _t963 - _t964 = Proto.Formula(formula_type=OneOf(:exists, exists464)) - _t962 = _t964 + if prediction471 == 2 + _t983 = parse_exists(parser) + exists474 = _t983 + _t984 = Proto.Formula(formula_type=OneOf(:exists, exists474)) + _t982 = _t984 else - if prediction461 == 1 - _t966 = parse_false(parser) - false463 = _t966 - _t967 = Proto.Formula(formula_type=OneOf(:disjunction, false463)) - _t965 = _t967 + if prediction471 == 1 + _t986 = parse_false(parser) + false473 = _t986 + _t987 = Proto.Formula(formula_type=OneOf(:disjunction, false473)) + _t985 = _t987 else - if prediction461 == 0 - _t969 = parse_true(parser) - true462 = _t969 - _t970 = Proto.Formula(formula_type=OneOf(:conjunction, true462)) - _t968 = _t970 + if prediction471 == 0 + _t989 = parse_true(parser) + true472 = _t989 + _t990 = Proto.Formula(formula_type=OneOf(:conjunction, true472)) + _t988 = _t990 else throw(ParseError("Unexpected token in formula" * ": " * string(lookahead(parser, 0)))) end - _t965 = _t968 + _t985 = _t988 end - _t962 = _t965 + _t982 = _t985 end - _t959 = _t962 + _t979 = _t982 end - _t956 = _t959 + _t976 = _t979 end - _t953 = _t956 + _t973 = _t976 end - _t950 = _t953 + _t970 = _t973 end - _t947 = _t950 + _t967 = _t970 end - _t944 = _t947 + _t964 = _t967 end - _t941 = _t944 + _t961 = _t964 end - _t938 = _t941 + _t958 = _t961 end - _t935 = _t938 + _t955 = _t958 end - _t932 = _t935 + _t952 = _t955 end - return _t932 + return _t952 end function parse_true(parser::ParserState)::Proto.Conjunction consume_literal!(parser, "(") consume_literal!(parser, "true") consume_literal!(parser, ")") - _t971 = Proto.Conjunction(args=Proto.Formula[]) - return _t971 + _t991 = Proto.Conjunction(args=Proto.Formula[]) + return _t991 end function parse_false(parser::ParserState)::Proto.Disjunction consume_literal!(parser, "(") consume_literal!(parser, "false") consume_literal!(parser, ")") - _t972 = Proto.Disjunction(args=Proto.Formula[]) - return _t972 + _t992 = Proto.Disjunction(args=Proto.Formula[]) + return _t992 end function parse_exists(parser::ParserState)::Proto.Exists consume_literal!(parser, "(") consume_literal!(parser, "exists") - _t973 = parse_bindings(parser) - bindings475 = _t973 - _t974 = parse_formula(parser) - formula476 = _t974 + _t993 = parse_bindings(parser) + bindings485 = _t993 + _t994 = parse_formula(parser) + formula486 = _t994 consume_literal!(parser, ")") - _t975 = Proto.Abstraction(vars=vcat(bindings475[1], !isnothing(bindings475[2]) ? bindings475[2] : []), value=formula476) - _t976 = Proto.Exists(body=_t975) - return _t976 + _t995 = Proto.Abstraction(vars=vcat(bindings485[1], !isnothing(bindings485[2]) ? bindings485[2] : []), value=formula486) + _t996 = Proto.Exists(body=_t995) + return _t996 end function parse_reduce(parser::ParserState)::Proto.Reduce consume_literal!(parser, "(") consume_literal!(parser, "reduce") - _t977 = parse_abstraction(parser) - abstraction477 = _t977 - _t978 = parse_abstraction(parser) - abstraction_3478 = _t978 - _t979 = parse_terms(parser) - terms479 = _t979 + _t997 = parse_abstraction(parser) + abstraction487 = _t997 + _t998 = parse_abstraction(parser) + abstraction_3488 = _t998 + _t999 = parse_terms(parser) + terms489 = _t999 consume_literal!(parser, ")") - _t980 = Proto.Reduce(op=abstraction477, body=abstraction_3478, terms=terms479) - return _t980 + _t1000 = Proto.Reduce(op=abstraction487, body=abstraction_3488, terms=terms489) + return _t1000 end function parse_terms(parser::ParserState)::Vector{Proto.Term} consume_literal!(parser, "(") consume_literal!(parser, "terms") - xs480 = Proto.Term[] - cond481 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond481 - _t981 = parse_term(parser) - item482 = _t981 - push!(xs480, item482) - cond481 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) + xs490 = Proto.Term[] + cond491 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond491 + _t1001 = parse_term(parser) + item492 = _t1001 + push!(xs490, item492) + cond491 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) end - terms483 = xs480 + terms493 = xs490 consume_literal!(parser, ")") - return terms483 + return terms493 end function parse_term(parser::ParserState)::Proto.Term if match_lookahead_literal(parser, "true", 0) - _t982 = 1 + _t1002 = 1 else if match_lookahead_literal(parser, "missing", 0) - _t983 = 1 + _t1003 = 1 else if match_lookahead_literal(parser, "false", 0) - _t984 = 1 + _t1004 = 1 else if match_lookahead_literal(parser, "(", 0) - _t985 = 1 + _t1005 = 1 else if match_lookahead_terminal(parser, "UINT128", 0) - _t986 = 1 + _t1006 = 1 else if match_lookahead_terminal(parser, "SYMBOL", 0) - _t987 = 0 + _t1007 = 0 else if match_lookahead_terminal(parser, "STRING", 0) - _t988 = 1 + _t1008 = 1 else if match_lookahead_terminal(parser, "INT128", 0) - _t989 = 1 + _t1009 = 1 else if match_lookahead_terminal(parser, "INT", 0) - _t990 = 1 + _t1010 = 1 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t991 = 1 + _t1011 = 1 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t992 = 1 + _t1012 = 1 else - _t992 = -1 + _t1012 = -1 end - _t991 = _t992 + _t1011 = _t1012 end - _t990 = _t991 + _t1010 = _t1011 end - _t989 = _t990 + _t1009 = _t1010 end - _t988 = _t989 + _t1008 = _t1009 end - _t987 = _t988 + _t1007 = _t1008 end - _t986 = _t987 + _t1006 = _t1007 end - _t985 = _t986 + _t1005 = _t1006 end - _t984 = _t985 + _t1004 = _t1005 end - _t983 = _t984 + _t1003 = _t1004 end - _t982 = _t983 - end - prediction484 = _t982 - if prediction484 == 1 - _t994 = parse_constant(parser) - constant486 = _t994 - _t995 = Proto.Term(term_type=OneOf(:constant, constant486)) - _t993 = _t995 + _t1002 = _t1003 + end + prediction494 = _t1002 + if prediction494 == 1 + _t1014 = parse_constant(parser) + constant496 = _t1014 + _t1015 = Proto.Term(term_type=OneOf(:constant, constant496)) + _t1013 = _t1015 else - if prediction484 == 0 - _t997 = parse_var(parser) - var485 = _t997 - _t998 = Proto.Term(term_type=OneOf(:var, var485)) - _t996 = _t998 + if prediction494 == 0 + _t1017 = parse_var(parser) + var495 = _t1017 + _t1018 = Proto.Term(term_type=OneOf(:var, var495)) + _t1016 = _t1018 else throw(ParseError("Unexpected token in term" * ": " * string(lookahead(parser, 0)))) end - _t993 = _t996 + _t1013 = _t1016 end - return _t993 + return _t1013 end function parse_var(parser::ParserState)::Proto.Var - symbol487 = consume_terminal!(parser, "SYMBOL") - _t999 = Proto.Var(name=symbol487) - return _t999 + symbol497 = consume_terminal!(parser, "SYMBOL") + _t1019 = Proto.Var(name=symbol497) + return _t1019 end function parse_constant(parser::ParserState)::Proto.Value - _t1000 = parse_value(parser) - value488 = _t1000 - return value488 + _t1020 = parse_value(parser) + value498 = _t1020 + return value498 end function parse_conjunction(parser::ParserState)::Proto.Conjunction consume_literal!(parser, "(") consume_literal!(parser, "and") - xs489 = Proto.Formula[] - cond490 = match_lookahead_literal(parser, "(", 0) - while cond490 - _t1001 = parse_formula(parser) - item491 = _t1001 - push!(xs489, item491) - cond490 = match_lookahead_literal(parser, "(", 0) + xs499 = Proto.Formula[] + cond500 = match_lookahead_literal(parser, "(", 0) + while cond500 + _t1021 = parse_formula(parser) + item501 = _t1021 + push!(xs499, item501) + cond500 = match_lookahead_literal(parser, "(", 0) end - formulas492 = xs489 + formulas502 = xs499 consume_literal!(parser, ")") - _t1002 = Proto.Conjunction(args=formulas492) - return _t1002 + _t1022 = Proto.Conjunction(args=formulas502) + return _t1022 end function parse_disjunction(parser::ParserState)::Proto.Disjunction consume_literal!(parser, "(") consume_literal!(parser, "or") - xs493 = Proto.Formula[] - cond494 = match_lookahead_literal(parser, "(", 0) - while cond494 - _t1003 = parse_formula(parser) - item495 = _t1003 - push!(xs493, item495) - cond494 = match_lookahead_literal(parser, "(", 0) + xs503 = Proto.Formula[] + cond504 = match_lookahead_literal(parser, "(", 0) + while cond504 + _t1023 = parse_formula(parser) + item505 = _t1023 + push!(xs503, item505) + cond504 = match_lookahead_literal(parser, "(", 0) end - formulas496 = xs493 + formulas506 = xs503 consume_literal!(parser, ")") - _t1004 = Proto.Disjunction(args=formulas496) - return _t1004 + _t1024 = Proto.Disjunction(args=formulas506) + return _t1024 end function parse_not(parser::ParserState)::Proto.Not consume_literal!(parser, "(") consume_literal!(parser, "not") - _t1005 = parse_formula(parser) - formula497 = _t1005 + _t1025 = parse_formula(parser) + formula507 = _t1025 consume_literal!(parser, ")") - _t1006 = Proto.Not(arg=formula497) - return _t1006 + _t1026 = Proto.Not(arg=formula507) + return _t1026 end function parse_ffi(parser::ParserState)::Proto.FFI consume_literal!(parser, "(") consume_literal!(parser, "ffi") - _t1007 = parse_name(parser) - name498 = _t1007 - _t1008 = parse_ffi_args(parser) - ffi_args499 = _t1008 - _t1009 = parse_terms(parser) - terms500 = _t1009 + _t1027 = parse_name(parser) + name508 = _t1027 + _t1028 = parse_ffi_args(parser) + ffi_args509 = _t1028 + _t1029 = parse_terms(parser) + terms510 = _t1029 consume_literal!(parser, ")") - _t1010 = Proto.FFI(name=name498, args=ffi_args499, terms=terms500) - return _t1010 + _t1030 = Proto.FFI(name=name508, args=ffi_args509, terms=terms510) + return _t1030 end function parse_name(parser::ParserState)::String consume_literal!(parser, ":") - symbol501 = consume_terminal!(parser, "SYMBOL") - return symbol501 + symbol511 = consume_terminal!(parser, "SYMBOL") + return symbol511 end function parse_ffi_args(parser::ParserState)::Vector{Proto.Abstraction} consume_literal!(parser, "(") consume_literal!(parser, "args") - xs502 = Proto.Abstraction[] - cond503 = match_lookahead_literal(parser, "(", 0) - while cond503 - _t1011 = parse_abstraction(parser) - item504 = _t1011 - push!(xs502, item504) - cond503 = match_lookahead_literal(parser, "(", 0) + xs512 = Proto.Abstraction[] + cond513 = match_lookahead_literal(parser, "(", 0) + while cond513 + _t1031 = parse_abstraction(parser) + item514 = _t1031 + push!(xs512, item514) + cond513 = match_lookahead_literal(parser, "(", 0) end - abstractions505 = xs502 + abstractions515 = xs512 consume_literal!(parser, ")") - return abstractions505 + return abstractions515 end function parse_atom(parser::ParserState)::Proto.Atom consume_literal!(parser, "(") consume_literal!(parser, "atom") - _t1012 = parse_relation_id(parser) - relation_id506 = _t1012 - xs507 = Proto.Term[] - cond508 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond508 - _t1013 = parse_term(parser) - item509 = _t1013 - push!(xs507, item509) - cond508 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) + _t1032 = parse_relation_id(parser) + relation_id516 = _t1032 + xs517 = Proto.Term[] + cond518 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond518 + _t1033 = parse_term(parser) + item519 = _t1033 + push!(xs517, item519) + cond518 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) end - terms510 = xs507 + terms520 = xs517 consume_literal!(parser, ")") - _t1014 = Proto.Atom(name=relation_id506, terms=terms510) - return _t1014 + _t1034 = Proto.Atom(name=relation_id516, terms=terms520) + return _t1034 end function parse_pragma(parser::ParserState)::Proto.Pragma consume_literal!(parser, "(") consume_literal!(parser, "pragma") - _t1015 = parse_name(parser) - name511 = _t1015 - xs512 = Proto.Term[] - cond513 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond513 - _t1016 = parse_term(parser) - item514 = _t1016 - push!(xs512, item514) - cond513 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) + _t1035 = parse_name(parser) + name521 = _t1035 + xs522 = Proto.Term[] + cond523 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond523 + _t1036 = parse_term(parser) + item524 = _t1036 + push!(xs522, item524) + cond523 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) end - terms515 = xs512 + terms525 = xs522 consume_literal!(parser, ")") - _t1017 = Proto.Pragma(name=name511, terms=terms515) - return _t1017 + _t1037 = Proto.Pragma(name=name521, terms=terms525) + return _t1037 end function parse_primitive(parser::ParserState)::Proto.Primitive if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "primitive", 1) - _t1019 = 9 + _t1039 = 9 else if match_lookahead_literal(parser, ">=", 1) - _t1020 = 4 + _t1040 = 4 else if match_lookahead_literal(parser, ">", 1) - _t1021 = 3 + _t1041 = 3 else if match_lookahead_literal(parser, "=", 1) - _t1022 = 0 + _t1042 = 0 else if match_lookahead_literal(parser, "<=", 1) - _t1023 = 2 + _t1043 = 2 else if match_lookahead_literal(parser, "<", 1) - _t1024 = 1 + _t1044 = 1 else if match_lookahead_literal(parser, "/", 1) - _t1025 = 8 + _t1045 = 8 else if match_lookahead_literal(parser, "-", 1) - _t1026 = 6 + _t1046 = 6 else if match_lookahead_literal(parser, "+", 1) - _t1027 = 5 + _t1047 = 5 else if match_lookahead_literal(parser, "*", 1) - _t1028 = 7 + _t1048 = 7 else - _t1028 = -1 + _t1048 = -1 end - _t1027 = _t1028 + _t1047 = _t1048 end - _t1026 = _t1027 + _t1046 = _t1047 end - _t1025 = _t1026 + _t1045 = _t1046 end - _t1024 = _t1025 + _t1044 = _t1045 end - _t1023 = _t1024 + _t1043 = _t1044 end - _t1022 = _t1023 + _t1042 = _t1043 end - _t1021 = _t1022 + _t1041 = _t1042 end - _t1020 = _t1021 + _t1040 = _t1041 end - _t1019 = _t1020 + _t1039 = _t1040 end - _t1018 = _t1019 + _t1038 = _t1039 else - _t1018 = -1 + _t1038 = -1 end - prediction516 = _t1018 - if prediction516 == 9 + prediction526 = _t1038 + if prediction526 == 9 consume_literal!(parser, "(") consume_literal!(parser, "primitive") - _t1030 = parse_name(parser) - name526 = _t1030 - xs527 = Proto.RelTerm[] - cond528 = (((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond528 - _t1031 = parse_rel_term(parser) - item529 = _t1031 - push!(xs527, item529) - cond528 = (((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) + _t1050 = parse_name(parser) + name536 = _t1050 + xs537 = Proto.RelTerm[] + cond538 = (((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond538 + _t1051 = parse_rel_term(parser) + item539 = _t1051 + push!(xs537, item539) + cond538 = (((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) end - rel_terms530 = xs527 + rel_terms540 = xs537 consume_literal!(parser, ")") - _t1032 = Proto.Primitive(name=name526, terms=rel_terms530) - _t1029 = _t1032 + _t1052 = Proto.Primitive(name=name536, terms=rel_terms540) + _t1049 = _t1052 else - if prediction516 == 8 - _t1034 = parse_divide(parser) - divide525 = _t1034 - _t1033 = divide525 + if prediction526 == 8 + _t1054 = parse_divide(parser) + divide535 = _t1054 + _t1053 = divide535 else - if prediction516 == 7 - _t1036 = parse_multiply(parser) - multiply524 = _t1036 - _t1035 = multiply524 + if prediction526 == 7 + _t1056 = parse_multiply(parser) + multiply534 = _t1056 + _t1055 = multiply534 else - if prediction516 == 6 - _t1038 = parse_minus(parser) - minus523 = _t1038 - _t1037 = minus523 + if prediction526 == 6 + _t1058 = parse_minus(parser) + minus533 = _t1058 + _t1057 = minus533 else - if prediction516 == 5 - _t1040 = parse_add(parser) - add522 = _t1040 - _t1039 = add522 + if prediction526 == 5 + _t1060 = parse_add(parser) + add532 = _t1060 + _t1059 = add532 else - if prediction516 == 4 - _t1042 = parse_gt_eq(parser) - gt_eq521 = _t1042 - _t1041 = gt_eq521 + if prediction526 == 4 + _t1062 = parse_gt_eq(parser) + gt_eq531 = _t1062 + _t1061 = gt_eq531 else - if prediction516 == 3 - _t1044 = parse_gt(parser) - gt520 = _t1044 - _t1043 = gt520 + if prediction526 == 3 + _t1064 = parse_gt(parser) + gt530 = _t1064 + _t1063 = gt530 else - if prediction516 == 2 - _t1046 = parse_lt_eq(parser) - lt_eq519 = _t1046 - _t1045 = lt_eq519 + if prediction526 == 2 + _t1066 = parse_lt_eq(parser) + lt_eq529 = _t1066 + _t1065 = lt_eq529 else - if prediction516 == 1 - _t1048 = parse_lt(parser) - lt518 = _t1048 - _t1047 = lt518 + if prediction526 == 1 + _t1068 = parse_lt(parser) + lt528 = _t1068 + _t1067 = lt528 else - if prediction516 == 0 - _t1050 = parse_eq(parser) - eq517 = _t1050 - _t1049 = eq517 + if prediction526 == 0 + _t1070 = parse_eq(parser) + eq527 = _t1070 + _t1069 = eq527 else throw(ParseError("Unexpected token in primitive" * ": " * string(lookahead(parser, 0)))) end - _t1047 = _t1049 + _t1067 = _t1069 end - _t1045 = _t1047 + _t1065 = _t1067 end - _t1043 = _t1045 + _t1063 = _t1065 end - _t1041 = _t1043 + _t1061 = _t1063 end - _t1039 = _t1041 + _t1059 = _t1061 end - _t1037 = _t1039 + _t1057 = _t1059 end - _t1035 = _t1037 + _t1055 = _t1057 end - _t1033 = _t1035 + _t1053 = _t1055 end - _t1029 = _t1033 + _t1049 = _t1053 end - return _t1029 + return _t1049 end function parse_eq(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "=") - _t1051 = parse_term(parser) - term531 = _t1051 - _t1052 = parse_term(parser) - term_3532 = _t1052 + _t1071 = parse_term(parser) + term541 = _t1071 + _t1072 = parse_term(parser) + term_3542 = _t1072 consume_literal!(parser, ")") - _t1053 = Proto.RelTerm(rel_term_type=OneOf(:term, term531)) - _t1054 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3532)) - _t1055 = Proto.Primitive(name="rel_primitive_eq", terms=Proto.RelTerm[_t1053, _t1054]) - return _t1055 + _t1073 = Proto.RelTerm(rel_term_type=OneOf(:term, term541)) + _t1074 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3542)) + _t1075 = Proto.Primitive(name="rel_primitive_eq", terms=Proto.RelTerm[_t1073, _t1074]) + return _t1075 end function parse_lt(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "<") - _t1056 = parse_term(parser) - term533 = _t1056 - _t1057 = parse_term(parser) - term_3534 = _t1057 + _t1076 = parse_term(parser) + term543 = _t1076 + _t1077 = parse_term(parser) + term_3544 = _t1077 consume_literal!(parser, ")") - _t1058 = Proto.RelTerm(rel_term_type=OneOf(:term, term533)) - _t1059 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3534)) - _t1060 = Proto.Primitive(name="rel_primitive_lt_monotype", terms=Proto.RelTerm[_t1058, _t1059]) - return _t1060 + _t1078 = Proto.RelTerm(rel_term_type=OneOf(:term, term543)) + _t1079 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3544)) + _t1080 = Proto.Primitive(name="rel_primitive_lt_monotype", terms=Proto.RelTerm[_t1078, _t1079]) + return _t1080 end function parse_lt_eq(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "<=") - _t1061 = parse_term(parser) - term535 = _t1061 - _t1062 = parse_term(parser) - term_3536 = _t1062 + _t1081 = parse_term(parser) + term545 = _t1081 + _t1082 = parse_term(parser) + term_3546 = _t1082 consume_literal!(parser, ")") - _t1063 = Proto.RelTerm(rel_term_type=OneOf(:term, term535)) - _t1064 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3536)) - _t1065 = Proto.Primitive(name="rel_primitive_lt_eq_monotype", terms=Proto.RelTerm[_t1063, _t1064]) - return _t1065 + _t1083 = Proto.RelTerm(rel_term_type=OneOf(:term, term545)) + _t1084 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3546)) + _t1085 = Proto.Primitive(name="rel_primitive_lt_eq_monotype", terms=Proto.RelTerm[_t1083, _t1084]) + return _t1085 end function parse_gt(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, ">") - _t1066 = parse_term(parser) - term537 = _t1066 - _t1067 = parse_term(parser) - term_3538 = _t1067 + _t1086 = parse_term(parser) + term547 = _t1086 + _t1087 = parse_term(parser) + term_3548 = _t1087 consume_literal!(parser, ")") - _t1068 = Proto.RelTerm(rel_term_type=OneOf(:term, term537)) - _t1069 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3538)) - _t1070 = Proto.Primitive(name="rel_primitive_gt_monotype", terms=Proto.RelTerm[_t1068, _t1069]) - return _t1070 + _t1088 = Proto.RelTerm(rel_term_type=OneOf(:term, term547)) + _t1089 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3548)) + _t1090 = Proto.Primitive(name="rel_primitive_gt_monotype", terms=Proto.RelTerm[_t1088, _t1089]) + return _t1090 end function parse_gt_eq(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, ">=") - _t1071 = parse_term(parser) - term539 = _t1071 - _t1072 = parse_term(parser) - term_3540 = _t1072 + _t1091 = parse_term(parser) + term549 = _t1091 + _t1092 = parse_term(parser) + term_3550 = _t1092 consume_literal!(parser, ")") - _t1073 = Proto.RelTerm(rel_term_type=OneOf(:term, term539)) - _t1074 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3540)) - _t1075 = Proto.Primitive(name="rel_primitive_gt_eq_monotype", terms=Proto.RelTerm[_t1073, _t1074]) - return _t1075 + _t1093 = Proto.RelTerm(rel_term_type=OneOf(:term, term549)) + _t1094 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3550)) + _t1095 = Proto.Primitive(name="rel_primitive_gt_eq_monotype", terms=Proto.RelTerm[_t1093, _t1094]) + return _t1095 end function parse_add(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "+") - _t1076 = parse_term(parser) - term541 = _t1076 - _t1077 = parse_term(parser) - term_3542 = _t1077 - _t1078 = parse_term(parser) - term_4543 = _t1078 + _t1096 = parse_term(parser) + term551 = _t1096 + _t1097 = parse_term(parser) + term_3552 = _t1097 + _t1098 = parse_term(parser) + term_4553 = _t1098 consume_literal!(parser, ")") - _t1079 = Proto.RelTerm(rel_term_type=OneOf(:term, term541)) - _t1080 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3542)) - _t1081 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4543)) - _t1082 = Proto.Primitive(name="rel_primitive_add_monotype", terms=Proto.RelTerm[_t1079, _t1080, _t1081]) - return _t1082 + _t1099 = Proto.RelTerm(rel_term_type=OneOf(:term, term551)) + _t1100 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3552)) + _t1101 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4553)) + _t1102 = Proto.Primitive(name="rel_primitive_add_monotype", terms=Proto.RelTerm[_t1099, _t1100, _t1101]) + return _t1102 end function parse_minus(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "-") - _t1083 = parse_term(parser) - term544 = _t1083 - _t1084 = parse_term(parser) - term_3545 = _t1084 - _t1085 = parse_term(parser) - term_4546 = _t1085 + _t1103 = parse_term(parser) + term554 = _t1103 + _t1104 = parse_term(parser) + term_3555 = _t1104 + _t1105 = parse_term(parser) + term_4556 = _t1105 consume_literal!(parser, ")") - _t1086 = Proto.RelTerm(rel_term_type=OneOf(:term, term544)) - _t1087 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3545)) - _t1088 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4546)) - _t1089 = Proto.Primitive(name="rel_primitive_subtract_monotype", terms=Proto.RelTerm[_t1086, _t1087, _t1088]) - return _t1089 + _t1106 = Proto.RelTerm(rel_term_type=OneOf(:term, term554)) + _t1107 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3555)) + _t1108 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4556)) + _t1109 = Proto.Primitive(name="rel_primitive_subtract_monotype", terms=Proto.RelTerm[_t1106, _t1107, _t1108]) + return _t1109 end function parse_multiply(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "*") - _t1090 = parse_term(parser) - term547 = _t1090 - _t1091 = parse_term(parser) - term_3548 = _t1091 - _t1092 = parse_term(parser) - term_4549 = _t1092 - consume_literal!(parser, ")") - _t1093 = Proto.RelTerm(rel_term_type=OneOf(:term, term547)) - _t1094 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3548)) - _t1095 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4549)) - _t1096 = Proto.Primitive(name="rel_primitive_multiply_monotype", terms=Proto.RelTerm[_t1093, _t1094, _t1095]) - return _t1096 + _t1110 = parse_term(parser) + term557 = _t1110 + _t1111 = parse_term(parser) + term_3558 = _t1111 + _t1112 = parse_term(parser) + term_4559 = _t1112 + consume_literal!(parser, ")") + _t1113 = Proto.RelTerm(rel_term_type=OneOf(:term, term557)) + _t1114 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3558)) + _t1115 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4559)) + _t1116 = Proto.Primitive(name="rel_primitive_multiply_monotype", terms=Proto.RelTerm[_t1113, _t1114, _t1115]) + return _t1116 end function parse_divide(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "/") - _t1097 = parse_term(parser) - term550 = _t1097 - _t1098 = parse_term(parser) - term_3551 = _t1098 - _t1099 = parse_term(parser) - term_4552 = _t1099 + _t1117 = parse_term(parser) + term560 = _t1117 + _t1118 = parse_term(parser) + term_3561 = _t1118 + _t1119 = parse_term(parser) + term_4562 = _t1119 consume_literal!(parser, ")") - _t1100 = Proto.RelTerm(rel_term_type=OneOf(:term, term550)) - _t1101 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3551)) - _t1102 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4552)) - _t1103 = Proto.Primitive(name="rel_primitive_divide_monotype", terms=Proto.RelTerm[_t1100, _t1101, _t1102]) - return _t1103 + _t1120 = Proto.RelTerm(rel_term_type=OneOf(:term, term560)) + _t1121 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3561)) + _t1122 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4562)) + _t1123 = Proto.Primitive(name="rel_primitive_divide_monotype", terms=Proto.RelTerm[_t1120, _t1121, _t1122]) + return _t1123 end function parse_rel_term(parser::ParserState)::Proto.RelTerm if match_lookahead_literal(parser, "true", 0) - _t1104 = 1 + _t1124 = 1 else if match_lookahead_literal(parser, "missing", 0) - _t1105 = 1 + _t1125 = 1 else if match_lookahead_literal(parser, "false", 0) - _t1106 = 1 + _t1126 = 1 else if match_lookahead_literal(parser, "(", 0) - _t1107 = 1 + _t1127 = 1 else if match_lookahead_literal(parser, "#", 0) - _t1108 = 0 + _t1128 = 0 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1109 = 1 + _t1129 = 1 else if match_lookahead_terminal(parser, "SYMBOL", 0) - _t1110 = 1 + _t1130 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t1111 = 1 + _t1131 = 1 else if match_lookahead_terminal(parser, "INT128", 0) - _t1112 = 1 + _t1132 = 1 else if match_lookahead_terminal(parser, "INT", 0) - _t1113 = 1 + _t1133 = 1 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1114 = 1 + _t1134 = 1 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1115 = 1 + _t1135 = 1 else - _t1115 = -1 + _t1135 = -1 end - _t1114 = _t1115 + _t1134 = _t1135 end - _t1113 = _t1114 + _t1133 = _t1134 end - _t1112 = _t1113 + _t1132 = _t1133 end - _t1111 = _t1112 + _t1131 = _t1132 end - _t1110 = _t1111 + _t1130 = _t1131 end - _t1109 = _t1110 + _t1129 = _t1130 end - _t1108 = _t1109 + _t1128 = _t1129 end - _t1107 = _t1108 + _t1127 = _t1128 end - _t1106 = _t1107 + _t1126 = _t1127 end - _t1105 = _t1106 + _t1125 = _t1126 end - _t1104 = _t1105 - end - prediction553 = _t1104 - if prediction553 == 1 - _t1117 = parse_term(parser) - term555 = _t1117 - _t1118 = Proto.RelTerm(rel_term_type=OneOf(:term, term555)) - _t1116 = _t1118 + _t1124 = _t1125 + end + prediction563 = _t1124 + if prediction563 == 1 + _t1137 = parse_term(parser) + term565 = _t1137 + _t1138 = Proto.RelTerm(rel_term_type=OneOf(:term, term565)) + _t1136 = _t1138 else - if prediction553 == 0 - _t1120 = parse_specialized_value(parser) - specialized_value554 = _t1120 - _t1121 = Proto.RelTerm(rel_term_type=OneOf(:specialized_value, specialized_value554)) - _t1119 = _t1121 + if prediction563 == 0 + _t1140 = parse_specialized_value(parser) + specialized_value564 = _t1140 + _t1141 = Proto.RelTerm(rel_term_type=OneOf(:specialized_value, specialized_value564)) + _t1139 = _t1141 else throw(ParseError("Unexpected token in rel_term" * ": " * string(lookahead(parser, 0)))) end - _t1116 = _t1119 + _t1136 = _t1139 end - return _t1116 + return _t1136 end function parse_specialized_value(parser::ParserState)::Proto.Value consume_literal!(parser, "#") - _t1122 = parse_value(parser) - value556 = _t1122 - return value556 + _t1142 = parse_value(parser) + value566 = _t1142 + return value566 end function parse_rel_atom(parser::ParserState)::Proto.RelAtom consume_literal!(parser, "(") consume_literal!(parser, "relatom") - _t1123 = parse_name(parser) - name557 = _t1123 - xs558 = Proto.RelTerm[] - cond559 = (((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond559 - _t1124 = parse_rel_term(parser) - item560 = _t1124 - push!(xs558, item560) - cond559 = (((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) - end - rel_terms561 = xs558 - consume_literal!(parser, ")") - _t1125 = Proto.RelAtom(name=name557, terms=rel_terms561) - return _t1125 + _t1143 = parse_name(parser) + name567 = _t1143 + xs568 = Proto.RelTerm[] + cond569 = (((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond569 + _t1144 = parse_rel_term(parser) + item570 = _t1144 + push!(xs568, item570) + cond569 = (((((((((((match_lookahead_literal(parser, "#", 0) || match_lookahead_literal(parser, "(", 0)) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) + end + rel_terms571 = xs568 + consume_literal!(parser, ")") + _t1145 = Proto.RelAtom(name=name567, terms=rel_terms571) + return _t1145 end function parse_cast(parser::ParserState)::Proto.Cast consume_literal!(parser, "(") consume_literal!(parser, "cast") - _t1126 = parse_term(parser) - term562 = _t1126 - _t1127 = parse_term(parser) - term_3563 = _t1127 + _t1146 = parse_term(parser) + term572 = _t1146 + _t1147 = parse_term(parser) + term_3573 = _t1147 consume_literal!(parser, ")") - _t1128 = Proto.Cast(input=term562, result=term_3563) - return _t1128 + _t1148 = Proto.Cast(input=term572, result=term_3573) + return _t1148 end function parse_attrs(parser::ParserState)::Vector{Proto.Attribute} consume_literal!(parser, "(") consume_literal!(parser, "attrs") - xs564 = Proto.Attribute[] - cond565 = match_lookahead_literal(parser, "(", 0) - while cond565 - _t1129 = parse_attribute(parser) - item566 = _t1129 - push!(xs564, item566) - cond565 = match_lookahead_literal(parser, "(", 0) + xs574 = Proto.Attribute[] + cond575 = match_lookahead_literal(parser, "(", 0) + while cond575 + _t1149 = parse_attribute(parser) + item576 = _t1149 + push!(xs574, item576) + cond575 = match_lookahead_literal(parser, "(", 0) end - attributes567 = xs564 + attributes577 = xs574 consume_literal!(parser, ")") - return attributes567 + return attributes577 end function parse_attribute(parser::ParserState)::Proto.Attribute consume_literal!(parser, "(") consume_literal!(parser, "attribute") - _t1130 = parse_name(parser) - name568 = _t1130 - xs569 = Proto.Value[] - cond570 = (((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond570 - _t1131 = parse_value(parser) - item571 = _t1131 - push!(xs569, item571) - cond570 = (((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) + _t1150 = parse_name(parser) + name578 = _t1150 + xs579 = Proto.Value[] + cond580 = (((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond580 + _t1151 = parse_value(parser) + item581 = _t1151 + push!(xs579, item581) + cond580 = (((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "false", 0)) || match_lookahead_literal(parser, "missing", 0)) || match_lookahead_literal(parser, "true", 0)) || match_lookahead_terminal(parser, "DECIMAL", 0)) || match_lookahead_terminal(parser, "FLOAT", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) end - values572 = xs569 + values582 = xs579 consume_literal!(parser, ")") - _t1132 = Proto.Attribute(name=name568, args=values572) - return _t1132 + _t1152 = Proto.Attribute(name=name578, args=values582) + return _t1152 end function parse_algorithm(parser::ParserState)::Proto.Algorithm consume_literal!(parser, "(") consume_literal!(parser, "algorithm") - xs573 = Proto.RelationId[] - cond574 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond574 - _t1133 = parse_relation_id(parser) - item575 = _t1133 - push!(xs573, item575) - cond574 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + xs583 = Proto.RelationId[] + cond584 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond584 + _t1153 = parse_relation_id(parser) + item585 = _t1153 + push!(xs583, item585) + cond584 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) end - relation_ids576 = xs573 - _t1134 = parse_script(parser) - script577 = _t1134 + relation_ids586 = xs583 + _t1154 = parse_script(parser) + script587 = _t1154 consume_literal!(parser, ")") - _t1135 = Proto.Algorithm(var"#global"=relation_ids576, body=script577) - return _t1135 + _t1155 = Proto.Algorithm(var"#global"=relation_ids586, body=script587) + return _t1155 end function parse_script(parser::ParserState)::Proto.Script consume_literal!(parser, "(") consume_literal!(parser, "script") - xs578 = Proto.Construct[] - cond579 = match_lookahead_literal(parser, "(", 0) - while cond579 - _t1136 = parse_construct(parser) - item580 = _t1136 - push!(xs578, item580) - cond579 = match_lookahead_literal(parser, "(", 0) + xs588 = Proto.Construct[] + cond589 = match_lookahead_literal(parser, "(", 0) + while cond589 + _t1156 = parse_construct(parser) + item590 = _t1156 + push!(xs588, item590) + cond589 = match_lookahead_literal(parser, "(", 0) end - constructs581 = xs578 + constructs591 = xs588 consume_literal!(parser, ")") - _t1137 = Proto.Script(constructs=constructs581) - return _t1137 + _t1157 = Proto.Script(constructs=constructs591) + return _t1157 end function parse_construct(parser::ParserState)::Proto.Construct if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "upsert", 1) - _t1139 = 1 + _t1159 = 1 else if match_lookahead_literal(parser, "monus", 1) - _t1140 = 1 + _t1160 = 1 else if match_lookahead_literal(parser, "monoid", 1) - _t1141 = 1 + _t1161 = 1 else if match_lookahead_literal(parser, "loop", 1) - _t1142 = 0 + _t1162 = 0 else if match_lookahead_literal(parser, "break", 1) - _t1143 = 1 + _t1163 = 1 else if match_lookahead_literal(parser, "assign", 1) - _t1144 = 1 + _t1164 = 1 else - _t1144 = -1 + _t1164 = -1 end - _t1143 = _t1144 + _t1163 = _t1164 end - _t1142 = _t1143 + _t1162 = _t1163 end - _t1141 = _t1142 + _t1161 = _t1162 end - _t1140 = _t1141 + _t1160 = _t1161 end - _t1139 = _t1140 + _t1159 = _t1160 end - _t1138 = _t1139 + _t1158 = _t1159 else - _t1138 = -1 - end - prediction582 = _t1138 - if prediction582 == 1 - _t1146 = parse_instruction(parser) - instruction584 = _t1146 - _t1147 = Proto.Construct(construct_type=OneOf(:instruction, instruction584)) - _t1145 = _t1147 + _t1158 = -1 + end + prediction592 = _t1158 + if prediction592 == 1 + _t1166 = parse_instruction(parser) + instruction594 = _t1166 + _t1167 = Proto.Construct(construct_type=OneOf(:instruction, instruction594)) + _t1165 = _t1167 else - if prediction582 == 0 - _t1149 = parse_loop(parser) - loop583 = _t1149 - _t1150 = Proto.Construct(construct_type=OneOf(:loop, loop583)) - _t1148 = _t1150 + if prediction592 == 0 + _t1169 = parse_loop(parser) + loop593 = _t1169 + _t1170 = Proto.Construct(construct_type=OneOf(:loop, loop593)) + _t1168 = _t1170 else throw(ParseError("Unexpected token in construct" * ": " * string(lookahead(parser, 0)))) end - _t1145 = _t1148 + _t1165 = _t1168 end - return _t1145 + return _t1165 end function parse_loop(parser::ParserState)::Proto.Loop consume_literal!(parser, "(") consume_literal!(parser, "loop") - _t1151 = parse_init(parser) - init585 = _t1151 - _t1152 = parse_script(parser) - script586 = _t1152 + _t1171 = parse_init(parser) + init595 = _t1171 + _t1172 = parse_script(parser) + script596 = _t1172 consume_literal!(parser, ")") - _t1153 = Proto.Loop(init=init585, body=script586) - return _t1153 + _t1173 = Proto.Loop(init=init595, body=script596) + return _t1173 end function parse_init(parser::ParserState)::Vector{Proto.Instruction} consume_literal!(parser, "(") consume_literal!(parser, "init") - xs587 = Proto.Instruction[] - cond588 = match_lookahead_literal(parser, "(", 0) - while cond588 - _t1154 = parse_instruction(parser) - item589 = _t1154 - push!(xs587, item589) - cond588 = match_lookahead_literal(parser, "(", 0) + xs597 = Proto.Instruction[] + cond598 = match_lookahead_literal(parser, "(", 0) + while cond598 + _t1174 = parse_instruction(parser) + item599 = _t1174 + push!(xs597, item599) + cond598 = match_lookahead_literal(parser, "(", 0) end - instructions590 = xs587 + instructions600 = xs597 consume_literal!(parser, ")") - return instructions590 + return instructions600 end function parse_instruction(parser::ParserState)::Proto.Instruction if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "upsert", 1) - _t1156 = 1 + _t1176 = 1 else if match_lookahead_literal(parser, "monus", 1) - _t1157 = 4 + _t1177 = 4 else if match_lookahead_literal(parser, "monoid", 1) - _t1158 = 3 + _t1178 = 3 else if match_lookahead_literal(parser, "break", 1) - _t1159 = 2 + _t1179 = 2 else if match_lookahead_literal(parser, "assign", 1) - _t1160 = 0 + _t1180 = 0 else - _t1160 = -1 + _t1180 = -1 end - _t1159 = _t1160 + _t1179 = _t1180 end - _t1158 = _t1159 + _t1178 = _t1179 end - _t1157 = _t1158 + _t1177 = _t1178 end - _t1156 = _t1157 + _t1176 = _t1177 end - _t1155 = _t1156 + _t1175 = _t1176 else - _t1155 = -1 - end - prediction591 = _t1155 - if prediction591 == 4 - _t1162 = parse_monus_def(parser) - monus_def596 = _t1162 - _t1163 = Proto.Instruction(instr_type=OneOf(:monus_def, monus_def596)) - _t1161 = _t1163 + _t1175 = -1 + end + prediction601 = _t1175 + if prediction601 == 4 + _t1182 = parse_monus_def(parser) + monus_def606 = _t1182 + _t1183 = Proto.Instruction(instr_type=OneOf(:monus_def, monus_def606)) + _t1181 = _t1183 else - if prediction591 == 3 - _t1165 = parse_monoid_def(parser) - monoid_def595 = _t1165 - _t1166 = Proto.Instruction(instr_type=OneOf(:monoid_def, monoid_def595)) - _t1164 = _t1166 + if prediction601 == 3 + _t1185 = parse_monoid_def(parser) + monoid_def605 = _t1185 + _t1186 = Proto.Instruction(instr_type=OneOf(:monoid_def, monoid_def605)) + _t1184 = _t1186 else - if prediction591 == 2 - _t1168 = parse_break(parser) - break594 = _t1168 - _t1169 = Proto.Instruction(instr_type=OneOf(:var"#break", break594)) - _t1167 = _t1169 + if prediction601 == 2 + _t1188 = parse_break(parser) + break604 = _t1188 + _t1189 = Proto.Instruction(instr_type=OneOf(:var"#break", break604)) + _t1187 = _t1189 else - if prediction591 == 1 - _t1171 = parse_upsert(parser) - upsert593 = _t1171 - _t1172 = Proto.Instruction(instr_type=OneOf(:upsert, upsert593)) - _t1170 = _t1172 + if prediction601 == 1 + _t1191 = parse_upsert(parser) + upsert603 = _t1191 + _t1192 = Proto.Instruction(instr_type=OneOf(:upsert, upsert603)) + _t1190 = _t1192 else - if prediction591 == 0 - _t1174 = parse_assign(parser) - assign592 = _t1174 - _t1175 = Proto.Instruction(instr_type=OneOf(:assign, assign592)) - _t1173 = _t1175 + if prediction601 == 0 + _t1194 = parse_assign(parser) + assign602 = _t1194 + _t1195 = Proto.Instruction(instr_type=OneOf(:assign, assign602)) + _t1193 = _t1195 else throw(ParseError("Unexpected token in instruction" * ": " * string(lookahead(parser, 0)))) end - _t1170 = _t1173 + _t1190 = _t1193 end - _t1167 = _t1170 + _t1187 = _t1190 end - _t1164 = _t1167 + _t1184 = _t1187 end - _t1161 = _t1164 + _t1181 = _t1184 end - return _t1161 + return _t1181 end function parse_assign(parser::ParserState)::Proto.Assign consume_literal!(parser, "(") consume_literal!(parser, "assign") - _t1176 = parse_relation_id(parser) - relation_id597 = _t1176 - _t1177 = parse_abstraction(parser) - abstraction598 = _t1177 + _t1196 = parse_relation_id(parser) + relation_id607 = _t1196 + _t1197 = parse_abstraction(parser) + abstraction608 = _t1197 if match_lookahead_literal(parser, "(", 0) - _t1179 = parse_attrs(parser) - _t1178 = _t1179 + _t1199 = parse_attrs(parser) + _t1198 = _t1199 else - _t1178 = nothing + _t1198 = nothing end - attrs599 = _t1178 + attrs609 = _t1198 consume_literal!(parser, ")") - _t1180 = Proto.Assign(name=relation_id597, body=abstraction598, attrs=(!isnothing(attrs599) ? attrs599 : Proto.Attribute[])) - return _t1180 + _t1200 = Proto.Assign(name=relation_id607, body=abstraction608, attrs=(!isnothing(attrs609) ? attrs609 : Proto.Attribute[])) + return _t1200 end function parse_upsert(parser::ParserState)::Proto.Upsert consume_literal!(parser, "(") consume_literal!(parser, "upsert") - _t1181 = parse_relation_id(parser) - relation_id600 = _t1181 - _t1182 = parse_abstraction_with_arity(parser) - abstraction_with_arity601 = _t1182 + _t1201 = parse_relation_id(parser) + relation_id610 = _t1201 + _t1202 = parse_abstraction_with_arity(parser) + abstraction_with_arity611 = _t1202 if match_lookahead_literal(parser, "(", 0) - _t1184 = parse_attrs(parser) - _t1183 = _t1184 + _t1204 = parse_attrs(parser) + _t1203 = _t1204 else - _t1183 = nothing + _t1203 = nothing end - attrs602 = _t1183 + attrs612 = _t1203 consume_literal!(parser, ")") - _t1185 = Proto.Upsert(name=relation_id600, body=abstraction_with_arity601[1], attrs=(!isnothing(attrs602) ? attrs602 : Proto.Attribute[]), value_arity=abstraction_with_arity601[2]) - return _t1185 + _t1205 = Proto.Upsert(name=relation_id610, body=abstraction_with_arity611[1], attrs=(!isnothing(attrs612) ? attrs612 : Proto.Attribute[]), value_arity=abstraction_with_arity611[2]) + return _t1205 end function parse_abstraction_with_arity(parser::ParserState)::Tuple{Proto.Abstraction, Int64} consume_literal!(parser, "(") - _t1186 = parse_bindings(parser) - bindings603 = _t1186 - _t1187 = parse_formula(parser) - formula604 = _t1187 + _t1206 = parse_bindings(parser) + bindings613 = _t1206 + _t1207 = parse_formula(parser) + formula614 = _t1207 consume_literal!(parser, ")") - _t1188 = Proto.Abstraction(vars=vcat(bindings603[1], !isnothing(bindings603[2]) ? bindings603[2] : []), value=formula604) - return (_t1188, length(bindings603[2]),) + _t1208 = Proto.Abstraction(vars=vcat(bindings613[1], !isnothing(bindings613[2]) ? bindings613[2] : []), value=formula614) + return (_t1208, length(bindings613[2]),) end function parse_break(parser::ParserState)::Proto.Break consume_literal!(parser, "(") consume_literal!(parser, "break") - _t1189 = parse_relation_id(parser) - relation_id605 = _t1189 - _t1190 = parse_abstraction(parser) - abstraction606 = _t1190 + _t1209 = parse_relation_id(parser) + relation_id615 = _t1209 + _t1210 = parse_abstraction(parser) + abstraction616 = _t1210 if match_lookahead_literal(parser, "(", 0) - _t1192 = parse_attrs(parser) - _t1191 = _t1192 + _t1212 = parse_attrs(parser) + _t1211 = _t1212 else - _t1191 = nothing + _t1211 = nothing end - attrs607 = _t1191 + attrs617 = _t1211 consume_literal!(parser, ")") - _t1193 = Proto.Break(name=relation_id605, body=abstraction606, attrs=(!isnothing(attrs607) ? attrs607 : Proto.Attribute[])) - return _t1193 + _t1213 = Proto.Break(name=relation_id615, body=abstraction616, attrs=(!isnothing(attrs617) ? attrs617 : Proto.Attribute[])) + return _t1213 end function parse_monoid_def(parser::ParserState)::Proto.MonoidDef consume_literal!(parser, "(") consume_literal!(parser, "monoid") - _t1194 = parse_monoid(parser) - monoid608 = _t1194 - _t1195 = parse_relation_id(parser) - relation_id609 = _t1195 - _t1196 = parse_abstraction_with_arity(parser) - abstraction_with_arity610 = _t1196 + _t1214 = parse_monoid(parser) + monoid618 = _t1214 + _t1215 = parse_relation_id(parser) + relation_id619 = _t1215 + _t1216 = parse_abstraction_with_arity(parser) + abstraction_with_arity620 = _t1216 if match_lookahead_literal(parser, "(", 0) - _t1198 = parse_attrs(parser) - _t1197 = _t1198 + _t1218 = parse_attrs(parser) + _t1217 = _t1218 else - _t1197 = nothing + _t1217 = nothing end - attrs611 = _t1197 + attrs621 = _t1217 consume_literal!(parser, ")") - _t1199 = Proto.MonoidDef(monoid=monoid608, name=relation_id609, body=abstraction_with_arity610[1], attrs=(!isnothing(attrs611) ? attrs611 : Proto.Attribute[]), value_arity=abstraction_with_arity610[2]) - return _t1199 + _t1219 = Proto.MonoidDef(monoid=monoid618, name=relation_id619, body=abstraction_with_arity620[1], attrs=(!isnothing(attrs621) ? attrs621 : Proto.Attribute[]), value_arity=abstraction_with_arity620[2]) + return _t1219 end function parse_monoid(parser::ParserState)::Proto.Monoid if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "sum", 1) - _t1201 = 3 + _t1221 = 3 else if match_lookahead_literal(parser, "or", 1) - _t1202 = 0 + _t1222 = 0 else if match_lookahead_literal(parser, "min", 1) - _t1203 = 1 + _t1223 = 1 else if match_lookahead_literal(parser, "max", 1) - _t1204 = 2 + _t1224 = 2 else - _t1204 = -1 + _t1224 = -1 end - _t1203 = _t1204 + _t1223 = _t1224 end - _t1202 = _t1203 + _t1222 = _t1223 end - _t1201 = _t1202 + _t1221 = _t1222 end - _t1200 = _t1201 + _t1220 = _t1221 else - _t1200 = -1 - end - prediction612 = _t1200 - if prediction612 == 3 - _t1206 = parse_sum_monoid(parser) - sum_monoid616 = _t1206 - _t1207 = Proto.Monoid(value=OneOf(:sum_monoid, sum_monoid616)) - _t1205 = _t1207 + _t1220 = -1 + end + prediction622 = _t1220 + if prediction622 == 3 + _t1226 = parse_sum_monoid(parser) + sum_monoid626 = _t1226 + _t1227 = Proto.Monoid(value=OneOf(:sum_monoid, sum_monoid626)) + _t1225 = _t1227 else - if prediction612 == 2 - _t1209 = parse_max_monoid(parser) - max_monoid615 = _t1209 - _t1210 = Proto.Monoid(value=OneOf(:max_monoid, max_monoid615)) - _t1208 = _t1210 + if prediction622 == 2 + _t1229 = parse_max_monoid(parser) + max_monoid625 = _t1229 + _t1230 = Proto.Monoid(value=OneOf(:max_monoid, max_monoid625)) + _t1228 = _t1230 else - if prediction612 == 1 - _t1212 = parse_min_monoid(parser) - min_monoid614 = _t1212 - _t1213 = Proto.Monoid(value=OneOf(:min_monoid, min_monoid614)) - _t1211 = _t1213 + if prediction622 == 1 + _t1232 = parse_min_monoid(parser) + min_monoid624 = _t1232 + _t1233 = Proto.Monoid(value=OneOf(:min_monoid, min_monoid624)) + _t1231 = _t1233 else - if prediction612 == 0 - _t1215 = parse_or_monoid(parser) - or_monoid613 = _t1215 - _t1216 = Proto.Monoid(value=OneOf(:or_monoid, or_monoid613)) - _t1214 = _t1216 + if prediction622 == 0 + _t1235 = parse_or_monoid(parser) + or_monoid623 = _t1235 + _t1236 = Proto.Monoid(value=OneOf(:or_monoid, or_monoid623)) + _t1234 = _t1236 else throw(ParseError("Unexpected token in monoid" * ": " * string(lookahead(parser, 0)))) end - _t1211 = _t1214 + _t1231 = _t1234 end - _t1208 = _t1211 + _t1228 = _t1231 end - _t1205 = _t1208 + _t1225 = _t1228 end - return _t1205 + return _t1225 end function parse_or_monoid(parser::ParserState)::Proto.OrMonoid consume_literal!(parser, "(") consume_literal!(parser, "or") consume_literal!(parser, ")") - _t1217 = Proto.OrMonoid() - return _t1217 + _t1237 = Proto.OrMonoid() + return _t1237 end function parse_min_monoid(parser::ParserState)::Proto.MinMonoid consume_literal!(parser, "(") consume_literal!(parser, "min") - _t1218 = parse_type(parser) - type617 = _t1218 + _t1238 = parse_type(parser) + type627 = _t1238 consume_literal!(parser, ")") - _t1219 = Proto.MinMonoid(var"#type"=type617) - return _t1219 + _t1239 = Proto.MinMonoid(var"#type"=type627) + return _t1239 end function parse_max_monoid(parser::ParserState)::Proto.MaxMonoid consume_literal!(parser, "(") consume_literal!(parser, "max") - _t1220 = parse_type(parser) - type618 = _t1220 + _t1240 = parse_type(parser) + type628 = _t1240 consume_literal!(parser, ")") - _t1221 = Proto.MaxMonoid(var"#type"=type618) - return _t1221 + _t1241 = Proto.MaxMonoid(var"#type"=type628) + return _t1241 end function parse_sum_monoid(parser::ParserState)::Proto.SumMonoid consume_literal!(parser, "(") consume_literal!(parser, "sum") - _t1222 = parse_type(parser) - type619 = _t1222 + _t1242 = parse_type(parser) + type629 = _t1242 consume_literal!(parser, ")") - _t1223 = Proto.SumMonoid(var"#type"=type619) - return _t1223 + _t1243 = Proto.SumMonoid(var"#type"=type629) + return _t1243 end function parse_monus_def(parser::ParserState)::Proto.MonusDef consume_literal!(parser, "(") consume_literal!(parser, "monus") - _t1224 = parse_monoid(parser) - monoid620 = _t1224 - _t1225 = parse_relation_id(parser) - relation_id621 = _t1225 - _t1226 = parse_abstraction_with_arity(parser) - abstraction_with_arity622 = _t1226 + _t1244 = parse_monoid(parser) + monoid630 = _t1244 + _t1245 = parse_relation_id(parser) + relation_id631 = _t1245 + _t1246 = parse_abstraction_with_arity(parser) + abstraction_with_arity632 = _t1246 if match_lookahead_literal(parser, "(", 0) - _t1228 = parse_attrs(parser) - _t1227 = _t1228 + _t1248 = parse_attrs(parser) + _t1247 = _t1248 else - _t1227 = nothing + _t1247 = nothing end - attrs623 = _t1227 + attrs633 = _t1247 consume_literal!(parser, ")") - _t1229 = Proto.MonusDef(monoid=monoid620, name=relation_id621, body=abstraction_with_arity622[1], attrs=(!isnothing(attrs623) ? attrs623 : Proto.Attribute[]), value_arity=abstraction_with_arity622[2]) - return _t1229 + _t1249 = Proto.MonusDef(monoid=monoid630, name=relation_id631, body=abstraction_with_arity632[1], attrs=(!isnothing(attrs633) ? attrs633 : Proto.Attribute[]), value_arity=abstraction_with_arity632[2]) + return _t1249 end function parse_constraint(parser::ParserState)::Proto.Constraint consume_literal!(parser, "(") consume_literal!(parser, "functional_dependency") - _t1230 = parse_relation_id(parser) - relation_id624 = _t1230 - _t1231 = parse_abstraction(parser) - abstraction625 = _t1231 - _t1232 = parse_functional_dependency_keys(parser) - functional_dependency_keys626 = _t1232 - _t1233 = parse_functional_dependency_values(parser) - functional_dependency_values627 = _t1233 + _t1250 = parse_relation_id(parser) + relation_id634 = _t1250 + _t1251 = parse_abstraction(parser) + abstraction635 = _t1251 + _t1252 = parse_functional_dependency_keys(parser) + functional_dependency_keys636 = _t1252 + _t1253 = parse_functional_dependency_values(parser) + functional_dependency_values637 = _t1253 consume_literal!(parser, ")") - _t1234 = Proto.FunctionalDependency(guard=abstraction625, keys=functional_dependency_keys626, values=functional_dependency_values627) - _t1235 = Proto.Constraint(constraint_type=OneOf(:functional_dependency, _t1234), name=relation_id624) - return _t1235 + _t1254 = Proto.FunctionalDependency(guard=abstraction635, keys=functional_dependency_keys636, values=functional_dependency_values637) + _t1255 = Proto.Constraint(constraint_type=OneOf(:functional_dependency, _t1254), name=relation_id634) + return _t1255 end function parse_functional_dependency_keys(parser::ParserState)::Vector{Proto.Var} consume_literal!(parser, "(") consume_literal!(parser, "keys") - xs628 = Proto.Var[] - cond629 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond629 - _t1236 = parse_var(parser) - item630 = _t1236 - push!(xs628, item630) - cond629 = match_lookahead_terminal(parser, "SYMBOL", 0) + xs638 = Proto.Var[] + cond639 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond639 + _t1256 = parse_var(parser) + item640 = _t1256 + push!(xs638, item640) + cond639 = match_lookahead_terminal(parser, "SYMBOL", 0) end - vars631 = xs628 + vars641 = xs638 consume_literal!(parser, ")") - return vars631 + return vars641 end function parse_functional_dependency_values(parser::ParserState)::Vector{Proto.Var} consume_literal!(parser, "(") consume_literal!(parser, "values") - xs632 = Proto.Var[] - cond633 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond633 - _t1237 = parse_var(parser) - item634 = _t1237 - push!(xs632, item634) - cond633 = match_lookahead_terminal(parser, "SYMBOL", 0) + xs642 = Proto.Var[] + cond643 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond643 + _t1257 = parse_var(parser) + item644 = _t1257 + push!(xs642, item644) + cond643 = match_lookahead_terminal(parser, "SYMBOL", 0) end - vars635 = xs632 + vars645 = xs642 consume_literal!(parser, ")") - return vars635 + return vars645 end function parse_data(parser::ParserState)::Proto.Data if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "edb", 1) - _t1239 = 0 + _t1259 = 0 else if match_lookahead_literal(parser, "csv_data", 1) - _t1240 = 2 + _t1260 = 2 else if match_lookahead_literal(parser, "betree_relation", 1) - _t1241 = 1 + _t1261 = 1 else - _t1241 = -1 + _t1261 = -1 end - _t1240 = _t1241 + _t1260 = _t1261 end - _t1239 = _t1240 + _t1259 = _t1260 end - _t1238 = _t1239 + _t1258 = _t1259 else - _t1238 = -1 - end - prediction636 = _t1238 - if prediction636 == 2 - _t1243 = parse_csv_data(parser) - csv_data639 = _t1243 - _t1244 = Proto.Data(data_type=OneOf(:csv_data, csv_data639)) - _t1242 = _t1244 + _t1258 = -1 + end + prediction646 = _t1258 + if prediction646 == 2 + _t1263 = parse_csv_data(parser) + csv_data649 = _t1263 + _t1264 = Proto.Data(data_type=OneOf(:csv_data, csv_data649)) + _t1262 = _t1264 else - if prediction636 == 1 - _t1246 = parse_betree_relation(parser) - betree_relation638 = _t1246 - _t1247 = Proto.Data(data_type=OneOf(:betree_relation, betree_relation638)) - _t1245 = _t1247 + if prediction646 == 1 + _t1266 = parse_betree_relation(parser) + betree_relation648 = _t1266 + _t1267 = Proto.Data(data_type=OneOf(:betree_relation, betree_relation648)) + _t1265 = _t1267 else - if prediction636 == 0 - _t1249 = parse_edb(parser) - edb637 = _t1249 - _t1250 = Proto.Data(data_type=OneOf(:edb, edb637)) - _t1248 = _t1250 + if prediction646 == 0 + _t1269 = parse_edb(parser) + edb647 = _t1269 + _t1270 = Proto.Data(data_type=OneOf(:edb, edb647)) + _t1268 = _t1270 else throw(ParseError("Unexpected token in data" * ": " * string(lookahead(parser, 0)))) end - _t1245 = _t1248 + _t1265 = _t1268 end - _t1242 = _t1245 + _t1262 = _t1265 end - return _t1242 + return _t1262 end function parse_edb(parser::ParserState)::Proto.EDB consume_literal!(parser, "(") consume_literal!(parser, "edb") - _t1251 = parse_relation_id(parser) - relation_id640 = _t1251 - _t1252 = parse_edb_path(parser) - edb_path641 = _t1252 - _t1253 = parse_edb_types(parser) - edb_types642 = _t1253 - consume_literal!(parser, ")") - _t1254 = Proto.EDB(target_id=relation_id640, path=edb_path641, types=edb_types642) - return _t1254 + _t1271 = parse_relation_id(parser) + relation_id650 = _t1271 + _t1272 = parse_edb_path(parser) + edb_path651 = _t1272 + _t1273 = parse_edb_types(parser) + edb_types652 = _t1273 + consume_literal!(parser, ")") + _t1274 = Proto.EDB(target_id=relation_id650, path=edb_path651, types=edb_types652) + return _t1274 end function parse_edb_path(parser::ParserState)::Vector{String} consume_literal!(parser, "[") - xs643 = String[] - cond644 = match_lookahead_terminal(parser, "STRING", 0) - while cond644 - item645 = consume_terminal!(parser, "STRING") - push!(xs643, item645) - cond644 = match_lookahead_terminal(parser, "STRING", 0) - end - strings646 = xs643 + xs653 = String[] + cond654 = match_lookahead_terminal(parser, "STRING", 0) + while cond654 + item655 = consume_terminal!(parser, "STRING") + push!(xs653, item655) + cond654 = match_lookahead_terminal(parser, "STRING", 0) + end + strings656 = xs653 consume_literal!(parser, "]") - return strings646 + return strings656 end function parse_edb_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "[") - xs647 = Proto.var"#Type"[] - cond648 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - while cond648 - _t1255 = parse_type(parser) - item649 = _t1255 - push!(xs647, item649) - cond648 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - end - types650 = xs647 + xs657 = Proto.var"#Type"[] + cond658 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + while cond658 + _t1275 = parse_type(parser) + item659 = _t1275 + push!(xs657, item659) + cond658 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + end + types660 = xs657 consume_literal!(parser, "]") - return types650 + return types660 end function parse_betree_relation(parser::ParserState)::Proto.BeTreeRelation consume_literal!(parser, "(") consume_literal!(parser, "betree_relation") - _t1256 = parse_relation_id(parser) - relation_id651 = _t1256 - _t1257 = parse_betree_info(parser) - betree_info652 = _t1257 + _t1276 = parse_relation_id(parser) + relation_id661 = _t1276 + _t1277 = parse_betree_info(parser) + betree_info662 = _t1277 consume_literal!(parser, ")") - _t1258 = Proto.BeTreeRelation(name=relation_id651, relation_info=betree_info652) - return _t1258 + _t1278 = Proto.BeTreeRelation(name=relation_id661, relation_info=betree_info662) + return _t1278 end function parse_betree_info(parser::ParserState)::Proto.BeTreeInfo consume_literal!(parser, "(") consume_literal!(parser, "betree_info") - _t1259 = parse_betree_info_key_types(parser) - betree_info_key_types653 = _t1259 - _t1260 = parse_betree_info_value_types(parser) - betree_info_value_types654 = _t1260 - _t1261 = parse_config_dict(parser) - config_dict655 = _t1261 - consume_literal!(parser, ")") - _t1262 = construct_betree_info(parser, betree_info_key_types653, betree_info_value_types654, config_dict655) - return _t1262 + _t1279 = parse_betree_info_key_types(parser) + betree_info_key_types663 = _t1279 + _t1280 = parse_betree_info_value_types(parser) + betree_info_value_types664 = _t1280 + _t1281 = parse_config_dict(parser) + config_dict665 = _t1281 + consume_literal!(parser, ")") + _t1282 = construct_betree_info(parser, betree_info_key_types663, betree_info_value_types664, config_dict665) + return _t1282 end function parse_betree_info_key_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "(") consume_literal!(parser, "key_types") - xs656 = Proto.var"#Type"[] - cond657 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - while cond657 - _t1263 = parse_type(parser) - item658 = _t1263 - push!(xs656, item658) - cond657 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + xs666 = Proto.var"#Type"[] + cond667 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + while cond667 + _t1283 = parse_type(parser) + item668 = _t1283 + push!(xs666, item668) + cond667 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) end - types659 = xs656 + types669 = xs666 consume_literal!(parser, ")") - return types659 + return types669 end function parse_betree_info_value_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "(") consume_literal!(parser, "value_types") - xs660 = Proto.var"#Type"[] - cond661 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - while cond661 - _t1264 = parse_type(parser) - item662 = _t1264 - push!(xs660, item662) - cond661 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + xs670 = Proto.var"#Type"[] + cond671 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + while cond671 + _t1284 = parse_type(parser) + item672 = _t1284 + push!(xs670, item672) + cond671 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) end - types663 = xs660 + types673 = xs670 consume_literal!(parser, ")") - return types663 + return types673 end function parse_csv_data(parser::ParserState)::Proto.CSVData consume_literal!(parser, "(") consume_literal!(parser, "csv_data") - _t1265 = parse_csvlocator(parser) - csvlocator664 = _t1265 - _t1266 = parse_csv_config(parser) - csv_config665 = _t1266 - _t1267 = parse_gnf_columns(parser) - gnf_columns666 = _t1267 - _t1268 = parse_csv_asof(parser) - csv_asof667 = _t1268 + _t1285 = parse_csvlocator(parser) + csvlocator674 = _t1285 + _t1286 = parse_csv_config(parser) + csv_config675 = _t1286 + _t1287 = parse_gnf_columns(parser) + gnf_columns676 = _t1287 + _t1288 = parse_csv_asof(parser) + csv_asof677 = _t1288 consume_literal!(parser, ")") - _t1269 = Proto.CSVData(locator=csvlocator664, config=csv_config665, columns=gnf_columns666, asof=csv_asof667) - return _t1269 + _t1289 = Proto.CSVData(locator=csvlocator674, config=csv_config675, columns=gnf_columns676, asof=csv_asof677) + return _t1289 end function parse_csvlocator(parser::ParserState)::Proto.CSVLocator consume_literal!(parser, "(") consume_literal!(parser, "csv_locator") if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "paths", 1)) - _t1271 = parse_csv_locator_paths(parser) - _t1270 = _t1271 + _t1291 = parse_csv_locator_paths(parser) + _t1290 = _t1291 else - _t1270 = nothing + _t1290 = nothing end - csv_locator_paths668 = _t1270 + csv_locator_paths678 = _t1290 if match_lookahead_literal(parser, "(", 0) - _t1273 = parse_csv_locator_inline_data(parser) - _t1272 = _t1273 + _t1293 = parse_csv_locator_inline_data(parser) + _t1292 = _t1293 else - _t1272 = nothing + _t1292 = nothing end - csv_locator_inline_data669 = _t1272 + csv_locator_inline_data679 = _t1292 consume_literal!(parser, ")") - _t1274 = Proto.CSVLocator(paths=(!isnothing(csv_locator_paths668) ? csv_locator_paths668 : String[]), inline_data=Vector{UInt8}((!isnothing(csv_locator_inline_data669) ? csv_locator_inline_data669 : ""))) - return _t1274 + _t1294 = Proto.CSVLocator(paths=(!isnothing(csv_locator_paths678) ? csv_locator_paths678 : String[]), inline_data=Vector{UInt8}((!isnothing(csv_locator_inline_data679) ? csv_locator_inline_data679 : ""))) + return _t1294 end function parse_csv_locator_paths(parser::ParserState)::Vector{String} consume_literal!(parser, "(") consume_literal!(parser, "paths") - xs670 = String[] - cond671 = match_lookahead_terminal(parser, "STRING", 0) - while cond671 - item672 = consume_terminal!(parser, "STRING") - push!(xs670, item672) - cond671 = match_lookahead_terminal(parser, "STRING", 0) + xs680 = String[] + cond681 = match_lookahead_terminal(parser, "STRING", 0) + while cond681 + item682 = consume_terminal!(parser, "STRING") + push!(xs680, item682) + cond681 = match_lookahead_terminal(parser, "STRING", 0) end - strings673 = xs670 + strings683 = xs680 consume_literal!(parser, ")") - return strings673 + return strings683 end function parse_csv_locator_inline_data(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "inline_data") - string674 = consume_terminal!(parser, "STRING") + string684 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string674 + return string684 end function parse_csv_config(parser::ParserState)::Proto.CSVConfig consume_literal!(parser, "(") consume_literal!(parser, "csv_config") - _t1275 = parse_config_dict(parser) - config_dict675 = _t1275 + _t1295 = parse_config_dict(parser) + config_dict685 = _t1295 consume_literal!(parser, ")") - _t1276 = construct_csv_config(parser, config_dict675) - return _t1276 + _t1296 = construct_csv_config(parser, config_dict685) + return _t1296 end function parse_gnf_columns(parser::ParserState)::Vector{Proto.GNFColumn} consume_literal!(parser, "(") consume_literal!(parser, "columns") - xs676 = Proto.GNFColumn[] - cond677 = match_lookahead_literal(parser, "(", 0) - while cond677 - _t1277 = parse_gnf_column(parser) - item678 = _t1277 - push!(xs676, item678) - cond677 = match_lookahead_literal(parser, "(", 0) + xs686 = Proto.GNFColumn[] + cond687 = match_lookahead_literal(parser, "(", 0) + while cond687 + _t1297 = parse_gnf_column(parser) + item688 = _t1297 + push!(xs686, item688) + cond687 = match_lookahead_literal(parser, "(", 0) end - gnf_columns679 = xs676 + gnf_columns689 = xs686 consume_literal!(parser, ")") - return gnf_columns679 + return gnf_columns689 end function parse_gnf_column(parser::ParserState)::Proto.GNFColumn consume_literal!(parser, "(") consume_literal!(parser, "column") - _t1278 = parse_gnf_column_path(parser) - gnf_column_path680 = _t1278 + _t1298 = parse_gnf_column_path(parser) + gnf_column_path690 = _t1298 if (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - _t1280 = parse_relation_id(parser) - _t1279 = _t1280 + _t1300 = parse_relation_id(parser) + _t1299 = _t1300 else - _t1279 = nothing + _t1299 = nothing end - relation_id681 = _t1279 + relation_id691 = _t1299 consume_literal!(parser, "[") - xs682 = Proto.var"#Type"[] - cond683 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - while cond683 - _t1281 = parse_type(parser) - item684 = _t1281 - push!(xs682, item684) - cond683 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - end - types685 = xs682 + xs692 = Proto.var"#Type"[] + cond693 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + while cond693 + _t1301 = parse_type(parser) + item694 = _t1301 + push!(xs692, item694) + cond693 = ((((((((((match_lookahead_literal(parser, "(", 0) || match_lookahead_literal(parser, "BOOLEAN", 0)) || match_lookahead_literal(parser, "DATE", 0)) || match_lookahead_literal(parser, "DATETIME", 0)) || match_lookahead_literal(parser, "FLOAT", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + end + types695 = xs692 consume_literal!(parser, "]") consume_literal!(parser, ")") - _t1282 = Proto.GNFColumn(column_path=gnf_column_path680, target_id=relation_id681, types=types685) - return _t1282 + _t1302 = Proto.GNFColumn(column_path=gnf_column_path690, target_id=relation_id691, types=types695) + return _t1302 end function parse_gnf_column_path(parser::ParserState)::Vector{String} if match_lookahead_literal(parser, "[", 0) - _t1283 = 1 + _t1303 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t1284 = 0 + _t1304 = 0 else - _t1284 = -1 + _t1304 = -1 end - _t1283 = _t1284 + _t1303 = _t1304 end - prediction686 = _t1283 - if prediction686 == 1 + prediction696 = _t1303 + if prediction696 == 1 consume_literal!(parser, "[") - xs688 = String[] - cond689 = match_lookahead_terminal(parser, "STRING", 0) - while cond689 - item690 = consume_terminal!(parser, "STRING") - push!(xs688, item690) - cond689 = match_lookahead_terminal(parser, "STRING", 0) + xs698 = String[] + cond699 = match_lookahead_terminal(parser, "STRING", 0) + while cond699 + item700 = consume_terminal!(parser, "STRING") + push!(xs698, item700) + cond699 = match_lookahead_terminal(parser, "STRING", 0) end - strings691 = xs688 + strings701 = xs698 consume_literal!(parser, "]") - _t1285 = strings691 + _t1305 = strings701 else - if prediction686 == 0 - string687 = consume_terminal!(parser, "STRING") - _t1286 = String[string687] + if prediction696 == 0 + string697 = consume_terminal!(parser, "STRING") + _t1306 = String[string697] else throw(ParseError("Unexpected token in gnf_column_path" * ": " * string(lookahead(parser, 0)))) end - _t1285 = _t1286 + _t1305 = _t1306 end - return _t1285 + return _t1305 end function parse_csv_asof(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "asof") - string692 = consume_terminal!(parser, "STRING") + string702 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string692 + return string702 end function parse_undefine(parser::ParserState)::Proto.Undefine consume_literal!(parser, "(") consume_literal!(parser, "undefine") - _t1287 = parse_fragment_id(parser) - fragment_id693 = _t1287 + _t1307 = parse_fragment_id(parser) + fragment_id703 = _t1307 consume_literal!(parser, ")") - _t1288 = Proto.Undefine(fragment_id=fragment_id693) - return _t1288 + _t1308 = Proto.Undefine(fragment_id=fragment_id703) + return _t1308 end function parse_context(parser::ParserState)::Proto.Context consume_literal!(parser, "(") consume_literal!(parser, "context") - xs694 = Proto.RelationId[] - cond695 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond695 - _t1289 = parse_relation_id(parser) - item696 = _t1289 - push!(xs694, item696) - cond695 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + xs704 = Proto.RelationId[] + cond705 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond705 + _t1309 = parse_relation_id(parser) + item706 = _t1309 + push!(xs704, item706) + cond705 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) end - relation_ids697 = xs694 + relation_ids707 = xs704 consume_literal!(parser, ")") - _t1290 = Proto.Context(relations=relation_ids697) - return _t1290 + _t1310 = Proto.Context(relations=relation_ids707) + return _t1310 end function parse_snapshot(parser::ParserState)::Proto.Snapshot consume_literal!(parser, "(") consume_literal!(parser, "snapshot") - xs698 = Proto.SnapshotMapping[] - cond699 = match_lookahead_literal(parser, "[", 0) - while cond699 - _t1291 = parse_snapshot_mapping(parser) - item700 = _t1291 - push!(xs698, item700) - cond699 = match_lookahead_literal(parser, "[", 0) + xs708 = Proto.SnapshotMapping[] + cond709 = match_lookahead_literal(parser, "[", 0) + while cond709 + _t1311 = parse_snapshot_mapping(parser) + item710 = _t1311 + push!(xs708, item710) + cond709 = match_lookahead_literal(parser, "[", 0) end - snapshot_mappings701 = xs698 + snapshot_mappings711 = xs708 consume_literal!(parser, ")") - _t1292 = Proto.Snapshot(mappings=snapshot_mappings701) - return _t1292 + _t1312 = Proto.Snapshot(mappings=snapshot_mappings711) + return _t1312 end function parse_snapshot_mapping(parser::ParserState)::Proto.SnapshotMapping - _t1293 = parse_edb_path(parser) - edb_path702 = _t1293 - _t1294 = parse_relation_id(parser) - relation_id703 = _t1294 - _t1295 = Proto.SnapshotMapping(destination_path=edb_path702, source_relation=relation_id703) - return _t1295 + _t1313 = parse_edb_path(parser) + edb_path712 = _t1313 + _t1314 = parse_relation_id(parser) + relation_id713 = _t1314 + _t1315 = Proto.SnapshotMapping(destination_path=edb_path712, source_relation=relation_id713) + return _t1315 end function parse_epoch_reads(parser::ParserState)::Vector{Proto.Read} consume_literal!(parser, "(") consume_literal!(parser, "reads") - xs704 = Proto.Read[] - cond705 = match_lookahead_literal(parser, "(", 0) - while cond705 - _t1296 = parse_read(parser) - item706 = _t1296 - push!(xs704, item706) - cond705 = match_lookahead_literal(parser, "(", 0) + xs714 = Proto.Read[] + cond715 = match_lookahead_literal(parser, "(", 0) + while cond715 + _t1316 = parse_read(parser) + item716 = _t1316 + push!(xs714, item716) + cond715 = match_lookahead_literal(parser, "(", 0) end - reads707 = xs704 + reads717 = xs714 consume_literal!(parser, ")") - return reads707 + return reads717 end function parse_read(parser::ParserState)::Proto.Read if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "what_if", 1) - _t1298 = 2 + _t1318 = 2 else if match_lookahead_literal(parser, "output", 1) - _t1299 = 1 + _t1319 = 1 else if match_lookahead_literal(parser, "export", 1) - _t1300 = 4 + _t1320 = 4 else if match_lookahead_literal(parser, "demand", 1) - _t1301 = 0 + _t1321 = 0 else if match_lookahead_literal(parser, "abort", 1) - _t1302 = 3 + _t1322 = 3 else - _t1302 = -1 + _t1322 = -1 end - _t1301 = _t1302 + _t1321 = _t1322 end - _t1300 = _t1301 + _t1320 = _t1321 end - _t1299 = _t1300 + _t1319 = _t1320 end - _t1298 = _t1299 + _t1318 = _t1319 end - _t1297 = _t1298 + _t1317 = _t1318 else - _t1297 = -1 - end - prediction708 = _t1297 - if prediction708 == 4 - _t1304 = parse_export(parser) - export713 = _t1304 - _t1305 = Proto.Read(read_type=OneOf(:var"#export", export713)) - _t1303 = _t1305 + _t1317 = -1 + end + prediction718 = _t1317 + if prediction718 == 4 + _t1324 = parse_export(parser) + export723 = _t1324 + _t1325 = Proto.Read(read_type=OneOf(:var"#export", export723)) + _t1323 = _t1325 else - if prediction708 == 3 - _t1307 = parse_abort(parser) - abort712 = _t1307 - _t1308 = Proto.Read(read_type=OneOf(:abort, abort712)) - _t1306 = _t1308 + if prediction718 == 3 + _t1327 = parse_abort(parser) + abort722 = _t1327 + _t1328 = Proto.Read(read_type=OneOf(:abort, abort722)) + _t1326 = _t1328 else - if prediction708 == 2 - _t1310 = parse_what_if(parser) - what_if711 = _t1310 - _t1311 = Proto.Read(read_type=OneOf(:what_if, what_if711)) - _t1309 = _t1311 + if prediction718 == 2 + _t1330 = parse_what_if(parser) + what_if721 = _t1330 + _t1331 = Proto.Read(read_type=OneOf(:what_if, what_if721)) + _t1329 = _t1331 else - if prediction708 == 1 - _t1313 = parse_output(parser) - output710 = _t1313 - _t1314 = Proto.Read(read_type=OneOf(:output, output710)) - _t1312 = _t1314 + if prediction718 == 1 + _t1333 = parse_output(parser) + output720 = _t1333 + _t1334 = Proto.Read(read_type=OneOf(:output, output720)) + _t1332 = _t1334 else - if prediction708 == 0 - _t1316 = parse_demand(parser) - demand709 = _t1316 - _t1317 = Proto.Read(read_type=OneOf(:demand, demand709)) - _t1315 = _t1317 + if prediction718 == 0 + _t1336 = parse_demand(parser) + demand719 = _t1336 + _t1337 = Proto.Read(read_type=OneOf(:demand, demand719)) + _t1335 = _t1337 else throw(ParseError("Unexpected token in read" * ": " * string(lookahead(parser, 0)))) end - _t1312 = _t1315 + _t1332 = _t1335 end - _t1309 = _t1312 + _t1329 = _t1332 end - _t1306 = _t1309 + _t1326 = _t1329 end - _t1303 = _t1306 + _t1323 = _t1326 end - return _t1303 + return _t1323 end function parse_demand(parser::ParserState)::Proto.Demand consume_literal!(parser, "(") consume_literal!(parser, "demand") - _t1318 = parse_relation_id(parser) - relation_id714 = _t1318 + _t1338 = parse_relation_id(parser) + relation_id724 = _t1338 consume_literal!(parser, ")") - _t1319 = Proto.Demand(relation_id=relation_id714) - return _t1319 + _t1339 = Proto.Demand(relation_id=relation_id724) + return _t1339 end function parse_output(parser::ParserState)::Proto.Output consume_literal!(parser, "(") consume_literal!(parser, "output") - _t1320 = parse_name(parser) - name715 = _t1320 - _t1321 = parse_relation_id(parser) - relation_id716 = _t1321 + _t1340 = parse_name(parser) + name725 = _t1340 + _t1341 = parse_relation_id(parser) + relation_id726 = _t1341 consume_literal!(parser, ")") - _t1322 = Proto.Output(name=name715, relation_id=relation_id716) - return _t1322 + _t1342 = Proto.Output(name=name725, relation_id=relation_id726) + return _t1342 end function parse_what_if(parser::ParserState)::Proto.WhatIf consume_literal!(parser, "(") consume_literal!(parser, "what_if") - _t1323 = parse_name(parser) - name717 = _t1323 - _t1324 = parse_epoch(parser) - epoch718 = _t1324 + _t1343 = parse_name(parser) + name727 = _t1343 + _t1344 = parse_epoch(parser) + epoch728 = _t1344 consume_literal!(parser, ")") - _t1325 = Proto.WhatIf(branch=name717, epoch=epoch718) - return _t1325 + _t1345 = Proto.WhatIf(branch=name727, epoch=epoch728) + return _t1345 end function parse_abort(parser::ParserState)::Proto.Abort consume_literal!(parser, "(") consume_literal!(parser, "abort") if (match_lookahead_literal(parser, ":", 0) && match_lookahead_terminal(parser, "SYMBOL", 1)) - _t1327 = parse_name(parser) - _t1326 = _t1327 + _t1347 = parse_name(parser) + _t1346 = _t1347 else - _t1326 = nothing + _t1346 = nothing end - name719 = _t1326 - _t1328 = parse_relation_id(parser) - relation_id720 = _t1328 + name729 = _t1346 + _t1348 = parse_relation_id(parser) + relation_id730 = _t1348 consume_literal!(parser, ")") - _t1329 = Proto.Abort(name=(!isnothing(name719) ? name719 : "abort"), relation_id=relation_id720) - return _t1329 + _t1349 = Proto.Abort(name=(!isnothing(name729) ? name729 : "abort"), relation_id=relation_id730) + return _t1349 end function parse_export(parser::ParserState)::Proto.Export consume_literal!(parser, "(") consume_literal!(parser, "export") - _t1330 = parse_export_csv_config(parser) - export_csv_config721 = _t1330 + _t1350 = parse_export_csv_config(parser) + export_csv_config731 = _t1350 consume_literal!(parser, ")") - _t1331 = Proto.Export(export_config=OneOf(:csv_config, export_csv_config721)) - return _t1331 + _t1351 = Proto.Export(export_config=OneOf(:csv_config, export_csv_config731)) + return _t1351 end function parse_export_csv_config(parser::ParserState)::Proto.ExportCSVConfig - consume_literal!(parser, "(") - consume_literal!(parser, "export_csv_config") - _t1332 = parse_export_csv_path(parser) - export_csv_path722 = _t1332 - _t1333 = parse_export_csv_columns(parser) - export_csv_columns723 = _t1333 - _t1334 = parse_config_dict(parser) - config_dict724 = _t1334 - consume_literal!(parser, ")") - _t1335 = export_csv_config(parser, export_csv_path722, export_csv_columns723, config_dict724) - return _t1335 + if match_lookahead_literal(parser, "(", 0) + if match_lookahead_literal(parser, "export_csv_config_v2", 1) + _t1353 = 0 + else + if match_lookahead_literal(parser, "export_csv_config", 1) + _t1354 = 1 + else + _t1354 = -1 + end + _t1353 = _t1354 + end + _t1352 = _t1353 + else + _t1352 = -1 + end + prediction732 = _t1352 + if prediction732 == 1 + consume_literal!(parser, "(") + consume_literal!(parser, "export_csv_config") + _t1356 = parse_export_csv_path(parser) + export_csv_path736 = _t1356 + _t1357 = parse_export_csv_columns_list(parser) + export_csv_columns_list737 = _t1357 + _t1358 = parse_config_dict(parser) + config_dict738 = _t1358 + consume_literal!(parser, ")") + _t1359 = construct_export_csv_config(parser, export_csv_path736, export_csv_columns_list737, config_dict738) + _t1355 = _t1359 + else + if prediction732 == 0 + consume_literal!(parser, "(") + consume_literal!(parser, "export_csv_config_v2") + _t1361 = parse_export_csv_path(parser) + export_csv_path733 = _t1361 + _t1362 = parse_export_csv_source(parser) + export_csv_source734 = _t1362 + _t1363 = parse_csv_config(parser) + csv_config735 = _t1363 + consume_literal!(parser, ")") + _t1364 = construct_export_csv_config_with_source(parser, export_csv_path733, export_csv_source734, csv_config735) + _t1360 = _t1364 + else + throw(ParseError("Unexpected token in export_csv_config" * ": " * string(lookahead(parser, 0)))) + end + _t1355 = _t1360 + end + return _t1355 end function parse_export_csv_path(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "path") - string725 = consume_terminal!(parser, "STRING") + string739 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string725 + return string739 end -function parse_export_csv_columns(parser::ParserState)::Vector{Proto.ExportCSVColumn} - consume_literal!(parser, "(") - consume_literal!(parser, "columns") - xs726 = Proto.ExportCSVColumn[] - cond727 = match_lookahead_literal(parser, "(", 0) - while cond727 - _t1336 = parse_export_csv_column(parser) - item728 = _t1336 - push!(xs726, item728) - cond727 = match_lookahead_literal(parser, "(", 0) +function parse_export_csv_source(parser::ParserState)::Proto.ExportCSVSource + if match_lookahead_literal(parser, "(", 0) + if match_lookahead_literal(parser, "table_def", 1) + _t1366 = 1 + else + if match_lookahead_literal(parser, "gnf_columns", 1) + _t1367 = 0 + else + _t1367 = -1 + end + _t1366 = _t1367 + end + _t1365 = _t1366 + else + _t1365 = -1 end - export_csv_columns729 = xs726 - consume_literal!(parser, ")") - return export_csv_columns729 + prediction740 = _t1365 + if prediction740 == 1 + consume_literal!(parser, "(") + consume_literal!(parser, "table_def") + _t1369 = parse_relation_id(parser) + relation_id745 = _t1369 + consume_literal!(parser, ")") + _t1370 = Proto.ExportCSVSource(csv_source=OneOf(:table_def, relation_id745)) + _t1368 = _t1370 + else + if prediction740 == 0 + consume_literal!(parser, "(") + consume_literal!(parser, "gnf_columns") + xs741 = Proto.ExportCSVColumn[] + cond742 = match_lookahead_literal(parser, "(", 0) + while cond742 + _t1372 = parse_export_csv_column(parser) + item743 = _t1372 + push!(xs741, item743) + cond742 = match_lookahead_literal(parser, "(", 0) + end + export_csv_columns744 = xs741 + consume_literal!(parser, ")") + _t1373 = Proto.ExportCSVColumns(columns=export_csv_columns744) + _t1374 = Proto.ExportCSVSource(csv_source=OneOf(:gnf_columns, _t1373)) + _t1371 = _t1374 + else + throw(ParseError("Unexpected token in export_csv_source" * ": " * string(lookahead(parser, 0)))) + end + _t1368 = _t1371 + end + return _t1368 end function parse_export_csv_column(parser::ParserState)::Proto.ExportCSVColumn consume_literal!(parser, "(") consume_literal!(parser, "column") - string730 = consume_terminal!(parser, "STRING") - _t1337 = parse_relation_id(parser) - relation_id731 = _t1337 + string746 = consume_terminal!(parser, "STRING") + _t1375 = parse_relation_id(parser) + relation_id747 = _t1375 + consume_literal!(parser, ")") + _t1376 = Proto.ExportCSVColumn(column_name=string746, column_data=relation_id747) + return _t1376 +end + +function parse_export_csv_columns_list(parser::ParserState)::Vector{Proto.ExportCSVColumn} + consume_literal!(parser, "(") + consume_literal!(parser, "columns") + xs748 = Proto.ExportCSVColumn[] + cond749 = match_lookahead_literal(parser, "(", 0) + while cond749 + _t1377 = parse_export_csv_column(parser) + item750 = _t1377 + push!(xs748, item750) + cond749 = match_lookahead_literal(parser, "(", 0) + end + export_csv_columns751 = xs748 consume_literal!(parser, ")") - _t1338 = Proto.ExportCSVColumn(column_name=string730, column_data=relation_id731) - return _t1338 + return export_csv_columns751 end diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl b/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl index a2a2a36e..8959ede5 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl @@ -338,147 +338,151 @@ end # --- Helper functions --- function _make_value_int32(pp::PrettyPrinter, v::Int32)::Proto.Value - _t1429 = Proto.Value(value=OneOf(:int_value, Int64(v))) - return _t1429 + _t1458 = Proto.Value(value=OneOf(:int_value, Int64(v))) + return _t1458 end function _make_value_int64(pp::PrettyPrinter, v::Int64)::Proto.Value - _t1430 = Proto.Value(value=OneOf(:int_value, v)) - return _t1430 + _t1459 = Proto.Value(value=OneOf(:int_value, v)) + return _t1459 end function _make_value_float64(pp::PrettyPrinter, v::Float64)::Proto.Value - _t1431 = Proto.Value(value=OneOf(:float_value, v)) - return _t1431 + _t1460 = Proto.Value(value=OneOf(:float_value, v)) + return _t1460 end function _make_value_string(pp::PrettyPrinter, v::String)::Proto.Value - _t1432 = Proto.Value(value=OneOf(:string_value, v)) - return _t1432 + _t1461 = Proto.Value(value=OneOf(:string_value, v)) + return _t1461 end function _make_value_boolean(pp::PrettyPrinter, v::Bool)::Proto.Value - _t1433 = Proto.Value(value=OneOf(:boolean_value, v)) - return _t1433 + _t1462 = Proto.Value(value=OneOf(:boolean_value, v)) + return _t1462 end function _make_value_uint128(pp::PrettyPrinter, v::Proto.UInt128Value)::Proto.Value - _t1434 = Proto.Value(value=OneOf(:uint128_value, v)) - return _t1434 + _t1463 = Proto.Value(value=OneOf(:uint128_value, v)) + return _t1463 end function deconstruct_configure(pp::PrettyPrinter, msg::Proto.Configure)::Vector{Tuple{String, Proto.Value}} result = Tuple{String, Proto.Value}[] if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_AUTO - _t1435 = _make_value_string(pp, "auto") - push!(result, ("ivm.maintenance_level", _t1435,)) + _t1464 = _make_value_string(pp, "auto") + push!(result, ("ivm.maintenance_level", _t1464,)) else if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_ALL - _t1436 = _make_value_string(pp, "all") - push!(result, ("ivm.maintenance_level", _t1436,)) + _t1465 = _make_value_string(pp, "all") + push!(result, ("ivm.maintenance_level", _t1465,)) else if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF - _t1437 = _make_value_string(pp, "off") - push!(result, ("ivm.maintenance_level", _t1437,)) + _t1466 = _make_value_string(pp, "off") + push!(result, ("ivm.maintenance_level", _t1466,)) end end end - _t1438 = _make_value_int64(pp, msg.semantics_version) - push!(result, ("semantics_version", _t1438,)) + _t1467 = _make_value_int64(pp, msg.semantics_version) + push!(result, ("semantics_version", _t1467,)) return sort(result) end function deconstruct_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig)::Vector{Tuple{String, Proto.Value}} result = Tuple{String, Proto.Value}[] - _t1439 = _make_value_int32(pp, msg.header_row) - push!(result, ("csv_header_row", _t1439,)) - _t1440 = _make_value_int64(pp, msg.skip) - push!(result, ("csv_skip", _t1440,)) + _t1468 = _make_value_int32(pp, msg.header_row) + push!(result, ("csv_header_row", _t1468,)) + _t1469 = _make_value_int64(pp, msg.skip) + push!(result, ("csv_skip", _t1469,)) if msg.new_line != "" - _t1441 = _make_value_string(pp, msg.new_line) - push!(result, ("csv_new_line", _t1441,)) - end - _t1442 = _make_value_string(pp, msg.delimiter) - push!(result, ("csv_delimiter", _t1442,)) - _t1443 = _make_value_string(pp, msg.quotechar) - push!(result, ("csv_quotechar", _t1443,)) - _t1444 = _make_value_string(pp, msg.escapechar) - push!(result, ("csv_escapechar", _t1444,)) + _t1470 = _make_value_string(pp, msg.new_line) + push!(result, ("csv_new_line", _t1470,)) + end + _t1471 = _make_value_string(pp, msg.delimiter) + push!(result, ("csv_delimiter", _t1471,)) + _t1472 = _make_value_string(pp, msg.quotechar) + push!(result, ("csv_quotechar", _t1472,)) + _t1473 = _make_value_string(pp, msg.escapechar) + push!(result, ("csv_escapechar", _t1473,)) if msg.comment != "" - _t1445 = _make_value_string(pp, msg.comment) - push!(result, ("csv_comment", _t1445,)) + _t1474 = _make_value_string(pp, msg.comment) + push!(result, ("csv_comment", _t1474,)) end for missing_string in msg.missing_strings - _t1446 = _make_value_string(pp, missing_string) - push!(result, ("csv_missing_strings", _t1446,)) - end - _t1447 = _make_value_string(pp, msg.decimal_separator) - push!(result, ("csv_decimal_separator", _t1447,)) - _t1448 = _make_value_string(pp, msg.encoding) - push!(result, ("csv_encoding", _t1448,)) - _t1449 = _make_value_string(pp, msg.compression) - push!(result, ("csv_compression", _t1449,)) + _t1475 = _make_value_string(pp, missing_string) + push!(result, ("csv_missing_strings", _t1475,)) + end + _t1476 = _make_value_string(pp, msg.decimal_separator) + push!(result, ("csv_decimal_separator", _t1476,)) + _t1477 = _make_value_string(pp, msg.encoding) + push!(result, ("csv_encoding", _t1477,)) + _t1478 = _make_value_string(pp, msg.compression) + push!(result, ("csv_compression", _t1478,)) + if msg.partition_size_mb != 0 + _t1479 = _make_value_int64(pp, msg.partition_size_mb) + push!(result, ("csv_partition_size_mb", _t1479,)) + end return sort(result) end function deconstruct_betree_info_config(pp::PrettyPrinter, msg::Proto.BeTreeInfo)::Vector{Tuple{String, Proto.Value}} result = Tuple{String, Proto.Value}[] - _t1450 = _make_value_float64(pp, msg.storage_config.epsilon) - push!(result, ("betree_config_epsilon", _t1450,)) - _t1451 = _make_value_int64(pp, msg.storage_config.max_pivots) - push!(result, ("betree_config_max_pivots", _t1451,)) - _t1452 = _make_value_int64(pp, msg.storage_config.max_deltas) - push!(result, ("betree_config_max_deltas", _t1452,)) - _t1453 = _make_value_int64(pp, msg.storage_config.max_leaf) - push!(result, ("betree_config_max_leaf", _t1453,)) + _t1480 = _make_value_float64(pp, msg.storage_config.epsilon) + push!(result, ("betree_config_epsilon", _t1480,)) + _t1481 = _make_value_int64(pp, msg.storage_config.max_pivots) + push!(result, ("betree_config_max_pivots", _t1481,)) + _t1482 = _make_value_int64(pp, msg.storage_config.max_deltas) + push!(result, ("betree_config_max_deltas", _t1482,)) + _t1483 = _make_value_int64(pp, msg.storage_config.max_leaf) + push!(result, ("betree_config_max_leaf", _t1483,)) if _has_proto_field(msg.relation_locator, Symbol("root_pageid")) if !isnothing(_get_oneof_field(msg.relation_locator, :root_pageid)) - _t1454 = _make_value_uint128(pp, _get_oneof_field(msg.relation_locator, :root_pageid)) - push!(result, ("betree_locator_root_pageid", _t1454,)) + _t1484 = _make_value_uint128(pp, _get_oneof_field(msg.relation_locator, :root_pageid)) + push!(result, ("betree_locator_root_pageid", _t1484,)) end end if _has_proto_field(msg.relation_locator, Symbol("inline_data")) if !isnothing(_get_oneof_field(msg.relation_locator, :inline_data)) - _t1455 = _make_value_string(pp, String(copy(_get_oneof_field(msg.relation_locator, :inline_data)))) - push!(result, ("betree_locator_inline_data", _t1455,)) + _t1485 = _make_value_string(pp, String(copy(_get_oneof_field(msg.relation_locator, :inline_data)))) + push!(result, ("betree_locator_inline_data", _t1485,)) end end - _t1456 = _make_value_int64(pp, msg.relation_locator.element_count) - push!(result, ("betree_locator_element_count", _t1456,)) - _t1457 = _make_value_int64(pp, msg.relation_locator.tree_height) - push!(result, ("betree_locator_tree_height", _t1457,)) + _t1486 = _make_value_int64(pp, msg.relation_locator.element_count) + push!(result, ("betree_locator_element_count", _t1486,)) + _t1487 = _make_value_int64(pp, msg.relation_locator.tree_height) + push!(result, ("betree_locator_tree_height", _t1487,)) return sort(result) end function deconstruct_export_csv_config(pp::PrettyPrinter, msg::Proto.ExportCSVConfig)::Vector{Tuple{String, Proto.Value}} result = Tuple{String, Proto.Value}[] if !isnothing(msg.partition_size) - _t1458 = _make_value_int64(pp, msg.partition_size) - push!(result, ("partition_size", _t1458,)) + _t1488 = _make_value_int64(pp, msg.partition_size) + push!(result, ("partition_size", _t1488,)) end if !isnothing(msg.compression) - _t1459 = _make_value_string(pp, msg.compression) - push!(result, ("compression", _t1459,)) + _t1489 = _make_value_string(pp, msg.compression) + push!(result, ("compression", _t1489,)) end if !isnothing(msg.syntax_header_row) - _t1460 = _make_value_boolean(pp, msg.syntax_header_row) - push!(result, ("syntax_header_row", _t1460,)) + _t1490 = _make_value_boolean(pp, msg.syntax_header_row) + push!(result, ("syntax_header_row", _t1490,)) end if !isnothing(msg.syntax_missing_string) - _t1461 = _make_value_string(pp, msg.syntax_missing_string) - push!(result, ("syntax_missing_string", _t1461,)) + _t1491 = _make_value_string(pp, msg.syntax_missing_string) + push!(result, ("syntax_missing_string", _t1491,)) end if !isnothing(msg.syntax_delim) - _t1462 = _make_value_string(pp, msg.syntax_delim) - push!(result, ("syntax_delim", _t1462,)) + _t1492 = _make_value_string(pp, msg.syntax_delim) + push!(result, ("syntax_delim", _t1492,)) end if !isnothing(msg.syntax_quotechar) - _t1463 = _make_value_string(pp, msg.syntax_quotechar) - push!(result, ("syntax_quotechar", _t1463,)) + _t1493 = _make_value_string(pp, msg.syntax_quotechar) + push!(result, ("syntax_quotechar", _t1493,)) end if !isnothing(msg.syntax_escapechar) - _t1464 = _make_value_string(pp, msg.syntax_escapechar) - push!(result, ("syntax_escapechar", _t1464,)) + _t1494 = _make_value_string(pp, msg.syntax_escapechar) + push!(result, ("syntax_escapechar", _t1494,)) end return sort(result) end @@ -493,7 +497,7 @@ function deconstruct_relation_id_uint128(pp::PrettyPrinter, msg::Proto.RelationI if isnothing(name) return relation_id_to_uint128(pp, msg) else - _t1465 = nothing + _t1495 = nothing end return nothing end @@ -512,47 +516,47 @@ end # --- Pretty-print functions --- function pretty_transaction(pp::PrettyPrinter, msg::Proto.Transaction) - flat651 = try_flat(pp, msg, pretty_transaction) - if !isnothing(flat651) - write(pp, flat651) + flat663 = try_flat(pp, msg, pretty_transaction) + if !isnothing(flat663) + write(pp, flat663) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("configure")) - _t1284 = _dollar_dollar.configure + _t1308 = _dollar_dollar.configure else - _t1284 = nothing + _t1308 = nothing end if _has_proto_field(_dollar_dollar, Symbol("sync")) - _t1285 = _dollar_dollar.sync + _t1309 = _dollar_dollar.sync else - _t1285 = nothing + _t1309 = nothing end - fields642 = (_t1284, _t1285, _dollar_dollar.epochs,) - unwrapped_fields643 = fields642 + fields654 = (_t1308, _t1309, _dollar_dollar.epochs,) + unwrapped_fields655 = fields654 write(pp, "(transaction") indent_sexp!(pp) - field644 = unwrapped_fields643[1] - if !isnothing(field644) + field656 = unwrapped_fields655[1] + if !isnothing(field656) newline(pp) - opt_val645 = field644 - pretty_configure(pp, opt_val645) + opt_val657 = field656 + pretty_configure(pp, opt_val657) end - field646 = unwrapped_fields643[2] - if !isnothing(field646) + field658 = unwrapped_fields655[2] + if !isnothing(field658) newline(pp) - opt_val647 = field646 - pretty_sync(pp, opt_val647) + opt_val659 = field658 + pretty_sync(pp, opt_val659) end - field648 = unwrapped_fields643[3] - if !isempty(field648) + field660 = unwrapped_fields655[3] + if !isempty(field660) newline(pp) - for (i1286, elem649) in enumerate(field648) - i650 = i1286 - 1 - if (i650 > 0) + for (i1310, elem661) in enumerate(field660) + i662 = i1310 - 1 + if (i662 > 0) newline(pp) end - pretty_epoch(pp, elem649) + pretty_epoch(pp, elem661) end end dedent!(pp) @@ -562,19 +566,19 @@ function pretty_transaction(pp::PrettyPrinter, msg::Proto.Transaction) end function pretty_configure(pp::PrettyPrinter, msg::Proto.Configure) - flat654 = try_flat(pp, msg, pretty_configure) - if !isnothing(flat654) - write(pp, flat654) + flat666 = try_flat(pp, msg, pretty_configure) + if !isnothing(flat666) + write(pp, flat666) return nothing else _dollar_dollar = msg - _t1287 = deconstruct_configure(pp, _dollar_dollar) - fields652 = _t1287 - unwrapped_fields653 = fields652 + _t1311 = deconstruct_configure(pp, _dollar_dollar) + fields664 = _t1311 + unwrapped_fields665 = fields664 write(pp, "(configure") indent_sexp!(pp) newline(pp) - pretty_config_dict(pp, unwrapped_fields653) + pretty_config_dict(pp, unwrapped_fields665) dedent!(pp) write(pp, ")") end @@ -582,22 +586,22 @@ function pretty_configure(pp::PrettyPrinter, msg::Proto.Configure) end function pretty_config_dict(pp::PrettyPrinter, msg::Vector{Tuple{String, Proto.Value}}) - flat658 = try_flat(pp, msg, pretty_config_dict) - if !isnothing(flat658) - write(pp, flat658) + flat670 = try_flat(pp, msg, pretty_config_dict) + if !isnothing(flat670) + write(pp, flat670) return nothing else - fields655 = msg + fields667 = msg write(pp, "{") indent!(pp) - if !isempty(fields655) + if !isempty(fields667) newline(pp) - for (i1288, elem656) in enumerate(fields655) - i657 = i1288 - 1 - if (i657 > 0) + for (i1312, elem668) in enumerate(fields667) + i669 = i1312 - 1 + if (i669 > 0) newline(pp) end - pretty_config_key_value(pp, elem656) + pretty_config_key_value(pp, elem668) end end dedent!(pp) @@ -607,130 +611,130 @@ function pretty_config_dict(pp::PrettyPrinter, msg::Vector{Tuple{String, Proto.V end function pretty_config_key_value(pp::PrettyPrinter, msg::Tuple{String, Proto.Value}) - flat663 = try_flat(pp, msg, pretty_config_key_value) - if !isnothing(flat663) - write(pp, flat663) + flat675 = try_flat(pp, msg, pretty_config_key_value) + if !isnothing(flat675) + write(pp, flat675) return nothing else _dollar_dollar = msg - fields659 = (_dollar_dollar[1], _dollar_dollar[2],) - unwrapped_fields660 = fields659 + fields671 = (_dollar_dollar[1], _dollar_dollar[2],) + unwrapped_fields672 = fields671 write(pp, ":") - field661 = unwrapped_fields660[1] - write(pp, field661) + field673 = unwrapped_fields672[1] + write(pp, field673) write(pp, " ") - field662 = unwrapped_fields660[2] - pretty_value(pp, field662) + field674 = unwrapped_fields672[2] + pretty_value(pp, field674) end return nothing end function pretty_value(pp::PrettyPrinter, msg::Proto.Value) - flat683 = try_flat(pp, msg, pretty_value) - if !isnothing(flat683) - write(pp, flat683) + flat695 = try_flat(pp, msg, pretty_value) + if !isnothing(flat695) + write(pp, flat695) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("date_value")) - _t1289 = _get_oneof_field(_dollar_dollar, :date_value) + _t1313 = _get_oneof_field(_dollar_dollar, :date_value) else - _t1289 = nothing + _t1313 = nothing end - deconstruct_result681 = _t1289 - if !isnothing(deconstruct_result681) - unwrapped682 = deconstruct_result681 - pretty_date(pp, unwrapped682) + deconstruct_result693 = _t1313 + if !isnothing(deconstruct_result693) + unwrapped694 = deconstruct_result693 + pretty_date(pp, unwrapped694) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("datetime_value")) - _t1290 = _get_oneof_field(_dollar_dollar, :datetime_value) + _t1314 = _get_oneof_field(_dollar_dollar, :datetime_value) else - _t1290 = nothing + _t1314 = nothing end - deconstruct_result679 = _t1290 - if !isnothing(deconstruct_result679) - unwrapped680 = deconstruct_result679 - pretty_datetime(pp, unwrapped680) + deconstruct_result691 = _t1314 + if !isnothing(deconstruct_result691) + unwrapped692 = deconstruct_result691 + pretty_datetime(pp, unwrapped692) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("string_value")) - _t1291 = _get_oneof_field(_dollar_dollar, :string_value) + _t1315 = _get_oneof_field(_dollar_dollar, :string_value) else - _t1291 = nothing + _t1315 = nothing end - deconstruct_result677 = _t1291 - if !isnothing(deconstruct_result677) - unwrapped678 = deconstruct_result677 - write(pp, format_string(pp, unwrapped678)) + deconstruct_result689 = _t1315 + if !isnothing(deconstruct_result689) + unwrapped690 = deconstruct_result689 + write(pp, format_string(pp, unwrapped690)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int_value")) - _t1292 = _get_oneof_field(_dollar_dollar, :int_value) + _t1316 = _get_oneof_field(_dollar_dollar, :int_value) else - _t1292 = nothing + _t1316 = nothing end - deconstruct_result675 = _t1292 - if !isnothing(deconstruct_result675) - unwrapped676 = deconstruct_result675 - write(pp, format_int(pp, unwrapped676)) + deconstruct_result687 = _t1316 + if !isnothing(deconstruct_result687) + unwrapped688 = deconstruct_result687 + write(pp, format_int(pp, unwrapped688)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float_value")) - _t1293 = _get_oneof_field(_dollar_dollar, :float_value) + _t1317 = _get_oneof_field(_dollar_dollar, :float_value) else - _t1293 = nothing + _t1317 = nothing end - deconstruct_result673 = _t1293 - if !isnothing(deconstruct_result673) - unwrapped674 = deconstruct_result673 - write(pp, format_float(pp, unwrapped674)) + deconstruct_result685 = _t1317 + if !isnothing(deconstruct_result685) + unwrapped686 = deconstruct_result685 + write(pp, format_float(pp, unwrapped686)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint128_value")) - _t1294 = _get_oneof_field(_dollar_dollar, :uint128_value) + _t1318 = _get_oneof_field(_dollar_dollar, :uint128_value) else - _t1294 = nothing + _t1318 = nothing end - deconstruct_result671 = _t1294 - if !isnothing(deconstruct_result671) - unwrapped672 = deconstruct_result671 - write(pp, format_uint128(pp, unwrapped672)) + deconstruct_result683 = _t1318 + if !isnothing(deconstruct_result683) + unwrapped684 = deconstruct_result683 + write(pp, format_uint128(pp, unwrapped684)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int128_value")) - _t1295 = _get_oneof_field(_dollar_dollar, :int128_value) + _t1319 = _get_oneof_field(_dollar_dollar, :int128_value) else - _t1295 = nothing + _t1319 = nothing end - deconstruct_result669 = _t1295 - if !isnothing(deconstruct_result669) - unwrapped670 = deconstruct_result669 - write(pp, format_int128(pp, unwrapped670)) + deconstruct_result681 = _t1319 + if !isnothing(deconstruct_result681) + unwrapped682 = deconstruct_result681 + write(pp, format_int128(pp, unwrapped682)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("decimal_value")) - _t1296 = _get_oneof_field(_dollar_dollar, :decimal_value) + _t1320 = _get_oneof_field(_dollar_dollar, :decimal_value) else - _t1296 = nothing + _t1320 = nothing end - deconstruct_result667 = _t1296 - if !isnothing(deconstruct_result667) - unwrapped668 = deconstruct_result667 - write(pp, format_decimal(pp, unwrapped668)) + deconstruct_result679 = _t1320 + if !isnothing(deconstruct_result679) + unwrapped680 = deconstruct_result679 + write(pp, format_decimal(pp, unwrapped680)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("boolean_value")) - _t1297 = _get_oneof_field(_dollar_dollar, :boolean_value) + _t1321 = _get_oneof_field(_dollar_dollar, :boolean_value) else - _t1297 = nothing + _t1321 = nothing end - deconstruct_result665 = _t1297 - if !isnothing(deconstruct_result665) - unwrapped666 = deconstruct_result665 - pretty_boolean_value(pp, unwrapped666) + deconstruct_result677 = _t1321 + if !isnothing(deconstruct_result677) + unwrapped678 = deconstruct_result677 + pretty_boolean_value(pp, unwrapped678) else - fields664 = msg + fields676 = msg write(pp, "missing") end end @@ -746,25 +750,25 @@ function pretty_value(pp::PrettyPrinter, msg::Proto.Value) end function pretty_date(pp::PrettyPrinter, msg::Proto.DateValue) - flat689 = try_flat(pp, msg, pretty_date) - if !isnothing(flat689) - write(pp, flat689) + flat701 = try_flat(pp, msg, pretty_date) + if !isnothing(flat701) + write(pp, flat701) return nothing else _dollar_dollar = msg - fields684 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) - unwrapped_fields685 = fields684 + fields696 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) + unwrapped_fields697 = fields696 write(pp, "(date") indent_sexp!(pp) newline(pp) - field686 = unwrapped_fields685[1] - write(pp, format_int(pp, field686)) + field698 = unwrapped_fields697[1] + write(pp, format_int(pp, field698)) newline(pp) - field687 = unwrapped_fields685[2] - write(pp, format_int(pp, field687)) + field699 = unwrapped_fields697[2] + write(pp, format_int(pp, field699)) newline(pp) - field688 = unwrapped_fields685[3] - write(pp, format_int(pp, field688)) + field700 = unwrapped_fields697[3] + write(pp, format_int(pp, field700)) dedent!(pp) write(pp, ")") end @@ -772,39 +776,39 @@ function pretty_date(pp::PrettyPrinter, msg::Proto.DateValue) end function pretty_datetime(pp::PrettyPrinter, msg::Proto.DateTimeValue) - flat700 = try_flat(pp, msg, pretty_datetime) - if !isnothing(flat700) - write(pp, flat700) + flat712 = try_flat(pp, msg, pretty_datetime) + if !isnothing(flat712) + write(pp, flat712) return nothing else _dollar_dollar = msg - fields690 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day), Int64(_dollar_dollar.hour), Int64(_dollar_dollar.minute), Int64(_dollar_dollar.second), Int64(_dollar_dollar.microsecond),) - unwrapped_fields691 = fields690 + fields702 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day), Int64(_dollar_dollar.hour), Int64(_dollar_dollar.minute), Int64(_dollar_dollar.second), Int64(_dollar_dollar.microsecond),) + unwrapped_fields703 = fields702 write(pp, "(datetime") indent_sexp!(pp) newline(pp) - field692 = unwrapped_fields691[1] - write(pp, format_int(pp, field692)) + field704 = unwrapped_fields703[1] + write(pp, format_int(pp, field704)) newline(pp) - field693 = unwrapped_fields691[2] - write(pp, format_int(pp, field693)) + field705 = unwrapped_fields703[2] + write(pp, format_int(pp, field705)) newline(pp) - field694 = unwrapped_fields691[3] - write(pp, format_int(pp, field694)) + field706 = unwrapped_fields703[3] + write(pp, format_int(pp, field706)) newline(pp) - field695 = unwrapped_fields691[4] - write(pp, format_int(pp, field695)) + field707 = unwrapped_fields703[4] + write(pp, format_int(pp, field707)) newline(pp) - field696 = unwrapped_fields691[5] - write(pp, format_int(pp, field696)) + field708 = unwrapped_fields703[5] + write(pp, format_int(pp, field708)) newline(pp) - field697 = unwrapped_fields691[6] - write(pp, format_int(pp, field697)) - field698 = unwrapped_fields691[7] - if !isnothing(field698) + field709 = unwrapped_fields703[6] + write(pp, format_int(pp, field709)) + field710 = unwrapped_fields703[7] + if !isnothing(field710) newline(pp) - opt_val699 = field698 - write(pp, format_int(pp, opt_val699)) + opt_val711 = field710 + write(pp, format_int(pp, opt_val711)) end dedent!(pp) write(pp, ")") @@ -815,24 +819,24 @@ end function pretty_boolean_value(pp::PrettyPrinter, msg::Bool) _dollar_dollar = msg if _dollar_dollar - _t1298 = () + _t1322 = () else - _t1298 = nothing + _t1322 = nothing end - deconstruct_result703 = _t1298 - if !isnothing(deconstruct_result703) - unwrapped704 = deconstruct_result703 + deconstruct_result715 = _t1322 + if !isnothing(deconstruct_result715) + unwrapped716 = deconstruct_result715 write(pp, "true") else _dollar_dollar = msg if !_dollar_dollar - _t1299 = () + _t1323 = () else - _t1299 = nothing + _t1323 = nothing end - deconstruct_result701 = _t1299 - if !isnothing(deconstruct_result701) - unwrapped702 = deconstruct_result701 + deconstruct_result713 = _t1323 + if !isnothing(deconstruct_result713) + unwrapped714 = deconstruct_result713 write(pp, "false") else throw(ParseError("No matching rule for boolean_value")) @@ -842,24 +846,24 @@ function pretty_boolean_value(pp::PrettyPrinter, msg::Bool) end function pretty_sync(pp::PrettyPrinter, msg::Proto.Sync) - flat709 = try_flat(pp, msg, pretty_sync) - if !isnothing(flat709) - write(pp, flat709) + flat721 = try_flat(pp, msg, pretty_sync) + if !isnothing(flat721) + write(pp, flat721) return nothing else _dollar_dollar = msg - fields705 = _dollar_dollar.fragments - unwrapped_fields706 = fields705 + fields717 = _dollar_dollar.fragments + unwrapped_fields718 = fields717 write(pp, "(sync") indent_sexp!(pp) - if !isempty(unwrapped_fields706) + if !isempty(unwrapped_fields718) newline(pp) - for (i1300, elem707) in enumerate(unwrapped_fields706) - i708 = i1300 - 1 - if (i708 > 0) + for (i1324, elem719) in enumerate(unwrapped_fields718) + i720 = i1324 - 1 + if (i720 > 0) newline(pp) end - pretty_fragment_id(pp, elem707) + pretty_fragment_id(pp, elem719) end end dedent!(pp) @@ -869,52 +873,52 @@ function pretty_sync(pp::PrettyPrinter, msg::Proto.Sync) end function pretty_fragment_id(pp::PrettyPrinter, msg::Proto.FragmentId) - flat712 = try_flat(pp, msg, pretty_fragment_id) - if !isnothing(flat712) - write(pp, flat712) + flat724 = try_flat(pp, msg, pretty_fragment_id) + if !isnothing(flat724) + write(pp, flat724) return nothing else _dollar_dollar = msg - fields710 = fragment_id_to_string(pp, _dollar_dollar) - unwrapped_fields711 = fields710 + fields722 = fragment_id_to_string(pp, _dollar_dollar) + unwrapped_fields723 = fields722 write(pp, ":") - write(pp, unwrapped_fields711) + write(pp, unwrapped_fields723) end return nothing end function pretty_epoch(pp::PrettyPrinter, msg::Proto.Epoch) - flat719 = try_flat(pp, msg, pretty_epoch) - if !isnothing(flat719) - write(pp, flat719) + flat731 = try_flat(pp, msg, pretty_epoch) + if !isnothing(flat731) + write(pp, flat731) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.writes) - _t1301 = _dollar_dollar.writes + _t1325 = _dollar_dollar.writes else - _t1301 = nothing + _t1325 = nothing end if !isempty(_dollar_dollar.reads) - _t1302 = _dollar_dollar.reads + _t1326 = _dollar_dollar.reads else - _t1302 = nothing + _t1326 = nothing end - fields713 = (_t1301, _t1302,) - unwrapped_fields714 = fields713 + fields725 = (_t1325, _t1326,) + unwrapped_fields726 = fields725 write(pp, "(epoch") indent_sexp!(pp) - field715 = unwrapped_fields714[1] - if !isnothing(field715) + field727 = unwrapped_fields726[1] + if !isnothing(field727) newline(pp) - opt_val716 = field715 - pretty_epoch_writes(pp, opt_val716) + opt_val728 = field727 + pretty_epoch_writes(pp, opt_val728) end - field717 = unwrapped_fields714[2] - if !isnothing(field717) + field729 = unwrapped_fields726[2] + if !isnothing(field729) newline(pp) - opt_val718 = field717 - pretty_epoch_reads(pp, opt_val718) + opt_val730 = field729 + pretty_epoch_reads(pp, opt_val730) end dedent!(pp) write(pp, ")") @@ -923,22 +927,22 @@ function pretty_epoch(pp::PrettyPrinter, msg::Proto.Epoch) end function pretty_epoch_writes(pp::PrettyPrinter, msg::Vector{Proto.Write}) - flat723 = try_flat(pp, msg, pretty_epoch_writes) - if !isnothing(flat723) - write(pp, flat723) + flat735 = try_flat(pp, msg, pretty_epoch_writes) + if !isnothing(flat735) + write(pp, flat735) return nothing else - fields720 = msg + fields732 = msg write(pp, "(writes") indent_sexp!(pp) - if !isempty(fields720) + if !isempty(fields732) newline(pp) - for (i1303, elem721) in enumerate(fields720) - i722 = i1303 - 1 - if (i722 > 0) + for (i1327, elem733) in enumerate(fields732) + i734 = i1327 - 1 + if (i734 > 0) newline(pp) end - pretty_write(pp, elem721) + pretty_write(pp, elem733) end end dedent!(pp) @@ -948,54 +952,54 @@ function pretty_epoch_writes(pp::PrettyPrinter, msg::Vector{Proto.Write}) end function pretty_write(pp::PrettyPrinter, msg::Proto.Write) - flat732 = try_flat(pp, msg, pretty_write) - if !isnothing(flat732) - write(pp, flat732) + flat744 = try_flat(pp, msg, pretty_write) + if !isnothing(flat744) + write(pp, flat744) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("define")) - _t1304 = _get_oneof_field(_dollar_dollar, :define) + _t1328 = _get_oneof_field(_dollar_dollar, :define) else - _t1304 = nothing + _t1328 = nothing end - deconstruct_result730 = _t1304 - if !isnothing(deconstruct_result730) - unwrapped731 = deconstruct_result730 - pretty_define(pp, unwrapped731) + deconstruct_result742 = _t1328 + if !isnothing(deconstruct_result742) + unwrapped743 = deconstruct_result742 + pretty_define(pp, unwrapped743) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("undefine")) - _t1305 = _get_oneof_field(_dollar_dollar, :undefine) + _t1329 = _get_oneof_field(_dollar_dollar, :undefine) else - _t1305 = nothing + _t1329 = nothing end - deconstruct_result728 = _t1305 - if !isnothing(deconstruct_result728) - unwrapped729 = deconstruct_result728 - pretty_undefine(pp, unwrapped729) + deconstruct_result740 = _t1329 + if !isnothing(deconstruct_result740) + unwrapped741 = deconstruct_result740 + pretty_undefine(pp, unwrapped741) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("context")) - _t1306 = _get_oneof_field(_dollar_dollar, :context) + _t1330 = _get_oneof_field(_dollar_dollar, :context) else - _t1306 = nothing + _t1330 = nothing end - deconstruct_result726 = _t1306 - if !isnothing(deconstruct_result726) - unwrapped727 = deconstruct_result726 - pretty_context(pp, unwrapped727) + deconstruct_result738 = _t1330 + if !isnothing(deconstruct_result738) + unwrapped739 = deconstruct_result738 + pretty_context(pp, unwrapped739) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("snapshot")) - _t1307 = _get_oneof_field(_dollar_dollar, :snapshot) + _t1331 = _get_oneof_field(_dollar_dollar, :snapshot) else - _t1307 = nothing + _t1331 = nothing end - deconstruct_result724 = _t1307 - if !isnothing(deconstruct_result724) - unwrapped725 = deconstruct_result724 - pretty_snapshot(pp, unwrapped725) + deconstruct_result736 = _t1331 + if !isnothing(deconstruct_result736) + unwrapped737 = deconstruct_result736 + pretty_snapshot(pp, unwrapped737) else throw(ParseError("No matching rule for write")) end @@ -1007,18 +1011,18 @@ function pretty_write(pp::PrettyPrinter, msg::Proto.Write) end function pretty_define(pp::PrettyPrinter, msg::Proto.Define) - flat735 = try_flat(pp, msg, pretty_define) - if !isnothing(flat735) - write(pp, flat735) + flat747 = try_flat(pp, msg, pretty_define) + if !isnothing(flat747) + write(pp, flat747) return nothing else _dollar_dollar = msg - fields733 = _dollar_dollar.fragment - unwrapped_fields734 = fields733 + fields745 = _dollar_dollar.fragment + unwrapped_fields746 = fields745 write(pp, "(define") indent_sexp!(pp) newline(pp) - pretty_fragment(pp, unwrapped_fields734) + pretty_fragment(pp, unwrapped_fields746) dedent!(pp) write(pp, ")") end @@ -1026,29 +1030,29 @@ function pretty_define(pp::PrettyPrinter, msg::Proto.Define) end function pretty_fragment(pp::PrettyPrinter, msg::Proto.Fragment) - flat742 = try_flat(pp, msg, pretty_fragment) - if !isnothing(flat742) - write(pp, flat742) + flat754 = try_flat(pp, msg, pretty_fragment) + if !isnothing(flat754) + write(pp, flat754) return nothing else _dollar_dollar = msg start_pretty_fragment(pp, _dollar_dollar) - fields736 = (_dollar_dollar.id, _dollar_dollar.declarations,) - unwrapped_fields737 = fields736 + fields748 = (_dollar_dollar.id, _dollar_dollar.declarations,) + unwrapped_fields749 = fields748 write(pp, "(fragment") indent_sexp!(pp) newline(pp) - field738 = unwrapped_fields737[1] - pretty_new_fragment_id(pp, field738) - field739 = unwrapped_fields737[2] - if !isempty(field739) + field750 = unwrapped_fields749[1] + pretty_new_fragment_id(pp, field750) + field751 = unwrapped_fields749[2] + if !isempty(field751) newline(pp) - for (i1308, elem740) in enumerate(field739) - i741 = i1308 - 1 - if (i741 > 0) + for (i1332, elem752) in enumerate(field751) + i753 = i1332 - 1 + if (i753 > 0) newline(pp) end - pretty_declaration(pp, elem740) + pretty_declaration(pp, elem752) end end dedent!(pp) @@ -1058,66 +1062,66 @@ function pretty_fragment(pp::PrettyPrinter, msg::Proto.Fragment) end function pretty_new_fragment_id(pp::PrettyPrinter, msg::Proto.FragmentId) - flat744 = try_flat(pp, msg, pretty_new_fragment_id) - if !isnothing(flat744) - write(pp, flat744) + flat756 = try_flat(pp, msg, pretty_new_fragment_id) + if !isnothing(flat756) + write(pp, flat756) return nothing else - fields743 = msg - pretty_fragment_id(pp, fields743) + fields755 = msg + pretty_fragment_id(pp, fields755) end return nothing end function pretty_declaration(pp::PrettyPrinter, msg::Proto.Declaration) - flat753 = try_flat(pp, msg, pretty_declaration) - if !isnothing(flat753) - write(pp, flat753) + flat765 = try_flat(pp, msg, pretty_declaration) + if !isnothing(flat765) + write(pp, flat765) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("def")) - _t1309 = _get_oneof_field(_dollar_dollar, :def) + _t1333 = _get_oneof_field(_dollar_dollar, :def) else - _t1309 = nothing + _t1333 = nothing end - deconstruct_result751 = _t1309 - if !isnothing(deconstruct_result751) - unwrapped752 = deconstruct_result751 - pretty_def(pp, unwrapped752) + deconstruct_result763 = _t1333 + if !isnothing(deconstruct_result763) + unwrapped764 = deconstruct_result763 + pretty_def(pp, unwrapped764) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("algorithm")) - _t1310 = _get_oneof_field(_dollar_dollar, :algorithm) + _t1334 = _get_oneof_field(_dollar_dollar, :algorithm) else - _t1310 = nothing + _t1334 = nothing end - deconstruct_result749 = _t1310 - if !isnothing(deconstruct_result749) - unwrapped750 = deconstruct_result749 - pretty_algorithm(pp, unwrapped750) + deconstruct_result761 = _t1334 + if !isnothing(deconstruct_result761) + unwrapped762 = deconstruct_result761 + pretty_algorithm(pp, unwrapped762) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("constraint")) - _t1311 = _get_oneof_field(_dollar_dollar, :constraint) + _t1335 = _get_oneof_field(_dollar_dollar, :constraint) else - _t1311 = nothing + _t1335 = nothing end - deconstruct_result747 = _t1311 - if !isnothing(deconstruct_result747) - unwrapped748 = deconstruct_result747 - pretty_constraint(pp, unwrapped748) + deconstruct_result759 = _t1335 + if !isnothing(deconstruct_result759) + unwrapped760 = deconstruct_result759 + pretty_constraint(pp, unwrapped760) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("data")) - _t1312 = _get_oneof_field(_dollar_dollar, :data) + _t1336 = _get_oneof_field(_dollar_dollar, :data) else - _t1312 = nothing + _t1336 = nothing end - deconstruct_result745 = _t1312 - if !isnothing(deconstruct_result745) - unwrapped746 = deconstruct_result745 - pretty_data(pp, unwrapped746) + deconstruct_result757 = _t1336 + if !isnothing(deconstruct_result757) + unwrapped758 = deconstruct_result757 + pretty_data(pp, unwrapped758) else throw(ParseError("No matching rule for declaration")) end @@ -1129,32 +1133,32 @@ function pretty_declaration(pp::PrettyPrinter, msg::Proto.Declaration) end function pretty_def(pp::PrettyPrinter, msg::Proto.Def) - flat760 = try_flat(pp, msg, pretty_def) - if !isnothing(flat760) - write(pp, flat760) + flat772 = try_flat(pp, msg, pretty_def) + if !isnothing(flat772) + write(pp, flat772) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1313 = _dollar_dollar.attrs + _t1337 = _dollar_dollar.attrs else - _t1313 = nothing + _t1337 = nothing end - fields754 = (_dollar_dollar.name, _dollar_dollar.body, _t1313,) - unwrapped_fields755 = fields754 + fields766 = (_dollar_dollar.name, _dollar_dollar.body, _t1337,) + unwrapped_fields767 = fields766 write(pp, "(def") indent_sexp!(pp) newline(pp) - field756 = unwrapped_fields755[1] - pretty_relation_id(pp, field756) + field768 = unwrapped_fields767[1] + pretty_relation_id(pp, field768) newline(pp) - field757 = unwrapped_fields755[2] - pretty_abstraction(pp, field757) - field758 = unwrapped_fields755[3] - if !isnothing(field758) + field769 = unwrapped_fields767[2] + pretty_abstraction(pp, field769) + field770 = unwrapped_fields767[3] + if !isnothing(field770) newline(pp) - opt_val759 = field758 - pretty_attrs(pp, opt_val759) + opt_val771 = field770 + pretty_attrs(pp, opt_val771) end dedent!(pp) write(pp, ")") @@ -1163,30 +1167,30 @@ function pretty_def(pp::PrettyPrinter, msg::Proto.Def) end function pretty_relation_id(pp::PrettyPrinter, msg::Proto.RelationId) - flat765 = try_flat(pp, msg, pretty_relation_id) - if !isnothing(flat765) - write(pp, flat765) + flat777 = try_flat(pp, msg, pretty_relation_id) + if !isnothing(flat777) + write(pp, flat777) return nothing else _dollar_dollar = msg if !isnothing(relation_id_to_string(pp, _dollar_dollar)) - _t1315 = deconstruct_relation_id_string(pp, _dollar_dollar) - _t1314 = _t1315 + _t1339 = deconstruct_relation_id_string(pp, _dollar_dollar) + _t1338 = _t1339 else - _t1314 = nothing + _t1338 = nothing end - deconstruct_result763 = _t1314 - if !isnothing(deconstruct_result763) - unwrapped764 = deconstruct_result763 + deconstruct_result775 = _t1338 + if !isnothing(deconstruct_result775) + unwrapped776 = deconstruct_result775 write(pp, ":") - write(pp, unwrapped764) + write(pp, unwrapped776) else _dollar_dollar = msg - _t1316 = deconstruct_relation_id_uint128(pp, _dollar_dollar) - deconstruct_result761 = _t1316 - if !isnothing(deconstruct_result761) - unwrapped762 = deconstruct_result761 - write(pp, format_uint128(pp, unwrapped762)) + _t1340 = deconstruct_relation_id_uint128(pp, _dollar_dollar) + deconstruct_result773 = _t1340 + if !isnothing(deconstruct_result773) + unwrapped774 = deconstruct_result773 + write(pp, format_uint128(pp, unwrapped774)) else throw(ParseError("No matching rule for relation_id")) end @@ -1196,22 +1200,22 @@ function pretty_relation_id(pp::PrettyPrinter, msg::Proto.RelationId) end function pretty_abstraction(pp::PrettyPrinter, msg::Proto.Abstraction) - flat770 = try_flat(pp, msg, pretty_abstraction) - if !isnothing(flat770) - write(pp, flat770) + flat782 = try_flat(pp, msg, pretty_abstraction) + if !isnothing(flat782) + write(pp, flat782) return nothing else _dollar_dollar = msg - _t1317 = deconstruct_bindings(pp, _dollar_dollar) - fields766 = (_t1317, _dollar_dollar.value,) - unwrapped_fields767 = fields766 + _t1341 = deconstruct_bindings(pp, _dollar_dollar) + fields778 = (_t1341, _dollar_dollar.value,) + unwrapped_fields779 = fields778 write(pp, "(") indent!(pp) - field768 = unwrapped_fields767[1] - pretty_bindings(pp, field768) + field780 = unwrapped_fields779[1] + pretty_bindings(pp, field780) newline(pp) - field769 = unwrapped_fields767[2] - pretty_formula(pp, field769) + field781 = unwrapped_fields779[2] + pretty_formula(pp, field781) dedent!(pp) write(pp, ")") end @@ -1219,34 +1223,34 @@ function pretty_abstraction(pp::PrettyPrinter, msg::Proto.Abstraction) end function pretty_bindings(pp::PrettyPrinter, msg::Tuple{Vector{Proto.Binding}, Vector{Proto.Binding}}) - flat778 = try_flat(pp, msg, pretty_bindings) - if !isnothing(flat778) - write(pp, flat778) + flat790 = try_flat(pp, msg, pretty_bindings) + if !isnothing(flat790) + write(pp, flat790) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar[2]) - _t1318 = _dollar_dollar[2] + _t1342 = _dollar_dollar[2] else - _t1318 = nothing + _t1342 = nothing end - fields771 = (_dollar_dollar[1], _t1318,) - unwrapped_fields772 = fields771 + fields783 = (_dollar_dollar[1], _t1342,) + unwrapped_fields784 = fields783 write(pp, "[") indent!(pp) - field773 = unwrapped_fields772[1] - for (i1319, elem774) in enumerate(field773) - i775 = i1319 - 1 - if (i775 > 0) + field785 = unwrapped_fields784[1] + for (i1343, elem786) in enumerate(field785) + i787 = i1343 - 1 + if (i787 > 0) newline(pp) end - pretty_binding(pp, elem774) + pretty_binding(pp, elem786) end - field776 = unwrapped_fields772[2] - if !isnothing(field776) + field788 = unwrapped_fields784[2] + if !isnothing(field788) newline(pp) - opt_val777 = field776 - pretty_value_bindings(pp, opt_val777) + opt_val789 = field788 + pretty_value_bindings(pp, opt_val789) end dedent!(pp) write(pp, "]") @@ -1255,149 +1259,149 @@ function pretty_bindings(pp::PrettyPrinter, msg::Tuple{Vector{Proto.Binding}, Ve end function pretty_binding(pp::PrettyPrinter, msg::Proto.Binding) - flat783 = try_flat(pp, msg, pretty_binding) - if !isnothing(flat783) - write(pp, flat783) + flat795 = try_flat(pp, msg, pretty_binding) + if !isnothing(flat795) + write(pp, flat795) return nothing else _dollar_dollar = msg - fields779 = (_dollar_dollar.var.name, _dollar_dollar.var"#type",) - unwrapped_fields780 = fields779 - field781 = unwrapped_fields780[1] - write(pp, field781) + fields791 = (_dollar_dollar.var.name, _dollar_dollar.var"#type",) + unwrapped_fields792 = fields791 + field793 = unwrapped_fields792[1] + write(pp, field793) write(pp, "::") - field782 = unwrapped_fields780[2] - pretty_type(pp, field782) + field794 = unwrapped_fields792[2] + pretty_type(pp, field794) end return nothing end function pretty_type(pp::PrettyPrinter, msg::Proto.var"#Type") - flat806 = try_flat(pp, msg, pretty_type) - if !isnothing(flat806) - write(pp, flat806) + flat818 = try_flat(pp, msg, pretty_type) + if !isnothing(flat818) + write(pp, flat818) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("unspecified_type")) - _t1320 = _get_oneof_field(_dollar_dollar, :unspecified_type) + _t1344 = _get_oneof_field(_dollar_dollar, :unspecified_type) else - _t1320 = nothing + _t1344 = nothing end - deconstruct_result804 = _t1320 - if !isnothing(deconstruct_result804) - unwrapped805 = deconstruct_result804 - pretty_unspecified_type(pp, unwrapped805) + deconstruct_result816 = _t1344 + if !isnothing(deconstruct_result816) + unwrapped817 = deconstruct_result816 + pretty_unspecified_type(pp, unwrapped817) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("string_type")) - _t1321 = _get_oneof_field(_dollar_dollar, :string_type) + _t1345 = _get_oneof_field(_dollar_dollar, :string_type) else - _t1321 = nothing + _t1345 = nothing end - deconstruct_result802 = _t1321 - if !isnothing(deconstruct_result802) - unwrapped803 = deconstruct_result802 - pretty_string_type(pp, unwrapped803) + deconstruct_result814 = _t1345 + if !isnothing(deconstruct_result814) + unwrapped815 = deconstruct_result814 + pretty_string_type(pp, unwrapped815) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int_type")) - _t1322 = _get_oneof_field(_dollar_dollar, :int_type) + _t1346 = _get_oneof_field(_dollar_dollar, :int_type) else - _t1322 = nothing + _t1346 = nothing end - deconstruct_result800 = _t1322 - if !isnothing(deconstruct_result800) - unwrapped801 = deconstruct_result800 - pretty_int_type(pp, unwrapped801) + deconstruct_result812 = _t1346 + if !isnothing(deconstruct_result812) + unwrapped813 = deconstruct_result812 + pretty_int_type(pp, unwrapped813) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float_type")) - _t1323 = _get_oneof_field(_dollar_dollar, :float_type) + _t1347 = _get_oneof_field(_dollar_dollar, :float_type) else - _t1323 = nothing + _t1347 = nothing end - deconstruct_result798 = _t1323 - if !isnothing(deconstruct_result798) - unwrapped799 = deconstruct_result798 - pretty_float_type(pp, unwrapped799) + deconstruct_result810 = _t1347 + if !isnothing(deconstruct_result810) + unwrapped811 = deconstruct_result810 + pretty_float_type(pp, unwrapped811) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint128_type")) - _t1324 = _get_oneof_field(_dollar_dollar, :uint128_type) + _t1348 = _get_oneof_field(_dollar_dollar, :uint128_type) else - _t1324 = nothing + _t1348 = nothing end - deconstruct_result796 = _t1324 - if !isnothing(deconstruct_result796) - unwrapped797 = deconstruct_result796 - pretty_uint128_type(pp, unwrapped797) + deconstruct_result808 = _t1348 + if !isnothing(deconstruct_result808) + unwrapped809 = deconstruct_result808 + pretty_uint128_type(pp, unwrapped809) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int128_type")) - _t1325 = _get_oneof_field(_dollar_dollar, :int128_type) + _t1349 = _get_oneof_field(_dollar_dollar, :int128_type) else - _t1325 = nothing + _t1349 = nothing end - deconstruct_result794 = _t1325 - if !isnothing(deconstruct_result794) - unwrapped795 = deconstruct_result794 - pretty_int128_type(pp, unwrapped795) + deconstruct_result806 = _t1349 + if !isnothing(deconstruct_result806) + unwrapped807 = deconstruct_result806 + pretty_int128_type(pp, unwrapped807) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("date_type")) - _t1326 = _get_oneof_field(_dollar_dollar, :date_type) + _t1350 = _get_oneof_field(_dollar_dollar, :date_type) else - _t1326 = nothing + _t1350 = nothing end - deconstruct_result792 = _t1326 - if !isnothing(deconstruct_result792) - unwrapped793 = deconstruct_result792 - pretty_date_type(pp, unwrapped793) + deconstruct_result804 = _t1350 + if !isnothing(deconstruct_result804) + unwrapped805 = deconstruct_result804 + pretty_date_type(pp, unwrapped805) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("datetime_type")) - _t1327 = _get_oneof_field(_dollar_dollar, :datetime_type) + _t1351 = _get_oneof_field(_dollar_dollar, :datetime_type) else - _t1327 = nothing + _t1351 = nothing end - deconstruct_result790 = _t1327 - if !isnothing(deconstruct_result790) - unwrapped791 = deconstruct_result790 - pretty_datetime_type(pp, unwrapped791) + deconstruct_result802 = _t1351 + if !isnothing(deconstruct_result802) + unwrapped803 = deconstruct_result802 + pretty_datetime_type(pp, unwrapped803) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("missing_type")) - _t1328 = _get_oneof_field(_dollar_dollar, :missing_type) + _t1352 = _get_oneof_field(_dollar_dollar, :missing_type) else - _t1328 = nothing + _t1352 = nothing end - deconstruct_result788 = _t1328 - if !isnothing(deconstruct_result788) - unwrapped789 = deconstruct_result788 - pretty_missing_type(pp, unwrapped789) + deconstruct_result800 = _t1352 + if !isnothing(deconstruct_result800) + unwrapped801 = deconstruct_result800 + pretty_missing_type(pp, unwrapped801) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("decimal_type")) - _t1329 = _get_oneof_field(_dollar_dollar, :decimal_type) + _t1353 = _get_oneof_field(_dollar_dollar, :decimal_type) else - _t1329 = nothing + _t1353 = nothing end - deconstruct_result786 = _t1329 - if !isnothing(deconstruct_result786) - unwrapped787 = deconstruct_result786 - pretty_decimal_type(pp, unwrapped787) + deconstruct_result798 = _t1353 + if !isnothing(deconstruct_result798) + unwrapped799 = deconstruct_result798 + pretty_decimal_type(pp, unwrapped799) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("boolean_type")) - _t1330 = _get_oneof_field(_dollar_dollar, :boolean_type) + _t1354 = _get_oneof_field(_dollar_dollar, :boolean_type) else - _t1330 = nothing + _t1354 = nothing end - deconstruct_result784 = _t1330 - if !isnothing(deconstruct_result784) - unwrapped785 = deconstruct_result784 - pretty_boolean_type(pp, unwrapped785) + deconstruct_result796 = _t1354 + if !isnothing(deconstruct_result796) + unwrapped797 = deconstruct_result796 + pretty_boolean_type(pp, unwrapped797) else throw(ParseError("No matching rule for type")) end @@ -1416,76 +1420,76 @@ function pretty_type(pp::PrettyPrinter, msg::Proto.var"#Type") end function pretty_unspecified_type(pp::PrettyPrinter, msg::Proto.UnspecifiedType) - fields807 = msg + fields819 = msg write(pp, "UNKNOWN") return nothing end function pretty_string_type(pp::PrettyPrinter, msg::Proto.StringType) - fields808 = msg + fields820 = msg write(pp, "STRING") return nothing end function pretty_int_type(pp::PrettyPrinter, msg::Proto.IntType) - fields809 = msg + fields821 = msg write(pp, "INT") return nothing end function pretty_float_type(pp::PrettyPrinter, msg::Proto.FloatType) - fields810 = msg + fields822 = msg write(pp, "FLOAT") return nothing end function pretty_uint128_type(pp::PrettyPrinter, msg::Proto.UInt128Type) - fields811 = msg + fields823 = msg write(pp, "UINT128") return nothing end function pretty_int128_type(pp::PrettyPrinter, msg::Proto.Int128Type) - fields812 = msg + fields824 = msg write(pp, "INT128") return nothing end function pretty_date_type(pp::PrettyPrinter, msg::Proto.DateType) - fields813 = msg + fields825 = msg write(pp, "DATE") return nothing end function pretty_datetime_type(pp::PrettyPrinter, msg::Proto.DateTimeType) - fields814 = msg + fields826 = msg write(pp, "DATETIME") return nothing end function pretty_missing_type(pp::PrettyPrinter, msg::Proto.MissingType) - fields815 = msg + fields827 = msg write(pp, "MISSING") return nothing end function pretty_decimal_type(pp::PrettyPrinter, msg::Proto.DecimalType) - flat820 = try_flat(pp, msg, pretty_decimal_type) - if !isnothing(flat820) - write(pp, flat820) + flat832 = try_flat(pp, msg, pretty_decimal_type) + if !isnothing(flat832) + write(pp, flat832) return nothing else _dollar_dollar = msg - fields816 = (Int64(_dollar_dollar.precision), Int64(_dollar_dollar.scale),) - unwrapped_fields817 = fields816 + fields828 = (Int64(_dollar_dollar.precision), Int64(_dollar_dollar.scale),) + unwrapped_fields829 = fields828 write(pp, "(DECIMAL") indent_sexp!(pp) newline(pp) - field818 = unwrapped_fields817[1] - write(pp, format_int(pp, field818)) + field830 = unwrapped_fields829[1] + write(pp, format_int(pp, field830)) newline(pp) - field819 = unwrapped_fields817[2] - write(pp, format_int(pp, field819)) + field831 = unwrapped_fields829[2] + write(pp, format_int(pp, field831)) dedent!(pp) write(pp, ")") end @@ -1493,27 +1497,27 @@ function pretty_decimal_type(pp::PrettyPrinter, msg::Proto.DecimalType) end function pretty_boolean_type(pp::PrettyPrinter, msg::Proto.BooleanType) - fields821 = msg + fields833 = msg write(pp, "BOOLEAN") return nothing end function pretty_value_bindings(pp::PrettyPrinter, msg::Vector{Proto.Binding}) - flat825 = try_flat(pp, msg, pretty_value_bindings) - if !isnothing(flat825) - write(pp, flat825) + flat837 = try_flat(pp, msg, pretty_value_bindings) + if !isnothing(flat837) + write(pp, flat837) return nothing else - fields822 = msg + fields834 = msg write(pp, "|") - if !isempty(fields822) + if !isempty(fields834) write(pp, " ") - for (i1331, elem823) in enumerate(fields822) - i824 = i1331 - 1 - if (i824 > 0) + for (i1355, elem835) in enumerate(fields834) + i836 = i1355 - 1 + if (i836 > 0) newline(pp) end - pretty_binding(pp, elem823) + pretty_binding(pp, elem835) end end end @@ -1521,153 +1525,153 @@ function pretty_value_bindings(pp::PrettyPrinter, msg::Vector{Proto.Binding}) end function pretty_formula(pp::PrettyPrinter, msg::Proto.Formula) - flat852 = try_flat(pp, msg, pretty_formula) - if !isnothing(flat852) - write(pp, flat852) + flat864 = try_flat(pp, msg, pretty_formula) + if !isnothing(flat864) + write(pp, flat864) return nothing else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("conjunction")) && isempty(_get_oneof_field(_dollar_dollar, :conjunction).args)) - _t1332 = _get_oneof_field(_dollar_dollar, :conjunction) + _t1356 = _get_oneof_field(_dollar_dollar, :conjunction) else - _t1332 = nothing + _t1356 = nothing end - deconstruct_result850 = _t1332 - if !isnothing(deconstruct_result850) - unwrapped851 = deconstruct_result850 - pretty_true(pp, unwrapped851) + deconstruct_result862 = _t1356 + if !isnothing(deconstruct_result862) + unwrapped863 = deconstruct_result862 + pretty_true(pp, unwrapped863) else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("disjunction")) && isempty(_get_oneof_field(_dollar_dollar, :disjunction).args)) - _t1333 = _get_oneof_field(_dollar_dollar, :disjunction) + _t1357 = _get_oneof_field(_dollar_dollar, :disjunction) else - _t1333 = nothing + _t1357 = nothing end - deconstruct_result848 = _t1333 - if !isnothing(deconstruct_result848) - unwrapped849 = deconstruct_result848 - pretty_false(pp, unwrapped849) + deconstruct_result860 = _t1357 + if !isnothing(deconstruct_result860) + unwrapped861 = deconstruct_result860 + pretty_false(pp, unwrapped861) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("exists")) - _t1334 = _get_oneof_field(_dollar_dollar, :exists) + _t1358 = _get_oneof_field(_dollar_dollar, :exists) else - _t1334 = nothing + _t1358 = nothing end - deconstruct_result846 = _t1334 - if !isnothing(deconstruct_result846) - unwrapped847 = deconstruct_result846 - pretty_exists(pp, unwrapped847) + deconstruct_result858 = _t1358 + if !isnothing(deconstruct_result858) + unwrapped859 = deconstruct_result858 + pretty_exists(pp, unwrapped859) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("reduce")) - _t1335 = _get_oneof_field(_dollar_dollar, :reduce) + _t1359 = _get_oneof_field(_dollar_dollar, :reduce) else - _t1335 = nothing + _t1359 = nothing end - deconstruct_result844 = _t1335 - if !isnothing(deconstruct_result844) - unwrapped845 = deconstruct_result844 - pretty_reduce(pp, unwrapped845) + deconstruct_result856 = _t1359 + if !isnothing(deconstruct_result856) + unwrapped857 = deconstruct_result856 + pretty_reduce(pp, unwrapped857) else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("conjunction")) && !isempty(_get_oneof_field(_dollar_dollar, :conjunction).args)) - _t1336 = _get_oneof_field(_dollar_dollar, :conjunction) + _t1360 = _get_oneof_field(_dollar_dollar, :conjunction) else - _t1336 = nothing + _t1360 = nothing end - deconstruct_result842 = _t1336 - if !isnothing(deconstruct_result842) - unwrapped843 = deconstruct_result842 - pretty_conjunction(pp, unwrapped843) + deconstruct_result854 = _t1360 + if !isnothing(deconstruct_result854) + unwrapped855 = deconstruct_result854 + pretty_conjunction(pp, unwrapped855) else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("disjunction")) && !isempty(_get_oneof_field(_dollar_dollar, :disjunction).args)) - _t1337 = _get_oneof_field(_dollar_dollar, :disjunction) + _t1361 = _get_oneof_field(_dollar_dollar, :disjunction) else - _t1337 = nothing + _t1361 = nothing end - deconstruct_result840 = _t1337 - if !isnothing(deconstruct_result840) - unwrapped841 = deconstruct_result840 - pretty_disjunction(pp, unwrapped841) + deconstruct_result852 = _t1361 + if !isnothing(deconstruct_result852) + unwrapped853 = deconstruct_result852 + pretty_disjunction(pp, unwrapped853) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("not")) - _t1338 = _get_oneof_field(_dollar_dollar, :not) + _t1362 = _get_oneof_field(_dollar_dollar, :not) else - _t1338 = nothing + _t1362 = nothing end - deconstruct_result838 = _t1338 - if !isnothing(deconstruct_result838) - unwrapped839 = deconstruct_result838 - pretty_not(pp, unwrapped839) + deconstruct_result850 = _t1362 + if !isnothing(deconstruct_result850) + unwrapped851 = deconstruct_result850 + pretty_not(pp, unwrapped851) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("ffi")) - _t1339 = _get_oneof_field(_dollar_dollar, :ffi) + _t1363 = _get_oneof_field(_dollar_dollar, :ffi) else - _t1339 = nothing + _t1363 = nothing end - deconstruct_result836 = _t1339 - if !isnothing(deconstruct_result836) - unwrapped837 = deconstruct_result836 - pretty_ffi(pp, unwrapped837) + deconstruct_result848 = _t1363 + if !isnothing(deconstruct_result848) + unwrapped849 = deconstruct_result848 + pretty_ffi(pp, unwrapped849) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("atom")) - _t1340 = _get_oneof_field(_dollar_dollar, :atom) + _t1364 = _get_oneof_field(_dollar_dollar, :atom) else - _t1340 = nothing + _t1364 = nothing end - deconstruct_result834 = _t1340 - if !isnothing(deconstruct_result834) - unwrapped835 = deconstruct_result834 - pretty_atom(pp, unwrapped835) + deconstruct_result846 = _t1364 + if !isnothing(deconstruct_result846) + unwrapped847 = deconstruct_result846 + pretty_atom(pp, unwrapped847) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("pragma")) - _t1341 = _get_oneof_field(_dollar_dollar, :pragma) + _t1365 = _get_oneof_field(_dollar_dollar, :pragma) else - _t1341 = nothing + _t1365 = nothing end - deconstruct_result832 = _t1341 - if !isnothing(deconstruct_result832) - unwrapped833 = deconstruct_result832 - pretty_pragma(pp, unwrapped833) + deconstruct_result844 = _t1365 + if !isnothing(deconstruct_result844) + unwrapped845 = deconstruct_result844 + pretty_pragma(pp, unwrapped845) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("primitive")) - _t1342 = _get_oneof_field(_dollar_dollar, :primitive) + _t1366 = _get_oneof_field(_dollar_dollar, :primitive) else - _t1342 = nothing + _t1366 = nothing end - deconstruct_result830 = _t1342 - if !isnothing(deconstruct_result830) - unwrapped831 = deconstruct_result830 - pretty_primitive(pp, unwrapped831) + deconstruct_result842 = _t1366 + if !isnothing(deconstruct_result842) + unwrapped843 = deconstruct_result842 + pretty_primitive(pp, unwrapped843) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("rel_atom")) - _t1343 = _get_oneof_field(_dollar_dollar, :rel_atom) + _t1367 = _get_oneof_field(_dollar_dollar, :rel_atom) else - _t1343 = nothing + _t1367 = nothing end - deconstruct_result828 = _t1343 - if !isnothing(deconstruct_result828) - unwrapped829 = deconstruct_result828 - pretty_rel_atom(pp, unwrapped829) + deconstruct_result840 = _t1367 + if !isnothing(deconstruct_result840) + unwrapped841 = deconstruct_result840 + pretty_rel_atom(pp, unwrapped841) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("cast")) - _t1344 = _get_oneof_field(_dollar_dollar, :cast) + _t1368 = _get_oneof_field(_dollar_dollar, :cast) else - _t1344 = nothing + _t1368 = nothing end - deconstruct_result826 = _t1344 - if !isnothing(deconstruct_result826) - unwrapped827 = deconstruct_result826 - pretty_cast(pp, unwrapped827) + deconstruct_result838 = _t1368 + if !isnothing(deconstruct_result838) + unwrapped839 = deconstruct_result838 + pretty_cast(pp, unwrapped839) else throw(ParseError("No matching rule for formula")) end @@ -1688,35 +1692,35 @@ function pretty_formula(pp::PrettyPrinter, msg::Proto.Formula) end function pretty_true(pp::PrettyPrinter, msg::Proto.Conjunction) - fields853 = msg + fields865 = msg write(pp, "(true)") return nothing end function pretty_false(pp::PrettyPrinter, msg::Proto.Disjunction) - fields854 = msg + fields866 = msg write(pp, "(false)") return nothing end function pretty_exists(pp::PrettyPrinter, msg::Proto.Exists) - flat859 = try_flat(pp, msg, pretty_exists) - if !isnothing(flat859) - write(pp, flat859) + flat871 = try_flat(pp, msg, pretty_exists) + if !isnothing(flat871) + write(pp, flat871) return nothing else _dollar_dollar = msg - _t1345 = deconstruct_bindings(pp, _dollar_dollar.body) - fields855 = (_t1345, _dollar_dollar.body.value,) - unwrapped_fields856 = fields855 + _t1369 = deconstruct_bindings(pp, _dollar_dollar.body) + fields867 = (_t1369, _dollar_dollar.body.value,) + unwrapped_fields868 = fields867 write(pp, "(exists") indent_sexp!(pp) newline(pp) - field857 = unwrapped_fields856[1] - pretty_bindings(pp, field857) + field869 = unwrapped_fields868[1] + pretty_bindings(pp, field869) newline(pp) - field858 = unwrapped_fields856[2] - pretty_formula(pp, field858) + field870 = unwrapped_fields868[2] + pretty_formula(pp, field870) dedent!(pp) write(pp, ")") end @@ -1724,25 +1728,25 @@ function pretty_exists(pp::PrettyPrinter, msg::Proto.Exists) end function pretty_reduce(pp::PrettyPrinter, msg::Proto.Reduce) - flat865 = try_flat(pp, msg, pretty_reduce) - if !isnothing(flat865) - write(pp, flat865) + flat877 = try_flat(pp, msg, pretty_reduce) + if !isnothing(flat877) + write(pp, flat877) return nothing else _dollar_dollar = msg - fields860 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) - unwrapped_fields861 = fields860 + fields872 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) + unwrapped_fields873 = fields872 write(pp, "(reduce") indent_sexp!(pp) newline(pp) - field862 = unwrapped_fields861[1] - pretty_abstraction(pp, field862) + field874 = unwrapped_fields873[1] + pretty_abstraction(pp, field874) newline(pp) - field863 = unwrapped_fields861[2] - pretty_abstraction(pp, field863) + field875 = unwrapped_fields873[2] + pretty_abstraction(pp, field875) newline(pp) - field864 = unwrapped_fields861[3] - pretty_terms(pp, field864) + field876 = unwrapped_fields873[3] + pretty_terms(pp, field876) dedent!(pp) write(pp, ")") end @@ -1750,22 +1754,22 @@ function pretty_reduce(pp::PrettyPrinter, msg::Proto.Reduce) end function pretty_terms(pp::PrettyPrinter, msg::Vector{Proto.Term}) - flat869 = try_flat(pp, msg, pretty_terms) - if !isnothing(flat869) - write(pp, flat869) + flat881 = try_flat(pp, msg, pretty_terms) + if !isnothing(flat881) + write(pp, flat881) return nothing else - fields866 = msg + fields878 = msg write(pp, "(terms") indent_sexp!(pp) - if !isempty(fields866) + if !isempty(fields878) newline(pp) - for (i1346, elem867) in enumerate(fields866) - i868 = i1346 - 1 - if (i868 > 0) + for (i1370, elem879) in enumerate(fields878) + i880 = i1370 - 1 + if (i880 > 0) newline(pp) end - pretty_term(pp, elem867) + pretty_term(pp, elem879) end end dedent!(pp) @@ -1775,32 +1779,32 @@ function pretty_terms(pp::PrettyPrinter, msg::Vector{Proto.Term}) end function pretty_term(pp::PrettyPrinter, msg::Proto.Term) - flat874 = try_flat(pp, msg, pretty_term) - if !isnothing(flat874) - write(pp, flat874) + flat886 = try_flat(pp, msg, pretty_term) + if !isnothing(flat886) + write(pp, flat886) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("var")) - _t1347 = _get_oneof_field(_dollar_dollar, :var) + _t1371 = _get_oneof_field(_dollar_dollar, :var) else - _t1347 = nothing + _t1371 = nothing end - deconstruct_result872 = _t1347 - if !isnothing(deconstruct_result872) - unwrapped873 = deconstruct_result872 - pretty_var(pp, unwrapped873) + deconstruct_result884 = _t1371 + if !isnothing(deconstruct_result884) + unwrapped885 = deconstruct_result884 + pretty_var(pp, unwrapped885) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("constant")) - _t1348 = _get_oneof_field(_dollar_dollar, :constant) + _t1372 = _get_oneof_field(_dollar_dollar, :constant) else - _t1348 = nothing + _t1372 = nothing end - deconstruct_result870 = _t1348 - if !isnothing(deconstruct_result870) - unwrapped871 = deconstruct_result870 - pretty_constant(pp, unwrapped871) + deconstruct_result882 = _t1372 + if !isnothing(deconstruct_result882) + unwrapped883 = deconstruct_result882 + pretty_constant(pp, unwrapped883) else throw(ParseError("No matching rule for term")) end @@ -1810,50 +1814,50 @@ function pretty_term(pp::PrettyPrinter, msg::Proto.Term) end function pretty_var(pp::PrettyPrinter, msg::Proto.Var) - flat877 = try_flat(pp, msg, pretty_var) - if !isnothing(flat877) - write(pp, flat877) + flat889 = try_flat(pp, msg, pretty_var) + if !isnothing(flat889) + write(pp, flat889) return nothing else _dollar_dollar = msg - fields875 = _dollar_dollar.name - unwrapped_fields876 = fields875 - write(pp, unwrapped_fields876) + fields887 = _dollar_dollar.name + unwrapped_fields888 = fields887 + write(pp, unwrapped_fields888) end return nothing end function pretty_constant(pp::PrettyPrinter, msg::Proto.Value) - flat879 = try_flat(pp, msg, pretty_constant) - if !isnothing(flat879) - write(pp, flat879) + flat891 = try_flat(pp, msg, pretty_constant) + if !isnothing(flat891) + write(pp, flat891) return nothing else - fields878 = msg - pretty_value(pp, fields878) + fields890 = msg + pretty_value(pp, fields890) end return nothing end function pretty_conjunction(pp::PrettyPrinter, msg::Proto.Conjunction) - flat884 = try_flat(pp, msg, pretty_conjunction) - if !isnothing(flat884) - write(pp, flat884) + flat896 = try_flat(pp, msg, pretty_conjunction) + if !isnothing(flat896) + write(pp, flat896) return nothing else _dollar_dollar = msg - fields880 = _dollar_dollar.args - unwrapped_fields881 = fields880 + fields892 = _dollar_dollar.args + unwrapped_fields893 = fields892 write(pp, "(and") indent_sexp!(pp) - if !isempty(unwrapped_fields881) + if !isempty(unwrapped_fields893) newline(pp) - for (i1349, elem882) in enumerate(unwrapped_fields881) - i883 = i1349 - 1 - if (i883 > 0) + for (i1373, elem894) in enumerate(unwrapped_fields893) + i895 = i1373 - 1 + if (i895 > 0) newline(pp) end - pretty_formula(pp, elem882) + pretty_formula(pp, elem894) end end dedent!(pp) @@ -1863,24 +1867,24 @@ function pretty_conjunction(pp::PrettyPrinter, msg::Proto.Conjunction) end function pretty_disjunction(pp::PrettyPrinter, msg::Proto.Disjunction) - flat889 = try_flat(pp, msg, pretty_disjunction) - if !isnothing(flat889) - write(pp, flat889) + flat901 = try_flat(pp, msg, pretty_disjunction) + if !isnothing(flat901) + write(pp, flat901) return nothing else _dollar_dollar = msg - fields885 = _dollar_dollar.args - unwrapped_fields886 = fields885 + fields897 = _dollar_dollar.args + unwrapped_fields898 = fields897 write(pp, "(or") indent_sexp!(pp) - if !isempty(unwrapped_fields886) + if !isempty(unwrapped_fields898) newline(pp) - for (i1350, elem887) in enumerate(unwrapped_fields886) - i888 = i1350 - 1 - if (i888 > 0) + for (i1374, elem899) in enumerate(unwrapped_fields898) + i900 = i1374 - 1 + if (i900 > 0) newline(pp) end - pretty_formula(pp, elem887) + pretty_formula(pp, elem899) end end dedent!(pp) @@ -1890,18 +1894,18 @@ function pretty_disjunction(pp::PrettyPrinter, msg::Proto.Disjunction) end function pretty_not(pp::PrettyPrinter, msg::Proto.Not) - flat892 = try_flat(pp, msg, pretty_not) - if !isnothing(flat892) - write(pp, flat892) + flat904 = try_flat(pp, msg, pretty_not) + if !isnothing(flat904) + write(pp, flat904) return nothing else _dollar_dollar = msg - fields890 = _dollar_dollar.arg - unwrapped_fields891 = fields890 + fields902 = _dollar_dollar.arg + unwrapped_fields903 = fields902 write(pp, "(not") indent_sexp!(pp) newline(pp) - pretty_formula(pp, unwrapped_fields891) + pretty_formula(pp, unwrapped_fields903) dedent!(pp) write(pp, ")") end @@ -1909,25 +1913,25 @@ function pretty_not(pp::PrettyPrinter, msg::Proto.Not) end function pretty_ffi(pp::PrettyPrinter, msg::Proto.FFI) - flat898 = try_flat(pp, msg, pretty_ffi) - if !isnothing(flat898) - write(pp, flat898) + flat910 = try_flat(pp, msg, pretty_ffi) + if !isnothing(flat910) + write(pp, flat910) return nothing else _dollar_dollar = msg - fields893 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) - unwrapped_fields894 = fields893 + fields905 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) + unwrapped_fields906 = fields905 write(pp, "(ffi") indent_sexp!(pp) newline(pp) - field895 = unwrapped_fields894[1] - pretty_name(pp, field895) + field907 = unwrapped_fields906[1] + pretty_name(pp, field907) newline(pp) - field896 = unwrapped_fields894[2] - pretty_ffi_args(pp, field896) + field908 = unwrapped_fields906[2] + pretty_ffi_args(pp, field908) newline(pp) - field897 = unwrapped_fields894[3] - pretty_terms(pp, field897) + field909 = unwrapped_fields906[3] + pretty_terms(pp, field909) dedent!(pp) write(pp, ")") end @@ -1935,35 +1939,35 @@ function pretty_ffi(pp::PrettyPrinter, msg::Proto.FFI) end function pretty_name(pp::PrettyPrinter, msg::String) - flat900 = try_flat(pp, msg, pretty_name) - if !isnothing(flat900) - write(pp, flat900) + flat912 = try_flat(pp, msg, pretty_name) + if !isnothing(flat912) + write(pp, flat912) return nothing else - fields899 = msg + fields911 = msg write(pp, ":") - write(pp, fields899) + write(pp, fields911) end return nothing end function pretty_ffi_args(pp::PrettyPrinter, msg::Vector{Proto.Abstraction}) - flat904 = try_flat(pp, msg, pretty_ffi_args) - if !isnothing(flat904) - write(pp, flat904) + flat916 = try_flat(pp, msg, pretty_ffi_args) + if !isnothing(flat916) + write(pp, flat916) return nothing else - fields901 = msg + fields913 = msg write(pp, "(args") indent_sexp!(pp) - if !isempty(fields901) + if !isempty(fields913) newline(pp) - for (i1351, elem902) in enumerate(fields901) - i903 = i1351 - 1 - if (i903 > 0) + for (i1375, elem914) in enumerate(fields913) + i915 = i1375 - 1 + if (i915 > 0) newline(pp) end - pretty_abstraction(pp, elem902) + pretty_abstraction(pp, elem914) end end dedent!(pp) @@ -1973,28 +1977,28 @@ function pretty_ffi_args(pp::PrettyPrinter, msg::Vector{Proto.Abstraction}) end function pretty_atom(pp::PrettyPrinter, msg::Proto.Atom) - flat911 = try_flat(pp, msg, pretty_atom) - if !isnothing(flat911) - write(pp, flat911) + flat923 = try_flat(pp, msg, pretty_atom) + if !isnothing(flat923) + write(pp, flat923) return nothing else _dollar_dollar = msg - fields905 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields906 = fields905 + fields917 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields918 = fields917 write(pp, "(atom") indent_sexp!(pp) newline(pp) - field907 = unwrapped_fields906[1] - pretty_relation_id(pp, field907) - field908 = unwrapped_fields906[2] - if !isempty(field908) + field919 = unwrapped_fields918[1] + pretty_relation_id(pp, field919) + field920 = unwrapped_fields918[2] + if !isempty(field920) newline(pp) - for (i1352, elem909) in enumerate(field908) - i910 = i1352 - 1 - if (i910 > 0) + for (i1376, elem921) in enumerate(field920) + i922 = i1376 - 1 + if (i922 > 0) newline(pp) end - pretty_term(pp, elem909) + pretty_term(pp, elem921) end end dedent!(pp) @@ -2004,28 +2008,28 @@ function pretty_atom(pp::PrettyPrinter, msg::Proto.Atom) end function pretty_pragma(pp::PrettyPrinter, msg::Proto.Pragma) - flat918 = try_flat(pp, msg, pretty_pragma) - if !isnothing(flat918) - write(pp, flat918) + flat930 = try_flat(pp, msg, pretty_pragma) + if !isnothing(flat930) + write(pp, flat930) return nothing else _dollar_dollar = msg - fields912 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields913 = fields912 + fields924 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields925 = fields924 write(pp, "(pragma") indent_sexp!(pp) newline(pp) - field914 = unwrapped_fields913[1] - pretty_name(pp, field914) - field915 = unwrapped_fields913[2] - if !isempty(field915) + field926 = unwrapped_fields925[1] + pretty_name(pp, field926) + field927 = unwrapped_fields925[2] + if !isempty(field927) newline(pp) - for (i1353, elem916) in enumerate(field915) - i917 = i1353 - 1 - if (i917 > 0) + for (i1377, elem928) in enumerate(field927) + i929 = i1377 - 1 + if (i929 > 0) newline(pp) end - pretty_term(pp, elem916) + pretty_term(pp, elem928) end end dedent!(pp) @@ -2035,118 +2039,118 @@ function pretty_pragma(pp::PrettyPrinter, msg::Proto.Pragma) end function pretty_primitive(pp::PrettyPrinter, msg::Proto.Primitive) - flat934 = try_flat(pp, msg, pretty_primitive) - if !isnothing(flat934) - write(pp, flat934) + flat946 = try_flat(pp, msg, pretty_primitive) + if !isnothing(flat946) + write(pp, flat946) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq" - _t1354 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1378 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1354 = nothing + _t1378 = nothing end - guard_result933 = _t1354 - if !isnothing(guard_result933) + guard_result945 = _t1378 + if !isnothing(guard_result945) pretty_eq(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype" - _t1355 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1379 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1355 = nothing + _t1379 = nothing end - guard_result932 = _t1355 - if !isnothing(guard_result932) + guard_result944 = _t1379 + if !isnothing(guard_result944) pretty_lt(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype" - _t1356 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1380 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1356 = nothing + _t1380 = nothing end - guard_result931 = _t1356 - if !isnothing(guard_result931) + guard_result943 = _t1380 + if !isnothing(guard_result943) pretty_lt_eq(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype" - _t1357 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1381 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1357 = nothing + _t1381 = nothing end - guard_result930 = _t1357 - if !isnothing(guard_result930) + guard_result942 = _t1381 + if !isnothing(guard_result942) pretty_gt(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype" - _t1358 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1382 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1358 = nothing + _t1382 = nothing end - guard_result929 = _t1358 - if !isnothing(guard_result929) + guard_result941 = _t1382 + if !isnothing(guard_result941) pretty_gt_eq(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype" - _t1359 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1383 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1359 = nothing + _t1383 = nothing end - guard_result928 = _t1359 - if !isnothing(guard_result928) + guard_result940 = _t1383 + if !isnothing(guard_result940) pretty_add(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype" - _t1360 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1384 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1360 = nothing + _t1384 = nothing end - guard_result927 = _t1360 - if !isnothing(guard_result927) + guard_result939 = _t1384 + if !isnothing(guard_result939) pretty_minus(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype" - _t1361 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1385 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1361 = nothing + _t1385 = nothing end - guard_result926 = _t1361 - if !isnothing(guard_result926) + guard_result938 = _t1385 + if !isnothing(guard_result938) pretty_multiply(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype" - _t1362 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1386 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1362 = nothing + _t1386 = nothing end - guard_result925 = _t1362 - if !isnothing(guard_result925) + guard_result937 = _t1386 + if !isnothing(guard_result937) pretty_divide(pp, msg) else _dollar_dollar = msg - fields919 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields920 = fields919 + fields931 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields932 = fields931 write(pp, "(primitive") indent_sexp!(pp) newline(pp) - field921 = unwrapped_fields920[1] - pretty_name(pp, field921) - field922 = unwrapped_fields920[2] - if !isempty(field922) + field933 = unwrapped_fields932[1] + pretty_name(pp, field933) + field934 = unwrapped_fields932[2] + if !isempty(field934) newline(pp) - for (i1363, elem923) in enumerate(field922) - i924 = i1363 - 1 - if (i924 > 0) + for (i1387, elem935) in enumerate(field934) + i936 = i1387 - 1 + if (i936 > 0) newline(pp) end - pretty_rel_term(pp, elem923) + pretty_rel_term(pp, elem935) end end dedent!(pp) @@ -2165,27 +2169,27 @@ function pretty_primitive(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat939 = try_flat(pp, msg, pretty_eq) - if !isnothing(flat939) - write(pp, flat939) + flat951 = try_flat(pp, msg, pretty_eq) + if !isnothing(flat951) + write(pp, flat951) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq" - _t1364 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1388 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1364 = nothing + _t1388 = nothing end - fields935 = _t1364 - unwrapped_fields936 = fields935 + fields947 = _t1388 + unwrapped_fields948 = fields947 write(pp, "(=") indent_sexp!(pp) newline(pp) - field937 = unwrapped_fields936[1] - pretty_term(pp, field937) + field949 = unwrapped_fields948[1] + pretty_term(pp, field949) newline(pp) - field938 = unwrapped_fields936[2] - pretty_term(pp, field938) + field950 = unwrapped_fields948[2] + pretty_term(pp, field950) dedent!(pp) write(pp, ")") end @@ -2193,27 +2197,27 @@ function pretty_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_lt(pp::PrettyPrinter, msg::Proto.Primitive) - flat944 = try_flat(pp, msg, pretty_lt) - if !isnothing(flat944) - write(pp, flat944) + flat956 = try_flat(pp, msg, pretty_lt) + if !isnothing(flat956) + write(pp, flat956) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype" - _t1365 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1389 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1365 = nothing + _t1389 = nothing end - fields940 = _t1365 - unwrapped_fields941 = fields940 + fields952 = _t1389 + unwrapped_fields953 = fields952 write(pp, "(<") indent_sexp!(pp) newline(pp) - field942 = unwrapped_fields941[1] - pretty_term(pp, field942) + field954 = unwrapped_fields953[1] + pretty_term(pp, field954) newline(pp) - field943 = unwrapped_fields941[2] - pretty_term(pp, field943) + field955 = unwrapped_fields953[2] + pretty_term(pp, field955) dedent!(pp) write(pp, ")") end @@ -2221,27 +2225,27 @@ function pretty_lt(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_lt_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat949 = try_flat(pp, msg, pretty_lt_eq) - if !isnothing(flat949) - write(pp, flat949) + flat961 = try_flat(pp, msg, pretty_lt_eq) + if !isnothing(flat961) + write(pp, flat961) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype" - _t1366 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1390 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1366 = nothing + _t1390 = nothing end - fields945 = _t1366 - unwrapped_fields946 = fields945 + fields957 = _t1390 + unwrapped_fields958 = fields957 write(pp, "(<=") indent_sexp!(pp) newline(pp) - field947 = unwrapped_fields946[1] - pretty_term(pp, field947) + field959 = unwrapped_fields958[1] + pretty_term(pp, field959) newline(pp) - field948 = unwrapped_fields946[2] - pretty_term(pp, field948) + field960 = unwrapped_fields958[2] + pretty_term(pp, field960) dedent!(pp) write(pp, ")") end @@ -2249,27 +2253,27 @@ function pretty_lt_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_gt(pp::PrettyPrinter, msg::Proto.Primitive) - flat954 = try_flat(pp, msg, pretty_gt) - if !isnothing(flat954) - write(pp, flat954) + flat966 = try_flat(pp, msg, pretty_gt) + if !isnothing(flat966) + write(pp, flat966) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype" - _t1367 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1391 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1367 = nothing + _t1391 = nothing end - fields950 = _t1367 - unwrapped_fields951 = fields950 + fields962 = _t1391 + unwrapped_fields963 = fields962 write(pp, "(>") indent_sexp!(pp) newline(pp) - field952 = unwrapped_fields951[1] - pretty_term(pp, field952) + field964 = unwrapped_fields963[1] + pretty_term(pp, field964) newline(pp) - field953 = unwrapped_fields951[2] - pretty_term(pp, field953) + field965 = unwrapped_fields963[2] + pretty_term(pp, field965) dedent!(pp) write(pp, ")") end @@ -2277,27 +2281,27 @@ function pretty_gt(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_gt_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat959 = try_flat(pp, msg, pretty_gt_eq) - if !isnothing(flat959) - write(pp, flat959) + flat971 = try_flat(pp, msg, pretty_gt_eq) + if !isnothing(flat971) + write(pp, flat971) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype" - _t1368 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1392 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1368 = nothing + _t1392 = nothing end - fields955 = _t1368 - unwrapped_fields956 = fields955 + fields967 = _t1392 + unwrapped_fields968 = fields967 write(pp, "(>=") indent_sexp!(pp) newline(pp) - field957 = unwrapped_fields956[1] - pretty_term(pp, field957) + field969 = unwrapped_fields968[1] + pretty_term(pp, field969) newline(pp) - field958 = unwrapped_fields956[2] - pretty_term(pp, field958) + field970 = unwrapped_fields968[2] + pretty_term(pp, field970) dedent!(pp) write(pp, ")") end @@ -2305,30 +2309,30 @@ function pretty_gt_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_add(pp::PrettyPrinter, msg::Proto.Primitive) - flat965 = try_flat(pp, msg, pretty_add) - if !isnothing(flat965) - write(pp, flat965) + flat977 = try_flat(pp, msg, pretty_add) + if !isnothing(flat977) + write(pp, flat977) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype" - _t1369 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1393 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1369 = nothing + _t1393 = nothing end - fields960 = _t1369 - unwrapped_fields961 = fields960 + fields972 = _t1393 + unwrapped_fields973 = fields972 write(pp, "(+") indent_sexp!(pp) newline(pp) - field962 = unwrapped_fields961[1] - pretty_term(pp, field962) + field974 = unwrapped_fields973[1] + pretty_term(pp, field974) newline(pp) - field963 = unwrapped_fields961[2] - pretty_term(pp, field963) + field975 = unwrapped_fields973[2] + pretty_term(pp, field975) newline(pp) - field964 = unwrapped_fields961[3] - pretty_term(pp, field964) + field976 = unwrapped_fields973[3] + pretty_term(pp, field976) dedent!(pp) write(pp, ")") end @@ -2336,30 +2340,30 @@ function pretty_add(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_minus(pp::PrettyPrinter, msg::Proto.Primitive) - flat971 = try_flat(pp, msg, pretty_minus) - if !isnothing(flat971) - write(pp, flat971) + flat983 = try_flat(pp, msg, pretty_minus) + if !isnothing(flat983) + write(pp, flat983) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype" - _t1370 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1394 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1370 = nothing + _t1394 = nothing end - fields966 = _t1370 - unwrapped_fields967 = fields966 + fields978 = _t1394 + unwrapped_fields979 = fields978 write(pp, "(-") indent_sexp!(pp) newline(pp) - field968 = unwrapped_fields967[1] - pretty_term(pp, field968) + field980 = unwrapped_fields979[1] + pretty_term(pp, field980) newline(pp) - field969 = unwrapped_fields967[2] - pretty_term(pp, field969) + field981 = unwrapped_fields979[2] + pretty_term(pp, field981) newline(pp) - field970 = unwrapped_fields967[3] - pretty_term(pp, field970) + field982 = unwrapped_fields979[3] + pretty_term(pp, field982) dedent!(pp) write(pp, ")") end @@ -2367,30 +2371,30 @@ function pretty_minus(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_multiply(pp::PrettyPrinter, msg::Proto.Primitive) - flat977 = try_flat(pp, msg, pretty_multiply) - if !isnothing(flat977) - write(pp, flat977) + flat989 = try_flat(pp, msg, pretty_multiply) + if !isnothing(flat989) + write(pp, flat989) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype" - _t1371 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1395 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1371 = nothing + _t1395 = nothing end - fields972 = _t1371 - unwrapped_fields973 = fields972 + fields984 = _t1395 + unwrapped_fields985 = fields984 write(pp, "(*") indent_sexp!(pp) newline(pp) - field974 = unwrapped_fields973[1] - pretty_term(pp, field974) + field986 = unwrapped_fields985[1] + pretty_term(pp, field986) newline(pp) - field975 = unwrapped_fields973[2] - pretty_term(pp, field975) + field987 = unwrapped_fields985[2] + pretty_term(pp, field987) newline(pp) - field976 = unwrapped_fields973[3] - pretty_term(pp, field976) + field988 = unwrapped_fields985[3] + pretty_term(pp, field988) dedent!(pp) write(pp, ")") end @@ -2398,30 +2402,30 @@ function pretty_multiply(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_divide(pp::PrettyPrinter, msg::Proto.Primitive) - flat983 = try_flat(pp, msg, pretty_divide) - if !isnothing(flat983) - write(pp, flat983) + flat995 = try_flat(pp, msg, pretty_divide) + if !isnothing(flat995) + write(pp, flat995) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype" - _t1372 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1396 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) else - _t1372 = nothing + _t1396 = nothing end - fields978 = _t1372 - unwrapped_fields979 = fields978 + fields990 = _t1396 + unwrapped_fields991 = fields990 write(pp, "(/") indent_sexp!(pp) newline(pp) - field980 = unwrapped_fields979[1] - pretty_term(pp, field980) + field992 = unwrapped_fields991[1] + pretty_term(pp, field992) newline(pp) - field981 = unwrapped_fields979[2] - pretty_term(pp, field981) + field993 = unwrapped_fields991[2] + pretty_term(pp, field993) newline(pp) - field982 = unwrapped_fields979[3] - pretty_term(pp, field982) + field994 = unwrapped_fields991[3] + pretty_term(pp, field994) dedent!(pp) write(pp, ")") end @@ -2429,32 +2433,32 @@ function pretty_divide(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_rel_term(pp::PrettyPrinter, msg::Proto.RelTerm) - flat988 = try_flat(pp, msg, pretty_rel_term) - if !isnothing(flat988) - write(pp, flat988) + flat1000 = try_flat(pp, msg, pretty_rel_term) + if !isnothing(flat1000) + write(pp, flat1000) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("specialized_value")) - _t1373 = _get_oneof_field(_dollar_dollar, :specialized_value) + _t1397 = _get_oneof_field(_dollar_dollar, :specialized_value) else - _t1373 = nothing + _t1397 = nothing end - deconstruct_result986 = _t1373 - if !isnothing(deconstruct_result986) - unwrapped987 = deconstruct_result986 - pretty_specialized_value(pp, unwrapped987) + deconstruct_result998 = _t1397 + if !isnothing(deconstruct_result998) + unwrapped999 = deconstruct_result998 + pretty_specialized_value(pp, unwrapped999) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("term")) - _t1374 = _get_oneof_field(_dollar_dollar, :term) + _t1398 = _get_oneof_field(_dollar_dollar, :term) else - _t1374 = nothing + _t1398 = nothing end - deconstruct_result984 = _t1374 - if !isnothing(deconstruct_result984) - unwrapped985 = deconstruct_result984 - pretty_term(pp, unwrapped985) + deconstruct_result996 = _t1398 + if !isnothing(deconstruct_result996) + unwrapped997 = deconstruct_result996 + pretty_term(pp, unwrapped997) else throw(ParseError("No matching rule for rel_term")) end @@ -2464,41 +2468,41 @@ function pretty_rel_term(pp::PrettyPrinter, msg::Proto.RelTerm) end function pretty_specialized_value(pp::PrettyPrinter, msg::Proto.Value) - flat990 = try_flat(pp, msg, pretty_specialized_value) - if !isnothing(flat990) - write(pp, flat990) + flat1002 = try_flat(pp, msg, pretty_specialized_value) + if !isnothing(flat1002) + write(pp, flat1002) return nothing else - fields989 = msg + fields1001 = msg write(pp, "#") - pretty_value(pp, fields989) + pretty_value(pp, fields1001) end return nothing end function pretty_rel_atom(pp::PrettyPrinter, msg::Proto.RelAtom) - flat997 = try_flat(pp, msg, pretty_rel_atom) - if !isnothing(flat997) - write(pp, flat997) + flat1009 = try_flat(pp, msg, pretty_rel_atom) + if !isnothing(flat1009) + write(pp, flat1009) return nothing else _dollar_dollar = msg - fields991 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields992 = fields991 + fields1003 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1004 = fields1003 write(pp, "(relatom") indent_sexp!(pp) newline(pp) - field993 = unwrapped_fields992[1] - pretty_name(pp, field993) - field994 = unwrapped_fields992[2] - if !isempty(field994) + field1005 = unwrapped_fields1004[1] + pretty_name(pp, field1005) + field1006 = unwrapped_fields1004[2] + if !isempty(field1006) newline(pp) - for (i1375, elem995) in enumerate(field994) - i996 = i1375 - 1 - if (i996 > 0) + for (i1399, elem1007) in enumerate(field1006) + i1008 = i1399 - 1 + if (i1008 > 0) newline(pp) end - pretty_rel_term(pp, elem995) + pretty_rel_term(pp, elem1007) end end dedent!(pp) @@ -2508,22 +2512,22 @@ function pretty_rel_atom(pp::PrettyPrinter, msg::Proto.RelAtom) end function pretty_cast(pp::PrettyPrinter, msg::Proto.Cast) - flat1002 = try_flat(pp, msg, pretty_cast) - if !isnothing(flat1002) - write(pp, flat1002) + flat1014 = try_flat(pp, msg, pretty_cast) + if !isnothing(flat1014) + write(pp, flat1014) return nothing else _dollar_dollar = msg - fields998 = (_dollar_dollar.input, _dollar_dollar.result,) - unwrapped_fields999 = fields998 + fields1010 = (_dollar_dollar.input, _dollar_dollar.result,) + unwrapped_fields1011 = fields1010 write(pp, "(cast") indent_sexp!(pp) newline(pp) - field1000 = unwrapped_fields999[1] - pretty_term(pp, field1000) + field1012 = unwrapped_fields1011[1] + pretty_term(pp, field1012) newline(pp) - field1001 = unwrapped_fields999[2] - pretty_term(pp, field1001) + field1013 = unwrapped_fields1011[2] + pretty_term(pp, field1013) dedent!(pp) write(pp, ")") end @@ -2531,22 +2535,22 @@ function pretty_cast(pp::PrettyPrinter, msg::Proto.Cast) end function pretty_attrs(pp::PrettyPrinter, msg::Vector{Proto.Attribute}) - flat1006 = try_flat(pp, msg, pretty_attrs) - if !isnothing(flat1006) - write(pp, flat1006) + flat1018 = try_flat(pp, msg, pretty_attrs) + if !isnothing(flat1018) + write(pp, flat1018) return nothing else - fields1003 = msg + fields1015 = msg write(pp, "(attrs") indent_sexp!(pp) - if !isempty(fields1003) + if !isempty(fields1015) newline(pp) - for (i1376, elem1004) in enumerate(fields1003) - i1005 = i1376 - 1 - if (i1005 > 0) + for (i1400, elem1016) in enumerate(fields1015) + i1017 = i1400 - 1 + if (i1017 > 0) newline(pp) end - pretty_attribute(pp, elem1004) + pretty_attribute(pp, elem1016) end end dedent!(pp) @@ -2556,28 +2560,28 @@ function pretty_attrs(pp::PrettyPrinter, msg::Vector{Proto.Attribute}) end function pretty_attribute(pp::PrettyPrinter, msg::Proto.Attribute) - flat1013 = try_flat(pp, msg, pretty_attribute) - if !isnothing(flat1013) - write(pp, flat1013) + flat1025 = try_flat(pp, msg, pretty_attribute) + if !isnothing(flat1025) + write(pp, flat1025) return nothing else _dollar_dollar = msg - fields1007 = (_dollar_dollar.name, _dollar_dollar.args,) - unwrapped_fields1008 = fields1007 + fields1019 = (_dollar_dollar.name, _dollar_dollar.args,) + unwrapped_fields1020 = fields1019 write(pp, "(attribute") indent_sexp!(pp) newline(pp) - field1009 = unwrapped_fields1008[1] - pretty_name(pp, field1009) - field1010 = unwrapped_fields1008[2] - if !isempty(field1010) + field1021 = unwrapped_fields1020[1] + pretty_name(pp, field1021) + field1022 = unwrapped_fields1020[2] + if !isempty(field1022) newline(pp) - for (i1377, elem1011) in enumerate(field1010) - i1012 = i1377 - 1 - if (i1012 > 0) + for (i1401, elem1023) in enumerate(field1022) + i1024 = i1401 - 1 + if (i1024 > 0) newline(pp) end - pretty_value(pp, elem1011) + pretty_value(pp, elem1023) end end dedent!(pp) @@ -2587,30 +2591,30 @@ function pretty_attribute(pp::PrettyPrinter, msg::Proto.Attribute) end function pretty_algorithm(pp::PrettyPrinter, msg::Proto.Algorithm) - flat1020 = try_flat(pp, msg, pretty_algorithm) - if !isnothing(flat1020) - write(pp, flat1020) + flat1032 = try_flat(pp, msg, pretty_algorithm) + if !isnothing(flat1032) + write(pp, flat1032) return nothing else _dollar_dollar = msg - fields1014 = (_dollar_dollar.var"#global", _dollar_dollar.body,) - unwrapped_fields1015 = fields1014 + fields1026 = (_dollar_dollar.var"#global", _dollar_dollar.body,) + unwrapped_fields1027 = fields1026 write(pp, "(algorithm") indent_sexp!(pp) - field1016 = unwrapped_fields1015[1] - if !isempty(field1016) + field1028 = unwrapped_fields1027[1] + if !isempty(field1028) newline(pp) - for (i1378, elem1017) in enumerate(field1016) - i1018 = i1378 - 1 - if (i1018 > 0) + for (i1402, elem1029) in enumerate(field1028) + i1030 = i1402 - 1 + if (i1030 > 0) newline(pp) end - pretty_relation_id(pp, elem1017) + pretty_relation_id(pp, elem1029) end end newline(pp) - field1019 = unwrapped_fields1015[2] - pretty_script(pp, field1019) + field1031 = unwrapped_fields1027[2] + pretty_script(pp, field1031) dedent!(pp) write(pp, ")") end @@ -2618,24 +2622,24 @@ function pretty_algorithm(pp::PrettyPrinter, msg::Proto.Algorithm) end function pretty_script(pp::PrettyPrinter, msg::Proto.Script) - flat1025 = try_flat(pp, msg, pretty_script) - if !isnothing(flat1025) - write(pp, flat1025) + flat1037 = try_flat(pp, msg, pretty_script) + if !isnothing(flat1037) + write(pp, flat1037) return nothing else _dollar_dollar = msg - fields1021 = _dollar_dollar.constructs - unwrapped_fields1022 = fields1021 + fields1033 = _dollar_dollar.constructs + unwrapped_fields1034 = fields1033 write(pp, "(script") indent_sexp!(pp) - if !isempty(unwrapped_fields1022) + if !isempty(unwrapped_fields1034) newline(pp) - for (i1379, elem1023) in enumerate(unwrapped_fields1022) - i1024 = i1379 - 1 - if (i1024 > 0) + for (i1403, elem1035) in enumerate(unwrapped_fields1034) + i1036 = i1403 - 1 + if (i1036 > 0) newline(pp) end - pretty_construct(pp, elem1023) + pretty_construct(pp, elem1035) end end dedent!(pp) @@ -2645,32 +2649,32 @@ function pretty_script(pp::PrettyPrinter, msg::Proto.Script) end function pretty_construct(pp::PrettyPrinter, msg::Proto.Construct) - flat1030 = try_flat(pp, msg, pretty_construct) - if !isnothing(flat1030) - write(pp, flat1030) + flat1042 = try_flat(pp, msg, pretty_construct) + if !isnothing(flat1042) + write(pp, flat1042) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("loop")) - _t1380 = _get_oneof_field(_dollar_dollar, :loop) + _t1404 = _get_oneof_field(_dollar_dollar, :loop) else - _t1380 = nothing + _t1404 = nothing end - deconstruct_result1028 = _t1380 - if !isnothing(deconstruct_result1028) - unwrapped1029 = deconstruct_result1028 - pretty_loop(pp, unwrapped1029) + deconstruct_result1040 = _t1404 + if !isnothing(deconstruct_result1040) + unwrapped1041 = deconstruct_result1040 + pretty_loop(pp, unwrapped1041) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("instruction")) - _t1381 = _get_oneof_field(_dollar_dollar, :instruction) + _t1405 = _get_oneof_field(_dollar_dollar, :instruction) else - _t1381 = nothing + _t1405 = nothing end - deconstruct_result1026 = _t1381 - if !isnothing(deconstruct_result1026) - unwrapped1027 = deconstruct_result1026 - pretty_instruction(pp, unwrapped1027) + deconstruct_result1038 = _t1405 + if !isnothing(deconstruct_result1038) + unwrapped1039 = deconstruct_result1038 + pretty_instruction(pp, unwrapped1039) else throw(ParseError("No matching rule for construct")) end @@ -2680,22 +2684,22 @@ function pretty_construct(pp::PrettyPrinter, msg::Proto.Construct) end function pretty_loop(pp::PrettyPrinter, msg::Proto.Loop) - flat1035 = try_flat(pp, msg, pretty_loop) - if !isnothing(flat1035) - write(pp, flat1035) + flat1047 = try_flat(pp, msg, pretty_loop) + if !isnothing(flat1047) + write(pp, flat1047) return nothing else _dollar_dollar = msg - fields1031 = (_dollar_dollar.init, _dollar_dollar.body,) - unwrapped_fields1032 = fields1031 + fields1043 = (_dollar_dollar.init, _dollar_dollar.body,) + unwrapped_fields1044 = fields1043 write(pp, "(loop") indent_sexp!(pp) newline(pp) - field1033 = unwrapped_fields1032[1] - pretty_init(pp, field1033) + field1045 = unwrapped_fields1044[1] + pretty_init(pp, field1045) newline(pp) - field1034 = unwrapped_fields1032[2] - pretty_script(pp, field1034) + field1046 = unwrapped_fields1044[2] + pretty_script(pp, field1046) dedent!(pp) write(pp, ")") end @@ -2703,22 +2707,22 @@ function pretty_loop(pp::PrettyPrinter, msg::Proto.Loop) end function pretty_init(pp::PrettyPrinter, msg::Vector{Proto.Instruction}) - flat1039 = try_flat(pp, msg, pretty_init) - if !isnothing(flat1039) - write(pp, flat1039) + flat1051 = try_flat(pp, msg, pretty_init) + if !isnothing(flat1051) + write(pp, flat1051) return nothing else - fields1036 = msg + fields1048 = msg write(pp, "(init") indent_sexp!(pp) - if !isempty(fields1036) + if !isempty(fields1048) newline(pp) - for (i1382, elem1037) in enumerate(fields1036) - i1038 = i1382 - 1 - if (i1038 > 0) + for (i1406, elem1049) in enumerate(fields1048) + i1050 = i1406 - 1 + if (i1050 > 0) newline(pp) end - pretty_instruction(pp, elem1037) + pretty_instruction(pp, elem1049) end end dedent!(pp) @@ -2728,65 +2732,65 @@ function pretty_init(pp::PrettyPrinter, msg::Vector{Proto.Instruction}) end function pretty_instruction(pp::PrettyPrinter, msg::Proto.Instruction) - flat1050 = try_flat(pp, msg, pretty_instruction) - if !isnothing(flat1050) - write(pp, flat1050) + flat1062 = try_flat(pp, msg, pretty_instruction) + if !isnothing(flat1062) + write(pp, flat1062) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("assign")) - _t1383 = _get_oneof_field(_dollar_dollar, :assign) + _t1407 = _get_oneof_field(_dollar_dollar, :assign) else - _t1383 = nothing + _t1407 = nothing end - deconstruct_result1048 = _t1383 - if !isnothing(deconstruct_result1048) - unwrapped1049 = deconstruct_result1048 - pretty_assign(pp, unwrapped1049) + deconstruct_result1060 = _t1407 + if !isnothing(deconstruct_result1060) + unwrapped1061 = deconstruct_result1060 + pretty_assign(pp, unwrapped1061) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("upsert")) - _t1384 = _get_oneof_field(_dollar_dollar, :upsert) + _t1408 = _get_oneof_field(_dollar_dollar, :upsert) else - _t1384 = nothing + _t1408 = nothing end - deconstruct_result1046 = _t1384 - if !isnothing(deconstruct_result1046) - unwrapped1047 = deconstruct_result1046 - pretty_upsert(pp, unwrapped1047) + deconstruct_result1058 = _t1408 + if !isnothing(deconstruct_result1058) + unwrapped1059 = deconstruct_result1058 + pretty_upsert(pp, unwrapped1059) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("#break")) - _t1385 = _get_oneof_field(_dollar_dollar, :var"#break") + _t1409 = _get_oneof_field(_dollar_dollar, :var"#break") else - _t1385 = nothing + _t1409 = nothing end - deconstruct_result1044 = _t1385 - if !isnothing(deconstruct_result1044) - unwrapped1045 = deconstruct_result1044 - pretty_break(pp, unwrapped1045) + deconstruct_result1056 = _t1409 + if !isnothing(deconstruct_result1056) + unwrapped1057 = deconstruct_result1056 + pretty_break(pp, unwrapped1057) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("monoid_def")) - _t1386 = _get_oneof_field(_dollar_dollar, :monoid_def) + _t1410 = _get_oneof_field(_dollar_dollar, :monoid_def) else - _t1386 = nothing + _t1410 = nothing end - deconstruct_result1042 = _t1386 - if !isnothing(deconstruct_result1042) - unwrapped1043 = deconstruct_result1042 - pretty_monoid_def(pp, unwrapped1043) + deconstruct_result1054 = _t1410 + if !isnothing(deconstruct_result1054) + unwrapped1055 = deconstruct_result1054 + pretty_monoid_def(pp, unwrapped1055) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("monus_def")) - _t1387 = _get_oneof_field(_dollar_dollar, :monus_def) + _t1411 = _get_oneof_field(_dollar_dollar, :monus_def) else - _t1387 = nothing + _t1411 = nothing end - deconstruct_result1040 = _t1387 - if !isnothing(deconstruct_result1040) - unwrapped1041 = deconstruct_result1040 - pretty_monus_def(pp, unwrapped1041) + deconstruct_result1052 = _t1411 + if !isnothing(deconstruct_result1052) + unwrapped1053 = deconstruct_result1052 + pretty_monus_def(pp, unwrapped1053) else throw(ParseError("No matching rule for instruction")) end @@ -2799,32 +2803,32 @@ function pretty_instruction(pp::PrettyPrinter, msg::Proto.Instruction) end function pretty_assign(pp::PrettyPrinter, msg::Proto.Assign) - flat1057 = try_flat(pp, msg, pretty_assign) - if !isnothing(flat1057) - write(pp, flat1057) + flat1069 = try_flat(pp, msg, pretty_assign) + if !isnothing(flat1069) + write(pp, flat1069) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1388 = _dollar_dollar.attrs + _t1412 = _dollar_dollar.attrs else - _t1388 = nothing + _t1412 = nothing end - fields1051 = (_dollar_dollar.name, _dollar_dollar.body, _t1388,) - unwrapped_fields1052 = fields1051 + fields1063 = (_dollar_dollar.name, _dollar_dollar.body, _t1412,) + unwrapped_fields1064 = fields1063 write(pp, "(assign") indent_sexp!(pp) newline(pp) - field1053 = unwrapped_fields1052[1] - pretty_relation_id(pp, field1053) + field1065 = unwrapped_fields1064[1] + pretty_relation_id(pp, field1065) newline(pp) - field1054 = unwrapped_fields1052[2] - pretty_abstraction(pp, field1054) - field1055 = unwrapped_fields1052[3] - if !isnothing(field1055) + field1066 = unwrapped_fields1064[2] + pretty_abstraction(pp, field1066) + field1067 = unwrapped_fields1064[3] + if !isnothing(field1067) newline(pp) - opt_val1056 = field1055 - pretty_attrs(pp, opt_val1056) + opt_val1068 = field1067 + pretty_attrs(pp, opt_val1068) end dedent!(pp) write(pp, ")") @@ -2833,32 +2837,32 @@ function pretty_assign(pp::PrettyPrinter, msg::Proto.Assign) end function pretty_upsert(pp::PrettyPrinter, msg::Proto.Upsert) - flat1064 = try_flat(pp, msg, pretty_upsert) - if !isnothing(flat1064) - write(pp, flat1064) + flat1076 = try_flat(pp, msg, pretty_upsert) + if !isnothing(flat1076) + write(pp, flat1076) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1389 = _dollar_dollar.attrs + _t1413 = _dollar_dollar.attrs else - _t1389 = nothing + _t1413 = nothing end - fields1058 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1389,) - unwrapped_fields1059 = fields1058 + fields1070 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1413,) + unwrapped_fields1071 = fields1070 write(pp, "(upsert") indent_sexp!(pp) newline(pp) - field1060 = unwrapped_fields1059[1] - pretty_relation_id(pp, field1060) + field1072 = unwrapped_fields1071[1] + pretty_relation_id(pp, field1072) newline(pp) - field1061 = unwrapped_fields1059[2] - pretty_abstraction_with_arity(pp, field1061) - field1062 = unwrapped_fields1059[3] - if !isnothing(field1062) + field1073 = unwrapped_fields1071[2] + pretty_abstraction_with_arity(pp, field1073) + field1074 = unwrapped_fields1071[3] + if !isnothing(field1074) newline(pp) - opt_val1063 = field1062 - pretty_attrs(pp, opt_val1063) + opt_val1075 = field1074 + pretty_attrs(pp, opt_val1075) end dedent!(pp) write(pp, ")") @@ -2867,22 +2871,22 @@ function pretty_upsert(pp::PrettyPrinter, msg::Proto.Upsert) end function pretty_abstraction_with_arity(pp::PrettyPrinter, msg::Tuple{Proto.Abstraction, Int64}) - flat1069 = try_flat(pp, msg, pretty_abstraction_with_arity) - if !isnothing(flat1069) - write(pp, flat1069) + flat1081 = try_flat(pp, msg, pretty_abstraction_with_arity) + if !isnothing(flat1081) + write(pp, flat1081) return nothing else _dollar_dollar = msg - _t1390 = deconstruct_bindings_with_arity(pp, _dollar_dollar[1], _dollar_dollar[2]) - fields1065 = (_t1390, _dollar_dollar[1].value,) - unwrapped_fields1066 = fields1065 + _t1414 = deconstruct_bindings_with_arity(pp, _dollar_dollar[1], _dollar_dollar[2]) + fields1077 = (_t1414, _dollar_dollar[1].value,) + unwrapped_fields1078 = fields1077 write(pp, "(") indent!(pp) - field1067 = unwrapped_fields1066[1] - pretty_bindings(pp, field1067) + field1079 = unwrapped_fields1078[1] + pretty_bindings(pp, field1079) newline(pp) - field1068 = unwrapped_fields1066[2] - pretty_formula(pp, field1068) + field1080 = unwrapped_fields1078[2] + pretty_formula(pp, field1080) dedent!(pp) write(pp, ")") end @@ -2890,32 +2894,32 @@ function pretty_abstraction_with_arity(pp::PrettyPrinter, msg::Tuple{Proto.Abstr end function pretty_break(pp::PrettyPrinter, msg::Proto.Break) - flat1076 = try_flat(pp, msg, pretty_break) - if !isnothing(flat1076) - write(pp, flat1076) + flat1088 = try_flat(pp, msg, pretty_break) + if !isnothing(flat1088) + write(pp, flat1088) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1391 = _dollar_dollar.attrs + _t1415 = _dollar_dollar.attrs else - _t1391 = nothing + _t1415 = nothing end - fields1070 = (_dollar_dollar.name, _dollar_dollar.body, _t1391,) - unwrapped_fields1071 = fields1070 + fields1082 = (_dollar_dollar.name, _dollar_dollar.body, _t1415,) + unwrapped_fields1083 = fields1082 write(pp, "(break") indent_sexp!(pp) newline(pp) - field1072 = unwrapped_fields1071[1] - pretty_relation_id(pp, field1072) + field1084 = unwrapped_fields1083[1] + pretty_relation_id(pp, field1084) newline(pp) - field1073 = unwrapped_fields1071[2] - pretty_abstraction(pp, field1073) - field1074 = unwrapped_fields1071[3] - if !isnothing(field1074) + field1085 = unwrapped_fields1083[2] + pretty_abstraction(pp, field1085) + field1086 = unwrapped_fields1083[3] + if !isnothing(field1086) newline(pp) - opt_val1075 = field1074 - pretty_attrs(pp, opt_val1075) + opt_val1087 = field1086 + pretty_attrs(pp, opt_val1087) end dedent!(pp) write(pp, ")") @@ -2924,35 +2928,35 @@ function pretty_break(pp::PrettyPrinter, msg::Proto.Break) end function pretty_monoid_def(pp::PrettyPrinter, msg::Proto.MonoidDef) - flat1084 = try_flat(pp, msg, pretty_monoid_def) - if !isnothing(flat1084) - write(pp, flat1084) + flat1096 = try_flat(pp, msg, pretty_monoid_def) + if !isnothing(flat1096) + write(pp, flat1096) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1392 = _dollar_dollar.attrs + _t1416 = _dollar_dollar.attrs else - _t1392 = nothing + _t1416 = nothing end - fields1077 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1392,) - unwrapped_fields1078 = fields1077 + fields1089 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1416,) + unwrapped_fields1090 = fields1089 write(pp, "(monoid") indent_sexp!(pp) newline(pp) - field1079 = unwrapped_fields1078[1] - pretty_monoid(pp, field1079) + field1091 = unwrapped_fields1090[1] + pretty_monoid(pp, field1091) newline(pp) - field1080 = unwrapped_fields1078[2] - pretty_relation_id(pp, field1080) + field1092 = unwrapped_fields1090[2] + pretty_relation_id(pp, field1092) newline(pp) - field1081 = unwrapped_fields1078[3] - pretty_abstraction_with_arity(pp, field1081) - field1082 = unwrapped_fields1078[4] - if !isnothing(field1082) + field1093 = unwrapped_fields1090[3] + pretty_abstraction_with_arity(pp, field1093) + field1094 = unwrapped_fields1090[4] + if !isnothing(field1094) newline(pp) - opt_val1083 = field1082 - pretty_attrs(pp, opt_val1083) + opt_val1095 = field1094 + pretty_attrs(pp, opt_val1095) end dedent!(pp) write(pp, ")") @@ -2961,54 +2965,54 @@ function pretty_monoid_def(pp::PrettyPrinter, msg::Proto.MonoidDef) end function pretty_monoid(pp::PrettyPrinter, msg::Proto.Monoid) - flat1093 = try_flat(pp, msg, pretty_monoid) - if !isnothing(flat1093) - write(pp, flat1093) + flat1105 = try_flat(pp, msg, pretty_monoid) + if !isnothing(flat1105) + write(pp, flat1105) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("or_monoid")) - _t1393 = _get_oneof_field(_dollar_dollar, :or_monoid) + _t1417 = _get_oneof_field(_dollar_dollar, :or_monoid) else - _t1393 = nothing + _t1417 = nothing end - deconstruct_result1091 = _t1393 - if !isnothing(deconstruct_result1091) - unwrapped1092 = deconstruct_result1091 - pretty_or_monoid(pp, unwrapped1092) + deconstruct_result1103 = _t1417 + if !isnothing(deconstruct_result1103) + unwrapped1104 = deconstruct_result1103 + pretty_or_monoid(pp, unwrapped1104) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("min_monoid")) - _t1394 = _get_oneof_field(_dollar_dollar, :min_monoid) + _t1418 = _get_oneof_field(_dollar_dollar, :min_monoid) else - _t1394 = nothing + _t1418 = nothing end - deconstruct_result1089 = _t1394 - if !isnothing(deconstruct_result1089) - unwrapped1090 = deconstruct_result1089 - pretty_min_monoid(pp, unwrapped1090) + deconstruct_result1101 = _t1418 + if !isnothing(deconstruct_result1101) + unwrapped1102 = deconstruct_result1101 + pretty_min_monoid(pp, unwrapped1102) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("max_monoid")) - _t1395 = _get_oneof_field(_dollar_dollar, :max_monoid) + _t1419 = _get_oneof_field(_dollar_dollar, :max_monoid) else - _t1395 = nothing + _t1419 = nothing end - deconstruct_result1087 = _t1395 - if !isnothing(deconstruct_result1087) - unwrapped1088 = deconstruct_result1087 - pretty_max_monoid(pp, unwrapped1088) + deconstruct_result1099 = _t1419 + if !isnothing(deconstruct_result1099) + unwrapped1100 = deconstruct_result1099 + pretty_max_monoid(pp, unwrapped1100) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("sum_monoid")) - _t1396 = _get_oneof_field(_dollar_dollar, :sum_monoid) + _t1420 = _get_oneof_field(_dollar_dollar, :sum_monoid) else - _t1396 = nothing + _t1420 = nothing end - deconstruct_result1085 = _t1396 - if !isnothing(deconstruct_result1085) - unwrapped1086 = deconstruct_result1085 - pretty_sum_monoid(pp, unwrapped1086) + deconstruct_result1097 = _t1420 + if !isnothing(deconstruct_result1097) + unwrapped1098 = deconstruct_result1097 + pretty_sum_monoid(pp, unwrapped1098) else throw(ParseError("No matching rule for monoid")) end @@ -3020,24 +3024,24 @@ function pretty_monoid(pp::PrettyPrinter, msg::Proto.Monoid) end function pretty_or_monoid(pp::PrettyPrinter, msg::Proto.OrMonoid) - fields1094 = msg + fields1106 = msg write(pp, "(or)") return nothing end function pretty_min_monoid(pp::PrettyPrinter, msg::Proto.MinMonoid) - flat1097 = try_flat(pp, msg, pretty_min_monoid) - if !isnothing(flat1097) - write(pp, flat1097) + flat1109 = try_flat(pp, msg, pretty_min_monoid) + if !isnothing(flat1109) + write(pp, flat1109) return nothing else _dollar_dollar = msg - fields1095 = _dollar_dollar.var"#type" - unwrapped_fields1096 = fields1095 + fields1107 = _dollar_dollar.var"#type" + unwrapped_fields1108 = fields1107 write(pp, "(min") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1096) + pretty_type(pp, unwrapped_fields1108) dedent!(pp) write(pp, ")") end @@ -3045,18 +3049,18 @@ function pretty_min_monoid(pp::PrettyPrinter, msg::Proto.MinMonoid) end function pretty_max_monoid(pp::PrettyPrinter, msg::Proto.MaxMonoid) - flat1100 = try_flat(pp, msg, pretty_max_monoid) - if !isnothing(flat1100) - write(pp, flat1100) + flat1112 = try_flat(pp, msg, pretty_max_monoid) + if !isnothing(flat1112) + write(pp, flat1112) return nothing else _dollar_dollar = msg - fields1098 = _dollar_dollar.var"#type" - unwrapped_fields1099 = fields1098 + fields1110 = _dollar_dollar.var"#type" + unwrapped_fields1111 = fields1110 write(pp, "(max") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1099) + pretty_type(pp, unwrapped_fields1111) dedent!(pp) write(pp, ")") end @@ -3064,18 +3068,18 @@ function pretty_max_monoid(pp::PrettyPrinter, msg::Proto.MaxMonoid) end function pretty_sum_monoid(pp::PrettyPrinter, msg::Proto.SumMonoid) - flat1103 = try_flat(pp, msg, pretty_sum_monoid) - if !isnothing(flat1103) - write(pp, flat1103) + flat1115 = try_flat(pp, msg, pretty_sum_monoid) + if !isnothing(flat1115) + write(pp, flat1115) return nothing else _dollar_dollar = msg - fields1101 = _dollar_dollar.var"#type" - unwrapped_fields1102 = fields1101 + fields1113 = _dollar_dollar.var"#type" + unwrapped_fields1114 = fields1113 write(pp, "(sum") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1102) + pretty_type(pp, unwrapped_fields1114) dedent!(pp) write(pp, ")") end @@ -3083,35 +3087,35 @@ function pretty_sum_monoid(pp::PrettyPrinter, msg::Proto.SumMonoid) end function pretty_monus_def(pp::PrettyPrinter, msg::Proto.MonusDef) - flat1111 = try_flat(pp, msg, pretty_monus_def) - if !isnothing(flat1111) - write(pp, flat1111) + flat1123 = try_flat(pp, msg, pretty_monus_def) + if !isnothing(flat1123) + write(pp, flat1123) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1397 = _dollar_dollar.attrs + _t1421 = _dollar_dollar.attrs else - _t1397 = nothing + _t1421 = nothing end - fields1104 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1397,) - unwrapped_fields1105 = fields1104 + fields1116 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1421,) + unwrapped_fields1117 = fields1116 write(pp, "(monus") indent_sexp!(pp) newline(pp) - field1106 = unwrapped_fields1105[1] - pretty_monoid(pp, field1106) + field1118 = unwrapped_fields1117[1] + pretty_monoid(pp, field1118) newline(pp) - field1107 = unwrapped_fields1105[2] - pretty_relation_id(pp, field1107) + field1119 = unwrapped_fields1117[2] + pretty_relation_id(pp, field1119) newline(pp) - field1108 = unwrapped_fields1105[3] - pretty_abstraction_with_arity(pp, field1108) - field1109 = unwrapped_fields1105[4] - if !isnothing(field1109) + field1120 = unwrapped_fields1117[3] + pretty_abstraction_with_arity(pp, field1120) + field1121 = unwrapped_fields1117[4] + if !isnothing(field1121) newline(pp) - opt_val1110 = field1109 - pretty_attrs(pp, opt_val1110) + opt_val1122 = field1121 + pretty_attrs(pp, opt_val1122) end dedent!(pp) write(pp, ")") @@ -3120,28 +3124,28 @@ function pretty_monus_def(pp::PrettyPrinter, msg::Proto.MonusDef) end function pretty_constraint(pp::PrettyPrinter, msg::Proto.Constraint) - flat1118 = try_flat(pp, msg, pretty_constraint) - if !isnothing(flat1118) - write(pp, flat1118) + flat1130 = try_flat(pp, msg, pretty_constraint) + if !isnothing(flat1130) + write(pp, flat1130) return nothing else _dollar_dollar = msg - fields1112 = (_dollar_dollar.name, _get_oneof_field(_dollar_dollar, :functional_dependency).guard, _get_oneof_field(_dollar_dollar, :functional_dependency).keys, _get_oneof_field(_dollar_dollar, :functional_dependency).values,) - unwrapped_fields1113 = fields1112 + fields1124 = (_dollar_dollar.name, _get_oneof_field(_dollar_dollar, :functional_dependency).guard, _get_oneof_field(_dollar_dollar, :functional_dependency).keys, _get_oneof_field(_dollar_dollar, :functional_dependency).values,) + unwrapped_fields1125 = fields1124 write(pp, "(functional_dependency") indent_sexp!(pp) newline(pp) - field1114 = unwrapped_fields1113[1] - pretty_relation_id(pp, field1114) + field1126 = unwrapped_fields1125[1] + pretty_relation_id(pp, field1126) newline(pp) - field1115 = unwrapped_fields1113[2] - pretty_abstraction(pp, field1115) + field1127 = unwrapped_fields1125[2] + pretty_abstraction(pp, field1127) newline(pp) - field1116 = unwrapped_fields1113[3] - pretty_functional_dependency_keys(pp, field1116) + field1128 = unwrapped_fields1125[3] + pretty_functional_dependency_keys(pp, field1128) newline(pp) - field1117 = unwrapped_fields1113[4] - pretty_functional_dependency_values(pp, field1117) + field1129 = unwrapped_fields1125[4] + pretty_functional_dependency_values(pp, field1129) dedent!(pp) write(pp, ")") end @@ -3149,22 +3153,22 @@ function pretty_constraint(pp::PrettyPrinter, msg::Proto.Constraint) end function pretty_functional_dependency_keys(pp::PrettyPrinter, msg::Vector{Proto.Var}) - flat1122 = try_flat(pp, msg, pretty_functional_dependency_keys) - if !isnothing(flat1122) - write(pp, flat1122) + flat1134 = try_flat(pp, msg, pretty_functional_dependency_keys) + if !isnothing(flat1134) + write(pp, flat1134) return nothing else - fields1119 = msg + fields1131 = msg write(pp, "(keys") indent_sexp!(pp) - if !isempty(fields1119) + if !isempty(fields1131) newline(pp) - for (i1398, elem1120) in enumerate(fields1119) - i1121 = i1398 - 1 - if (i1121 > 0) + for (i1422, elem1132) in enumerate(fields1131) + i1133 = i1422 - 1 + if (i1133 > 0) newline(pp) end - pretty_var(pp, elem1120) + pretty_var(pp, elem1132) end end dedent!(pp) @@ -3174,22 +3178,22 @@ function pretty_functional_dependency_keys(pp::PrettyPrinter, msg::Vector{Proto. end function pretty_functional_dependency_values(pp::PrettyPrinter, msg::Vector{Proto.Var}) - flat1126 = try_flat(pp, msg, pretty_functional_dependency_values) - if !isnothing(flat1126) - write(pp, flat1126) + flat1138 = try_flat(pp, msg, pretty_functional_dependency_values) + if !isnothing(flat1138) + write(pp, flat1138) return nothing else - fields1123 = msg + fields1135 = msg write(pp, "(values") indent_sexp!(pp) - if !isempty(fields1123) + if !isempty(fields1135) newline(pp) - for (i1399, elem1124) in enumerate(fields1123) - i1125 = i1399 - 1 - if (i1125 > 0) + for (i1423, elem1136) in enumerate(fields1135) + i1137 = i1423 - 1 + if (i1137 > 0) newline(pp) end - pretty_var(pp, elem1124) + pretty_var(pp, elem1136) end end dedent!(pp) @@ -3199,43 +3203,43 @@ function pretty_functional_dependency_values(pp::PrettyPrinter, msg::Vector{Prot end function pretty_data(pp::PrettyPrinter, msg::Proto.Data) - flat1133 = try_flat(pp, msg, pretty_data) - if !isnothing(flat1133) - write(pp, flat1133) + flat1145 = try_flat(pp, msg, pretty_data) + if !isnothing(flat1145) + write(pp, flat1145) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("edb")) - _t1400 = _get_oneof_field(_dollar_dollar, :edb) + _t1424 = _get_oneof_field(_dollar_dollar, :edb) else - _t1400 = nothing + _t1424 = nothing end - deconstruct_result1131 = _t1400 - if !isnothing(deconstruct_result1131) - unwrapped1132 = deconstruct_result1131 - pretty_edb(pp, unwrapped1132) + deconstruct_result1143 = _t1424 + if !isnothing(deconstruct_result1143) + unwrapped1144 = deconstruct_result1143 + pretty_edb(pp, unwrapped1144) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("betree_relation")) - _t1401 = _get_oneof_field(_dollar_dollar, :betree_relation) + _t1425 = _get_oneof_field(_dollar_dollar, :betree_relation) else - _t1401 = nothing + _t1425 = nothing end - deconstruct_result1129 = _t1401 - if !isnothing(deconstruct_result1129) - unwrapped1130 = deconstruct_result1129 - pretty_betree_relation(pp, unwrapped1130) + deconstruct_result1141 = _t1425 + if !isnothing(deconstruct_result1141) + unwrapped1142 = deconstruct_result1141 + pretty_betree_relation(pp, unwrapped1142) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("csv_data")) - _t1402 = _get_oneof_field(_dollar_dollar, :csv_data) + _t1426 = _get_oneof_field(_dollar_dollar, :csv_data) else - _t1402 = nothing + _t1426 = nothing end - deconstruct_result1127 = _t1402 - if !isnothing(deconstruct_result1127) - unwrapped1128 = deconstruct_result1127 - pretty_csv_data(pp, unwrapped1128) + deconstruct_result1139 = _t1426 + if !isnothing(deconstruct_result1139) + unwrapped1140 = deconstruct_result1139 + pretty_csv_data(pp, unwrapped1140) else throw(ParseError("No matching rule for data")) end @@ -3246,25 +3250,25 @@ function pretty_data(pp::PrettyPrinter, msg::Proto.Data) end function pretty_edb(pp::PrettyPrinter, msg::Proto.EDB) - flat1139 = try_flat(pp, msg, pretty_edb) - if !isnothing(flat1139) - write(pp, flat1139) + flat1151 = try_flat(pp, msg, pretty_edb) + if !isnothing(flat1151) + write(pp, flat1151) return nothing else _dollar_dollar = msg - fields1134 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) - unwrapped_fields1135 = fields1134 + fields1146 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) + unwrapped_fields1147 = fields1146 write(pp, "(edb") indent_sexp!(pp) newline(pp) - field1136 = unwrapped_fields1135[1] - pretty_relation_id(pp, field1136) + field1148 = unwrapped_fields1147[1] + pretty_relation_id(pp, field1148) newline(pp) - field1137 = unwrapped_fields1135[2] - pretty_edb_path(pp, field1137) + field1149 = unwrapped_fields1147[2] + pretty_edb_path(pp, field1149) newline(pp) - field1138 = unwrapped_fields1135[3] - pretty_edb_types(pp, field1138) + field1150 = unwrapped_fields1147[3] + pretty_edb_types(pp, field1150) dedent!(pp) write(pp, ")") end @@ -3272,20 +3276,20 @@ function pretty_edb(pp::PrettyPrinter, msg::Proto.EDB) end function pretty_edb_path(pp::PrettyPrinter, msg::Vector{String}) - flat1143 = try_flat(pp, msg, pretty_edb_path) - if !isnothing(flat1143) - write(pp, flat1143) + flat1155 = try_flat(pp, msg, pretty_edb_path) + if !isnothing(flat1155) + write(pp, flat1155) return nothing else - fields1140 = msg + fields1152 = msg write(pp, "[") indent!(pp) - for (i1403, elem1141) in enumerate(fields1140) - i1142 = i1403 - 1 - if (i1142 > 0) + for (i1427, elem1153) in enumerate(fields1152) + i1154 = i1427 - 1 + if (i1154 > 0) newline(pp) end - write(pp, format_string(pp, elem1141)) + write(pp, format_string(pp, elem1153)) end dedent!(pp) write(pp, "]") @@ -3294,20 +3298,20 @@ function pretty_edb_path(pp::PrettyPrinter, msg::Vector{String}) end function pretty_edb_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) - flat1147 = try_flat(pp, msg, pretty_edb_types) - if !isnothing(flat1147) - write(pp, flat1147) + flat1159 = try_flat(pp, msg, pretty_edb_types) + if !isnothing(flat1159) + write(pp, flat1159) return nothing else - fields1144 = msg + fields1156 = msg write(pp, "[") indent!(pp) - for (i1404, elem1145) in enumerate(fields1144) - i1146 = i1404 - 1 - if (i1146 > 0) + for (i1428, elem1157) in enumerate(fields1156) + i1158 = i1428 - 1 + if (i1158 > 0) newline(pp) end - pretty_type(pp, elem1145) + pretty_type(pp, elem1157) end dedent!(pp) write(pp, "]") @@ -3316,22 +3320,22 @@ function pretty_edb_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) end function pretty_betree_relation(pp::PrettyPrinter, msg::Proto.BeTreeRelation) - flat1152 = try_flat(pp, msg, pretty_betree_relation) - if !isnothing(flat1152) - write(pp, flat1152) + flat1164 = try_flat(pp, msg, pretty_betree_relation) + if !isnothing(flat1164) + write(pp, flat1164) return nothing else _dollar_dollar = msg - fields1148 = (_dollar_dollar.name, _dollar_dollar.relation_info,) - unwrapped_fields1149 = fields1148 + fields1160 = (_dollar_dollar.name, _dollar_dollar.relation_info,) + unwrapped_fields1161 = fields1160 write(pp, "(betree_relation") indent_sexp!(pp) newline(pp) - field1150 = unwrapped_fields1149[1] - pretty_relation_id(pp, field1150) + field1162 = unwrapped_fields1161[1] + pretty_relation_id(pp, field1162) newline(pp) - field1151 = unwrapped_fields1149[2] - pretty_betree_info(pp, field1151) + field1163 = unwrapped_fields1161[2] + pretty_betree_info(pp, field1163) dedent!(pp) write(pp, ")") end @@ -3339,26 +3343,26 @@ function pretty_betree_relation(pp::PrettyPrinter, msg::Proto.BeTreeRelation) end function pretty_betree_info(pp::PrettyPrinter, msg::Proto.BeTreeInfo) - flat1158 = try_flat(pp, msg, pretty_betree_info) - if !isnothing(flat1158) - write(pp, flat1158) + flat1170 = try_flat(pp, msg, pretty_betree_info) + if !isnothing(flat1170) + write(pp, flat1170) return nothing else _dollar_dollar = msg - _t1405 = deconstruct_betree_info_config(pp, _dollar_dollar) - fields1153 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1405,) - unwrapped_fields1154 = fields1153 + _t1429 = deconstruct_betree_info_config(pp, _dollar_dollar) + fields1165 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1429,) + unwrapped_fields1166 = fields1165 write(pp, "(betree_info") indent_sexp!(pp) newline(pp) - field1155 = unwrapped_fields1154[1] - pretty_betree_info_key_types(pp, field1155) + field1167 = unwrapped_fields1166[1] + pretty_betree_info_key_types(pp, field1167) newline(pp) - field1156 = unwrapped_fields1154[2] - pretty_betree_info_value_types(pp, field1156) + field1168 = unwrapped_fields1166[2] + pretty_betree_info_value_types(pp, field1168) newline(pp) - field1157 = unwrapped_fields1154[3] - pretty_config_dict(pp, field1157) + field1169 = unwrapped_fields1166[3] + pretty_config_dict(pp, field1169) dedent!(pp) write(pp, ")") end @@ -3366,22 +3370,22 @@ function pretty_betree_info(pp::PrettyPrinter, msg::Proto.BeTreeInfo) end function pretty_betree_info_key_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) - flat1162 = try_flat(pp, msg, pretty_betree_info_key_types) - if !isnothing(flat1162) - write(pp, flat1162) + flat1174 = try_flat(pp, msg, pretty_betree_info_key_types) + if !isnothing(flat1174) + write(pp, flat1174) return nothing else - fields1159 = msg + fields1171 = msg write(pp, "(key_types") indent_sexp!(pp) - if !isempty(fields1159) + if !isempty(fields1171) newline(pp) - for (i1406, elem1160) in enumerate(fields1159) - i1161 = i1406 - 1 - if (i1161 > 0) + for (i1430, elem1172) in enumerate(fields1171) + i1173 = i1430 - 1 + if (i1173 > 0) newline(pp) end - pretty_type(pp, elem1160) + pretty_type(pp, elem1172) end end dedent!(pp) @@ -3391,22 +3395,22 @@ function pretty_betree_info_key_types(pp::PrettyPrinter, msg::Vector{Proto.var"# end function pretty_betree_info_value_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) - flat1166 = try_flat(pp, msg, pretty_betree_info_value_types) - if !isnothing(flat1166) - write(pp, flat1166) + flat1178 = try_flat(pp, msg, pretty_betree_info_value_types) + if !isnothing(flat1178) + write(pp, flat1178) return nothing else - fields1163 = msg + fields1175 = msg write(pp, "(value_types") indent_sexp!(pp) - if !isempty(fields1163) + if !isempty(fields1175) newline(pp) - for (i1407, elem1164) in enumerate(fields1163) - i1165 = i1407 - 1 - if (i1165 > 0) + for (i1431, elem1176) in enumerate(fields1175) + i1177 = i1431 - 1 + if (i1177 > 0) newline(pp) end - pretty_type(pp, elem1164) + pretty_type(pp, elem1176) end end dedent!(pp) @@ -3416,28 +3420,28 @@ function pretty_betree_info_value_types(pp::PrettyPrinter, msg::Vector{Proto.var end function pretty_csv_data(pp::PrettyPrinter, msg::Proto.CSVData) - flat1173 = try_flat(pp, msg, pretty_csv_data) - if !isnothing(flat1173) - write(pp, flat1173) + flat1185 = try_flat(pp, msg, pretty_csv_data) + if !isnothing(flat1185) + write(pp, flat1185) return nothing else _dollar_dollar = msg - fields1167 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) - unwrapped_fields1168 = fields1167 + fields1179 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) + unwrapped_fields1180 = fields1179 write(pp, "(csv_data") indent_sexp!(pp) newline(pp) - field1169 = unwrapped_fields1168[1] - pretty_csvlocator(pp, field1169) + field1181 = unwrapped_fields1180[1] + pretty_csvlocator(pp, field1181) newline(pp) - field1170 = unwrapped_fields1168[2] - pretty_csv_config(pp, field1170) + field1182 = unwrapped_fields1180[2] + pretty_csv_config(pp, field1182) newline(pp) - field1171 = unwrapped_fields1168[3] - pretty_gnf_columns(pp, field1171) + field1183 = unwrapped_fields1180[3] + pretty_gnf_columns(pp, field1183) newline(pp) - field1172 = unwrapped_fields1168[4] - pretty_csv_asof(pp, field1172) + field1184 = unwrapped_fields1180[4] + pretty_csv_asof(pp, field1184) dedent!(pp) write(pp, ")") end @@ -3445,37 +3449,37 @@ function pretty_csv_data(pp::PrettyPrinter, msg::Proto.CSVData) end function pretty_csvlocator(pp::PrettyPrinter, msg::Proto.CSVLocator) - flat1180 = try_flat(pp, msg, pretty_csvlocator) - if !isnothing(flat1180) - write(pp, flat1180) + flat1192 = try_flat(pp, msg, pretty_csvlocator) + if !isnothing(flat1192) + write(pp, flat1192) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.paths) - _t1408 = _dollar_dollar.paths + _t1432 = _dollar_dollar.paths else - _t1408 = nothing + _t1432 = nothing end if String(copy(_dollar_dollar.inline_data)) != "" - _t1409 = String(copy(_dollar_dollar.inline_data)) + _t1433 = String(copy(_dollar_dollar.inline_data)) else - _t1409 = nothing + _t1433 = nothing end - fields1174 = (_t1408, _t1409,) - unwrapped_fields1175 = fields1174 + fields1186 = (_t1432, _t1433,) + unwrapped_fields1187 = fields1186 write(pp, "(csv_locator") indent_sexp!(pp) - field1176 = unwrapped_fields1175[1] - if !isnothing(field1176) + field1188 = unwrapped_fields1187[1] + if !isnothing(field1188) newline(pp) - opt_val1177 = field1176 - pretty_csv_locator_paths(pp, opt_val1177) + opt_val1189 = field1188 + pretty_csv_locator_paths(pp, opt_val1189) end - field1178 = unwrapped_fields1175[2] - if !isnothing(field1178) + field1190 = unwrapped_fields1187[2] + if !isnothing(field1190) newline(pp) - opt_val1179 = field1178 - pretty_csv_locator_inline_data(pp, opt_val1179) + opt_val1191 = field1190 + pretty_csv_locator_inline_data(pp, opt_val1191) end dedent!(pp) write(pp, ")") @@ -3484,22 +3488,22 @@ function pretty_csvlocator(pp::PrettyPrinter, msg::Proto.CSVLocator) end function pretty_csv_locator_paths(pp::PrettyPrinter, msg::Vector{String}) - flat1184 = try_flat(pp, msg, pretty_csv_locator_paths) - if !isnothing(flat1184) - write(pp, flat1184) + flat1196 = try_flat(pp, msg, pretty_csv_locator_paths) + if !isnothing(flat1196) + write(pp, flat1196) return nothing else - fields1181 = msg + fields1193 = msg write(pp, "(paths") indent_sexp!(pp) - if !isempty(fields1181) + if !isempty(fields1193) newline(pp) - for (i1410, elem1182) in enumerate(fields1181) - i1183 = i1410 - 1 - if (i1183 > 0) + for (i1434, elem1194) in enumerate(fields1193) + i1195 = i1434 - 1 + if (i1195 > 0) newline(pp) end - write(pp, format_string(pp, elem1182)) + write(pp, format_string(pp, elem1194)) end end dedent!(pp) @@ -3509,16 +3513,16 @@ function pretty_csv_locator_paths(pp::PrettyPrinter, msg::Vector{String}) end function pretty_csv_locator_inline_data(pp::PrettyPrinter, msg::String) - flat1186 = try_flat(pp, msg, pretty_csv_locator_inline_data) - if !isnothing(flat1186) - write(pp, flat1186) + flat1198 = try_flat(pp, msg, pretty_csv_locator_inline_data) + if !isnothing(flat1198) + write(pp, flat1198) return nothing else - fields1185 = msg + fields1197 = msg write(pp, "(inline_data") indent_sexp!(pp) newline(pp) - write(pp, format_string(pp, fields1185)) + write(pp, format_string(pp, fields1197)) dedent!(pp) write(pp, ")") end @@ -3526,19 +3530,19 @@ function pretty_csv_locator_inline_data(pp::PrettyPrinter, msg::String) end function pretty_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig) - flat1189 = try_flat(pp, msg, pretty_csv_config) - if !isnothing(flat1189) - write(pp, flat1189) + flat1201 = try_flat(pp, msg, pretty_csv_config) + if !isnothing(flat1201) + write(pp, flat1201) return nothing else _dollar_dollar = msg - _t1411 = deconstruct_csv_config(pp, _dollar_dollar) - fields1187 = _t1411 - unwrapped_fields1188 = fields1187 + _t1435 = deconstruct_csv_config(pp, _dollar_dollar) + fields1199 = _t1435 + unwrapped_fields1200 = fields1199 write(pp, "(csv_config") indent_sexp!(pp) newline(pp) - pretty_config_dict(pp, unwrapped_fields1188) + pretty_config_dict(pp, unwrapped_fields1200) dedent!(pp) write(pp, ")") end @@ -3546,22 +3550,22 @@ function pretty_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig) end function pretty_gnf_columns(pp::PrettyPrinter, msg::Vector{Proto.GNFColumn}) - flat1193 = try_flat(pp, msg, pretty_gnf_columns) - if !isnothing(flat1193) - write(pp, flat1193) + flat1205 = try_flat(pp, msg, pretty_gnf_columns) + if !isnothing(flat1205) + write(pp, flat1205) return nothing else - fields1190 = msg + fields1202 = msg write(pp, "(columns") indent_sexp!(pp) - if !isempty(fields1190) + if !isempty(fields1202) newline(pp) - for (i1412, elem1191) in enumerate(fields1190) - i1192 = i1412 - 1 - if (i1192 > 0) + for (i1436, elem1203) in enumerate(fields1202) + i1204 = i1436 - 1 + if (i1204 > 0) newline(pp) end - pretty_gnf_column(pp, elem1191) + pretty_gnf_column(pp, elem1203) end end dedent!(pp) @@ -3571,39 +3575,39 @@ function pretty_gnf_columns(pp::PrettyPrinter, msg::Vector{Proto.GNFColumn}) end function pretty_gnf_column(pp::PrettyPrinter, msg::Proto.GNFColumn) - flat1202 = try_flat(pp, msg, pretty_gnf_column) - if !isnothing(flat1202) - write(pp, flat1202) + flat1214 = try_flat(pp, msg, pretty_gnf_column) + if !isnothing(flat1214) + write(pp, flat1214) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("target_id")) - _t1413 = _dollar_dollar.target_id + _t1437 = _dollar_dollar.target_id else - _t1413 = nothing + _t1437 = nothing end - fields1194 = (_dollar_dollar.column_path, _t1413, _dollar_dollar.types,) - unwrapped_fields1195 = fields1194 + fields1206 = (_dollar_dollar.column_path, _t1437, _dollar_dollar.types,) + unwrapped_fields1207 = fields1206 write(pp, "(column") indent_sexp!(pp) newline(pp) - field1196 = unwrapped_fields1195[1] - pretty_gnf_column_path(pp, field1196) - field1197 = unwrapped_fields1195[2] - if !isnothing(field1197) + field1208 = unwrapped_fields1207[1] + pretty_gnf_column_path(pp, field1208) + field1209 = unwrapped_fields1207[2] + if !isnothing(field1209) newline(pp) - opt_val1198 = field1197 - pretty_relation_id(pp, opt_val1198) + opt_val1210 = field1209 + pretty_relation_id(pp, opt_val1210) end newline(pp) write(pp, "[") - field1199 = unwrapped_fields1195[3] - for (i1414, elem1200) in enumerate(field1199) - i1201 = i1414 - 1 - if (i1201 > 0) + field1211 = unwrapped_fields1207[3] + for (i1438, elem1212) in enumerate(field1211) + i1213 = i1438 - 1 + if (i1213 > 0) newline(pp) end - pretty_type(pp, elem1200) + pretty_type(pp, elem1212) end write(pp, "]") dedent!(pp) @@ -3613,39 +3617,39 @@ function pretty_gnf_column(pp::PrettyPrinter, msg::Proto.GNFColumn) end function pretty_gnf_column_path(pp::PrettyPrinter, msg::Vector{String}) - flat1209 = try_flat(pp, msg, pretty_gnf_column_path) - if !isnothing(flat1209) - write(pp, flat1209) + flat1221 = try_flat(pp, msg, pretty_gnf_column_path) + if !isnothing(flat1221) + write(pp, flat1221) return nothing else _dollar_dollar = msg if length(_dollar_dollar) == 1 - _t1415 = _dollar_dollar[1] + _t1439 = _dollar_dollar[1] else - _t1415 = nothing + _t1439 = nothing end - deconstruct_result1207 = _t1415 - if !isnothing(deconstruct_result1207) - unwrapped1208 = deconstruct_result1207 - write(pp, format_string(pp, unwrapped1208)) + deconstruct_result1219 = _t1439 + if !isnothing(deconstruct_result1219) + unwrapped1220 = deconstruct_result1219 + write(pp, format_string(pp, unwrapped1220)) else _dollar_dollar = msg if length(_dollar_dollar) != 1 - _t1416 = _dollar_dollar + _t1440 = _dollar_dollar else - _t1416 = nothing + _t1440 = nothing end - deconstruct_result1203 = _t1416 - if !isnothing(deconstruct_result1203) - unwrapped1204 = deconstruct_result1203 + deconstruct_result1215 = _t1440 + if !isnothing(deconstruct_result1215) + unwrapped1216 = deconstruct_result1215 write(pp, "[") indent!(pp) - for (i1417, elem1205) in enumerate(unwrapped1204) - i1206 = i1417 - 1 - if (i1206 > 0) + for (i1441, elem1217) in enumerate(unwrapped1216) + i1218 = i1441 - 1 + if (i1218 > 0) newline(pp) end - write(pp, format_string(pp, elem1205)) + write(pp, format_string(pp, elem1217)) end dedent!(pp) write(pp, "]") @@ -3658,16 +3662,16 @@ function pretty_gnf_column_path(pp::PrettyPrinter, msg::Vector{String}) end function pretty_csv_asof(pp::PrettyPrinter, msg::String) - flat1211 = try_flat(pp, msg, pretty_csv_asof) - if !isnothing(flat1211) - write(pp, flat1211) + flat1223 = try_flat(pp, msg, pretty_csv_asof) + if !isnothing(flat1223) + write(pp, flat1223) return nothing else - fields1210 = msg + fields1222 = msg write(pp, "(asof") indent_sexp!(pp) newline(pp) - write(pp, format_string(pp, fields1210)) + write(pp, format_string(pp, fields1222)) dedent!(pp) write(pp, ")") end @@ -3675,18 +3679,18 @@ function pretty_csv_asof(pp::PrettyPrinter, msg::String) end function pretty_undefine(pp::PrettyPrinter, msg::Proto.Undefine) - flat1214 = try_flat(pp, msg, pretty_undefine) - if !isnothing(flat1214) - write(pp, flat1214) + flat1226 = try_flat(pp, msg, pretty_undefine) + if !isnothing(flat1226) + write(pp, flat1226) return nothing else _dollar_dollar = msg - fields1212 = _dollar_dollar.fragment_id - unwrapped_fields1213 = fields1212 + fields1224 = _dollar_dollar.fragment_id + unwrapped_fields1225 = fields1224 write(pp, "(undefine") indent_sexp!(pp) newline(pp) - pretty_fragment_id(pp, unwrapped_fields1213) + pretty_fragment_id(pp, unwrapped_fields1225) dedent!(pp) write(pp, ")") end @@ -3694,24 +3698,24 @@ function pretty_undefine(pp::PrettyPrinter, msg::Proto.Undefine) end function pretty_context(pp::PrettyPrinter, msg::Proto.Context) - flat1219 = try_flat(pp, msg, pretty_context) - if !isnothing(flat1219) - write(pp, flat1219) + flat1231 = try_flat(pp, msg, pretty_context) + if !isnothing(flat1231) + write(pp, flat1231) return nothing else _dollar_dollar = msg - fields1215 = _dollar_dollar.relations - unwrapped_fields1216 = fields1215 + fields1227 = _dollar_dollar.relations + unwrapped_fields1228 = fields1227 write(pp, "(context") indent_sexp!(pp) - if !isempty(unwrapped_fields1216) + if !isempty(unwrapped_fields1228) newline(pp) - for (i1418, elem1217) in enumerate(unwrapped_fields1216) - i1218 = i1418 - 1 - if (i1218 > 0) + for (i1442, elem1229) in enumerate(unwrapped_fields1228) + i1230 = i1442 - 1 + if (i1230 > 0) newline(pp) end - pretty_relation_id(pp, elem1217) + pretty_relation_id(pp, elem1229) end end dedent!(pp) @@ -3721,24 +3725,24 @@ function pretty_context(pp::PrettyPrinter, msg::Proto.Context) end function pretty_snapshot(pp::PrettyPrinter, msg::Proto.Snapshot) - flat1224 = try_flat(pp, msg, pretty_snapshot) - if !isnothing(flat1224) - write(pp, flat1224) + flat1236 = try_flat(pp, msg, pretty_snapshot) + if !isnothing(flat1236) + write(pp, flat1236) return nothing else _dollar_dollar = msg - fields1220 = _dollar_dollar.mappings - unwrapped_fields1221 = fields1220 + fields1232 = _dollar_dollar.mappings + unwrapped_fields1233 = fields1232 write(pp, "(snapshot") indent_sexp!(pp) - if !isempty(unwrapped_fields1221) + if !isempty(unwrapped_fields1233) newline(pp) - for (i1419, elem1222) in enumerate(unwrapped_fields1221) - i1223 = i1419 - 1 - if (i1223 > 0) + for (i1443, elem1234) in enumerate(unwrapped_fields1233) + i1235 = i1443 - 1 + if (i1235 > 0) newline(pp) end - pretty_snapshot_mapping(pp, elem1222) + pretty_snapshot_mapping(pp, elem1234) end end dedent!(pp) @@ -3748,40 +3752,40 @@ function pretty_snapshot(pp::PrettyPrinter, msg::Proto.Snapshot) end function pretty_snapshot_mapping(pp::PrettyPrinter, msg::Proto.SnapshotMapping) - flat1229 = try_flat(pp, msg, pretty_snapshot_mapping) - if !isnothing(flat1229) - write(pp, flat1229) + flat1241 = try_flat(pp, msg, pretty_snapshot_mapping) + if !isnothing(flat1241) + write(pp, flat1241) return nothing else _dollar_dollar = msg - fields1225 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) - unwrapped_fields1226 = fields1225 - field1227 = unwrapped_fields1226[1] - pretty_edb_path(pp, field1227) + fields1237 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) + unwrapped_fields1238 = fields1237 + field1239 = unwrapped_fields1238[1] + pretty_edb_path(pp, field1239) write(pp, " ") - field1228 = unwrapped_fields1226[2] - pretty_relation_id(pp, field1228) + field1240 = unwrapped_fields1238[2] + pretty_relation_id(pp, field1240) end return nothing end function pretty_epoch_reads(pp::PrettyPrinter, msg::Vector{Proto.Read}) - flat1233 = try_flat(pp, msg, pretty_epoch_reads) - if !isnothing(flat1233) - write(pp, flat1233) + flat1245 = try_flat(pp, msg, pretty_epoch_reads) + if !isnothing(flat1245) + write(pp, flat1245) return nothing else - fields1230 = msg + fields1242 = msg write(pp, "(reads") indent_sexp!(pp) - if !isempty(fields1230) + if !isempty(fields1242) newline(pp) - for (i1420, elem1231) in enumerate(fields1230) - i1232 = i1420 - 1 - if (i1232 > 0) + for (i1444, elem1243) in enumerate(fields1242) + i1244 = i1444 - 1 + if (i1244 > 0) newline(pp) end - pretty_read(pp, elem1231) + pretty_read(pp, elem1243) end end dedent!(pp) @@ -3791,65 +3795,65 @@ function pretty_epoch_reads(pp::PrettyPrinter, msg::Vector{Proto.Read}) end function pretty_read(pp::PrettyPrinter, msg::Proto.Read) - flat1244 = try_flat(pp, msg, pretty_read) - if !isnothing(flat1244) - write(pp, flat1244) + flat1256 = try_flat(pp, msg, pretty_read) + if !isnothing(flat1256) + write(pp, flat1256) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("demand")) - _t1421 = _get_oneof_field(_dollar_dollar, :demand) + _t1445 = _get_oneof_field(_dollar_dollar, :demand) else - _t1421 = nothing + _t1445 = nothing end - deconstruct_result1242 = _t1421 - if !isnothing(deconstruct_result1242) - unwrapped1243 = deconstruct_result1242 - pretty_demand(pp, unwrapped1243) + deconstruct_result1254 = _t1445 + if !isnothing(deconstruct_result1254) + unwrapped1255 = deconstruct_result1254 + pretty_demand(pp, unwrapped1255) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("output")) - _t1422 = _get_oneof_field(_dollar_dollar, :output) + _t1446 = _get_oneof_field(_dollar_dollar, :output) else - _t1422 = nothing + _t1446 = nothing end - deconstruct_result1240 = _t1422 - if !isnothing(deconstruct_result1240) - unwrapped1241 = deconstruct_result1240 - pretty_output(pp, unwrapped1241) + deconstruct_result1252 = _t1446 + if !isnothing(deconstruct_result1252) + unwrapped1253 = deconstruct_result1252 + pretty_output(pp, unwrapped1253) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("what_if")) - _t1423 = _get_oneof_field(_dollar_dollar, :what_if) + _t1447 = _get_oneof_field(_dollar_dollar, :what_if) else - _t1423 = nothing + _t1447 = nothing end - deconstruct_result1238 = _t1423 - if !isnothing(deconstruct_result1238) - unwrapped1239 = deconstruct_result1238 - pretty_what_if(pp, unwrapped1239) + deconstruct_result1250 = _t1447 + if !isnothing(deconstruct_result1250) + unwrapped1251 = deconstruct_result1250 + pretty_what_if(pp, unwrapped1251) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("abort")) - _t1424 = _get_oneof_field(_dollar_dollar, :abort) + _t1448 = _get_oneof_field(_dollar_dollar, :abort) else - _t1424 = nothing + _t1448 = nothing end - deconstruct_result1236 = _t1424 - if !isnothing(deconstruct_result1236) - unwrapped1237 = deconstruct_result1236 - pretty_abort(pp, unwrapped1237) + deconstruct_result1248 = _t1448 + if !isnothing(deconstruct_result1248) + unwrapped1249 = deconstruct_result1248 + pretty_abort(pp, unwrapped1249) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("#export")) - _t1425 = _get_oneof_field(_dollar_dollar, :var"#export") + _t1449 = _get_oneof_field(_dollar_dollar, :var"#export") else - _t1425 = nothing + _t1449 = nothing end - deconstruct_result1234 = _t1425 - if !isnothing(deconstruct_result1234) - unwrapped1235 = deconstruct_result1234 - pretty_export(pp, unwrapped1235) + deconstruct_result1246 = _t1449 + if !isnothing(deconstruct_result1246) + unwrapped1247 = deconstruct_result1246 + pretty_export(pp, unwrapped1247) else throw(ParseError("No matching rule for read")) end @@ -3862,18 +3866,18 @@ function pretty_read(pp::PrettyPrinter, msg::Proto.Read) end function pretty_demand(pp::PrettyPrinter, msg::Proto.Demand) - flat1247 = try_flat(pp, msg, pretty_demand) - if !isnothing(flat1247) - write(pp, flat1247) + flat1259 = try_flat(pp, msg, pretty_demand) + if !isnothing(flat1259) + write(pp, flat1259) return nothing else _dollar_dollar = msg - fields1245 = _dollar_dollar.relation_id - unwrapped_fields1246 = fields1245 + fields1257 = _dollar_dollar.relation_id + unwrapped_fields1258 = fields1257 write(pp, "(demand") indent_sexp!(pp) newline(pp) - pretty_relation_id(pp, unwrapped_fields1246) + pretty_relation_id(pp, unwrapped_fields1258) dedent!(pp) write(pp, ")") end @@ -3881,22 +3885,22 @@ function pretty_demand(pp::PrettyPrinter, msg::Proto.Demand) end function pretty_output(pp::PrettyPrinter, msg::Proto.Output) - flat1252 = try_flat(pp, msg, pretty_output) - if !isnothing(flat1252) - write(pp, flat1252) + flat1264 = try_flat(pp, msg, pretty_output) + if !isnothing(flat1264) + write(pp, flat1264) return nothing else _dollar_dollar = msg - fields1248 = (_dollar_dollar.name, _dollar_dollar.relation_id,) - unwrapped_fields1249 = fields1248 + fields1260 = (_dollar_dollar.name, _dollar_dollar.relation_id,) + unwrapped_fields1261 = fields1260 write(pp, "(output") indent_sexp!(pp) newline(pp) - field1250 = unwrapped_fields1249[1] - pretty_name(pp, field1250) + field1262 = unwrapped_fields1261[1] + pretty_name(pp, field1262) newline(pp) - field1251 = unwrapped_fields1249[2] - pretty_relation_id(pp, field1251) + field1263 = unwrapped_fields1261[2] + pretty_relation_id(pp, field1263) dedent!(pp) write(pp, ")") end @@ -3904,22 +3908,22 @@ function pretty_output(pp::PrettyPrinter, msg::Proto.Output) end function pretty_what_if(pp::PrettyPrinter, msg::Proto.WhatIf) - flat1257 = try_flat(pp, msg, pretty_what_if) - if !isnothing(flat1257) - write(pp, flat1257) + flat1269 = try_flat(pp, msg, pretty_what_if) + if !isnothing(flat1269) + write(pp, flat1269) return nothing else _dollar_dollar = msg - fields1253 = (_dollar_dollar.branch, _dollar_dollar.epoch,) - unwrapped_fields1254 = fields1253 + fields1265 = (_dollar_dollar.branch, _dollar_dollar.epoch,) + unwrapped_fields1266 = fields1265 write(pp, "(what_if") indent_sexp!(pp) newline(pp) - field1255 = unwrapped_fields1254[1] - pretty_name(pp, field1255) + field1267 = unwrapped_fields1266[1] + pretty_name(pp, field1267) newline(pp) - field1256 = unwrapped_fields1254[2] - pretty_epoch(pp, field1256) + field1268 = unwrapped_fields1266[2] + pretty_epoch(pp, field1268) dedent!(pp) write(pp, ")") end @@ -3927,30 +3931,30 @@ function pretty_what_if(pp::PrettyPrinter, msg::Proto.WhatIf) end function pretty_abort(pp::PrettyPrinter, msg::Proto.Abort) - flat1263 = try_flat(pp, msg, pretty_abort) - if !isnothing(flat1263) - write(pp, flat1263) + flat1275 = try_flat(pp, msg, pretty_abort) + if !isnothing(flat1275) + write(pp, flat1275) return nothing else _dollar_dollar = msg if _dollar_dollar.name != "abort" - _t1426 = _dollar_dollar.name + _t1450 = _dollar_dollar.name else - _t1426 = nothing + _t1450 = nothing end - fields1258 = (_t1426, _dollar_dollar.relation_id,) - unwrapped_fields1259 = fields1258 + fields1270 = (_t1450, _dollar_dollar.relation_id,) + unwrapped_fields1271 = fields1270 write(pp, "(abort") indent_sexp!(pp) - field1260 = unwrapped_fields1259[1] - if !isnothing(field1260) + field1272 = unwrapped_fields1271[1] + if !isnothing(field1272) newline(pp) - opt_val1261 = field1260 - pretty_name(pp, opt_val1261) + opt_val1273 = field1272 + pretty_name(pp, opt_val1273) end newline(pp) - field1262 = unwrapped_fields1259[2] - pretty_relation_id(pp, field1262) + field1274 = unwrapped_fields1271[2] + pretty_relation_id(pp, field1274) dedent!(pp) write(pp, ")") end @@ -3958,18 +3962,18 @@ function pretty_abort(pp::PrettyPrinter, msg::Proto.Abort) end function pretty_export(pp::PrettyPrinter, msg::Proto.Export) - flat1266 = try_flat(pp, msg, pretty_export) - if !isnothing(flat1266) - write(pp, flat1266) + flat1278 = try_flat(pp, msg, pretty_export) + if !isnothing(flat1278) + write(pp, flat1278) return nothing else _dollar_dollar = msg - fields1264 = _get_oneof_field(_dollar_dollar, :csv_config) - unwrapped_fields1265 = fields1264 + fields1276 = _get_oneof_field(_dollar_dollar, :csv_config) + unwrapped_fields1277 = fields1276 write(pp, "(export") indent_sexp!(pp) newline(pp) - pretty_export_csv_config(pp, unwrapped_fields1265) + pretty_export_csv_config(pp, unwrapped_fields1277) dedent!(pp) write(pp, ")") end @@ -3977,91 +3981,177 @@ function pretty_export(pp::PrettyPrinter, msg::Proto.Export) end function pretty_export_csv_config(pp::PrettyPrinter, msg::Proto.ExportCSVConfig) - flat1272 = try_flat(pp, msg, pretty_export_csv_config) - if !isnothing(flat1272) - write(pp, flat1272) + flat1289 = try_flat(pp, msg, pretty_export_csv_config) + if !isnothing(flat1289) + write(pp, flat1289) return nothing else _dollar_dollar = msg - _t1427 = deconstruct_export_csv_config(pp, _dollar_dollar) - fields1267 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1427,) - unwrapped_fields1268 = fields1267 - write(pp, "(export_csv_config") - indent_sexp!(pp) - newline(pp) - field1269 = unwrapped_fields1268[1] - pretty_export_csv_path(pp, field1269) - newline(pp) - field1270 = unwrapped_fields1268[2] - pretty_export_csv_columns(pp, field1270) - newline(pp) - field1271 = unwrapped_fields1268[3] - pretty_config_dict(pp, field1271) - dedent!(pp) - write(pp, ")") + if length(_dollar_dollar.data_columns) == 0 + _t1451 = (_dollar_dollar.path, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) + else + _t1451 = nothing + end + deconstruct_result1284 = _t1451 + if !isnothing(deconstruct_result1284) + unwrapped1285 = deconstruct_result1284 + write(pp, "(export_csv_config_v2") + indent_sexp!(pp) + newline(pp) + field1286 = unwrapped1285[1] + pretty_export_csv_path(pp, field1286) + newline(pp) + field1287 = unwrapped1285[2] + pretty_export_csv_source(pp, field1287) + newline(pp) + field1288 = unwrapped1285[3] + pretty_csv_config(pp, field1288) + dedent!(pp) + write(pp, ")") + else + _dollar_dollar = msg + if length(_dollar_dollar.data_columns) != 0 + _t1453 = deconstruct_export_csv_config(pp, _dollar_dollar) + _t1452 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1453,) + else + _t1452 = nothing + end + deconstruct_result1279 = _t1452 + if !isnothing(deconstruct_result1279) + unwrapped1280 = deconstruct_result1279 + write(pp, "(export_csv_config") + indent_sexp!(pp) + newline(pp) + field1281 = unwrapped1280[1] + pretty_export_csv_path(pp, field1281) + newline(pp) + field1282 = unwrapped1280[2] + pretty_export_csv_columns_list(pp, field1282) + newline(pp) + field1283 = unwrapped1280[3] + pretty_config_dict(pp, field1283) + dedent!(pp) + write(pp, ")") + else + throw(ParseError("No matching rule for export_csv_config")) + end + end end return nothing end function pretty_export_csv_path(pp::PrettyPrinter, msg::String) - flat1274 = try_flat(pp, msg, pretty_export_csv_path) - if !isnothing(flat1274) - write(pp, flat1274) + flat1291 = try_flat(pp, msg, pretty_export_csv_path) + if !isnothing(flat1291) + write(pp, flat1291) return nothing else - fields1273 = msg + fields1290 = msg write(pp, "(path") indent_sexp!(pp) newline(pp) - write(pp, format_string(pp, fields1273)) + write(pp, format_string(pp, fields1290)) dedent!(pp) write(pp, ")") end return nothing end -function pretty_export_csv_columns(pp::PrettyPrinter, msg::Vector{Proto.ExportCSVColumn}) - flat1278 = try_flat(pp, msg, pretty_export_csv_columns) - if !isnothing(flat1278) - write(pp, flat1278) +function pretty_export_csv_source(pp::PrettyPrinter, msg::Proto.ExportCSVSource) + flat1298 = try_flat(pp, msg, pretty_export_csv_source) + if !isnothing(flat1298) + write(pp, flat1298) return nothing else - fields1275 = msg - write(pp, "(columns") - indent_sexp!(pp) - if !isempty(fields1275) - newline(pp) - for (i1428, elem1276) in enumerate(fields1275) - i1277 = i1428 - 1 - if (i1277 > 0) - newline(pp) + _dollar_dollar = msg + if _has_proto_field(_dollar_dollar, Symbol("gnf_columns")) + _t1454 = _get_oneof_field(_dollar_dollar, :gnf_columns).columns + else + _t1454 = nothing + end + deconstruct_result1294 = _t1454 + if !isnothing(deconstruct_result1294) + unwrapped1295 = deconstruct_result1294 + write(pp, "(gnf_columns") + indent_sexp!(pp) + if !isempty(unwrapped1295) + newline(pp) + for (i1455, elem1296) in enumerate(unwrapped1295) + i1297 = i1455 - 1 + if (i1297 > 0) + newline(pp) + end + pretty_export_csv_column(pp, elem1296) end - pretty_export_csv_column(pp, elem1276) + end + dedent!(pp) + write(pp, ")") + else + _dollar_dollar = msg + if _has_proto_field(_dollar_dollar, Symbol("table_def")) + _t1456 = _get_oneof_field(_dollar_dollar, :table_def) + else + _t1456 = nothing + end + deconstruct_result1292 = _t1456 + if !isnothing(deconstruct_result1292) + unwrapped1293 = deconstruct_result1292 + write(pp, "(table_def") + indent_sexp!(pp) + newline(pp) + pretty_relation_id(pp, unwrapped1293) + dedent!(pp) + write(pp, ")") + else + throw(ParseError("No matching rule for export_csv_source")) end end - dedent!(pp) - write(pp, ")") end return nothing end function pretty_export_csv_column(pp::PrettyPrinter, msg::Proto.ExportCSVColumn) - flat1283 = try_flat(pp, msg, pretty_export_csv_column) - if !isnothing(flat1283) - write(pp, flat1283) + flat1303 = try_flat(pp, msg, pretty_export_csv_column) + if !isnothing(flat1303) + write(pp, flat1303) return nothing else _dollar_dollar = msg - fields1279 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) - unwrapped_fields1280 = fields1279 + fields1299 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) + unwrapped_fields1300 = fields1299 write(pp, "(column") indent_sexp!(pp) newline(pp) - field1281 = unwrapped_fields1280[1] - write(pp, format_string(pp, field1281)) + field1301 = unwrapped_fields1300[1] + write(pp, format_string(pp, field1301)) newline(pp) - field1282 = unwrapped_fields1280[2] - pretty_relation_id(pp, field1282) + field1302 = unwrapped_fields1300[2] + pretty_relation_id(pp, field1302) + dedent!(pp) + write(pp, ")") + end + return nothing +end + +function pretty_export_csv_columns_list(pp::PrettyPrinter, msg::Vector{Proto.ExportCSVColumn}) + flat1307 = try_flat(pp, msg, pretty_export_csv_columns_list) + if !isnothing(flat1307) + write(pp, flat1307) + return nothing + else + fields1304 = msg + write(pp, "(columns") + indent_sexp!(pp) + if !isempty(fields1304) + newline(pp) + for (i1457, elem1305) in enumerate(fields1304) + i1306 = i1457 - 1 + if (i1306 > 0) + newline(pp) + end + pretty_export_csv_column(pp, elem1305) + end + end dedent!(pp) write(pp, ")") end @@ -4074,12 +4164,12 @@ end function pretty_debug_info(pp::PrettyPrinter, msg::Proto.DebugInfo) write(pp, "(debug_info") indent_sexp!(pp) - for (i1466, _rid) in enumerate(msg.ids) - _idx = i1466 - 1 + for (i1496, _rid) in enumerate(msg.ids) + _idx = i1496 - 1 newline(pp) write(pp, "(") - _t1467 = Proto.UInt128Value(low=_rid.id_low, high=_rid.id_high) - _pprint_dispatch(pp, _t1467) + _t1497 = Proto.UInt128Value(low=_rid.id_low, high=_rid.id_high) + _pprint_dispatch(pp, _t1497) write(pp, " ") write(pp, format_string(pp, msg.orig_names[_idx + 1])) write(pp, ")") @@ -4151,8 +4241,8 @@ function pretty_functional_dependency(pp::PrettyPrinter, msg::Proto.FunctionalDe _pprint_dispatch(pp, msg.guard) newline(pp) write(pp, ":keys (") - for (i1468, _elem) in enumerate(msg.keys) - _idx = i1468 - 1 + for (i1498, _elem) in enumerate(msg.keys) + _idx = i1498 - 1 if (_idx > 0) write(pp, " ") end @@ -4161,8 +4251,8 @@ function pretty_functional_dependency(pp::PrettyPrinter, msg::Proto.FunctionalDe write(pp, ")") newline(pp) write(pp, ":values (") - for (i1469, _elem) in enumerate(msg.values) - _idx = i1469 - 1 + for (i1499, _elem) in enumerate(msg.values) + _idx = i1499 - 1 if (_idx > 0) write(pp, " ") end @@ -4188,6 +4278,23 @@ function pretty_u_int128_value(pp::PrettyPrinter, msg::Proto.UInt128Value) return nothing end +function pretty_export_csv_columns(pp::PrettyPrinter, msg::Proto.ExportCSVColumns) + write(pp, "(export_csv_columns") + indent_sexp!(pp) + newline(pp) + write(pp, ":columns (") + for (i1500, _elem) in enumerate(msg.columns) + _idx = i1500 - 1 + if (_idx > 0) + write(pp, " ") + end + _pprint_dispatch(pp, _elem) + end + write(pp, "))") + dedent!(pp) + return nothing +end + function pretty_ivm_config(pp::PrettyPrinter, msg::Proto.IVMConfig) write(pp, "(ivm_config") indent_sexp!(pp) @@ -4315,8 +4422,9 @@ _pprint_dispatch(pp::PrettyPrinter, x::Proto.WhatIf) = pretty_what_if(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.Abort) = pretty_abort(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.Export) = pretty_export(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.ExportCSVConfig) = pretty_export_csv_config(pp, x) -_pprint_dispatch(pp::PrettyPrinter, x::Vector{Proto.ExportCSVColumn}) = pretty_export_csv_columns(pp, x) +_pprint_dispatch(pp::PrettyPrinter, x::Proto.ExportCSVSource) = pretty_export_csv_source(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.ExportCSVColumn) = pretty_export_csv_column(pp, x) +_pprint_dispatch(pp::PrettyPrinter, x::Vector{Proto.ExportCSVColumn}) = pretty_export_csv_columns_list(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.DebugInfo) = pretty_debug_info(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.BeTreeConfig) = pretty_be_tree_config(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.BeTreeLocator) = pretty_be_tree_locator(pp, x) @@ -4325,6 +4433,7 @@ _pprint_dispatch(pp::PrettyPrinter, x::Proto.FunctionalDependency) = pretty_func _pprint_dispatch(pp::PrettyPrinter, x::Proto.Int128Value) = pretty_int128_value(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.MissingValue) = pretty_missing_value(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.UInt128Value) = pretty_u_int128_value(pp, x) +_pprint_dispatch(pp::PrettyPrinter, x::Proto.ExportCSVColumns) = pretty_export_csv_columns(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.IVMConfig) = pretty_ivm_config(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.MaintenanceLevel.T) = pretty_maintenance_level(pp, x) diff --git a/sdks/python/src/lqp/gen/parser.py b/sdks/python/src/lqp/gen/parser.py index 2199507e..5788f9b9 100644 --- a/sdks/python/src/lqp/gen/parser.py +++ b/sdks/python/src/lqp/gen/parser.py @@ -298,177 +298,179 @@ def relation_id_to_uint128(self, msg): def _extract_value_int32(self, value: Optional[logic_pb2.Value], default: int) -> int: if value is not None: assert value is not None - _t1339 = value.HasField("int_value") + _t1378 = value.HasField("int_value") else: - _t1339 = False - if _t1339: + _t1378 = False + if _t1378: assert value is not None return int(value.int_value) else: - _t1340 = None + _t1379 = None return int(default) def _extract_value_int64(self, value: Optional[logic_pb2.Value], default: int) -> int: if value is not None: assert value is not None - _t1341 = value.HasField("int_value") + _t1380 = value.HasField("int_value") else: - _t1341 = False - if _t1341: + _t1380 = False + if _t1380: assert value is not None return value.int_value else: - _t1342 = None + _t1381 = None return default def _extract_value_string(self, value: Optional[logic_pb2.Value], default: str) -> str: if value is not None: assert value is not None - _t1343 = value.HasField("string_value") + _t1382 = value.HasField("string_value") else: - _t1343 = False - if _t1343: + _t1382 = False + if _t1382: assert value is not None return value.string_value else: - _t1344 = None + _t1383 = None return default def _extract_value_boolean(self, value: Optional[logic_pb2.Value], default: bool) -> bool: if value is not None: assert value is not None - _t1345 = value.HasField("boolean_value") + _t1384 = value.HasField("boolean_value") else: - _t1345 = False - if _t1345: + _t1384 = False + if _t1384: assert value is not None return value.boolean_value else: - _t1346 = None + _t1385 = None return default def _extract_value_string_list(self, value: Optional[logic_pb2.Value], default: Sequence[str]) -> Sequence[str]: if value is not None: assert value is not None - _t1347 = value.HasField("string_value") + _t1386 = value.HasField("string_value") else: - _t1347 = False - if _t1347: + _t1386 = False + if _t1386: assert value is not None return [value.string_value] else: - _t1348 = None + _t1387 = None return default def _try_extract_value_int64(self, value: Optional[logic_pb2.Value]) -> Optional[int]: if value is not None: assert value is not None - _t1349 = value.HasField("int_value") + _t1388 = value.HasField("int_value") else: - _t1349 = False - if _t1349: + _t1388 = False + if _t1388: assert value is not None return value.int_value else: - _t1350 = None + _t1389 = None return None def _try_extract_value_float64(self, value: Optional[logic_pb2.Value]) -> Optional[float]: if value is not None: assert value is not None - _t1351 = value.HasField("float_value") + _t1390 = value.HasField("float_value") else: - _t1351 = False - if _t1351: + _t1390 = False + if _t1390: assert value is not None return value.float_value else: - _t1352 = None + _t1391 = None return None def _try_extract_value_bytes(self, value: Optional[logic_pb2.Value]) -> Optional[bytes]: if value is not None: assert value is not None - _t1353 = value.HasField("string_value") + _t1392 = value.HasField("string_value") else: - _t1353 = False - if _t1353: + _t1392 = False + if _t1392: assert value is not None return value.string_value.encode() else: - _t1354 = None + _t1393 = None return None def _try_extract_value_uint128(self, value: Optional[logic_pb2.Value]) -> Optional[logic_pb2.UInt128Value]: if value is not None: assert value is not None - _t1355 = value.HasField("uint128_value") + _t1394 = value.HasField("uint128_value") else: - _t1355 = False - if _t1355: + _t1394 = False + if _t1394: assert value is not None return value.uint128_value else: - _t1356 = None + _t1395 = None return None def construct_csv_config(self, config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> logic_pb2.CSVConfig: config = dict(config_dict) - _t1357 = self._extract_value_int32(config.get("csv_header_row"), 1) - header_row = _t1357 - _t1358 = self._extract_value_int64(config.get("csv_skip"), 0) - skip = _t1358 - _t1359 = self._extract_value_string(config.get("csv_new_line"), "") - new_line = _t1359 - _t1360 = self._extract_value_string(config.get("csv_delimiter"), ",") - delimiter = _t1360 - _t1361 = self._extract_value_string(config.get("csv_quotechar"), '"') - quotechar = _t1361 - _t1362 = self._extract_value_string(config.get("csv_escapechar"), '"') - escapechar = _t1362 - _t1363 = self._extract_value_string(config.get("csv_comment"), "") - comment = _t1363 - _t1364 = self._extract_value_string_list(config.get("csv_missing_strings"), []) - missing_strings = _t1364 - _t1365 = self._extract_value_string(config.get("csv_decimal_separator"), ".") - decimal_separator = _t1365 - _t1366 = self._extract_value_string(config.get("csv_encoding"), "utf-8") - encoding = _t1366 - _t1367 = self._extract_value_string(config.get("csv_compression"), "auto") - compression = _t1367 - _t1368 = logic_pb2.CSVConfig(header_row=header_row, skip=skip, new_line=new_line, delimiter=delimiter, quotechar=quotechar, escapechar=escapechar, comment=comment, missing_strings=missing_strings, decimal_separator=decimal_separator, encoding=encoding, compression=compression) - return _t1368 + _t1396 = self._extract_value_int32(config.get("csv_header_row"), 1) + header_row = _t1396 + _t1397 = self._extract_value_int64(config.get("csv_skip"), 0) + skip = _t1397 + _t1398 = self._extract_value_string(config.get("csv_new_line"), "") + new_line = _t1398 + _t1399 = self._extract_value_string(config.get("csv_delimiter"), ",") + delimiter = _t1399 + _t1400 = self._extract_value_string(config.get("csv_quotechar"), '"') + quotechar = _t1400 + _t1401 = self._extract_value_string(config.get("csv_escapechar"), '"') + escapechar = _t1401 + _t1402 = self._extract_value_string(config.get("csv_comment"), "") + comment = _t1402 + _t1403 = self._extract_value_string_list(config.get("csv_missing_strings"), []) + missing_strings = _t1403 + _t1404 = self._extract_value_string(config.get("csv_decimal_separator"), ".") + decimal_separator = _t1404 + _t1405 = self._extract_value_string(config.get("csv_encoding"), "utf-8") + encoding = _t1405 + _t1406 = self._extract_value_string(config.get("csv_compression"), "auto") + compression = _t1406 + _t1407 = self._extract_value_int64(config.get("csv_partition_size_mb"), 0) + partition_size_mb = _t1407 + _t1408 = logic_pb2.CSVConfig(header_row=header_row, skip=skip, new_line=new_line, delimiter=delimiter, quotechar=quotechar, escapechar=escapechar, comment=comment, missing_strings=missing_strings, decimal_separator=decimal_separator, encoding=encoding, compression=compression, partition_size_mb=partition_size_mb) + return _t1408 def construct_betree_info(self, key_types: Sequence[logic_pb2.Type], value_types: Sequence[logic_pb2.Type], config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> logic_pb2.BeTreeInfo: config = dict(config_dict) - _t1369 = self._try_extract_value_float64(config.get("betree_config_epsilon")) - epsilon = _t1369 - _t1370 = self._try_extract_value_int64(config.get("betree_config_max_pivots")) - max_pivots = _t1370 - _t1371 = self._try_extract_value_int64(config.get("betree_config_max_deltas")) - max_deltas = _t1371 - _t1372 = self._try_extract_value_int64(config.get("betree_config_max_leaf")) - max_leaf = _t1372 - _t1373 = logic_pb2.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) - storage_config = _t1373 - _t1374 = self._try_extract_value_uint128(config.get("betree_locator_root_pageid")) - root_pageid = _t1374 - _t1375 = self._try_extract_value_bytes(config.get("betree_locator_inline_data")) - inline_data = _t1375 - _t1376 = self._try_extract_value_int64(config.get("betree_locator_element_count")) - element_count = _t1376 - _t1377 = self._try_extract_value_int64(config.get("betree_locator_tree_height")) - tree_height = _t1377 - _t1378 = logic_pb2.BeTreeLocator(root_pageid=root_pageid, inline_data=inline_data, element_count=element_count, tree_height=tree_height) - relation_locator = _t1378 - _t1379 = logic_pb2.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) - return _t1379 + _t1409 = self._try_extract_value_float64(config.get("betree_config_epsilon")) + epsilon = _t1409 + _t1410 = self._try_extract_value_int64(config.get("betree_config_max_pivots")) + max_pivots = _t1410 + _t1411 = self._try_extract_value_int64(config.get("betree_config_max_deltas")) + max_deltas = _t1411 + _t1412 = self._try_extract_value_int64(config.get("betree_config_max_leaf")) + max_leaf = _t1412 + _t1413 = logic_pb2.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) + storage_config = _t1413 + _t1414 = self._try_extract_value_uint128(config.get("betree_locator_root_pageid")) + root_pageid = _t1414 + _t1415 = self._try_extract_value_bytes(config.get("betree_locator_inline_data")) + inline_data = _t1415 + _t1416 = self._try_extract_value_int64(config.get("betree_locator_element_count")) + element_count = _t1416 + _t1417 = self._try_extract_value_int64(config.get("betree_locator_tree_height")) + tree_height = _t1417 + _t1418 = logic_pb2.BeTreeLocator(root_pageid=root_pageid, inline_data=inline_data, element_count=element_count, tree_height=tree_height) + relation_locator = _t1418 + _t1419 = logic_pb2.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) + return _t1419 def default_configure(self) -> transactions_pb2.Configure: - _t1380 = transactions_pb2.IVMConfig(level=transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) - ivm_config = _t1380 - _t1381 = transactions_pb2.Configure(semantics_version=0, ivm_config=ivm_config) - return _t1381 + _t1420 = transactions_pb2.IVMConfig(level=transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) + ivm_config = _t1420 + _t1421 = transactions_pb2.Configure(semantics_version=0, ivm_config=ivm_config) + return _t1421 def construct_configure(self, config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> transactions_pb2.Configure: config = dict(config_dict) @@ -485,31 +487,35 @@ def construct_configure(self, config_dict: Sequence[tuple[str, logic_pb2.Value]] maintenance_level = transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_ALL else: maintenance_level = transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF - _t1382 = transactions_pb2.IVMConfig(level=maintenance_level) - ivm_config = _t1382 - _t1383 = self._extract_value_int64(config.get("semantics_version"), 0) - semantics_version = _t1383 - _t1384 = transactions_pb2.Configure(semantics_version=semantics_version, ivm_config=ivm_config) - return _t1384 - - def export_csv_config(self, path: str, columns: Sequence[transactions_pb2.ExportCSVColumn], config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> transactions_pb2.ExportCSVConfig: + _t1422 = transactions_pb2.IVMConfig(level=maintenance_level) + ivm_config = _t1422 + _t1423 = self._extract_value_int64(config.get("semantics_version"), 0) + semantics_version = _t1423 + _t1424 = transactions_pb2.Configure(semantics_version=semantics_version, ivm_config=ivm_config) + return _t1424 + + def construct_export_csv_config(self, path: str, columns: Sequence[transactions_pb2.ExportCSVColumn], config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> transactions_pb2.ExportCSVConfig: config = dict(config_dict) - _t1385 = self._extract_value_int64(config.get("partition_size"), 0) - partition_size = _t1385 - _t1386 = self._extract_value_string(config.get("compression"), "") - compression = _t1386 - _t1387 = self._extract_value_boolean(config.get("syntax_header_row"), True) - syntax_header_row = _t1387 - _t1388 = self._extract_value_string(config.get("syntax_missing_string"), "") - syntax_missing_string = _t1388 - _t1389 = self._extract_value_string(config.get("syntax_delim"), ",") - syntax_delim = _t1389 - _t1390 = self._extract_value_string(config.get("syntax_quotechar"), '"') - syntax_quotechar = _t1390 - _t1391 = self._extract_value_string(config.get("syntax_escapechar"), "\\") - syntax_escapechar = _t1391 - _t1392 = transactions_pb2.ExportCSVConfig(path=path, data_columns=columns, partition_size=partition_size, compression=compression, syntax_header_row=syntax_header_row, syntax_missing_string=syntax_missing_string, syntax_delim=syntax_delim, syntax_quotechar=syntax_quotechar, syntax_escapechar=syntax_escapechar) - return _t1392 + _t1425 = self._extract_value_int64(config.get("partition_size"), 0) + partition_size = _t1425 + _t1426 = self._extract_value_string(config.get("compression"), "") + compression = _t1426 + _t1427 = self._extract_value_boolean(config.get("syntax_header_row"), True) + syntax_header_row = _t1427 + _t1428 = self._extract_value_string(config.get("syntax_missing_string"), "") + syntax_missing_string = _t1428 + _t1429 = self._extract_value_string(config.get("syntax_delim"), ",") + syntax_delim = _t1429 + _t1430 = self._extract_value_string(config.get("syntax_quotechar"), '"') + syntax_quotechar = _t1430 + _t1431 = self._extract_value_string(config.get("syntax_escapechar"), "\\") + syntax_escapechar = _t1431 + _t1432 = transactions_pb2.ExportCSVConfig(path=path, data_columns=columns, partition_size=partition_size, compression=compression, syntax_header_row=syntax_header_row, syntax_missing_string=syntax_missing_string, syntax_delim=syntax_delim, syntax_quotechar=syntax_quotechar, syntax_escapechar=syntax_escapechar) + return _t1432 + + def construct_export_csv_config_with_source(self, path: str, csv_source: transactions_pb2.ExportCSVSource, csv_config: logic_pb2.CSVConfig) -> transactions_pb2.ExportCSVConfig: + _t1433 = transactions_pb2.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) + return _t1433 # --- Parse methods --- @@ -517,2383 +523,2457 @@ def parse_transaction(self) -> transactions_pb2.Transaction: self.consume_literal("(") self.consume_literal("transaction") if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("configure", 1)): - _t733 = self.parse_configure() - _t732 = _t733 + _t753 = self.parse_configure() + _t752 = _t753 else: - _t732 = None - configure366 = _t732 + _t752 = None + configure376 = _t752 if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("sync", 1)): - _t735 = self.parse_sync() - _t734 = _t735 - else: - _t734 = None - sync367 = _t734 - xs368 = [] - cond369 = self.match_lookahead_literal("(", 0) - while cond369: - _t736 = self.parse_epoch() - item370 = _t736 - xs368.append(item370) - cond369 = self.match_lookahead_literal("(", 0) - epochs371 = xs368 - self.consume_literal(")") - _t737 = self.default_configure() - _t738 = transactions_pb2.Transaction(epochs=epochs371, configure=(configure366 if configure366 is not None else _t737), sync=sync367) - return _t738 + _t755 = self.parse_sync() + _t754 = _t755 + else: + _t754 = None + sync377 = _t754 + xs378 = [] + cond379 = self.match_lookahead_literal("(", 0) + while cond379: + _t756 = self.parse_epoch() + item380 = _t756 + xs378.append(item380) + cond379 = self.match_lookahead_literal("(", 0) + epochs381 = xs378 + self.consume_literal(")") + _t757 = self.default_configure() + _t758 = transactions_pb2.Transaction(epochs=epochs381, configure=(configure376 if configure376 is not None else _t757), sync=sync377) + return _t758 def parse_configure(self) -> transactions_pb2.Configure: self.consume_literal("(") self.consume_literal("configure") - _t739 = self.parse_config_dict() - config_dict372 = _t739 + _t759 = self.parse_config_dict() + config_dict382 = _t759 self.consume_literal(")") - _t740 = self.construct_configure(config_dict372) - return _t740 + _t760 = self.construct_configure(config_dict382) + return _t760 def parse_config_dict(self) -> Sequence[tuple[str, logic_pb2.Value]]: self.consume_literal("{") - xs373 = [] - cond374 = self.match_lookahead_literal(":", 0) - while cond374: - _t741 = self.parse_config_key_value() - item375 = _t741 - xs373.append(item375) - cond374 = self.match_lookahead_literal(":", 0) - config_key_values376 = xs373 + xs383 = [] + cond384 = self.match_lookahead_literal(":", 0) + while cond384: + _t761 = self.parse_config_key_value() + item385 = _t761 + xs383.append(item385) + cond384 = self.match_lookahead_literal(":", 0) + config_key_values386 = xs383 self.consume_literal("}") - return config_key_values376 + return config_key_values386 def parse_config_key_value(self) -> tuple[str, logic_pb2.Value]: self.consume_literal(":") - symbol377 = self.consume_terminal("SYMBOL") - _t742 = self.parse_value() - value378 = _t742 - return (symbol377, value378,) + symbol387 = self.consume_terminal("SYMBOL") + _t762 = self.parse_value() + value388 = _t762 + return (symbol387, value388,) def parse_value(self) -> logic_pb2.Value: if self.match_lookahead_literal("true", 0): - _t743 = 9 + _t763 = 9 else: if self.match_lookahead_literal("missing", 0): - _t744 = 8 + _t764 = 8 else: if self.match_lookahead_literal("false", 0): - _t745 = 9 + _t765 = 9 else: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("datetime", 1): - _t747 = 1 + _t767 = 1 else: if self.match_lookahead_literal("date", 1): - _t748 = 0 + _t768 = 0 else: - _t748 = -1 - _t747 = _t748 - _t746 = _t747 + _t768 = -1 + _t767 = _t768 + _t766 = _t767 else: if self.match_lookahead_terminal("UINT128", 0): - _t749 = 5 + _t769 = 5 else: if self.match_lookahead_terminal("STRING", 0): - _t750 = 2 + _t770 = 2 else: if self.match_lookahead_terminal("INT128", 0): - _t751 = 6 + _t771 = 6 else: if self.match_lookahead_terminal("INT", 0): - _t752 = 3 + _t772 = 3 else: if self.match_lookahead_terminal("FLOAT", 0): - _t753 = 4 + _t773 = 4 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t754 = 7 + _t774 = 7 else: - _t754 = -1 - _t753 = _t754 - _t752 = _t753 - _t751 = _t752 - _t750 = _t751 - _t749 = _t750 - _t746 = _t749 - _t745 = _t746 - _t744 = _t745 - _t743 = _t744 - prediction379 = _t743 - if prediction379 == 9: - _t756 = self.parse_boolean_value() - boolean_value388 = _t756 - _t757 = logic_pb2.Value(boolean_value=boolean_value388) - _t755 = _t757 - else: - if prediction379 == 8: + _t774 = -1 + _t773 = _t774 + _t772 = _t773 + _t771 = _t772 + _t770 = _t771 + _t769 = _t770 + _t766 = _t769 + _t765 = _t766 + _t764 = _t765 + _t763 = _t764 + prediction389 = _t763 + if prediction389 == 9: + _t776 = self.parse_boolean_value() + boolean_value398 = _t776 + _t777 = logic_pb2.Value(boolean_value=boolean_value398) + _t775 = _t777 + else: + if prediction389 == 8: self.consume_literal("missing") - _t759 = logic_pb2.MissingValue() - _t760 = logic_pb2.Value(missing_value=_t759) - _t758 = _t760 + _t779 = logic_pb2.MissingValue() + _t780 = logic_pb2.Value(missing_value=_t779) + _t778 = _t780 else: - if prediction379 == 7: - decimal387 = self.consume_terminal("DECIMAL") - _t762 = logic_pb2.Value(decimal_value=decimal387) - _t761 = _t762 + if prediction389 == 7: + decimal397 = self.consume_terminal("DECIMAL") + _t782 = logic_pb2.Value(decimal_value=decimal397) + _t781 = _t782 else: - if prediction379 == 6: - int128386 = self.consume_terminal("INT128") - _t764 = logic_pb2.Value(int128_value=int128386) - _t763 = _t764 + if prediction389 == 6: + int128396 = self.consume_terminal("INT128") + _t784 = logic_pb2.Value(int128_value=int128396) + _t783 = _t784 else: - if prediction379 == 5: - uint128385 = self.consume_terminal("UINT128") - _t766 = logic_pb2.Value(uint128_value=uint128385) - _t765 = _t766 + if prediction389 == 5: + uint128395 = self.consume_terminal("UINT128") + _t786 = logic_pb2.Value(uint128_value=uint128395) + _t785 = _t786 else: - if prediction379 == 4: - float384 = self.consume_terminal("FLOAT") - _t768 = logic_pb2.Value(float_value=float384) - _t767 = _t768 + if prediction389 == 4: + float394 = self.consume_terminal("FLOAT") + _t788 = logic_pb2.Value(float_value=float394) + _t787 = _t788 else: - if prediction379 == 3: - int383 = self.consume_terminal("INT") - _t770 = logic_pb2.Value(int_value=int383) - _t769 = _t770 + if prediction389 == 3: + int393 = self.consume_terminal("INT") + _t790 = logic_pb2.Value(int_value=int393) + _t789 = _t790 else: - if prediction379 == 2: - string382 = self.consume_terminal("STRING") - _t772 = logic_pb2.Value(string_value=string382) - _t771 = _t772 + if prediction389 == 2: + string392 = self.consume_terminal("STRING") + _t792 = logic_pb2.Value(string_value=string392) + _t791 = _t792 else: - if prediction379 == 1: - _t774 = self.parse_datetime() - datetime381 = _t774 - _t775 = logic_pb2.Value(datetime_value=datetime381) - _t773 = _t775 + if prediction389 == 1: + _t794 = self.parse_datetime() + datetime391 = _t794 + _t795 = logic_pb2.Value(datetime_value=datetime391) + _t793 = _t795 else: - if prediction379 == 0: - _t777 = self.parse_date() - date380 = _t777 - _t778 = logic_pb2.Value(date_value=date380) - _t776 = _t778 + if prediction389 == 0: + _t797 = self.parse_date() + date390 = _t797 + _t798 = logic_pb2.Value(date_value=date390) + _t796 = _t798 else: raise ParseError("Unexpected token in value" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t773 = _t776 - _t771 = _t773 - _t769 = _t771 - _t767 = _t769 - _t765 = _t767 - _t763 = _t765 - _t761 = _t763 - _t758 = _t761 - _t755 = _t758 - return _t755 + _t793 = _t796 + _t791 = _t793 + _t789 = _t791 + _t787 = _t789 + _t785 = _t787 + _t783 = _t785 + _t781 = _t783 + _t778 = _t781 + _t775 = _t778 + return _t775 def parse_date(self) -> logic_pb2.DateValue: self.consume_literal("(") self.consume_literal("date") - int389 = self.consume_terminal("INT") - int_3390 = self.consume_terminal("INT") - int_4391 = self.consume_terminal("INT") + int399 = self.consume_terminal("INT") + int_3400 = self.consume_terminal("INT") + int_4401 = self.consume_terminal("INT") self.consume_literal(")") - _t779 = logic_pb2.DateValue(year=int(int389), month=int(int_3390), day=int(int_4391)) - return _t779 + _t799 = logic_pb2.DateValue(year=int(int399), month=int(int_3400), day=int(int_4401)) + return _t799 def parse_datetime(self) -> logic_pb2.DateTimeValue: self.consume_literal("(") self.consume_literal("datetime") - int392 = self.consume_terminal("INT") - int_3393 = self.consume_terminal("INT") - int_4394 = self.consume_terminal("INT") - int_5395 = self.consume_terminal("INT") - int_6396 = self.consume_terminal("INT") - int_7397 = self.consume_terminal("INT") + int402 = self.consume_terminal("INT") + int_3403 = self.consume_terminal("INT") + int_4404 = self.consume_terminal("INT") + int_5405 = self.consume_terminal("INT") + int_6406 = self.consume_terminal("INT") + int_7407 = self.consume_terminal("INT") if self.match_lookahead_terminal("INT", 0): - _t780 = self.consume_terminal("INT") + _t800 = self.consume_terminal("INT") else: - _t780 = None - int_8398 = _t780 + _t800 = None + int_8408 = _t800 self.consume_literal(")") - _t781 = logic_pb2.DateTimeValue(year=int(int392), month=int(int_3393), day=int(int_4394), hour=int(int_5395), minute=int(int_6396), second=int(int_7397), microsecond=int((int_8398 if int_8398 is not None else 0))) - return _t781 + _t801 = logic_pb2.DateTimeValue(year=int(int402), month=int(int_3403), day=int(int_4404), hour=int(int_5405), minute=int(int_6406), second=int(int_7407), microsecond=int((int_8408 if int_8408 is not None else 0))) + return _t801 def parse_boolean_value(self) -> bool: if self.match_lookahead_literal("true", 0): - _t782 = 0 + _t802 = 0 else: if self.match_lookahead_literal("false", 0): - _t783 = 1 + _t803 = 1 else: - _t783 = -1 - _t782 = _t783 - prediction399 = _t782 - if prediction399 == 1: + _t803 = -1 + _t802 = _t803 + prediction409 = _t802 + if prediction409 == 1: self.consume_literal("false") - _t784 = False + _t804 = False else: - if prediction399 == 0: + if prediction409 == 0: self.consume_literal("true") - _t785 = True + _t805 = True else: raise ParseError("Unexpected token in boolean_value" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t784 = _t785 - return _t784 + _t804 = _t805 + return _t804 def parse_sync(self) -> transactions_pb2.Sync: self.consume_literal("(") self.consume_literal("sync") - xs400 = [] - cond401 = self.match_lookahead_literal(":", 0) - while cond401: - _t786 = self.parse_fragment_id() - item402 = _t786 - xs400.append(item402) - cond401 = self.match_lookahead_literal(":", 0) - fragment_ids403 = xs400 - self.consume_literal(")") - _t787 = transactions_pb2.Sync(fragments=fragment_ids403) - return _t787 + xs410 = [] + cond411 = self.match_lookahead_literal(":", 0) + while cond411: + _t806 = self.parse_fragment_id() + item412 = _t806 + xs410.append(item412) + cond411 = self.match_lookahead_literal(":", 0) + fragment_ids413 = xs410 + self.consume_literal(")") + _t807 = transactions_pb2.Sync(fragments=fragment_ids413) + return _t807 def parse_fragment_id(self) -> fragments_pb2.FragmentId: self.consume_literal(":") - symbol404 = self.consume_terminal("SYMBOL") - return fragments_pb2.FragmentId(id=symbol404.encode()) + symbol414 = self.consume_terminal("SYMBOL") + return fragments_pb2.FragmentId(id=symbol414.encode()) def parse_epoch(self) -> transactions_pb2.Epoch: self.consume_literal("(") self.consume_literal("epoch") if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("writes", 1)): - _t789 = self.parse_epoch_writes() - _t788 = _t789 + _t809 = self.parse_epoch_writes() + _t808 = _t809 else: - _t788 = None - epoch_writes405 = _t788 + _t808 = None + epoch_writes415 = _t808 if self.match_lookahead_literal("(", 0): - _t791 = self.parse_epoch_reads() - _t790 = _t791 + _t811 = self.parse_epoch_reads() + _t810 = _t811 else: - _t790 = None - epoch_reads406 = _t790 + _t810 = None + epoch_reads416 = _t810 self.consume_literal(")") - _t792 = transactions_pb2.Epoch(writes=(epoch_writes405 if epoch_writes405 is not None else []), reads=(epoch_reads406 if epoch_reads406 is not None else [])) - return _t792 + _t812 = transactions_pb2.Epoch(writes=(epoch_writes415 if epoch_writes415 is not None else []), reads=(epoch_reads416 if epoch_reads416 is not None else [])) + return _t812 def parse_epoch_writes(self) -> Sequence[transactions_pb2.Write]: self.consume_literal("(") self.consume_literal("writes") - xs407 = [] - cond408 = self.match_lookahead_literal("(", 0) - while cond408: - _t793 = self.parse_write() - item409 = _t793 - xs407.append(item409) - cond408 = self.match_lookahead_literal("(", 0) - writes410 = xs407 + xs417 = [] + cond418 = self.match_lookahead_literal("(", 0) + while cond418: + _t813 = self.parse_write() + item419 = _t813 + xs417.append(item419) + cond418 = self.match_lookahead_literal("(", 0) + writes420 = xs417 self.consume_literal(")") - return writes410 + return writes420 def parse_write(self) -> transactions_pb2.Write: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("undefine", 1): - _t795 = 1 + _t815 = 1 else: if self.match_lookahead_literal("snapshot", 1): - _t796 = 3 + _t816 = 3 else: if self.match_lookahead_literal("define", 1): - _t797 = 0 + _t817 = 0 else: if self.match_lookahead_literal("context", 1): - _t798 = 2 + _t818 = 2 else: - _t798 = -1 - _t797 = _t798 - _t796 = _t797 - _t795 = _t796 - _t794 = _t795 - else: - _t794 = -1 - prediction411 = _t794 - if prediction411 == 3: - _t800 = self.parse_snapshot() - snapshot415 = _t800 - _t801 = transactions_pb2.Write(snapshot=snapshot415) - _t799 = _t801 - else: - if prediction411 == 2: - _t803 = self.parse_context() - context414 = _t803 - _t804 = transactions_pb2.Write(context=context414) - _t802 = _t804 + _t818 = -1 + _t817 = _t818 + _t816 = _t817 + _t815 = _t816 + _t814 = _t815 + else: + _t814 = -1 + prediction421 = _t814 + if prediction421 == 3: + _t820 = self.parse_snapshot() + snapshot425 = _t820 + _t821 = transactions_pb2.Write(snapshot=snapshot425) + _t819 = _t821 + else: + if prediction421 == 2: + _t823 = self.parse_context() + context424 = _t823 + _t824 = transactions_pb2.Write(context=context424) + _t822 = _t824 else: - if prediction411 == 1: - _t806 = self.parse_undefine() - undefine413 = _t806 - _t807 = transactions_pb2.Write(undefine=undefine413) - _t805 = _t807 + if prediction421 == 1: + _t826 = self.parse_undefine() + undefine423 = _t826 + _t827 = transactions_pb2.Write(undefine=undefine423) + _t825 = _t827 else: - if prediction411 == 0: - _t809 = self.parse_define() - define412 = _t809 - _t810 = transactions_pb2.Write(define=define412) - _t808 = _t810 + if prediction421 == 0: + _t829 = self.parse_define() + define422 = _t829 + _t830 = transactions_pb2.Write(define=define422) + _t828 = _t830 else: raise ParseError("Unexpected token in write" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t805 = _t808 - _t802 = _t805 - _t799 = _t802 - return _t799 + _t825 = _t828 + _t822 = _t825 + _t819 = _t822 + return _t819 def parse_define(self) -> transactions_pb2.Define: self.consume_literal("(") self.consume_literal("define") - _t811 = self.parse_fragment() - fragment416 = _t811 + _t831 = self.parse_fragment() + fragment426 = _t831 self.consume_literal(")") - _t812 = transactions_pb2.Define(fragment=fragment416) - return _t812 + _t832 = transactions_pb2.Define(fragment=fragment426) + return _t832 def parse_fragment(self) -> fragments_pb2.Fragment: self.consume_literal("(") self.consume_literal("fragment") - _t813 = self.parse_new_fragment_id() - new_fragment_id417 = _t813 - xs418 = [] - cond419 = self.match_lookahead_literal("(", 0) - while cond419: - _t814 = self.parse_declaration() - item420 = _t814 - xs418.append(item420) - cond419 = self.match_lookahead_literal("(", 0) - declarations421 = xs418 - self.consume_literal(")") - return self.construct_fragment(new_fragment_id417, declarations421) + _t833 = self.parse_new_fragment_id() + new_fragment_id427 = _t833 + xs428 = [] + cond429 = self.match_lookahead_literal("(", 0) + while cond429: + _t834 = self.parse_declaration() + item430 = _t834 + xs428.append(item430) + cond429 = self.match_lookahead_literal("(", 0) + declarations431 = xs428 + self.consume_literal(")") + return self.construct_fragment(new_fragment_id427, declarations431) def parse_new_fragment_id(self) -> fragments_pb2.FragmentId: - _t815 = self.parse_fragment_id() - fragment_id422 = _t815 - self.start_fragment(fragment_id422) - return fragment_id422 + _t835 = self.parse_fragment_id() + fragment_id432 = _t835 + self.start_fragment(fragment_id432) + return fragment_id432 def parse_declaration(self) -> logic_pb2.Declaration: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("functional_dependency", 1): - _t817 = 2 + _t837 = 2 else: if self.match_lookahead_literal("edb", 1): - _t818 = 3 + _t838 = 3 else: if self.match_lookahead_literal("def", 1): - _t819 = 0 + _t839 = 0 else: if self.match_lookahead_literal("csv_data", 1): - _t820 = 3 + _t840 = 3 else: if self.match_lookahead_literal("betree_relation", 1): - _t821 = 3 + _t841 = 3 else: if self.match_lookahead_literal("algorithm", 1): - _t822 = 1 + _t842 = 1 else: - _t822 = -1 - _t821 = _t822 - _t820 = _t821 - _t819 = _t820 - _t818 = _t819 - _t817 = _t818 - _t816 = _t817 - else: - _t816 = -1 - prediction423 = _t816 - if prediction423 == 3: - _t824 = self.parse_data() - data427 = _t824 - _t825 = logic_pb2.Declaration(data=data427) - _t823 = _t825 - else: - if prediction423 == 2: - _t827 = self.parse_constraint() - constraint426 = _t827 - _t828 = logic_pb2.Declaration(constraint=constraint426) - _t826 = _t828 + _t842 = -1 + _t841 = _t842 + _t840 = _t841 + _t839 = _t840 + _t838 = _t839 + _t837 = _t838 + _t836 = _t837 + else: + _t836 = -1 + prediction433 = _t836 + if prediction433 == 3: + _t844 = self.parse_data() + data437 = _t844 + _t845 = logic_pb2.Declaration(data=data437) + _t843 = _t845 + else: + if prediction433 == 2: + _t847 = self.parse_constraint() + constraint436 = _t847 + _t848 = logic_pb2.Declaration(constraint=constraint436) + _t846 = _t848 else: - if prediction423 == 1: - _t830 = self.parse_algorithm() - algorithm425 = _t830 - _t831 = logic_pb2.Declaration(algorithm=algorithm425) - _t829 = _t831 + if prediction433 == 1: + _t850 = self.parse_algorithm() + algorithm435 = _t850 + _t851 = logic_pb2.Declaration(algorithm=algorithm435) + _t849 = _t851 else: - if prediction423 == 0: - _t833 = self.parse_def() - def424 = _t833 - _t834 = logic_pb2.Declaration() - getattr(_t834, 'def').CopyFrom(def424) - _t832 = _t834 + if prediction433 == 0: + _t853 = self.parse_def() + def434 = _t853 + _t854 = logic_pb2.Declaration() + getattr(_t854, 'def').CopyFrom(def434) + _t852 = _t854 else: raise ParseError("Unexpected token in declaration" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t829 = _t832 - _t826 = _t829 - _t823 = _t826 - return _t823 + _t849 = _t852 + _t846 = _t849 + _t843 = _t846 + return _t843 def parse_def(self) -> logic_pb2.Def: self.consume_literal("(") self.consume_literal("def") - _t835 = self.parse_relation_id() - relation_id428 = _t835 - _t836 = self.parse_abstraction() - abstraction429 = _t836 + _t855 = self.parse_relation_id() + relation_id438 = _t855 + _t856 = self.parse_abstraction() + abstraction439 = _t856 if self.match_lookahead_literal("(", 0): - _t838 = self.parse_attrs() - _t837 = _t838 + _t858 = self.parse_attrs() + _t857 = _t858 else: - _t837 = None - attrs430 = _t837 + _t857 = None + attrs440 = _t857 self.consume_literal(")") - _t839 = logic_pb2.Def(name=relation_id428, body=abstraction429, attrs=(attrs430 if attrs430 is not None else [])) - return _t839 + _t859 = logic_pb2.Def(name=relation_id438, body=abstraction439, attrs=(attrs440 if attrs440 is not None else [])) + return _t859 def parse_relation_id(self) -> logic_pb2.RelationId: if self.match_lookahead_literal(":", 0): - _t840 = 0 + _t860 = 0 else: if self.match_lookahead_terminal("UINT128", 0): - _t841 = 1 + _t861 = 1 else: - _t841 = -1 - _t840 = _t841 - prediction431 = _t840 - if prediction431 == 1: - uint128433 = self.consume_terminal("UINT128") - _t842 = logic_pb2.RelationId(id_low=uint128433.low, id_high=uint128433.high) - else: - if prediction431 == 0: + _t861 = -1 + _t860 = _t861 + prediction441 = _t860 + if prediction441 == 1: + uint128443 = self.consume_terminal("UINT128") + _t862 = logic_pb2.RelationId(id_low=uint128443.low, id_high=uint128443.high) + else: + if prediction441 == 0: self.consume_literal(":") - symbol432 = self.consume_terminal("SYMBOL") - _t843 = self.relation_id_from_string(symbol432) + symbol442 = self.consume_terminal("SYMBOL") + _t863 = self.relation_id_from_string(symbol442) else: raise ParseError("Unexpected token in relation_id" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t842 = _t843 - return _t842 + _t862 = _t863 + return _t862 def parse_abstraction(self) -> logic_pb2.Abstraction: self.consume_literal("(") - _t844 = self.parse_bindings() - bindings434 = _t844 - _t845 = self.parse_formula() - formula435 = _t845 + _t864 = self.parse_bindings() + bindings444 = _t864 + _t865 = self.parse_formula() + formula445 = _t865 self.consume_literal(")") - _t846 = logic_pb2.Abstraction(vars=(list(bindings434[0]) + list(bindings434[1] if bindings434[1] is not None else [])), value=formula435) - return _t846 + _t866 = logic_pb2.Abstraction(vars=(list(bindings444[0]) + list(bindings444[1] if bindings444[1] is not None else [])), value=formula445) + return _t866 def parse_bindings(self) -> tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]: self.consume_literal("[") - xs436 = [] - cond437 = self.match_lookahead_terminal("SYMBOL", 0) - while cond437: - _t847 = self.parse_binding() - item438 = _t847 - xs436.append(item438) - cond437 = self.match_lookahead_terminal("SYMBOL", 0) - bindings439 = xs436 + xs446 = [] + cond447 = self.match_lookahead_terminal("SYMBOL", 0) + while cond447: + _t867 = self.parse_binding() + item448 = _t867 + xs446.append(item448) + cond447 = self.match_lookahead_terminal("SYMBOL", 0) + bindings449 = xs446 if self.match_lookahead_literal("|", 0): - _t849 = self.parse_value_bindings() - _t848 = _t849 + _t869 = self.parse_value_bindings() + _t868 = _t869 else: - _t848 = None - value_bindings440 = _t848 + _t868 = None + value_bindings450 = _t868 self.consume_literal("]") - return (bindings439, (value_bindings440 if value_bindings440 is not None else []),) + return (bindings449, (value_bindings450 if value_bindings450 is not None else []),) def parse_binding(self) -> logic_pb2.Binding: - symbol441 = self.consume_terminal("SYMBOL") + symbol451 = self.consume_terminal("SYMBOL") self.consume_literal("::") - _t850 = self.parse_type() - type442 = _t850 - _t851 = logic_pb2.Var(name=symbol441) - _t852 = logic_pb2.Binding(var=_t851, type=type442) - return _t852 + _t870 = self.parse_type() + type452 = _t870 + _t871 = logic_pb2.Var(name=symbol451) + _t872 = logic_pb2.Binding(var=_t871, type=type452) + return _t872 def parse_type(self) -> logic_pb2.Type: if self.match_lookahead_literal("UNKNOWN", 0): - _t853 = 0 + _t873 = 0 else: if self.match_lookahead_literal("UINT128", 0): - _t854 = 4 + _t874 = 4 else: if self.match_lookahead_literal("STRING", 0): - _t855 = 1 + _t875 = 1 else: if self.match_lookahead_literal("MISSING", 0): - _t856 = 8 + _t876 = 8 else: if self.match_lookahead_literal("INT128", 0): - _t857 = 5 + _t877 = 5 else: if self.match_lookahead_literal("INT", 0): - _t858 = 2 + _t878 = 2 else: if self.match_lookahead_literal("FLOAT", 0): - _t859 = 3 + _t879 = 3 else: if self.match_lookahead_literal("DATETIME", 0): - _t860 = 7 + _t880 = 7 else: if self.match_lookahead_literal("DATE", 0): - _t861 = 6 + _t881 = 6 else: if self.match_lookahead_literal("BOOLEAN", 0): - _t862 = 10 + _t882 = 10 else: if self.match_lookahead_literal("(", 0): - _t863 = 9 + _t883 = 9 else: - _t863 = -1 - _t862 = _t863 - _t861 = _t862 - _t860 = _t861 - _t859 = _t860 - _t858 = _t859 - _t857 = _t858 - _t856 = _t857 - _t855 = _t856 - _t854 = _t855 - _t853 = _t854 - prediction443 = _t853 - if prediction443 == 10: - _t865 = self.parse_boolean_type() - boolean_type454 = _t865 - _t866 = logic_pb2.Type(boolean_type=boolean_type454) - _t864 = _t866 - else: - if prediction443 == 9: - _t868 = self.parse_decimal_type() - decimal_type453 = _t868 - _t869 = logic_pb2.Type(decimal_type=decimal_type453) - _t867 = _t869 + _t883 = -1 + _t882 = _t883 + _t881 = _t882 + _t880 = _t881 + _t879 = _t880 + _t878 = _t879 + _t877 = _t878 + _t876 = _t877 + _t875 = _t876 + _t874 = _t875 + _t873 = _t874 + prediction453 = _t873 + if prediction453 == 10: + _t885 = self.parse_boolean_type() + boolean_type464 = _t885 + _t886 = logic_pb2.Type(boolean_type=boolean_type464) + _t884 = _t886 + else: + if prediction453 == 9: + _t888 = self.parse_decimal_type() + decimal_type463 = _t888 + _t889 = logic_pb2.Type(decimal_type=decimal_type463) + _t887 = _t889 else: - if prediction443 == 8: - _t871 = self.parse_missing_type() - missing_type452 = _t871 - _t872 = logic_pb2.Type(missing_type=missing_type452) - _t870 = _t872 + if prediction453 == 8: + _t891 = self.parse_missing_type() + missing_type462 = _t891 + _t892 = logic_pb2.Type(missing_type=missing_type462) + _t890 = _t892 else: - if prediction443 == 7: - _t874 = self.parse_datetime_type() - datetime_type451 = _t874 - _t875 = logic_pb2.Type(datetime_type=datetime_type451) - _t873 = _t875 + if prediction453 == 7: + _t894 = self.parse_datetime_type() + datetime_type461 = _t894 + _t895 = logic_pb2.Type(datetime_type=datetime_type461) + _t893 = _t895 else: - if prediction443 == 6: - _t877 = self.parse_date_type() - date_type450 = _t877 - _t878 = logic_pb2.Type(date_type=date_type450) - _t876 = _t878 + if prediction453 == 6: + _t897 = self.parse_date_type() + date_type460 = _t897 + _t898 = logic_pb2.Type(date_type=date_type460) + _t896 = _t898 else: - if prediction443 == 5: - _t880 = self.parse_int128_type() - int128_type449 = _t880 - _t881 = logic_pb2.Type(int128_type=int128_type449) - _t879 = _t881 + if prediction453 == 5: + _t900 = self.parse_int128_type() + int128_type459 = _t900 + _t901 = logic_pb2.Type(int128_type=int128_type459) + _t899 = _t901 else: - if prediction443 == 4: - _t883 = self.parse_uint128_type() - uint128_type448 = _t883 - _t884 = logic_pb2.Type(uint128_type=uint128_type448) - _t882 = _t884 + if prediction453 == 4: + _t903 = self.parse_uint128_type() + uint128_type458 = _t903 + _t904 = logic_pb2.Type(uint128_type=uint128_type458) + _t902 = _t904 else: - if prediction443 == 3: - _t886 = self.parse_float_type() - float_type447 = _t886 - _t887 = logic_pb2.Type(float_type=float_type447) - _t885 = _t887 + if prediction453 == 3: + _t906 = self.parse_float_type() + float_type457 = _t906 + _t907 = logic_pb2.Type(float_type=float_type457) + _t905 = _t907 else: - if prediction443 == 2: - _t889 = self.parse_int_type() - int_type446 = _t889 - _t890 = logic_pb2.Type(int_type=int_type446) - _t888 = _t890 + if prediction453 == 2: + _t909 = self.parse_int_type() + int_type456 = _t909 + _t910 = logic_pb2.Type(int_type=int_type456) + _t908 = _t910 else: - if prediction443 == 1: - _t892 = self.parse_string_type() - string_type445 = _t892 - _t893 = logic_pb2.Type(string_type=string_type445) - _t891 = _t893 + if prediction453 == 1: + _t912 = self.parse_string_type() + string_type455 = _t912 + _t913 = logic_pb2.Type(string_type=string_type455) + _t911 = _t913 else: - if prediction443 == 0: - _t895 = self.parse_unspecified_type() - unspecified_type444 = _t895 - _t896 = logic_pb2.Type(unspecified_type=unspecified_type444) - _t894 = _t896 + if prediction453 == 0: + _t915 = self.parse_unspecified_type() + unspecified_type454 = _t915 + _t916 = logic_pb2.Type(unspecified_type=unspecified_type454) + _t914 = _t916 else: raise ParseError("Unexpected token in type" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t891 = _t894 - _t888 = _t891 - _t885 = _t888 - _t882 = _t885 - _t879 = _t882 - _t876 = _t879 - _t873 = _t876 - _t870 = _t873 - _t867 = _t870 - _t864 = _t867 - return _t864 + _t911 = _t914 + _t908 = _t911 + _t905 = _t908 + _t902 = _t905 + _t899 = _t902 + _t896 = _t899 + _t893 = _t896 + _t890 = _t893 + _t887 = _t890 + _t884 = _t887 + return _t884 def parse_unspecified_type(self) -> logic_pb2.UnspecifiedType: self.consume_literal("UNKNOWN") - _t897 = logic_pb2.UnspecifiedType() - return _t897 + _t917 = logic_pb2.UnspecifiedType() + return _t917 def parse_string_type(self) -> logic_pb2.StringType: self.consume_literal("STRING") - _t898 = logic_pb2.StringType() - return _t898 + _t918 = logic_pb2.StringType() + return _t918 def parse_int_type(self) -> logic_pb2.IntType: self.consume_literal("INT") - _t899 = logic_pb2.IntType() - return _t899 + _t919 = logic_pb2.IntType() + return _t919 def parse_float_type(self) -> logic_pb2.FloatType: self.consume_literal("FLOAT") - _t900 = logic_pb2.FloatType() - return _t900 + _t920 = logic_pb2.FloatType() + return _t920 def parse_uint128_type(self) -> logic_pb2.UInt128Type: self.consume_literal("UINT128") - _t901 = logic_pb2.UInt128Type() - return _t901 + _t921 = logic_pb2.UInt128Type() + return _t921 def parse_int128_type(self) -> logic_pb2.Int128Type: self.consume_literal("INT128") - _t902 = logic_pb2.Int128Type() - return _t902 + _t922 = logic_pb2.Int128Type() + return _t922 def parse_date_type(self) -> logic_pb2.DateType: self.consume_literal("DATE") - _t903 = logic_pb2.DateType() - return _t903 + _t923 = logic_pb2.DateType() + return _t923 def parse_datetime_type(self) -> logic_pb2.DateTimeType: self.consume_literal("DATETIME") - _t904 = logic_pb2.DateTimeType() - return _t904 + _t924 = logic_pb2.DateTimeType() + return _t924 def parse_missing_type(self) -> logic_pb2.MissingType: self.consume_literal("MISSING") - _t905 = logic_pb2.MissingType() - return _t905 + _t925 = logic_pb2.MissingType() + return _t925 def parse_decimal_type(self) -> logic_pb2.DecimalType: self.consume_literal("(") self.consume_literal("DECIMAL") - int455 = self.consume_terminal("INT") - int_3456 = self.consume_terminal("INT") + int465 = self.consume_terminal("INT") + int_3466 = self.consume_terminal("INT") self.consume_literal(")") - _t906 = logic_pb2.DecimalType(precision=int(int455), scale=int(int_3456)) - return _t906 + _t926 = logic_pb2.DecimalType(precision=int(int465), scale=int(int_3466)) + return _t926 def parse_boolean_type(self) -> logic_pb2.BooleanType: self.consume_literal("BOOLEAN") - _t907 = logic_pb2.BooleanType() - return _t907 + _t927 = logic_pb2.BooleanType() + return _t927 def parse_value_bindings(self) -> Sequence[logic_pb2.Binding]: self.consume_literal("|") - xs457 = [] - cond458 = self.match_lookahead_terminal("SYMBOL", 0) - while cond458: - _t908 = self.parse_binding() - item459 = _t908 - xs457.append(item459) - cond458 = self.match_lookahead_terminal("SYMBOL", 0) - bindings460 = xs457 - return bindings460 + xs467 = [] + cond468 = self.match_lookahead_terminal("SYMBOL", 0) + while cond468: + _t928 = self.parse_binding() + item469 = _t928 + xs467.append(item469) + cond468 = self.match_lookahead_terminal("SYMBOL", 0) + bindings470 = xs467 + return bindings470 def parse_formula(self) -> logic_pb2.Formula: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("true", 1): - _t910 = 0 + _t930 = 0 else: if self.match_lookahead_literal("relatom", 1): - _t911 = 11 + _t931 = 11 else: if self.match_lookahead_literal("reduce", 1): - _t912 = 3 + _t932 = 3 else: if self.match_lookahead_literal("primitive", 1): - _t913 = 10 + _t933 = 10 else: if self.match_lookahead_literal("pragma", 1): - _t914 = 9 + _t934 = 9 else: if self.match_lookahead_literal("or", 1): - _t915 = 5 + _t935 = 5 else: if self.match_lookahead_literal("not", 1): - _t916 = 6 + _t936 = 6 else: if self.match_lookahead_literal("ffi", 1): - _t917 = 7 + _t937 = 7 else: if self.match_lookahead_literal("false", 1): - _t918 = 1 + _t938 = 1 else: if self.match_lookahead_literal("exists", 1): - _t919 = 2 + _t939 = 2 else: if self.match_lookahead_literal("cast", 1): - _t920 = 12 + _t940 = 12 else: if self.match_lookahead_literal("atom", 1): - _t921 = 8 + _t941 = 8 else: if self.match_lookahead_literal("and", 1): - _t922 = 4 + _t942 = 4 else: if self.match_lookahead_literal(">=", 1): - _t923 = 10 + _t943 = 10 else: if self.match_lookahead_literal(">", 1): - _t924 = 10 + _t944 = 10 else: if self.match_lookahead_literal("=", 1): - _t925 = 10 + _t945 = 10 else: if self.match_lookahead_literal("<=", 1): - _t926 = 10 + _t946 = 10 else: if self.match_lookahead_literal("<", 1): - _t927 = 10 + _t947 = 10 else: if self.match_lookahead_literal("/", 1): - _t928 = 10 + _t948 = 10 else: if self.match_lookahead_literal("-", 1): - _t929 = 10 + _t949 = 10 else: if self.match_lookahead_literal("+", 1): - _t930 = 10 + _t950 = 10 else: if self.match_lookahead_literal("*", 1): - _t931 = 10 + _t951 = 10 else: - _t931 = -1 - _t930 = _t931 - _t929 = _t930 - _t928 = _t929 - _t927 = _t928 - _t926 = _t927 - _t925 = _t926 - _t924 = _t925 - _t923 = _t924 - _t922 = _t923 - _t921 = _t922 - _t920 = _t921 - _t919 = _t920 - _t918 = _t919 - _t917 = _t918 - _t916 = _t917 - _t915 = _t916 - _t914 = _t915 - _t913 = _t914 - _t912 = _t913 - _t911 = _t912 - _t910 = _t911 - _t909 = _t910 - else: - _t909 = -1 - prediction461 = _t909 - if prediction461 == 12: - _t933 = self.parse_cast() - cast474 = _t933 - _t934 = logic_pb2.Formula(cast=cast474) - _t932 = _t934 - else: - if prediction461 == 11: - _t936 = self.parse_rel_atom() - rel_atom473 = _t936 - _t937 = logic_pb2.Formula(rel_atom=rel_atom473) - _t935 = _t937 + _t951 = -1 + _t950 = _t951 + _t949 = _t950 + _t948 = _t949 + _t947 = _t948 + _t946 = _t947 + _t945 = _t946 + _t944 = _t945 + _t943 = _t944 + _t942 = _t943 + _t941 = _t942 + _t940 = _t941 + _t939 = _t940 + _t938 = _t939 + _t937 = _t938 + _t936 = _t937 + _t935 = _t936 + _t934 = _t935 + _t933 = _t934 + _t932 = _t933 + _t931 = _t932 + _t930 = _t931 + _t929 = _t930 + else: + _t929 = -1 + prediction471 = _t929 + if prediction471 == 12: + _t953 = self.parse_cast() + cast484 = _t953 + _t954 = logic_pb2.Formula(cast=cast484) + _t952 = _t954 + else: + if prediction471 == 11: + _t956 = self.parse_rel_atom() + rel_atom483 = _t956 + _t957 = logic_pb2.Formula(rel_atom=rel_atom483) + _t955 = _t957 else: - if prediction461 == 10: - _t939 = self.parse_primitive() - primitive472 = _t939 - _t940 = logic_pb2.Formula(primitive=primitive472) - _t938 = _t940 + if prediction471 == 10: + _t959 = self.parse_primitive() + primitive482 = _t959 + _t960 = logic_pb2.Formula(primitive=primitive482) + _t958 = _t960 else: - if prediction461 == 9: - _t942 = self.parse_pragma() - pragma471 = _t942 - _t943 = logic_pb2.Formula(pragma=pragma471) - _t941 = _t943 + if prediction471 == 9: + _t962 = self.parse_pragma() + pragma481 = _t962 + _t963 = logic_pb2.Formula(pragma=pragma481) + _t961 = _t963 else: - if prediction461 == 8: - _t945 = self.parse_atom() - atom470 = _t945 - _t946 = logic_pb2.Formula(atom=atom470) - _t944 = _t946 + if prediction471 == 8: + _t965 = self.parse_atom() + atom480 = _t965 + _t966 = logic_pb2.Formula(atom=atom480) + _t964 = _t966 else: - if prediction461 == 7: - _t948 = self.parse_ffi() - ffi469 = _t948 - _t949 = logic_pb2.Formula(ffi=ffi469) - _t947 = _t949 + if prediction471 == 7: + _t968 = self.parse_ffi() + ffi479 = _t968 + _t969 = logic_pb2.Formula(ffi=ffi479) + _t967 = _t969 else: - if prediction461 == 6: - _t951 = self.parse_not() - not468 = _t951 - _t952 = logic_pb2.Formula() - getattr(_t952, 'not').CopyFrom(not468) - _t950 = _t952 + if prediction471 == 6: + _t971 = self.parse_not() + not478 = _t971 + _t972 = logic_pb2.Formula() + getattr(_t972, 'not').CopyFrom(not478) + _t970 = _t972 else: - if prediction461 == 5: - _t954 = self.parse_disjunction() - disjunction467 = _t954 - _t955 = logic_pb2.Formula(disjunction=disjunction467) - _t953 = _t955 + if prediction471 == 5: + _t974 = self.parse_disjunction() + disjunction477 = _t974 + _t975 = logic_pb2.Formula(disjunction=disjunction477) + _t973 = _t975 else: - if prediction461 == 4: - _t957 = self.parse_conjunction() - conjunction466 = _t957 - _t958 = logic_pb2.Formula(conjunction=conjunction466) - _t956 = _t958 + if prediction471 == 4: + _t977 = self.parse_conjunction() + conjunction476 = _t977 + _t978 = logic_pb2.Formula(conjunction=conjunction476) + _t976 = _t978 else: - if prediction461 == 3: - _t960 = self.parse_reduce() - reduce465 = _t960 - _t961 = logic_pb2.Formula(reduce=reduce465) - _t959 = _t961 + if prediction471 == 3: + _t980 = self.parse_reduce() + reduce475 = _t980 + _t981 = logic_pb2.Formula(reduce=reduce475) + _t979 = _t981 else: - if prediction461 == 2: - _t963 = self.parse_exists() - exists464 = _t963 - _t964 = logic_pb2.Formula(exists=exists464) - _t962 = _t964 + if prediction471 == 2: + _t983 = self.parse_exists() + exists474 = _t983 + _t984 = logic_pb2.Formula(exists=exists474) + _t982 = _t984 else: - if prediction461 == 1: - _t966 = self.parse_false() - false463 = _t966 - _t967 = logic_pb2.Formula(disjunction=false463) - _t965 = _t967 + if prediction471 == 1: + _t986 = self.parse_false() + false473 = _t986 + _t987 = logic_pb2.Formula(disjunction=false473) + _t985 = _t987 else: - if prediction461 == 0: - _t969 = self.parse_true() - true462 = _t969 - _t970 = logic_pb2.Formula(conjunction=true462) - _t968 = _t970 + if prediction471 == 0: + _t989 = self.parse_true() + true472 = _t989 + _t990 = logic_pb2.Formula(conjunction=true472) + _t988 = _t990 else: raise ParseError("Unexpected token in formula" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t965 = _t968 - _t962 = _t965 - _t959 = _t962 - _t956 = _t959 - _t953 = _t956 - _t950 = _t953 - _t947 = _t950 - _t944 = _t947 - _t941 = _t944 - _t938 = _t941 - _t935 = _t938 - _t932 = _t935 - return _t932 + _t985 = _t988 + _t982 = _t985 + _t979 = _t982 + _t976 = _t979 + _t973 = _t976 + _t970 = _t973 + _t967 = _t970 + _t964 = _t967 + _t961 = _t964 + _t958 = _t961 + _t955 = _t958 + _t952 = _t955 + return _t952 def parse_true(self) -> logic_pb2.Conjunction: self.consume_literal("(") self.consume_literal("true") self.consume_literal(")") - _t971 = logic_pb2.Conjunction(args=[]) - return _t971 + _t991 = logic_pb2.Conjunction(args=[]) + return _t991 def parse_false(self) -> logic_pb2.Disjunction: self.consume_literal("(") self.consume_literal("false") self.consume_literal(")") - _t972 = logic_pb2.Disjunction(args=[]) - return _t972 + _t992 = logic_pb2.Disjunction(args=[]) + return _t992 def parse_exists(self) -> logic_pb2.Exists: self.consume_literal("(") self.consume_literal("exists") - _t973 = self.parse_bindings() - bindings475 = _t973 - _t974 = self.parse_formula() - formula476 = _t974 + _t993 = self.parse_bindings() + bindings485 = _t993 + _t994 = self.parse_formula() + formula486 = _t994 self.consume_literal(")") - _t975 = logic_pb2.Abstraction(vars=(list(bindings475[0]) + list(bindings475[1] if bindings475[1] is not None else [])), value=formula476) - _t976 = logic_pb2.Exists(body=_t975) - return _t976 + _t995 = logic_pb2.Abstraction(vars=(list(bindings485[0]) + list(bindings485[1] if bindings485[1] is not None else [])), value=formula486) + _t996 = logic_pb2.Exists(body=_t995) + return _t996 def parse_reduce(self) -> logic_pb2.Reduce: self.consume_literal("(") self.consume_literal("reduce") - _t977 = self.parse_abstraction() - abstraction477 = _t977 - _t978 = self.parse_abstraction() - abstraction_3478 = _t978 - _t979 = self.parse_terms() - terms479 = _t979 + _t997 = self.parse_abstraction() + abstraction487 = _t997 + _t998 = self.parse_abstraction() + abstraction_3488 = _t998 + _t999 = self.parse_terms() + terms489 = _t999 self.consume_literal(")") - _t980 = logic_pb2.Reduce(op=abstraction477, body=abstraction_3478, terms=terms479) - return _t980 + _t1000 = logic_pb2.Reduce(op=abstraction487, body=abstraction_3488, terms=terms489) + return _t1000 def parse_terms(self) -> Sequence[logic_pb2.Term]: self.consume_literal("(") self.consume_literal("terms") - xs480 = [] - cond481 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) - while cond481: - _t981 = self.parse_term() - item482 = _t981 - xs480.append(item482) - cond481 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) - terms483 = xs480 + xs490 = [] + cond491 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) + while cond491: + _t1001 = self.parse_term() + item492 = _t1001 + xs490.append(item492) + cond491 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) + terms493 = xs490 self.consume_literal(")") - return terms483 + return terms493 def parse_term(self) -> logic_pb2.Term: if self.match_lookahead_literal("true", 0): - _t982 = 1 + _t1002 = 1 else: if self.match_lookahead_literal("missing", 0): - _t983 = 1 + _t1003 = 1 else: if self.match_lookahead_literal("false", 0): - _t984 = 1 + _t1004 = 1 else: if self.match_lookahead_literal("(", 0): - _t985 = 1 + _t1005 = 1 else: if self.match_lookahead_terminal("UINT128", 0): - _t986 = 1 + _t1006 = 1 else: if self.match_lookahead_terminal("SYMBOL", 0): - _t987 = 0 + _t1007 = 0 else: if self.match_lookahead_terminal("STRING", 0): - _t988 = 1 + _t1008 = 1 else: if self.match_lookahead_terminal("INT128", 0): - _t989 = 1 + _t1009 = 1 else: if self.match_lookahead_terminal("INT", 0): - _t990 = 1 + _t1010 = 1 else: if self.match_lookahead_terminal("FLOAT", 0): - _t991 = 1 + _t1011 = 1 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t992 = 1 + _t1012 = 1 else: - _t992 = -1 - _t991 = _t992 - _t990 = _t991 - _t989 = _t990 - _t988 = _t989 - _t987 = _t988 - _t986 = _t987 - _t985 = _t986 - _t984 = _t985 - _t983 = _t984 - _t982 = _t983 - prediction484 = _t982 - if prediction484 == 1: - _t994 = self.parse_constant() - constant486 = _t994 - _t995 = logic_pb2.Term(constant=constant486) - _t993 = _t995 - else: - if prediction484 == 0: - _t997 = self.parse_var() - var485 = _t997 - _t998 = logic_pb2.Term(var=var485) - _t996 = _t998 + _t1012 = -1 + _t1011 = _t1012 + _t1010 = _t1011 + _t1009 = _t1010 + _t1008 = _t1009 + _t1007 = _t1008 + _t1006 = _t1007 + _t1005 = _t1006 + _t1004 = _t1005 + _t1003 = _t1004 + _t1002 = _t1003 + prediction494 = _t1002 + if prediction494 == 1: + _t1014 = self.parse_constant() + constant496 = _t1014 + _t1015 = logic_pb2.Term(constant=constant496) + _t1013 = _t1015 + else: + if prediction494 == 0: + _t1017 = self.parse_var() + var495 = _t1017 + _t1018 = logic_pb2.Term(var=var495) + _t1016 = _t1018 else: raise ParseError("Unexpected token in term" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t993 = _t996 - return _t993 + _t1013 = _t1016 + return _t1013 def parse_var(self) -> logic_pb2.Var: - symbol487 = self.consume_terminal("SYMBOL") - _t999 = logic_pb2.Var(name=symbol487) - return _t999 + symbol497 = self.consume_terminal("SYMBOL") + _t1019 = logic_pb2.Var(name=symbol497) + return _t1019 def parse_constant(self) -> logic_pb2.Value: - _t1000 = self.parse_value() - value488 = _t1000 - return value488 + _t1020 = self.parse_value() + value498 = _t1020 + return value498 def parse_conjunction(self) -> logic_pb2.Conjunction: self.consume_literal("(") self.consume_literal("and") - xs489 = [] - cond490 = self.match_lookahead_literal("(", 0) - while cond490: - _t1001 = self.parse_formula() - item491 = _t1001 - xs489.append(item491) - cond490 = self.match_lookahead_literal("(", 0) - formulas492 = xs489 - self.consume_literal(")") - _t1002 = logic_pb2.Conjunction(args=formulas492) - return _t1002 + xs499 = [] + cond500 = self.match_lookahead_literal("(", 0) + while cond500: + _t1021 = self.parse_formula() + item501 = _t1021 + xs499.append(item501) + cond500 = self.match_lookahead_literal("(", 0) + formulas502 = xs499 + self.consume_literal(")") + _t1022 = logic_pb2.Conjunction(args=formulas502) + return _t1022 def parse_disjunction(self) -> logic_pb2.Disjunction: self.consume_literal("(") self.consume_literal("or") - xs493 = [] - cond494 = self.match_lookahead_literal("(", 0) - while cond494: - _t1003 = self.parse_formula() - item495 = _t1003 - xs493.append(item495) - cond494 = self.match_lookahead_literal("(", 0) - formulas496 = xs493 - self.consume_literal(")") - _t1004 = logic_pb2.Disjunction(args=formulas496) - return _t1004 + xs503 = [] + cond504 = self.match_lookahead_literal("(", 0) + while cond504: + _t1023 = self.parse_formula() + item505 = _t1023 + xs503.append(item505) + cond504 = self.match_lookahead_literal("(", 0) + formulas506 = xs503 + self.consume_literal(")") + _t1024 = logic_pb2.Disjunction(args=formulas506) + return _t1024 def parse_not(self) -> logic_pb2.Not: self.consume_literal("(") self.consume_literal("not") - _t1005 = self.parse_formula() - formula497 = _t1005 + _t1025 = self.parse_formula() + formula507 = _t1025 self.consume_literal(")") - _t1006 = logic_pb2.Not(arg=formula497) - return _t1006 + _t1026 = logic_pb2.Not(arg=formula507) + return _t1026 def parse_ffi(self) -> logic_pb2.FFI: self.consume_literal("(") self.consume_literal("ffi") - _t1007 = self.parse_name() - name498 = _t1007 - _t1008 = self.parse_ffi_args() - ffi_args499 = _t1008 - _t1009 = self.parse_terms() - terms500 = _t1009 + _t1027 = self.parse_name() + name508 = _t1027 + _t1028 = self.parse_ffi_args() + ffi_args509 = _t1028 + _t1029 = self.parse_terms() + terms510 = _t1029 self.consume_literal(")") - _t1010 = logic_pb2.FFI(name=name498, args=ffi_args499, terms=terms500) - return _t1010 + _t1030 = logic_pb2.FFI(name=name508, args=ffi_args509, terms=terms510) + return _t1030 def parse_name(self) -> str: self.consume_literal(":") - symbol501 = self.consume_terminal("SYMBOL") - return symbol501 + symbol511 = self.consume_terminal("SYMBOL") + return symbol511 def parse_ffi_args(self) -> Sequence[logic_pb2.Abstraction]: self.consume_literal("(") self.consume_literal("args") - xs502 = [] - cond503 = self.match_lookahead_literal("(", 0) - while cond503: - _t1011 = self.parse_abstraction() - item504 = _t1011 - xs502.append(item504) - cond503 = self.match_lookahead_literal("(", 0) - abstractions505 = xs502 + xs512 = [] + cond513 = self.match_lookahead_literal("(", 0) + while cond513: + _t1031 = self.parse_abstraction() + item514 = _t1031 + xs512.append(item514) + cond513 = self.match_lookahead_literal("(", 0) + abstractions515 = xs512 self.consume_literal(")") - return abstractions505 + return abstractions515 def parse_atom(self) -> logic_pb2.Atom: self.consume_literal("(") self.consume_literal("atom") - _t1012 = self.parse_relation_id() - relation_id506 = _t1012 - xs507 = [] - cond508 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) - while cond508: - _t1013 = self.parse_term() - item509 = _t1013 - xs507.append(item509) - cond508 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) - terms510 = xs507 - self.consume_literal(")") - _t1014 = logic_pb2.Atom(name=relation_id506, terms=terms510) - return _t1014 + _t1032 = self.parse_relation_id() + relation_id516 = _t1032 + xs517 = [] + cond518 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) + while cond518: + _t1033 = self.parse_term() + item519 = _t1033 + xs517.append(item519) + cond518 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) + terms520 = xs517 + self.consume_literal(")") + _t1034 = logic_pb2.Atom(name=relation_id516, terms=terms520) + return _t1034 def parse_pragma(self) -> logic_pb2.Pragma: self.consume_literal("(") self.consume_literal("pragma") - _t1015 = self.parse_name() - name511 = _t1015 - xs512 = [] - cond513 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) - while cond513: - _t1016 = self.parse_term() - item514 = _t1016 - xs512.append(item514) - cond513 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) - terms515 = xs512 - self.consume_literal(")") - _t1017 = logic_pb2.Pragma(name=name511, terms=terms515) - return _t1017 + _t1035 = self.parse_name() + name521 = _t1035 + xs522 = [] + cond523 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) + while cond523: + _t1036 = self.parse_term() + item524 = _t1036 + xs522.append(item524) + cond523 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) + terms525 = xs522 + self.consume_literal(")") + _t1037 = logic_pb2.Pragma(name=name521, terms=terms525) + return _t1037 def parse_primitive(self) -> logic_pb2.Primitive: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("primitive", 1): - _t1019 = 9 + _t1039 = 9 else: if self.match_lookahead_literal(">=", 1): - _t1020 = 4 + _t1040 = 4 else: if self.match_lookahead_literal(">", 1): - _t1021 = 3 + _t1041 = 3 else: if self.match_lookahead_literal("=", 1): - _t1022 = 0 + _t1042 = 0 else: if self.match_lookahead_literal("<=", 1): - _t1023 = 2 + _t1043 = 2 else: if self.match_lookahead_literal("<", 1): - _t1024 = 1 + _t1044 = 1 else: if self.match_lookahead_literal("/", 1): - _t1025 = 8 + _t1045 = 8 else: if self.match_lookahead_literal("-", 1): - _t1026 = 6 + _t1046 = 6 else: if self.match_lookahead_literal("+", 1): - _t1027 = 5 + _t1047 = 5 else: if self.match_lookahead_literal("*", 1): - _t1028 = 7 + _t1048 = 7 else: - _t1028 = -1 - _t1027 = _t1028 - _t1026 = _t1027 - _t1025 = _t1026 - _t1024 = _t1025 - _t1023 = _t1024 - _t1022 = _t1023 - _t1021 = _t1022 - _t1020 = _t1021 - _t1019 = _t1020 - _t1018 = _t1019 - else: - _t1018 = -1 - prediction516 = _t1018 - if prediction516 == 9: + _t1048 = -1 + _t1047 = _t1048 + _t1046 = _t1047 + _t1045 = _t1046 + _t1044 = _t1045 + _t1043 = _t1044 + _t1042 = _t1043 + _t1041 = _t1042 + _t1040 = _t1041 + _t1039 = _t1040 + _t1038 = _t1039 + else: + _t1038 = -1 + prediction526 = _t1038 + if prediction526 == 9: self.consume_literal("(") self.consume_literal("primitive") - _t1030 = self.parse_name() - name526 = _t1030 - xs527 = [] - cond528 = (((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) - while cond528: - _t1031 = self.parse_rel_term() - item529 = _t1031 - xs527.append(item529) - cond528 = (((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) - rel_terms530 = xs527 + _t1050 = self.parse_name() + name536 = _t1050 + xs537 = [] + cond538 = (((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) + while cond538: + _t1051 = self.parse_rel_term() + item539 = _t1051 + xs537.append(item539) + cond538 = (((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) + rel_terms540 = xs537 self.consume_literal(")") - _t1032 = logic_pb2.Primitive(name=name526, terms=rel_terms530) - _t1029 = _t1032 + _t1052 = logic_pb2.Primitive(name=name536, terms=rel_terms540) + _t1049 = _t1052 else: - if prediction516 == 8: - _t1034 = self.parse_divide() - divide525 = _t1034 - _t1033 = divide525 + if prediction526 == 8: + _t1054 = self.parse_divide() + divide535 = _t1054 + _t1053 = divide535 else: - if prediction516 == 7: - _t1036 = self.parse_multiply() - multiply524 = _t1036 - _t1035 = multiply524 + if prediction526 == 7: + _t1056 = self.parse_multiply() + multiply534 = _t1056 + _t1055 = multiply534 else: - if prediction516 == 6: - _t1038 = self.parse_minus() - minus523 = _t1038 - _t1037 = minus523 + if prediction526 == 6: + _t1058 = self.parse_minus() + minus533 = _t1058 + _t1057 = minus533 else: - if prediction516 == 5: - _t1040 = self.parse_add() - add522 = _t1040 - _t1039 = add522 + if prediction526 == 5: + _t1060 = self.parse_add() + add532 = _t1060 + _t1059 = add532 else: - if prediction516 == 4: - _t1042 = self.parse_gt_eq() - gt_eq521 = _t1042 - _t1041 = gt_eq521 + if prediction526 == 4: + _t1062 = self.parse_gt_eq() + gt_eq531 = _t1062 + _t1061 = gt_eq531 else: - if prediction516 == 3: - _t1044 = self.parse_gt() - gt520 = _t1044 - _t1043 = gt520 + if prediction526 == 3: + _t1064 = self.parse_gt() + gt530 = _t1064 + _t1063 = gt530 else: - if prediction516 == 2: - _t1046 = self.parse_lt_eq() - lt_eq519 = _t1046 - _t1045 = lt_eq519 + if prediction526 == 2: + _t1066 = self.parse_lt_eq() + lt_eq529 = _t1066 + _t1065 = lt_eq529 else: - if prediction516 == 1: - _t1048 = self.parse_lt() - lt518 = _t1048 - _t1047 = lt518 + if prediction526 == 1: + _t1068 = self.parse_lt() + lt528 = _t1068 + _t1067 = lt528 else: - if prediction516 == 0: - _t1050 = self.parse_eq() - eq517 = _t1050 - _t1049 = eq517 + if prediction526 == 0: + _t1070 = self.parse_eq() + eq527 = _t1070 + _t1069 = eq527 else: raise ParseError("Unexpected token in primitive" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1047 = _t1049 - _t1045 = _t1047 - _t1043 = _t1045 - _t1041 = _t1043 - _t1039 = _t1041 - _t1037 = _t1039 - _t1035 = _t1037 - _t1033 = _t1035 - _t1029 = _t1033 - return _t1029 + _t1067 = _t1069 + _t1065 = _t1067 + _t1063 = _t1065 + _t1061 = _t1063 + _t1059 = _t1061 + _t1057 = _t1059 + _t1055 = _t1057 + _t1053 = _t1055 + _t1049 = _t1053 + return _t1049 def parse_eq(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("=") - _t1051 = self.parse_term() - term531 = _t1051 - _t1052 = self.parse_term() - term_3532 = _t1052 + _t1071 = self.parse_term() + term541 = _t1071 + _t1072 = self.parse_term() + term_3542 = _t1072 self.consume_literal(")") - _t1053 = logic_pb2.RelTerm(term=term531) - _t1054 = logic_pb2.RelTerm(term=term_3532) - _t1055 = logic_pb2.Primitive(name="rel_primitive_eq", terms=[_t1053, _t1054]) - return _t1055 + _t1073 = logic_pb2.RelTerm(term=term541) + _t1074 = logic_pb2.RelTerm(term=term_3542) + _t1075 = logic_pb2.Primitive(name="rel_primitive_eq", terms=[_t1073, _t1074]) + return _t1075 def parse_lt(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("<") - _t1056 = self.parse_term() - term533 = _t1056 - _t1057 = self.parse_term() - term_3534 = _t1057 + _t1076 = self.parse_term() + term543 = _t1076 + _t1077 = self.parse_term() + term_3544 = _t1077 self.consume_literal(")") - _t1058 = logic_pb2.RelTerm(term=term533) - _t1059 = logic_pb2.RelTerm(term=term_3534) - _t1060 = logic_pb2.Primitive(name="rel_primitive_lt_monotype", terms=[_t1058, _t1059]) - return _t1060 + _t1078 = logic_pb2.RelTerm(term=term543) + _t1079 = logic_pb2.RelTerm(term=term_3544) + _t1080 = logic_pb2.Primitive(name="rel_primitive_lt_monotype", terms=[_t1078, _t1079]) + return _t1080 def parse_lt_eq(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("<=") - _t1061 = self.parse_term() - term535 = _t1061 - _t1062 = self.parse_term() - term_3536 = _t1062 + _t1081 = self.parse_term() + term545 = _t1081 + _t1082 = self.parse_term() + term_3546 = _t1082 self.consume_literal(")") - _t1063 = logic_pb2.RelTerm(term=term535) - _t1064 = logic_pb2.RelTerm(term=term_3536) - _t1065 = logic_pb2.Primitive(name="rel_primitive_lt_eq_monotype", terms=[_t1063, _t1064]) - return _t1065 + _t1083 = logic_pb2.RelTerm(term=term545) + _t1084 = logic_pb2.RelTerm(term=term_3546) + _t1085 = logic_pb2.Primitive(name="rel_primitive_lt_eq_monotype", terms=[_t1083, _t1084]) + return _t1085 def parse_gt(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal(">") - _t1066 = self.parse_term() - term537 = _t1066 - _t1067 = self.parse_term() - term_3538 = _t1067 + _t1086 = self.parse_term() + term547 = _t1086 + _t1087 = self.parse_term() + term_3548 = _t1087 self.consume_literal(")") - _t1068 = logic_pb2.RelTerm(term=term537) - _t1069 = logic_pb2.RelTerm(term=term_3538) - _t1070 = logic_pb2.Primitive(name="rel_primitive_gt_monotype", terms=[_t1068, _t1069]) - return _t1070 + _t1088 = logic_pb2.RelTerm(term=term547) + _t1089 = logic_pb2.RelTerm(term=term_3548) + _t1090 = logic_pb2.Primitive(name="rel_primitive_gt_monotype", terms=[_t1088, _t1089]) + return _t1090 def parse_gt_eq(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal(">=") - _t1071 = self.parse_term() - term539 = _t1071 - _t1072 = self.parse_term() - term_3540 = _t1072 + _t1091 = self.parse_term() + term549 = _t1091 + _t1092 = self.parse_term() + term_3550 = _t1092 self.consume_literal(")") - _t1073 = logic_pb2.RelTerm(term=term539) - _t1074 = logic_pb2.RelTerm(term=term_3540) - _t1075 = logic_pb2.Primitive(name="rel_primitive_gt_eq_monotype", terms=[_t1073, _t1074]) - return _t1075 + _t1093 = logic_pb2.RelTerm(term=term549) + _t1094 = logic_pb2.RelTerm(term=term_3550) + _t1095 = logic_pb2.Primitive(name="rel_primitive_gt_eq_monotype", terms=[_t1093, _t1094]) + return _t1095 def parse_add(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("+") - _t1076 = self.parse_term() - term541 = _t1076 - _t1077 = self.parse_term() - term_3542 = _t1077 - _t1078 = self.parse_term() - term_4543 = _t1078 + _t1096 = self.parse_term() + term551 = _t1096 + _t1097 = self.parse_term() + term_3552 = _t1097 + _t1098 = self.parse_term() + term_4553 = _t1098 self.consume_literal(")") - _t1079 = logic_pb2.RelTerm(term=term541) - _t1080 = logic_pb2.RelTerm(term=term_3542) - _t1081 = logic_pb2.RelTerm(term=term_4543) - _t1082 = logic_pb2.Primitive(name="rel_primitive_add_monotype", terms=[_t1079, _t1080, _t1081]) - return _t1082 + _t1099 = logic_pb2.RelTerm(term=term551) + _t1100 = logic_pb2.RelTerm(term=term_3552) + _t1101 = logic_pb2.RelTerm(term=term_4553) + _t1102 = logic_pb2.Primitive(name="rel_primitive_add_monotype", terms=[_t1099, _t1100, _t1101]) + return _t1102 def parse_minus(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("-") - _t1083 = self.parse_term() - term544 = _t1083 - _t1084 = self.parse_term() - term_3545 = _t1084 - _t1085 = self.parse_term() - term_4546 = _t1085 - self.consume_literal(")") - _t1086 = logic_pb2.RelTerm(term=term544) - _t1087 = logic_pb2.RelTerm(term=term_3545) - _t1088 = logic_pb2.RelTerm(term=term_4546) - _t1089 = logic_pb2.Primitive(name="rel_primitive_subtract_monotype", terms=[_t1086, _t1087, _t1088]) - return _t1089 + _t1103 = self.parse_term() + term554 = _t1103 + _t1104 = self.parse_term() + term_3555 = _t1104 + _t1105 = self.parse_term() + term_4556 = _t1105 + self.consume_literal(")") + _t1106 = logic_pb2.RelTerm(term=term554) + _t1107 = logic_pb2.RelTerm(term=term_3555) + _t1108 = logic_pb2.RelTerm(term=term_4556) + _t1109 = logic_pb2.Primitive(name="rel_primitive_subtract_monotype", terms=[_t1106, _t1107, _t1108]) + return _t1109 def parse_multiply(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("*") - _t1090 = self.parse_term() - term547 = _t1090 - _t1091 = self.parse_term() - term_3548 = _t1091 - _t1092 = self.parse_term() - term_4549 = _t1092 - self.consume_literal(")") - _t1093 = logic_pb2.RelTerm(term=term547) - _t1094 = logic_pb2.RelTerm(term=term_3548) - _t1095 = logic_pb2.RelTerm(term=term_4549) - _t1096 = logic_pb2.Primitive(name="rel_primitive_multiply_monotype", terms=[_t1093, _t1094, _t1095]) - return _t1096 + _t1110 = self.parse_term() + term557 = _t1110 + _t1111 = self.parse_term() + term_3558 = _t1111 + _t1112 = self.parse_term() + term_4559 = _t1112 + self.consume_literal(")") + _t1113 = logic_pb2.RelTerm(term=term557) + _t1114 = logic_pb2.RelTerm(term=term_3558) + _t1115 = logic_pb2.RelTerm(term=term_4559) + _t1116 = logic_pb2.Primitive(name="rel_primitive_multiply_monotype", terms=[_t1113, _t1114, _t1115]) + return _t1116 def parse_divide(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("/") - _t1097 = self.parse_term() - term550 = _t1097 - _t1098 = self.parse_term() - term_3551 = _t1098 - _t1099 = self.parse_term() - term_4552 = _t1099 - self.consume_literal(")") - _t1100 = logic_pb2.RelTerm(term=term550) - _t1101 = logic_pb2.RelTerm(term=term_3551) - _t1102 = logic_pb2.RelTerm(term=term_4552) - _t1103 = logic_pb2.Primitive(name="rel_primitive_divide_monotype", terms=[_t1100, _t1101, _t1102]) - return _t1103 + _t1117 = self.parse_term() + term560 = _t1117 + _t1118 = self.parse_term() + term_3561 = _t1118 + _t1119 = self.parse_term() + term_4562 = _t1119 + self.consume_literal(")") + _t1120 = logic_pb2.RelTerm(term=term560) + _t1121 = logic_pb2.RelTerm(term=term_3561) + _t1122 = logic_pb2.RelTerm(term=term_4562) + _t1123 = logic_pb2.Primitive(name="rel_primitive_divide_monotype", terms=[_t1120, _t1121, _t1122]) + return _t1123 def parse_rel_term(self) -> logic_pb2.RelTerm: if self.match_lookahead_literal("true", 0): - _t1104 = 1 + _t1124 = 1 else: if self.match_lookahead_literal("missing", 0): - _t1105 = 1 + _t1125 = 1 else: if self.match_lookahead_literal("false", 0): - _t1106 = 1 + _t1126 = 1 else: if self.match_lookahead_literal("(", 0): - _t1107 = 1 + _t1127 = 1 else: if self.match_lookahead_literal("#", 0): - _t1108 = 0 + _t1128 = 0 else: if self.match_lookahead_terminal("UINT128", 0): - _t1109 = 1 + _t1129 = 1 else: if self.match_lookahead_terminal("SYMBOL", 0): - _t1110 = 1 + _t1130 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t1111 = 1 + _t1131 = 1 else: if self.match_lookahead_terminal("INT128", 0): - _t1112 = 1 + _t1132 = 1 else: if self.match_lookahead_terminal("INT", 0): - _t1113 = 1 + _t1133 = 1 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1114 = 1 + _t1134 = 1 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1115 = 1 + _t1135 = 1 else: - _t1115 = -1 - _t1114 = _t1115 - _t1113 = _t1114 - _t1112 = _t1113 - _t1111 = _t1112 - _t1110 = _t1111 - _t1109 = _t1110 - _t1108 = _t1109 - _t1107 = _t1108 - _t1106 = _t1107 - _t1105 = _t1106 - _t1104 = _t1105 - prediction553 = _t1104 - if prediction553 == 1: - _t1117 = self.parse_term() - term555 = _t1117 - _t1118 = logic_pb2.RelTerm(term=term555) - _t1116 = _t1118 - else: - if prediction553 == 0: - _t1120 = self.parse_specialized_value() - specialized_value554 = _t1120 - _t1121 = logic_pb2.RelTerm(specialized_value=specialized_value554) - _t1119 = _t1121 + _t1135 = -1 + _t1134 = _t1135 + _t1133 = _t1134 + _t1132 = _t1133 + _t1131 = _t1132 + _t1130 = _t1131 + _t1129 = _t1130 + _t1128 = _t1129 + _t1127 = _t1128 + _t1126 = _t1127 + _t1125 = _t1126 + _t1124 = _t1125 + prediction563 = _t1124 + if prediction563 == 1: + _t1137 = self.parse_term() + term565 = _t1137 + _t1138 = logic_pb2.RelTerm(term=term565) + _t1136 = _t1138 + else: + if prediction563 == 0: + _t1140 = self.parse_specialized_value() + specialized_value564 = _t1140 + _t1141 = logic_pb2.RelTerm(specialized_value=specialized_value564) + _t1139 = _t1141 else: raise ParseError("Unexpected token in rel_term" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1116 = _t1119 - return _t1116 + _t1136 = _t1139 + return _t1136 def parse_specialized_value(self) -> logic_pb2.Value: self.consume_literal("#") - _t1122 = self.parse_value() - value556 = _t1122 - return value556 + _t1142 = self.parse_value() + value566 = _t1142 + return value566 def parse_rel_atom(self) -> logic_pb2.RelAtom: self.consume_literal("(") self.consume_literal("relatom") - _t1123 = self.parse_name() - name557 = _t1123 - xs558 = [] - cond559 = (((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) - while cond559: - _t1124 = self.parse_rel_term() - item560 = _t1124 - xs558.append(item560) - cond559 = (((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) - rel_terms561 = xs558 - self.consume_literal(")") - _t1125 = logic_pb2.RelAtom(name=name557, terms=rel_terms561) - return _t1125 + _t1143 = self.parse_name() + name567 = _t1143 + xs568 = [] + cond569 = (((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) + while cond569: + _t1144 = self.parse_rel_term() + item570 = _t1144 + xs568.append(item570) + cond569 = (((((((((((self.match_lookahead_literal("#", 0) or self.match_lookahead_literal("(", 0)) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) + rel_terms571 = xs568 + self.consume_literal(")") + _t1145 = logic_pb2.RelAtom(name=name567, terms=rel_terms571) + return _t1145 def parse_cast(self) -> logic_pb2.Cast: self.consume_literal("(") self.consume_literal("cast") - _t1126 = self.parse_term() - term562 = _t1126 - _t1127 = self.parse_term() - term_3563 = _t1127 + _t1146 = self.parse_term() + term572 = _t1146 + _t1147 = self.parse_term() + term_3573 = _t1147 self.consume_literal(")") - _t1128 = logic_pb2.Cast(input=term562, result=term_3563) - return _t1128 + _t1148 = logic_pb2.Cast(input=term572, result=term_3573) + return _t1148 def parse_attrs(self) -> Sequence[logic_pb2.Attribute]: self.consume_literal("(") self.consume_literal("attrs") - xs564 = [] - cond565 = self.match_lookahead_literal("(", 0) - while cond565: - _t1129 = self.parse_attribute() - item566 = _t1129 - xs564.append(item566) - cond565 = self.match_lookahead_literal("(", 0) - attributes567 = xs564 + xs574 = [] + cond575 = self.match_lookahead_literal("(", 0) + while cond575: + _t1149 = self.parse_attribute() + item576 = _t1149 + xs574.append(item576) + cond575 = self.match_lookahead_literal("(", 0) + attributes577 = xs574 self.consume_literal(")") - return attributes567 + return attributes577 def parse_attribute(self) -> logic_pb2.Attribute: self.consume_literal("(") self.consume_literal("attribute") - _t1130 = self.parse_name() - name568 = _t1130 - xs569 = [] - cond570 = (((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) - while cond570: - _t1131 = self.parse_value() - item571 = _t1131 - xs569.append(item571) - cond570 = (((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) - values572 = xs569 - self.consume_literal(")") - _t1132 = logic_pb2.Attribute(name=name568, args=values572) - return _t1132 + _t1150 = self.parse_name() + name578 = _t1150 + xs579 = [] + cond580 = (((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) + while cond580: + _t1151 = self.parse_value() + item581 = _t1151 + xs579.append(item581) + cond580 = (((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("false", 0)) or self.match_lookahead_literal("missing", 0)) or self.match_lookahead_literal("true", 0)) or self.match_lookahead_terminal("DECIMAL", 0)) or self.match_lookahead_terminal("FLOAT", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) + values582 = xs579 + self.consume_literal(")") + _t1152 = logic_pb2.Attribute(name=name578, args=values582) + return _t1152 def parse_algorithm(self) -> logic_pb2.Algorithm: self.consume_literal("(") self.consume_literal("algorithm") - xs573 = [] - cond574 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - while cond574: - _t1133 = self.parse_relation_id() - item575 = _t1133 - xs573.append(item575) - cond574 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - relation_ids576 = xs573 - _t1134 = self.parse_script() - script577 = _t1134 - self.consume_literal(")") - _t1135 = logic_pb2.Algorithm(body=script577) - getattr(_t1135, 'global').extend(relation_ids576) - return _t1135 + xs583 = [] + cond584 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + while cond584: + _t1153 = self.parse_relation_id() + item585 = _t1153 + xs583.append(item585) + cond584 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + relation_ids586 = xs583 + _t1154 = self.parse_script() + script587 = _t1154 + self.consume_literal(")") + _t1155 = logic_pb2.Algorithm(body=script587) + getattr(_t1155, 'global').extend(relation_ids586) + return _t1155 def parse_script(self) -> logic_pb2.Script: self.consume_literal("(") self.consume_literal("script") - xs578 = [] - cond579 = self.match_lookahead_literal("(", 0) - while cond579: - _t1136 = self.parse_construct() - item580 = _t1136 - xs578.append(item580) - cond579 = self.match_lookahead_literal("(", 0) - constructs581 = xs578 - self.consume_literal(")") - _t1137 = logic_pb2.Script(constructs=constructs581) - return _t1137 + xs588 = [] + cond589 = self.match_lookahead_literal("(", 0) + while cond589: + _t1156 = self.parse_construct() + item590 = _t1156 + xs588.append(item590) + cond589 = self.match_lookahead_literal("(", 0) + constructs591 = xs588 + self.consume_literal(")") + _t1157 = logic_pb2.Script(constructs=constructs591) + return _t1157 def parse_construct(self) -> logic_pb2.Construct: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("upsert", 1): - _t1139 = 1 + _t1159 = 1 else: if self.match_lookahead_literal("monus", 1): - _t1140 = 1 + _t1160 = 1 else: if self.match_lookahead_literal("monoid", 1): - _t1141 = 1 + _t1161 = 1 else: if self.match_lookahead_literal("loop", 1): - _t1142 = 0 + _t1162 = 0 else: if self.match_lookahead_literal("break", 1): - _t1143 = 1 + _t1163 = 1 else: if self.match_lookahead_literal("assign", 1): - _t1144 = 1 + _t1164 = 1 else: - _t1144 = -1 - _t1143 = _t1144 - _t1142 = _t1143 - _t1141 = _t1142 - _t1140 = _t1141 - _t1139 = _t1140 - _t1138 = _t1139 - else: - _t1138 = -1 - prediction582 = _t1138 - if prediction582 == 1: - _t1146 = self.parse_instruction() - instruction584 = _t1146 - _t1147 = logic_pb2.Construct(instruction=instruction584) - _t1145 = _t1147 - else: - if prediction582 == 0: - _t1149 = self.parse_loop() - loop583 = _t1149 - _t1150 = logic_pb2.Construct(loop=loop583) - _t1148 = _t1150 + _t1164 = -1 + _t1163 = _t1164 + _t1162 = _t1163 + _t1161 = _t1162 + _t1160 = _t1161 + _t1159 = _t1160 + _t1158 = _t1159 + else: + _t1158 = -1 + prediction592 = _t1158 + if prediction592 == 1: + _t1166 = self.parse_instruction() + instruction594 = _t1166 + _t1167 = logic_pb2.Construct(instruction=instruction594) + _t1165 = _t1167 + else: + if prediction592 == 0: + _t1169 = self.parse_loop() + loop593 = _t1169 + _t1170 = logic_pb2.Construct(loop=loop593) + _t1168 = _t1170 else: raise ParseError("Unexpected token in construct" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1145 = _t1148 - return _t1145 + _t1165 = _t1168 + return _t1165 def parse_loop(self) -> logic_pb2.Loop: self.consume_literal("(") self.consume_literal("loop") - _t1151 = self.parse_init() - init585 = _t1151 - _t1152 = self.parse_script() - script586 = _t1152 + _t1171 = self.parse_init() + init595 = _t1171 + _t1172 = self.parse_script() + script596 = _t1172 self.consume_literal(")") - _t1153 = logic_pb2.Loop(init=init585, body=script586) - return _t1153 + _t1173 = logic_pb2.Loop(init=init595, body=script596) + return _t1173 def parse_init(self) -> Sequence[logic_pb2.Instruction]: self.consume_literal("(") self.consume_literal("init") - xs587 = [] - cond588 = self.match_lookahead_literal("(", 0) - while cond588: - _t1154 = self.parse_instruction() - item589 = _t1154 - xs587.append(item589) - cond588 = self.match_lookahead_literal("(", 0) - instructions590 = xs587 + xs597 = [] + cond598 = self.match_lookahead_literal("(", 0) + while cond598: + _t1174 = self.parse_instruction() + item599 = _t1174 + xs597.append(item599) + cond598 = self.match_lookahead_literal("(", 0) + instructions600 = xs597 self.consume_literal(")") - return instructions590 + return instructions600 def parse_instruction(self) -> logic_pb2.Instruction: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("upsert", 1): - _t1156 = 1 + _t1176 = 1 else: if self.match_lookahead_literal("monus", 1): - _t1157 = 4 + _t1177 = 4 else: if self.match_lookahead_literal("monoid", 1): - _t1158 = 3 + _t1178 = 3 else: if self.match_lookahead_literal("break", 1): - _t1159 = 2 + _t1179 = 2 else: if self.match_lookahead_literal("assign", 1): - _t1160 = 0 + _t1180 = 0 else: - _t1160 = -1 - _t1159 = _t1160 - _t1158 = _t1159 - _t1157 = _t1158 - _t1156 = _t1157 - _t1155 = _t1156 - else: - _t1155 = -1 - prediction591 = _t1155 - if prediction591 == 4: - _t1162 = self.parse_monus_def() - monus_def596 = _t1162 - _t1163 = logic_pb2.Instruction(monus_def=monus_def596) - _t1161 = _t1163 - else: - if prediction591 == 3: - _t1165 = self.parse_monoid_def() - monoid_def595 = _t1165 - _t1166 = logic_pb2.Instruction(monoid_def=monoid_def595) - _t1164 = _t1166 + _t1180 = -1 + _t1179 = _t1180 + _t1178 = _t1179 + _t1177 = _t1178 + _t1176 = _t1177 + _t1175 = _t1176 + else: + _t1175 = -1 + prediction601 = _t1175 + if prediction601 == 4: + _t1182 = self.parse_monus_def() + monus_def606 = _t1182 + _t1183 = logic_pb2.Instruction(monus_def=monus_def606) + _t1181 = _t1183 + else: + if prediction601 == 3: + _t1185 = self.parse_monoid_def() + monoid_def605 = _t1185 + _t1186 = logic_pb2.Instruction(monoid_def=monoid_def605) + _t1184 = _t1186 else: - if prediction591 == 2: - _t1168 = self.parse_break() - break594 = _t1168 - _t1169 = logic_pb2.Instruction() - getattr(_t1169, 'break').CopyFrom(break594) - _t1167 = _t1169 + if prediction601 == 2: + _t1188 = self.parse_break() + break604 = _t1188 + _t1189 = logic_pb2.Instruction() + getattr(_t1189, 'break').CopyFrom(break604) + _t1187 = _t1189 else: - if prediction591 == 1: - _t1171 = self.parse_upsert() - upsert593 = _t1171 - _t1172 = logic_pb2.Instruction(upsert=upsert593) - _t1170 = _t1172 + if prediction601 == 1: + _t1191 = self.parse_upsert() + upsert603 = _t1191 + _t1192 = logic_pb2.Instruction(upsert=upsert603) + _t1190 = _t1192 else: - if prediction591 == 0: - _t1174 = self.parse_assign() - assign592 = _t1174 - _t1175 = logic_pb2.Instruction(assign=assign592) - _t1173 = _t1175 + if prediction601 == 0: + _t1194 = self.parse_assign() + assign602 = _t1194 + _t1195 = logic_pb2.Instruction(assign=assign602) + _t1193 = _t1195 else: raise ParseError("Unexpected token in instruction" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1170 = _t1173 - _t1167 = _t1170 - _t1164 = _t1167 - _t1161 = _t1164 - return _t1161 + _t1190 = _t1193 + _t1187 = _t1190 + _t1184 = _t1187 + _t1181 = _t1184 + return _t1181 def parse_assign(self) -> logic_pb2.Assign: self.consume_literal("(") self.consume_literal("assign") - _t1176 = self.parse_relation_id() - relation_id597 = _t1176 - _t1177 = self.parse_abstraction() - abstraction598 = _t1177 + _t1196 = self.parse_relation_id() + relation_id607 = _t1196 + _t1197 = self.parse_abstraction() + abstraction608 = _t1197 if self.match_lookahead_literal("(", 0): - _t1179 = self.parse_attrs() - _t1178 = _t1179 + _t1199 = self.parse_attrs() + _t1198 = _t1199 else: - _t1178 = None - attrs599 = _t1178 + _t1198 = None + attrs609 = _t1198 self.consume_literal(")") - _t1180 = logic_pb2.Assign(name=relation_id597, body=abstraction598, attrs=(attrs599 if attrs599 is not None else [])) - return _t1180 + _t1200 = logic_pb2.Assign(name=relation_id607, body=abstraction608, attrs=(attrs609 if attrs609 is not None else [])) + return _t1200 def parse_upsert(self) -> logic_pb2.Upsert: self.consume_literal("(") self.consume_literal("upsert") - _t1181 = self.parse_relation_id() - relation_id600 = _t1181 - _t1182 = self.parse_abstraction_with_arity() - abstraction_with_arity601 = _t1182 + _t1201 = self.parse_relation_id() + relation_id610 = _t1201 + _t1202 = self.parse_abstraction_with_arity() + abstraction_with_arity611 = _t1202 if self.match_lookahead_literal("(", 0): - _t1184 = self.parse_attrs() - _t1183 = _t1184 + _t1204 = self.parse_attrs() + _t1203 = _t1204 else: - _t1183 = None - attrs602 = _t1183 + _t1203 = None + attrs612 = _t1203 self.consume_literal(")") - _t1185 = logic_pb2.Upsert(name=relation_id600, body=abstraction_with_arity601[0], attrs=(attrs602 if attrs602 is not None else []), value_arity=abstraction_with_arity601[1]) - return _t1185 + _t1205 = logic_pb2.Upsert(name=relation_id610, body=abstraction_with_arity611[0], attrs=(attrs612 if attrs612 is not None else []), value_arity=abstraction_with_arity611[1]) + return _t1205 def parse_abstraction_with_arity(self) -> tuple[logic_pb2.Abstraction, int]: self.consume_literal("(") - _t1186 = self.parse_bindings() - bindings603 = _t1186 - _t1187 = self.parse_formula() - formula604 = _t1187 + _t1206 = self.parse_bindings() + bindings613 = _t1206 + _t1207 = self.parse_formula() + formula614 = _t1207 self.consume_literal(")") - _t1188 = logic_pb2.Abstraction(vars=(list(bindings603[0]) + list(bindings603[1] if bindings603[1] is not None else [])), value=formula604) - return (_t1188, len(bindings603[1]),) + _t1208 = logic_pb2.Abstraction(vars=(list(bindings613[0]) + list(bindings613[1] if bindings613[1] is not None else [])), value=formula614) + return (_t1208, len(bindings613[1]),) def parse_break(self) -> logic_pb2.Break: self.consume_literal("(") self.consume_literal("break") - _t1189 = self.parse_relation_id() - relation_id605 = _t1189 - _t1190 = self.parse_abstraction() - abstraction606 = _t1190 + _t1209 = self.parse_relation_id() + relation_id615 = _t1209 + _t1210 = self.parse_abstraction() + abstraction616 = _t1210 if self.match_lookahead_literal("(", 0): - _t1192 = self.parse_attrs() - _t1191 = _t1192 + _t1212 = self.parse_attrs() + _t1211 = _t1212 else: - _t1191 = None - attrs607 = _t1191 + _t1211 = None + attrs617 = _t1211 self.consume_literal(")") - _t1193 = logic_pb2.Break(name=relation_id605, body=abstraction606, attrs=(attrs607 if attrs607 is not None else [])) - return _t1193 + _t1213 = logic_pb2.Break(name=relation_id615, body=abstraction616, attrs=(attrs617 if attrs617 is not None else [])) + return _t1213 def parse_monoid_def(self) -> logic_pb2.MonoidDef: self.consume_literal("(") self.consume_literal("monoid") - _t1194 = self.parse_monoid() - monoid608 = _t1194 - _t1195 = self.parse_relation_id() - relation_id609 = _t1195 - _t1196 = self.parse_abstraction_with_arity() - abstraction_with_arity610 = _t1196 + _t1214 = self.parse_monoid() + monoid618 = _t1214 + _t1215 = self.parse_relation_id() + relation_id619 = _t1215 + _t1216 = self.parse_abstraction_with_arity() + abstraction_with_arity620 = _t1216 if self.match_lookahead_literal("(", 0): - _t1198 = self.parse_attrs() - _t1197 = _t1198 + _t1218 = self.parse_attrs() + _t1217 = _t1218 else: - _t1197 = None - attrs611 = _t1197 + _t1217 = None + attrs621 = _t1217 self.consume_literal(")") - _t1199 = logic_pb2.MonoidDef(monoid=monoid608, name=relation_id609, body=abstraction_with_arity610[0], attrs=(attrs611 if attrs611 is not None else []), value_arity=abstraction_with_arity610[1]) - return _t1199 + _t1219 = logic_pb2.MonoidDef(monoid=monoid618, name=relation_id619, body=abstraction_with_arity620[0], attrs=(attrs621 if attrs621 is not None else []), value_arity=abstraction_with_arity620[1]) + return _t1219 def parse_monoid(self) -> logic_pb2.Monoid: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("sum", 1): - _t1201 = 3 + _t1221 = 3 else: if self.match_lookahead_literal("or", 1): - _t1202 = 0 + _t1222 = 0 else: if self.match_lookahead_literal("min", 1): - _t1203 = 1 + _t1223 = 1 else: if self.match_lookahead_literal("max", 1): - _t1204 = 2 + _t1224 = 2 else: - _t1204 = -1 - _t1203 = _t1204 - _t1202 = _t1203 - _t1201 = _t1202 - _t1200 = _t1201 - else: - _t1200 = -1 - prediction612 = _t1200 - if prediction612 == 3: - _t1206 = self.parse_sum_monoid() - sum_monoid616 = _t1206 - _t1207 = logic_pb2.Monoid(sum_monoid=sum_monoid616) - _t1205 = _t1207 - else: - if prediction612 == 2: - _t1209 = self.parse_max_monoid() - max_monoid615 = _t1209 - _t1210 = logic_pb2.Monoid(max_monoid=max_monoid615) - _t1208 = _t1210 + _t1224 = -1 + _t1223 = _t1224 + _t1222 = _t1223 + _t1221 = _t1222 + _t1220 = _t1221 + else: + _t1220 = -1 + prediction622 = _t1220 + if prediction622 == 3: + _t1226 = self.parse_sum_monoid() + sum_monoid626 = _t1226 + _t1227 = logic_pb2.Monoid(sum_monoid=sum_monoid626) + _t1225 = _t1227 + else: + if prediction622 == 2: + _t1229 = self.parse_max_monoid() + max_monoid625 = _t1229 + _t1230 = logic_pb2.Monoid(max_monoid=max_monoid625) + _t1228 = _t1230 else: - if prediction612 == 1: - _t1212 = self.parse_min_monoid() - min_monoid614 = _t1212 - _t1213 = logic_pb2.Monoid(min_monoid=min_monoid614) - _t1211 = _t1213 + if prediction622 == 1: + _t1232 = self.parse_min_monoid() + min_monoid624 = _t1232 + _t1233 = logic_pb2.Monoid(min_monoid=min_monoid624) + _t1231 = _t1233 else: - if prediction612 == 0: - _t1215 = self.parse_or_monoid() - or_monoid613 = _t1215 - _t1216 = logic_pb2.Monoid(or_monoid=or_monoid613) - _t1214 = _t1216 + if prediction622 == 0: + _t1235 = self.parse_or_monoid() + or_monoid623 = _t1235 + _t1236 = logic_pb2.Monoid(or_monoid=or_monoid623) + _t1234 = _t1236 else: raise ParseError("Unexpected token in monoid" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1211 = _t1214 - _t1208 = _t1211 - _t1205 = _t1208 - return _t1205 + _t1231 = _t1234 + _t1228 = _t1231 + _t1225 = _t1228 + return _t1225 def parse_or_monoid(self) -> logic_pb2.OrMonoid: self.consume_literal("(") self.consume_literal("or") self.consume_literal(")") - _t1217 = logic_pb2.OrMonoid() - return _t1217 + _t1237 = logic_pb2.OrMonoid() + return _t1237 def parse_min_monoid(self) -> logic_pb2.MinMonoid: self.consume_literal("(") self.consume_literal("min") - _t1218 = self.parse_type() - type617 = _t1218 + _t1238 = self.parse_type() + type627 = _t1238 self.consume_literal(")") - _t1219 = logic_pb2.MinMonoid(type=type617) - return _t1219 + _t1239 = logic_pb2.MinMonoid(type=type627) + return _t1239 def parse_max_monoid(self) -> logic_pb2.MaxMonoid: self.consume_literal("(") self.consume_literal("max") - _t1220 = self.parse_type() - type618 = _t1220 + _t1240 = self.parse_type() + type628 = _t1240 self.consume_literal(")") - _t1221 = logic_pb2.MaxMonoid(type=type618) - return _t1221 + _t1241 = logic_pb2.MaxMonoid(type=type628) + return _t1241 def parse_sum_monoid(self) -> logic_pb2.SumMonoid: self.consume_literal("(") self.consume_literal("sum") - _t1222 = self.parse_type() - type619 = _t1222 + _t1242 = self.parse_type() + type629 = _t1242 self.consume_literal(")") - _t1223 = logic_pb2.SumMonoid(type=type619) - return _t1223 + _t1243 = logic_pb2.SumMonoid(type=type629) + return _t1243 def parse_monus_def(self) -> logic_pb2.MonusDef: self.consume_literal("(") self.consume_literal("monus") - _t1224 = self.parse_monoid() - monoid620 = _t1224 - _t1225 = self.parse_relation_id() - relation_id621 = _t1225 - _t1226 = self.parse_abstraction_with_arity() - abstraction_with_arity622 = _t1226 + _t1244 = self.parse_monoid() + monoid630 = _t1244 + _t1245 = self.parse_relation_id() + relation_id631 = _t1245 + _t1246 = self.parse_abstraction_with_arity() + abstraction_with_arity632 = _t1246 if self.match_lookahead_literal("(", 0): - _t1228 = self.parse_attrs() - _t1227 = _t1228 + _t1248 = self.parse_attrs() + _t1247 = _t1248 else: - _t1227 = None - attrs623 = _t1227 + _t1247 = None + attrs633 = _t1247 self.consume_literal(")") - _t1229 = logic_pb2.MonusDef(monoid=monoid620, name=relation_id621, body=abstraction_with_arity622[0], attrs=(attrs623 if attrs623 is not None else []), value_arity=abstraction_with_arity622[1]) - return _t1229 + _t1249 = logic_pb2.MonusDef(monoid=monoid630, name=relation_id631, body=abstraction_with_arity632[0], attrs=(attrs633 if attrs633 is not None else []), value_arity=abstraction_with_arity632[1]) + return _t1249 def parse_constraint(self) -> logic_pb2.Constraint: self.consume_literal("(") self.consume_literal("functional_dependency") - _t1230 = self.parse_relation_id() - relation_id624 = _t1230 - _t1231 = self.parse_abstraction() - abstraction625 = _t1231 - _t1232 = self.parse_functional_dependency_keys() - functional_dependency_keys626 = _t1232 - _t1233 = self.parse_functional_dependency_values() - functional_dependency_values627 = _t1233 - self.consume_literal(")") - _t1234 = logic_pb2.FunctionalDependency(guard=abstraction625, keys=functional_dependency_keys626, values=functional_dependency_values627) - _t1235 = logic_pb2.Constraint(name=relation_id624, functional_dependency=_t1234) - return _t1235 + _t1250 = self.parse_relation_id() + relation_id634 = _t1250 + _t1251 = self.parse_abstraction() + abstraction635 = _t1251 + _t1252 = self.parse_functional_dependency_keys() + functional_dependency_keys636 = _t1252 + _t1253 = self.parse_functional_dependency_values() + functional_dependency_values637 = _t1253 + self.consume_literal(")") + _t1254 = logic_pb2.FunctionalDependency(guard=abstraction635, keys=functional_dependency_keys636, values=functional_dependency_values637) + _t1255 = logic_pb2.Constraint(name=relation_id634, functional_dependency=_t1254) + return _t1255 def parse_functional_dependency_keys(self) -> Sequence[logic_pb2.Var]: self.consume_literal("(") self.consume_literal("keys") - xs628 = [] - cond629 = self.match_lookahead_terminal("SYMBOL", 0) - while cond629: - _t1236 = self.parse_var() - item630 = _t1236 - xs628.append(item630) - cond629 = self.match_lookahead_terminal("SYMBOL", 0) - vars631 = xs628 + xs638 = [] + cond639 = self.match_lookahead_terminal("SYMBOL", 0) + while cond639: + _t1256 = self.parse_var() + item640 = _t1256 + xs638.append(item640) + cond639 = self.match_lookahead_terminal("SYMBOL", 0) + vars641 = xs638 self.consume_literal(")") - return vars631 + return vars641 def parse_functional_dependency_values(self) -> Sequence[logic_pb2.Var]: self.consume_literal("(") self.consume_literal("values") - xs632 = [] - cond633 = self.match_lookahead_terminal("SYMBOL", 0) - while cond633: - _t1237 = self.parse_var() - item634 = _t1237 - xs632.append(item634) - cond633 = self.match_lookahead_terminal("SYMBOL", 0) - vars635 = xs632 + xs642 = [] + cond643 = self.match_lookahead_terminal("SYMBOL", 0) + while cond643: + _t1257 = self.parse_var() + item644 = _t1257 + xs642.append(item644) + cond643 = self.match_lookahead_terminal("SYMBOL", 0) + vars645 = xs642 self.consume_literal(")") - return vars635 + return vars645 def parse_data(self) -> logic_pb2.Data: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("edb", 1): - _t1239 = 0 + _t1259 = 0 else: if self.match_lookahead_literal("csv_data", 1): - _t1240 = 2 + _t1260 = 2 else: if self.match_lookahead_literal("betree_relation", 1): - _t1241 = 1 + _t1261 = 1 else: - _t1241 = -1 - _t1240 = _t1241 - _t1239 = _t1240 - _t1238 = _t1239 - else: - _t1238 = -1 - prediction636 = _t1238 - if prediction636 == 2: - _t1243 = self.parse_csv_data() - csv_data639 = _t1243 - _t1244 = logic_pb2.Data(csv_data=csv_data639) - _t1242 = _t1244 - else: - if prediction636 == 1: - _t1246 = self.parse_betree_relation() - betree_relation638 = _t1246 - _t1247 = logic_pb2.Data(betree_relation=betree_relation638) - _t1245 = _t1247 + _t1261 = -1 + _t1260 = _t1261 + _t1259 = _t1260 + _t1258 = _t1259 + else: + _t1258 = -1 + prediction646 = _t1258 + if prediction646 == 2: + _t1263 = self.parse_csv_data() + csv_data649 = _t1263 + _t1264 = logic_pb2.Data(csv_data=csv_data649) + _t1262 = _t1264 + else: + if prediction646 == 1: + _t1266 = self.parse_betree_relation() + betree_relation648 = _t1266 + _t1267 = logic_pb2.Data(betree_relation=betree_relation648) + _t1265 = _t1267 else: - if prediction636 == 0: - _t1249 = self.parse_edb() - edb637 = _t1249 - _t1250 = logic_pb2.Data(edb=edb637) - _t1248 = _t1250 + if prediction646 == 0: + _t1269 = self.parse_edb() + edb647 = _t1269 + _t1270 = logic_pb2.Data(edb=edb647) + _t1268 = _t1270 else: raise ParseError("Unexpected token in data" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1245 = _t1248 - _t1242 = _t1245 - return _t1242 + _t1265 = _t1268 + _t1262 = _t1265 + return _t1262 def parse_edb(self) -> logic_pb2.EDB: self.consume_literal("(") self.consume_literal("edb") - _t1251 = self.parse_relation_id() - relation_id640 = _t1251 - _t1252 = self.parse_edb_path() - edb_path641 = _t1252 - _t1253 = self.parse_edb_types() - edb_types642 = _t1253 - self.consume_literal(")") - _t1254 = logic_pb2.EDB(target_id=relation_id640, path=edb_path641, types=edb_types642) - return _t1254 + _t1271 = self.parse_relation_id() + relation_id650 = _t1271 + _t1272 = self.parse_edb_path() + edb_path651 = _t1272 + _t1273 = self.parse_edb_types() + edb_types652 = _t1273 + self.consume_literal(")") + _t1274 = logic_pb2.EDB(target_id=relation_id650, path=edb_path651, types=edb_types652) + return _t1274 def parse_edb_path(self) -> Sequence[str]: self.consume_literal("[") - xs643 = [] - cond644 = self.match_lookahead_terminal("STRING", 0) - while cond644: - item645 = self.consume_terminal("STRING") - xs643.append(item645) - cond644 = self.match_lookahead_terminal("STRING", 0) - strings646 = xs643 + xs653 = [] + cond654 = self.match_lookahead_terminal("STRING", 0) + while cond654: + item655 = self.consume_terminal("STRING") + xs653.append(item655) + cond654 = self.match_lookahead_terminal("STRING", 0) + strings656 = xs653 self.consume_literal("]") - return strings646 + return strings656 def parse_edb_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("[") - xs647 = [] - cond648 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - while cond648: - _t1255 = self.parse_type() - item649 = _t1255 - xs647.append(item649) - cond648 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - types650 = xs647 + xs657 = [] + cond658 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + while cond658: + _t1275 = self.parse_type() + item659 = _t1275 + xs657.append(item659) + cond658 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + types660 = xs657 self.consume_literal("]") - return types650 + return types660 def parse_betree_relation(self) -> logic_pb2.BeTreeRelation: self.consume_literal("(") self.consume_literal("betree_relation") - _t1256 = self.parse_relation_id() - relation_id651 = _t1256 - _t1257 = self.parse_betree_info() - betree_info652 = _t1257 + _t1276 = self.parse_relation_id() + relation_id661 = _t1276 + _t1277 = self.parse_betree_info() + betree_info662 = _t1277 self.consume_literal(")") - _t1258 = logic_pb2.BeTreeRelation(name=relation_id651, relation_info=betree_info652) - return _t1258 + _t1278 = logic_pb2.BeTreeRelation(name=relation_id661, relation_info=betree_info662) + return _t1278 def parse_betree_info(self) -> logic_pb2.BeTreeInfo: self.consume_literal("(") self.consume_literal("betree_info") - _t1259 = self.parse_betree_info_key_types() - betree_info_key_types653 = _t1259 - _t1260 = self.parse_betree_info_value_types() - betree_info_value_types654 = _t1260 - _t1261 = self.parse_config_dict() - config_dict655 = _t1261 - self.consume_literal(")") - _t1262 = self.construct_betree_info(betree_info_key_types653, betree_info_value_types654, config_dict655) - return _t1262 + _t1279 = self.parse_betree_info_key_types() + betree_info_key_types663 = _t1279 + _t1280 = self.parse_betree_info_value_types() + betree_info_value_types664 = _t1280 + _t1281 = self.parse_config_dict() + config_dict665 = _t1281 + self.consume_literal(")") + _t1282 = self.construct_betree_info(betree_info_key_types663, betree_info_value_types664, config_dict665) + return _t1282 def parse_betree_info_key_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("(") self.consume_literal("key_types") - xs656 = [] - cond657 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - while cond657: - _t1263 = self.parse_type() - item658 = _t1263 - xs656.append(item658) - cond657 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - types659 = xs656 + xs666 = [] + cond667 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + while cond667: + _t1283 = self.parse_type() + item668 = _t1283 + xs666.append(item668) + cond667 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + types669 = xs666 self.consume_literal(")") - return types659 + return types669 def parse_betree_info_value_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("(") self.consume_literal("value_types") - xs660 = [] - cond661 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - while cond661: - _t1264 = self.parse_type() - item662 = _t1264 - xs660.append(item662) - cond661 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - types663 = xs660 + xs670 = [] + cond671 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + while cond671: + _t1284 = self.parse_type() + item672 = _t1284 + xs670.append(item672) + cond671 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + types673 = xs670 self.consume_literal(")") - return types663 + return types673 def parse_csv_data(self) -> logic_pb2.CSVData: self.consume_literal("(") self.consume_literal("csv_data") - _t1265 = self.parse_csvlocator() - csvlocator664 = _t1265 - _t1266 = self.parse_csv_config() - csv_config665 = _t1266 - _t1267 = self.parse_gnf_columns() - gnf_columns666 = _t1267 - _t1268 = self.parse_csv_asof() - csv_asof667 = _t1268 - self.consume_literal(")") - _t1269 = logic_pb2.CSVData(locator=csvlocator664, config=csv_config665, columns=gnf_columns666, asof=csv_asof667) - return _t1269 + _t1285 = self.parse_csvlocator() + csvlocator674 = _t1285 + _t1286 = self.parse_csv_config() + csv_config675 = _t1286 + _t1287 = self.parse_gnf_columns() + gnf_columns676 = _t1287 + _t1288 = self.parse_csv_asof() + csv_asof677 = _t1288 + self.consume_literal(")") + _t1289 = logic_pb2.CSVData(locator=csvlocator674, config=csv_config675, columns=gnf_columns676, asof=csv_asof677) + return _t1289 def parse_csvlocator(self) -> logic_pb2.CSVLocator: self.consume_literal("(") self.consume_literal("csv_locator") if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("paths", 1)): - _t1271 = self.parse_csv_locator_paths() - _t1270 = _t1271 + _t1291 = self.parse_csv_locator_paths() + _t1290 = _t1291 else: - _t1270 = None - csv_locator_paths668 = _t1270 + _t1290 = None + csv_locator_paths678 = _t1290 if self.match_lookahead_literal("(", 0): - _t1273 = self.parse_csv_locator_inline_data() - _t1272 = _t1273 + _t1293 = self.parse_csv_locator_inline_data() + _t1292 = _t1293 else: - _t1272 = None - csv_locator_inline_data669 = _t1272 + _t1292 = None + csv_locator_inline_data679 = _t1292 self.consume_literal(")") - _t1274 = logic_pb2.CSVLocator(paths=(csv_locator_paths668 if csv_locator_paths668 is not None else []), inline_data=(csv_locator_inline_data669 if csv_locator_inline_data669 is not None else "").encode()) - return _t1274 + _t1294 = logic_pb2.CSVLocator(paths=(csv_locator_paths678 if csv_locator_paths678 is not None else []), inline_data=(csv_locator_inline_data679 if csv_locator_inline_data679 is not None else "").encode()) + return _t1294 def parse_csv_locator_paths(self) -> Sequence[str]: self.consume_literal("(") self.consume_literal("paths") - xs670 = [] - cond671 = self.match_lookahead_terminal("STRING", 0) - while cond671: - item672 = self.consume_terminal("STRING") - xs670.append(item672) - cond671 = self.match_lookahead_terminal("STRING", 0) - strings673 = xs670 + xs680 = [] + cond681 = self.match_lookahead_terminal("STRING", 0) + while cond681: + item682 = self.consume_terminal("STRING") + xs680.append(item682) + cond681 = self.match_lookahead_terminal("STRING", 0) + strings683 = xs680 self.consume_literal(")") - return strings673 + return strings683 def parse_csv_locator_inline_data(self) -> str: self.consume_literal("(") self.consume_literal("inline_data") - string674 = self.consume_terminal("STRING") + string684 = self.consume_terminal("STRING") self.consume_literal(")") - return string674 + return string684 def parse_csv_config(self) -> logic_pb2.CSVConfig: self.consume_literal("(") self.consume_literal("csv_config") - _t1275 = self.parse_config_dict() - config_dict675 = _t1275 + _t1295 = self.parse_config_dict() + config_dict685 = _t1295 self.consume_literal(")") - _t1276 = self.construct_csv_config(config_dict675) - return _t1276 + _t1296 = self.construct_csv_config(config_dict685) + return _t1296 def parse_gnf_columns(self) -> Sequence[logic_pb2.GNFColumn]: self.consume_literal("(") self.consume_literal("columns") - xs676 = [] - cond677 = self.match_lookahead_literal("(", 0) - while cond677: - _t1277 = self.parse_gnf_column() - item678 = _t1277 - xs676.append(item678) - cond677 = self.match_lookahead_literal("(", 0) - gnf_columns679 = xs676 + xs686 = [] + cond687 = self.match_lookahead_literal("(", 0) + while cond687: + _t1297 = self.parse_gnf_column() + item688 = _t1297 + xs686.append(item688) + cond687 = self.match_lookahead_literal("(", 0) + gnf_columns689 = xs686 self.consume_literal(")") - return gnf_columns679 + return gnf_columns689 def parse_gnf_column(self) -> logic_pb2.GNFColumn: self.consume_literal("(") self.consume_literal("column") - _t1278 = self.parse_gnf_column_path() - gnf_column_path680 = _t1278 + _t1298 = self.parse_gnf_column_path() + gnf_column_path690 = _t1298 if (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)): - _t1280 = self.parse_relation_id() - _t1279 = _t1280 + _t1300 = self.parse_relation_id() + _t1299 = _t1300 else: - _t1279 = None - relation_id681 = _t1279 + _t1299 = None + relation_id691 = _t1299 self.consume_literal("[") - xs682 = [] - cond683 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - while cond683: - _t1281 = self.parse_type() - item684 = _t1281 - xs682.append(item684) - cond683 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - types685 = xs682 + xs692 = [] + cond693 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + while cond693: + _t1301 = self.parse_type() + item694 = _t1301 + xs692.append(item694) + cond693 = ((((((((((self.match_lookahead_literal("(", 0) or self.match_lookahead_literal("BOOLEAN", 0)) or self.match_lookahead_literal("DATE", 0)) or self.match_lookahead_literal("DATETIME", 0)) or self.match_lookahead_literal("FLOAT", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("MISSING", 0)) or self.match_lookahead_literal("STRING", 0)) or self.match_lookahead_literal("UINT128", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + types695 = xs692 self.consume_literal("]") self.consume_literal(")") - _t1282 = logic_pb2.GNFColumn(column_path=gnf_column_path680, target_id=relation_id681, types=types685) - return _t1282 + _t1302 = logic_pb2.GNFColumn(column_path=gnf_column_path690, target_id=relation_id691, types=types695) + return _t1302 def parse_gnf_column_path(self) -> Sequence[str]: if self.match_lookahead_literal("[", 0): - _t1283 = 1 + _t1303 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t1284 = 0 + _t1304 = 0 else: - _t1284 = -1 - _t1283 = _t1284 - prediction686 = _t1283 - if prediction686 == 1: + _t1304 = -1 + _t1303 = _t1304 + prediction696 = _t1303 + if prediction696 == 1: self.consume_literal("[") - xs688 = [] - cond689 = self.match_lookahead_terminal("STRING", 0) - while cond689: - item690 = self.consume_terminal("STRING") - xs688.append(item690) - cond689 = self.match_lookahead_terminal("STRING", 0) - strings691 = xs688 + xs698 = [] + cond699 = self.match_lookahead_terminal("STRING", 0) + while cond699: + item700 = self.consume_terminal("STRING") + xs698.append(item700) + cond699 = self.match_lookahead_terminal("STRING", 0) + strings701 = xs698 self.consume_literal("]") - _t1285 = strings691 + _t1305 = strings701 else: - if prediction686 == 0: - string687 = self.consume_terminal("STRING") - _t1286 = [string687] + if prediction696 == 0: + string697 = self.consume_terminal("STRING") + _t1306 = [string697] else: raise ParseError("Unexpected token in gnf_column_path" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1285 = _t1286 - return _t1285 + _t1305 = _t1306 + return _t1305 def parse_csv_asof(self) -> str: self.consume_literal("(") self.consume_literal("asof") - string692 = self.consume_terminal("STRING") + string702 = self.consume_terminal("STRING") self.consume_literal(")") - return string692 + return string702 def parse_undefine(self) -> transactions_pb2.Undefine: self.consume_literal("(") self.consume_literal("undefine") - _t1287 = self.parse_fragment_id() - fragment_id693 = _t1287 + _t1307 = self.parse_fragment_id() + fragment_id703 = _t1307 self.consume_literal(")") - _t1288 = transactions_pb2.Undefine(fragment_id=fragment_id693) - return _t1288 + _t1308 = transactions_pb2.Undefine(fragment_id=fragment_id703) + return _t1308 def parse_context(self) -> transactions_pb2.Context: self.consume_literal("(") self.consume_literal("context") - xs694 = [] - cond695 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - while cond695: - _t1289 = self.parse_relation_id() - item696 = _t1289 - xs694.append(item696) - cond695 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - relation_ids697 = xs694 - self.consume_literal(")") - _t1290 = transactions_pb2.Context(relations=relation_ids697) - return _t1290 + xs704 = [] + cond705 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + while cond705: + _t1309 = self.parse_relation_id() + item706 = _t1309 + xs704.append(item706) + cond705 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + relation_ids707 = xs704 + self.consume_literal(")") + _t1310 = transactions_pb2.Context(relations=relation_ids707) + return _t1310 def parse_snapshot(self) -> transactions_pb2.Snapshot: self.consume_literal("(") self.consume_literal("snapshot") - xs698 = [] - cond699 = self.match_lookahead_literal("[", 0) - while cond699: - _t1291 = self.parse_snapshot_mapping() - item700 = _t1291 - xs698.append(item700) - cond699 = self.match_lookahead_literal("[", 0) - snapshot_mappings701 = xs698 - self.consume_literal(")") - _t1292 = transactions_pb2.Snapshot(mappings=snapshot_mappings701) - return _t1292 + xs708 = [] + cond709 = self.match_lookahead_literal("[", 0) + while cond709: + _t1311 = self.parse_snapshot_mapping() + item710 = _t1311 + xs708.append(item710) + cond709 = self.match_lookahead_literal("[", 0) + snapshot_mappings711 = xs708 + self.consume_literal(")") + _t1312 = transactions_pb2.Snapshot(mappings=snapshot_mappings711) + return _t1312 def parse_snapshot_mapping(self) -> transactions_pb2.SnapshotMapping: - _t1293 = self.parse_edb_path() - edb_path702 = _t1293 - _t1294 = self.parse_relation_id() - relation_id703 = _t1294 - _t1295 = transactions_pb2.SnapshotMapping(destination_path=edb_path702, source_relation=relation_id703) - return _t1295 + _t1313 = self.parse_edb_path() + edb_path712 = _t1313 + _t1314 = self.parse_relation_id() + relation_id713 = _t1314 + _t1315 = transactions_pb2.SnapshotMapping(destination_path=edb_path712, source_relation=relation_id713) + return _t1315 def parse_epoch_reads(self) -> Sequence[transactions_pb2.Read]: self.consume_literal("(") self.consume_literal("reads") - xs704 = [] - cond705 = self.match_lookahead_literal("(", 0) - while cond705: - _t1296 = self.parse_read() - item706 = _t1296 - xs704.append(item706) - cond705 = self.match_lookahead_literal("(", 0) - reads707 = xs704 + xs714 = [] + cond715 = self.match_lookahead_literal("(", 0) + while cond715: + _t1316 = self.parse_read() + item716 = _t1316 + xs714.append(item716) + cond715 = self.match_lookahead_literal("(", 0) + reads717 = xs714 self.consume_literal(")") - return reads707 + return reads717 def parse_read(self) -> transactions_pb2.Read: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("what_if", 1): - _t1298 = 2 + _t1318 = 2 else: if self.match_lookahead_literal("output", 1): - _t1299 = 1 + _t1319 = 1 else: if self.match_lookahead_literal("export", 1): - _t1300 = 4 + _t1320 = 4 else: if self.match_lookahead_literal("demand", 1): - _t1301 = 0 + _t1321 = 0 else: if self.match_lookahead_literal("abort", 1): - _t1302 = 3 + _t1322 = 3 else: - _t1302 = -1 - _t1301 = _t1302 - _t1300 = _t1301 - _t1299 = _t1300 - _t1298 = _t1299 - _t1297 = _t1298 - else: - _t1297 = -1 - prediction708 = _t1297 - if prediction708 == 4: - _t1304 = self.parse_export() - export713 = _t1304 - _t1305 = transactions_pb2.Read(export=export713) - _t1303 = _t1305 - else: - if prediction708 == 3: - _t1307 = self.parse_abort() - abort712 = _t1307 - _t1308 = transactions_pb2.Read(abort=abort712) - _t1306 = _t1308 + _t1322 = -1 + _t1321 = _t1322 + _t1320 = _t1321 + _t1319 = _t1320 + _t1318 = _t1319 + _t1317 = _t1318 + else: + _t1317 = -1 + prediction718 = _t1317 + if prediction718 == 4: + _t1324 = self.parse_export() + export723 = _t1324 + _t1325 = transactions_pb2.Read(export=export723) + _t1323 = _t1325 + else: + if prediction718 == 3: + _t1327 = self.parse_abort() + abort722 = _t1327 + _t1328 = transactions_pb2.Read(abort=abort722) + _t1326 = _t1328 else: - if prediction708 == 2: - _t1310 = self.parse_what_if() - what_if711 = _t1310 - _t1311 = transactions_pb2.Read(what_if=what_if711) - _t1309 = _t1311 + if prediction718 == 2: + _t1330 = self.parse_what_if() + what_if721 = _t1330 + _t1331 = transactions_pb2.Read(what_if=what_if721) + _t1329 = _t1331 else: - if prediction708 == 1: - _t1313 = self.parse_output() - output710 = _t1313 - _t1314 = transactions_pb2.Read(output=output710) - _t1312 = _t1314 + if prediction718 == 1: + _t1333 = self.parse_output() + output720 = _t1333 + _t1334 = transactions_pb2.Read(output=output720) + _t1332 = _t1334 else: - if prediction708 == 0: - _t1316 = self.parse_demand() - demand709 = _t1316 - _t1317 = transactions_pb2.Read(demand=demand709) - _t1315 = _t1317 + if prediction718 == 0: + _t1336 = self.parse_demand() + demand719 = _t1336 + _t1337 = transactions_pb2.Read(demand=demand719) + _t1335 = _t1337 else: raise ParseError("Unexpected token in read" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1312 = _t1315 - _t1309 = _t1312 - _t1306 = _t1309 - _t1303 = _t1306 - return _t1303 + _t1332 = _t1335 + _t1329 = _t1332 + _t1326 = _t1329 + _t1323 = _t1326 + return _t1323 def parse_demand(self) -> transactions_pb2.Demand: self.consume_literal("(") self.consume_literal("demand") - _t1318 = self.parse_relation_id() - relation_id714 = _t1318 + _t1338 = self.parse_relation_id() + relation_id724 = _t1338 self.consume_literal(")") - _t1319 = transactions_pb2.Demand(relation_id=relation_id714) - return _t1319 + _t1339 = transactions_pb2.Demand(relation_id=relation_id724) + return _t1339 def parse_output(self) -> transactions_pb2.Output: self.consume_literal("(") self.consume_literal("output") - _t1320 = self.parse_name() - name715 = _t1320 - _t1321 = self.parse_relation_id() - relation_id716 = _t1321 + _t1340 = self.parse_name() + name725 = _t1340 + _t1341 = self.parse_relation_id() + relation_id726 = _t1341 self.consume_literal(")") - _t1322 = transactions_pb2.Output(name=name715, relation_id=relation_id716) - return _t1322 + _t1342 = transactions_pb2.Output(name=name725, relation_id=relation_id726) + return _t1342 def parse_what_if(self) -> transactions_pb2.WhatIf: self.consume_literal("(") self.consume_literal("what_if") - _t1323 = self.parse_name() - name717 = _t1323 - _t1324 = self.parse_epoch() - epoch718 = _t1324 + _t1343 = self.parse_name() + name727 = _t1343 + _t1344 = self.parse_epoch() + epoch728 = _t1344 self.consume_literal(")") - _t1325 = transactions_pb2.WhatIf(branch=name717, epoch=epoch718) - return _t1325 + _t1345 = transactions_pb2.WhatIf(branch=name727, epoch=epoch728) + return _t1345 def parse_abort(self) -> transactions_pb2.Abort: self.consume_literal("(") self.consume_literal("abort") if (self.match_lookahead_literal(":", 0) and self.match_lookahead_terminal("SYMBOL", 1)): - _t1327 = self.parse_name() - _t1326 = _t1327 + _t1347 = self.parse_name() + _t1346 = _t1347 else: - _t1326 = None - name719 = _t1326 - _t1328 = self.parse_relation_id() - relation_id720 = _t1328 + _t1346 = None + name729 = _t1346 + _t1348 = self.parse_relation_id() + relation_id730 = _t1348 self.consume_literal(")") - _t1329 = transactions_pb2.Abort(name=(name719 if name719 is not None else "abort"), relation_id=relation_id720) - return _t1329 + _t1349 = transactions_pb2.Abort(name=(name729 if name729 is not None else "abort"), relation_id=relation_id730) + return _t1349 def parse_export(self) -> transactions_pb2.Export: self.consume_literal("(") self.consume_literal("export") - _t1330 = self.parse_export_csv_config() - export_csv_config721 = _t1330 + _t1350 = self.parse_export_csv_config() + export_csv_config731 = _t1350 self.consume_literal(")") - _t1331 = transactions_pb2.Export(csv_config=export_csv_config721) - return _t1331 + _t1351 = transactions_pb2.Export(csv_config=export_csv_config731) + return _t1351 def parse_export_csv_config(self) -> transactions_pb2.ExportCSVConfig: - self.consume_literal("(") - self.consume_literal("export_csv_config") - _t1332 = self.parse_export_csv_path() - export_csv_path722 = _t1332 - _t1333 = self.parse_export_csv_columns() - export_csv_columns723 = _t1333 - _t1334 = self.parse_config_dict() - config_dict724 = _t1334 - self.consume_literal(")") - _t1335 = self.export_csv_config(export_csv_path722, export_csv_columns723, config_dict724) - return _t1335 + if self.match_lookahead_literal("(", 0): + if self.match_lookahead_literal("export_csv_config_v2", 1): + _t1353 = 0 + else: + if self.match_lookahead_literal("export_csv_config", 1): + _t1354 = 1 + else: + _t1354 = -1 + _t1353 = _t1354 + _t1352 = _t1353 + else: + _t1352 = -1 + prediction732 = _t1352 + if prediction732 == 1: + self.consume_literal("(") + self.consume_literal("export_csv_config") + _t1356 = self.parse_export_csv_path() + export_csv_path736 = _t1356 + _t1357 = self.parse_export_csv_columns_list() + export_csv_columns_list737 = _t1357 + _t1358 = self.parse_config_dict() + config_dict738 = _t1358 + self.consume_literal(")") + _t1359 = self.construct_export_csv_config(export_csv_path736, export_csv_columns_list737, config_dict738) + _t1355 = _t1359 + else: + if prediction732 == 0: + self.consume_literal("(") + self.consume_literal("export_csv_config_v2") + _t1361 = self.parse_export_csv_path() + export_csv_path733 = _t1361 + _t1362 = self.parse_export_csv_source() + export_csv_source734 = _t1362 + _t1363 = self.parse_csv_config() + csv_config735 = _t1363 + self.consume_literal(")") + _t1364 = self.construct_export_csv_config_with_source(export_csv_path733, export_csv_source734, csv_config735) + _t1360 = _t1364 + else: + raise ParseError("Unexpected token in export_csv_config" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") + _t1355 = _t1360 + return _t1355 def parse_export_csv_path(self) -> str: self.consume_literal("(") self.consume_literal("path") - string725 = self.consume_terminal("STRING") + string739 = self.consume_terminal("STRING") self.consume_literal(")") - return string725 + return string739 - def parse_export_csv_columns(self) -> Sequence[transactions_pb2.ExportCSVColumn]: - self.consume_literal("(") - self.consume_literal("columns") - xs726 = [] - cond727 = self.match_lookahead_literal("(", 0) - while cond727: - _t1336 = self.parse_export_csv_column() - item728 = _t1336 - xs726.append(item728) - cond727 = self.match_lookahead_literal("(", 0) - export_csv_columns729 = xs726 - self.consume_literal(")") - return export_csv_columns729 + def parse_export_csv_source(self) -> transactions_pb2.ExportCSVSource: + if self.match_lookahead_literal("(", 0): + if self.match_lookahead_literal("table_def", 1): + _t1366 = 1 + else: + if self.match_lookahead_literal("gnf_columns", 1): + _t1367 = 0 + else: + _t1367 = -1 + _t1366 = _t1367 + _t1365 = _t1366 + else: + _t1365 = -1 + prediction740 = _t1365 + if prediction740 == 1: + self.consume_literal("(") + self.consume_literal("table_def") + _t1369 = self.parse_relation_id() + relation_id745 = _t1369 + self.consume_literal(")") + _t1370 = transactions_pb2.ExportCSVSource(table_def=relation_id745) + _t1368 = _t1370 + else: + if prediction740 == 0: + self.consume_literal("(") + self.consume_literal("gnf_columns") + xs741 = [] + cond742 = self.match_lookahead_literal("(", 0) + while cond742: + _t1372 = self.parse_export_csv_column() + item743 = _t1372 + xs741.append(item743) + cond742 = self.match_lookahead_literal("(", 0) + export_csv_columns744 = xs741 + self.consume_literal(")") + _t1373 = transactions_pb2.ExportCSVColumns(columns=export_csv_columns744) + _t1374 = transactions_pb2.ExportCSVSource(gnf_columns=_t1373) + _t1371 = _t1374 + else: + raise ParseError("Unexpected token in export_csv_source" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") + _t1368 = _t1371 + return _t1368 def parse_export_csv_column(self) -> transactions_pb2.ExportCSVColumn: self.consume_literal("(") self.consume_literal("column") - string730 = self.consume_terminal("STRING") - _t1337 = self.parse_relation_id() - relation_id731 = _t1337 + string746 = self.consume_terminal("STRING") + _t1375 = self.parse_relation_id() + relation_id747 = _t1375 self.consume_literal(")") - _t1338 = transactions_pb2.ExportCSVColumn(column_name=string730, column_data=relation_id731) - return _t1338 + _t1376 = transactions_pb2.ExportCSVColumn(column_name=string746, column_data=relation_id747) + return _t1376 + + def parse_export_csv_columns_list(self) -> Sequence[transactions_pb2.ExportCSVColumn]: + self.consume_literal("(") + self.consume_literal("columns") + xs748 = [] + cond749 = self.match_lookahead_literal("(", 0) + while cond749: + _t1377 = self.parse_export_csv_column() + item750 = _t1377 + xs748.append(item750) + cond749 = self.match_lookahead_literal("(", 0) + export_csv_columns751 = xs748 + self.consume_literal(")") + return export_csv_columns751 def parse(input_str: str) -> Any: diff --git a/sdks/python/src/lqp/gen/pretty.py b/sdks/python/src/lqp/gen/pretty.py index dae71207..54d33307 100644 --- a/sdks/python/src/lqp/gen/pretty.py +++ b/sdks/python/src/lqp/gen/pretty.py @@ -193,131 +193,134 @@ def write_debug_info(self) -> None: # --- Helper functions --- def _make_value_int32(self, v: int) -> logic_pb2.Value: - _t1395 = logic_pb2.Value(int_value=int(v)) - return _t1395 + _t1423 = logic_pb2.Value(int_value=int(v)) + return _t1423 def _make_value_int64(self, v: int) -> logic_pb2.Value: - _t1396 = logic_pb2.Value(int_value=v) - return _t1396 + _t1424 = logic_pb2.Value(int_value=v) + return _t1424 def _make_value_float64(self, v: float) -> logic_pb2.Value: - _t1397 = logic_pb2.Value(float_value=v) - return _t1397 + _t1425 = logic_pb2.Value(float_value=v) + return _t1425 def _make_value_string(self, v: str) -> logic_pb2.Value: - _t1398 = logic_pb2.Value(string_value=v) - return _t1398 + _t1426 = logic_pb2.Value(string_value=v) + return _t1426 def _make_value_boolean(self, v: bool) -> logic_pb2.Value: - _t1399 = logic_pb2.Value(boolean_value=v) - return _t1399 + _t1427 = logic_pb2.Value(boolean_value=v) + return _t1427 def _make_value_uint128(self, v: logic_pb2.UInt128Value) -> logic_pb2.Value: - _t1400 = logic_pb2.Value(uint128_value=v) - return _t1400 + _t1428 = logic_pb2.Value(uint128_value=v) + return _t1428 def deconstruct_configure(self, msg: transactions_pb2.Configure) -> list[tuple[str, logic_pb2.Value]]: result = [] if msg.ivm_config.level == transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_AUTO: - _t1401 = self._make_value_string("auto") - result.append(("ivm.maintenance_level", _t1401,)) + _t1429 = self._make_value_string("auto") + result.append(("ivm.maintenance_level", _t1429,)) else: if msg.ivm_config.level == transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_ALL: - _t1402 = self._make_value_string("all") - result.append(("ivm.maintenance_level", _t1402,)) + _t1430 = self._make_value_string("all") + result.append(("ivm.maintenance_level", _t1430,)) else: if msg.ivm_config.level == transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF: - _t1403 = self._make_value_string("off") - result.append(("ivm.maintenance_level", _t1403,)) - _t1404 = self._make_value_int64(msg.semantics_version) - result.append(("semantics_version", _t1404,)) + _t1431 = self._make_value_string("off") + result.append(("ivm.maintenance_level", _t1431,)) + _t1432 = self._make_value_int64(msg.semantics_version) + result.append(("semantics_version", _t1432,)) return sorted(result) def deconstruct_csv_config(self, msg: logic_pb2.CSVConfig) -> list[tuple[str, logic_pb2.Value]]: result = [] - _t1405 = self._make_value_int32(msg.header_row) - result.append(("csv_header_row", _t1405,)) - _t1406 = self._make_value_int64(msg.skip) - result.append(("csv_skip", _t1406,)) + _t1433 = self._make_value_int32(msg.header_row) + result.append(("csv_header_row", _t1433,)) + _t1434 = self._make_value_int64(msg.skip) + result.append(("csv_skip", _t1434,)) if msg.new_line != "": - _t1407 = self._make_value_string(msg.new_line) - result.append(("csv_new_line", _t1407,)) - _t1408 = self._make_value_string(msg.delimiter) - result.append(("csv_delimiter", _t1408,)) - _t1409 = self._make_value_string(msg.quotechar) - result.append(("csv_quotechar", _t1409,)) - _t1410 = self._make_value_string(msg.escapechar) - result.append(("csv_escapechar", _t1410,)) + _t1435 = self._make_value_string(msg.new_line) + result.append(("csv_new_line", _t1435,)) + _t1436 = self._make_value_string(msg.delimiter) + result.append(("csv_delimiter", _t1436,)) + _t1437 = self._make_value_string(msg.quotechar) + result.append(("csv_quotechar", _t1437,)) + _t1438 = self._make_value_string(msg.escapechar) + result.append(("csv_escapechar", _t1438,)) if msg.comment != "": - _t1411 = self._make_value_string(msg.comment) - result.append(("csv_comment", _t1411,)) + _t1439 = self._make_value_string(msg.comment) + result.append(("csv_comment", _t1439,)) for missing_string in msg.missing_strings: - _t1412 = self._make_value_string(missing_string) - result.append(("csv_missing_strings", _t1412,)) - _t1413 = self._make_value_string(msg.decimal_separator) - result.append(("csv_decimal_separator", _t1413,)) - _t1414 = self._make_value_string(msg.encoding) - result.append(("csv_encoding", _t1414,)) - _t1415 = self._make_value_string(msg.compression) - result.append(("csv_compression", _t1415,)) + _t1440 = self._make_value_string(missing_string) + result.append(("csv_missing_strings", _t1440,)) + _t1441 = self._make_value_string(msg.decimal_separator) + result.append(("csv_decimal_separator", _t1441,)) + _t1442 = self._make_value_string(msg.encoding) + result.append(("csv_encoding", _t1442,)) + _t1443 = self._make_value_string(msg.compression) + result.append(("csv_compression", _t1443,)) + if msg.partition_size_mb != 0: + _t1444 = self._make_value_int64(msg.partition_size_mb) + result.append(("csv_partition_size_mb", _t1444,)) return sorted(result) def deconstruct_betree_info_config(self, msg: logic_pb2.BeTreeInfo) -> list[tuple[str, logic_pb2.Value]]: result = [] - _t1416 = self._make_value_float64(msg.storage_config.epsilon) - result.append(("betree_config_epsilon", _t1416,)) - _t1417 = self._make_value_int64(msg.storage_config.max_pivots) - result.append(("betree_config_max_pivots", _t1417,)) - _t1418 = self._make_value_int64(msg.storage_config.max_deltas) - result.append(("betree_config_max_deltas", _t1418,)) - _t1419 = self._make_value_int64(msg.storage_config.max_leaf) - result.append(("betree_config_max_leaf", _t1419,)) + _t1445 = self._make_value_float64(msg.storage_config.epsilon) + result.append(("betree_config_epsilon", _t1445,)) + _t1446 = self._make_value_int64(msg.storage_config.max_pivots) + result.append(("betree_config_max_pivots", _t1446,)) + _t1447 = self._make_value_int64(msg.storage_config.max_deltas) + result.append(("betree_config_max_deltas", _t1447,)) + _t1448 = self._make_value_int64(msg.storage_config.max_leaf) + result.append(("betree_config_max_leaf", _t1448,)) if msg.relation_locator.HasField("root_pageid"): if msg.relation_locator.root_pageid is not None: assert msg.relation_locator.root_pageid is not None - _t1420 = self._make_value_uint128(msg.relation_locator.root_pageid) - result.append(("betree_locator_root_pageid", _t1420,)) + _t1449 = self._make_value_uint128(msg.relation_locator.root_pageid) + result.append(("betree_locator_root_pageid", _t1449,)) if msg.relation_locator.HasField("inline_data"): if msg.relation_locator.inline_data is not None: assert msg.relation_locator.inline_data is not None - _t1421 = self._make_value_string(msg.relation_locator.inline_data.decode('utf-8')) - result.append(("betree_locator_inline_data", _t1421,)) - _t1422 = self._make_value_int64(msg.relation_locator.element_count) - result.append(("betree_locator_element_count", _t1422,)) - _t1423 = self._make_value_int64(msg.relation_locator.tree_height) - result.append(("betree_locator_tree_height", _t1423,)) + _t1450 = self._make_value_string(msg.relation_locator.inline_data.decode('utf-8')) + result.append(("betree_locator_inline_data", _t1450,)) + _t1451 = self._make_value_int64(msg.relation_locator.element_count) + result.append(("betree_locator_element_count", _t1451,)) + _t1452 = self._make_value_int64(msg.relation_locator.tree_height) + result.append(("betree_locator_tree_height", _t1452,)) return sorted(result) def deconstruct_export_csv_config(self, msg: transactions_pb2.ExportCSVConfig) -> list[tuple[str, logic_pb2.Value]]: result = [] if msg.partition_size is not None: assert msg.partition_size is not None - _t1424 = self._make_value_int64(msg.partition_size) - result.append(("partition_size", _t1424,)) + _t1453 = self._make_value_int64(msg.partition_size) + result.append(("partition_size", _t1453,)) if msg.compression is not None: assert msg.compression is not None - _t1425 = self._make_value_string(msg.compression) - result.append(("compression", _t1425,)) + _t1454 = self._make_value_string(msg.compression) + result.append(("compression", _t1454,)) if msg.syntax_header_row is not None: assert msg.syntax_header_row is not None - _t1426 = self._make_value_boolean(msg.syntax_header_row) - result.append(("syntax_header_row", _t1426,)) + _t1455 = self._make_value_boolean(msg.syntax_header_row) + result.append(("syntax_header_row", _t1455,)) if msg.syntax_missing_string is not None: assert msg.syntax_missing_string is not None - _t1427 = self._make_value_string(msg.syntax_missing_string) - result.append(("syntax_missing_string", _t1427,)) + _t1456 = self._make_value_string(msg.syntax_missing_string) + result.append(("syntax_missing_string", _t1456,)) if msg.syntax_delim is not None: assert msg.syntax_delim is not None - _t1428 = self._make_value_string(msg.syntax_delim) - result.append(("syntax_delim", _t1428,)) + _t1457 = self._make_value_string(msg.syntax_delim) + result.append(("syntax_delim", _t1457,)) if msg.syntax_quotechar is not None: assert msg.syntax_quotechar is not None - _t1429 = self._make_value_string(msg.syntax_quotechar) - result.append(("syntax_quotechar", _t1429,)) + _t1458 = self._make_value_string(msg.syntax_quotechar) + result.append(("syntax_quotechar", _t1458,)) if msg.syntax_escapechar is not None: assert msg.syntax_escapechar is not None - _t1430 = self._make_value_string(msg.syntax_escapechar) - result.append(("syntax_escapechar", _t1430,)) + _t1459 = self._make_value_string(msg.syntax_escapechar) + result.append(("syntax_escapechar", _t1459,)) return sorted(result) def deconstruct_relation_id_string(self, msg: logic_pb2.RelationId) -> str: @@ -330,7 +333,7 @@ def deconstruct_relation_id_uint128(self, msg: logic_pb2.RelationId) -> Optional if name is None: return self.relation_id_to_uint128(msg) else: - _t1431 = None + _t1460 = None return None def deconstruct_bindings(self, abs: logic_pb2.Abstraction) -> tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]: @@ -345,3145 +348,3220 @@ def deconstruct_bindings_with_arity(self, abs: logic_pb2.Abstraction, value_arit # --- Pretty-print methods --- def pretty_transaction(self, msg: transactions_pb2.Transaction): - flat651 = self._try_flat(msg, self.pretty_transaction) - if flat651 is not None: - assert flat651 is not None - self.write(flat651) + flat663 = self._try_flat(msg, self.pretty_transaction) + if flat663 is not None: + assert flat663 is not None + self.write(flat663) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("configure"): - _t1284 = _dollar_dollar.configure + _t1308 = _dollar_dollar.configure else: - _t1284 = None + _t1308 = None if _dollar_dollar.HasField("sync"): - _t1285 = _dollar_dollar.sync + _t1309 = _dollar_dollar.sync else: - _t1285 = None - fields642 = (_t1284, _t1285, _dollar_dollar.epochs,) - assert fields642 is not None - unwrapped_fields643 = fields642 + _t1309 = None + fields654 = (_t1308, _t1309, _dollar_dollar.epochs,) + assert fields654 is not None + unwrapped_fields655 = fields654 self.write("(transaction") self.indent_sexp() - field644 = unwrapped_fields643[0] - if field644 is not None: + field656 = unwrapped_fields655[0] + if field656 is not None: self.newline() - assert field644 is not None - opt_val645 = field644 - self.pretty_configure(opt_val645) - field646 = unwrapped_fields643[1] - if field646 is not None: + assert field656 is not None + opt_val657 = field656 + self.pretty_configure(opt_val657) + field658 = unwrapped_fields655[1] + if field658 is not None: self.newline() - assert field646 is not None - opt_val647 = field646 - self.pretty_sync(opt_val647) - field648 = unwrapped_fields643[2] - if not len(field648) == 0: + assert field658 is not None + opt_val659 = field658 + self.pretty_sync(opt_val659) + field660 = unwrapped_fields655[2] + if not len(field660) == 0: self.newline() - for i650, elem649 in enumerate(field648): - if (i650 > 0): + for i662, elem661 in enumerate(field660): + if (i662 > 0): self.newline() - self.pretty_epoch(elem649) + self.pretty_epoch(elem661) self.dedent() self.write(")") def pretty_configure(self, msg: transactions_pb2.Configure): - flat654 = self._try_flat(msg, self.pretty_configure) - if flat654 is not None: - assert flat654 is not None - self.write(flat654) + flat666 = self._try_flat(msg, self.pretty_configure) + if flat666 is not None: + assert flat666 is not None + self.write(flat666) return None else: _dollar_dollar = msg - _t1286 = self.deconstruct_configure(_dollar_dollar) - fields652 = _t1286 - assert fields652 is not None - unwrapped_fields653 = fields652 + _t1310 = self.deconstruct_configure(_dollar_dollar) + fields664 = _t1310 + assert fields664 is not None + unwrapped_fields665 = fields664 self.write("(configure") self.indent_sexp() self.newline() - self.pretty_config_dict(unwrapped_fields653) + self.pretty_config_dict(unwrapped_fields665) self.dedent() self.write(")") def pretty_config_dict(self, msg: Sequence[tuple[str, logic_pb2.Value]]): - flat658 = self._try_flat(msg, self.pretty_config_dict) - if flat658 is not None: - assert flat658 is not None - self.write(flat658) + flat670 = self._try_flat(msg, self.pretty_config_dict) + if flat670 is not None: + assert flat670 is not None + self.write(flat670) return None else: - fields655 = msg + fields667 = msg self.write("{") self.indent() - if not len(fields655) == 0: + if not len(fields667) == 0: self.newline() - for i657, elem656 in enumerate(fields655): - if (i657 > 0): + for i669, elem668 in enumerate(fields667): + if (i669 > 0): self.newline() - self.pretty_config_key_value(elem656) + self.pretty_config_key_value(elem668) self.dedent() self.write("}") def pretty_config_key_value(self, msg: tuple[str, logic_pb2.Value]): - flat663 = self._try_flat(msg, self.pretty_config_key_value) - if flat663 is not None: - assert flat663 is not None - self.write(flat663) + flat675 = self._try_flat(msg, self.pretty_config_key_value) + if flat675 is not None: + assert flat675 is not None + self.write(flat675) return None else: _dollar_dollar = msg - fields659 = (_dollar_dollar[0], _dollar_dollar[1],) - assert fields659 is not None - unwrapped_fields660 = fields659 + fields671 = (_dollar_dollar[0], _dollar_dollar[1],) + assert fields671 is not None + unwrapped_fields672 = fields671 self.write(":") - field661 = unwrapped_fields660[0] - self.write(field661) + field673 = unwrapped_fields672[0] + self.write(field673) self.write(" ") - field662 = unwrapped_fields660[1] - self.pretty_value(field662) + field674 = unwrapped_fields672[1] + self.pretty_value(field674) def pretty_value(self, msg: logic_pb2.Value): - flat683 = self._try_flat(msg, self.pretty_value) - if flat683 is not None: - assert flat683 is not None - self.write(flat683) + flat695 = self._try_flat(msg, self.pretty_value) + if flat695 is not None: + assert flat695 is not None + self.write(flat695) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("date_value"): - _t1287 = _dollar_dollar.date_value + _t1311 = _dollar_dollar.date_value else: - _t1287 = None - deconstruct_result681 = _t1287 - if deconstruct_result681 is not None: - assert deconstruct_result681 is not None - unwrapped682 = deconstruct_result681 - self.pretty_date(unwrapped682) + _t1311 = None + deconstruct_result693 = _t1311 + if deconstruct_result693 is not None: + assert deconstruct_result693 is not None + unwrapped694 = deconstruct_result693 + self.pretty_date(unwrapped694) else: _dollar_dollar = msg if _dollar_dollar.HasField("datetime_value"): - _t1288 = _dollar_dollar.datetime_value + _t1312 = _dollar_dollar.datetime_value else: - _t1288 = None - deconstruct_result679 = _t1288 - if deconstruct_result679 is not None: - assert deconstruct_result679 is not None - unwrapped680 = deconstruct_result679 - self.pretty_datetime(unwrapped680) + _t1312 = None + deconstruct_result691 = _t1312 + if deconstruct_result691 is not None: + assert deconstruct_result691 is not None + unwrapped692 = deconstruct_result691 + self.pretty_datetime(unwrapped692) else: _dollar_dollar = msg if _dollar_dollar.HasField("string_value"): - _t1289 = _dollar_dollar.string_value + _t1313 = _dollar_dollar.string_value else: - _t1289 = None - deconstruct_result677 = _t1289 - if deconstruct_result677 is not None: - assert deconstruct_result677 is not None - unwrapped678 = deconstruct_result677 - self.write(self.format_string_value(unwrapped678)) + _t1313 = None + deconstruct_result689 = _t1313 + if deconstruct_result689 is not None: + assert deconstruct_result689 is not None + unwrapped690 = deconstruct_result689 + self.write(self.format_string_value(unwrapped690)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int_value"): - _t1290 = _dollar_dollar.int_value + _t1314 = _dollar_dollar.int_value else: - _t1290 = None - deconstruct_result675 = _t1290 - if deconstruct_result675 is not None: - assert deconstruct_result675 is not None - unwrapped676 = deconstruct_result675 - self.write(str(unwrapped676)) + _t1314 = None + deconstruct_result687 = _t1314 + if deconstruct_result687 is not None: + assert deconstruct_result687 is not None + unwrapped688 = deconstruct_result687 + self.write(str(unwrapped688)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float_value"): - _t1291 = _dollar_dollar.float_value + _t1315 = _dollar_dollar.float_value else: - _t1291 = None - deconstruct_result673 = _t1291 - if deconstruct_result673 is not None: - assert deconstruct_result673 is not None - unwrapped674 = deconstruct_result673 - self.write(str(unwrapped674)) + _t1315 = None + deconstruct_result685 = _t1315 + if deconstruct_result685 is not None: + assert deconstruct_result685 is not None + unwrapped686 = deconstruct_result685 + self.write(str(unwrapped686)) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint128_value"): - _t1292 = _dollar_dollar.uint128_value + _t1316 = _dollar_dollar.uint128_value else: - _t1292 = None - deconstruct_result671 = _t1292 - if deconstruct_result671 is not None: - assert deconstruct_result671 is not None - unwrapped672 = deconstruct_result671 - self.write(self.format_uint128(unwrapped672)) + _t1316 = None + deconstruct_result683 = _t1316 + if deconstruct_result683 is not None: + assert deconstruct_result683 is not None + unwrapped684 = deconstruct_result683 + self.write(self.format_uint128(unwrapped684)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int128_value"): - _t1293 = _dollar_dollar.int128_value + _t1317 = _dollar_dollar.int128_value else: - _t1293 = None - deconstruct_result669 = _t1293 - if deconstruct_result669 is not None: - assert deconstruct_result669 is not None - unwrapped670 = deconstruct_result669 - self.write(self.format_int128(unwrapped670)) + _t1317 = None + deconstruct_result681 = _t1317 + if deconstruct_result681 is not None: + assert deconstruct_result681 is not None + unwrapped682 = deconstruct_result681 + self.write(self.format_int128(unwrapped682)) else: _dollar_dollar = msg if _dollar_dollar.HasField("decimal_value"): - _t1294 = _dollar_dollar.decimal_value + _t1318 = _dollar_dollar.decimal_value else: - _t1294 = None - deconstruct_result667 = _t1294 - if deconstruct_result667 is not None: - assert deconstruct_result667 is not None - unwrapped668 = deconstruct_result667 - self.write(self.format_decimal(unwrapped668)) + _t1318 = None + deconstruct_result679 = _t1318 + if deconstruct_result679 is not None: + assert deconstruct_result679 is not None + unwrapped680 = deconstruct_result679 + self.write(self.format_decimal(unwrapped680)) else: _dollar_dollar = msg if _dollar_dollar.HasField("boolean_value"): - _t1295 = _dollar_dollar.boolean_value + _t1319 = _dollar_dollar.boolean_value else: - _t1295 = None - deconstruct_result665 = _t1295 - if deconstruct_result665 is not None: - assert deconstruct_result665 is not None - unwrapped666 = deconstruct_result665 - self.pretty_boolean_value(unwrapped666) + _t1319 = None + deconstruct_result677 = _t1319 + if deconstruct_result677 is not None: + assert deconstruct_result677 is not None + unwrapped678 = deconstruct_result677 + self.pretty_boolean_value(unwrapped678) else: - fields664 = msg + fields676 = msg self.write("missing") def pretty_date(self, msg: logic_pb2.DateValue): - flat689 = self._try_flat(msg, self.pretty_date) - if flat689 is not None: - assert flat689 is not None - self.write(flat689) + flat701 = self._try_flat(msg, self.pretty_date) + if flat701 is not None: + assert flat701 is not None + self.write(flat701) return None else: _dollar_dollar = msg - fields684 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) - assert fields684 is not None - unwrapped_fields685 = fields684 + fields696 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) + assert fields696 is not None + unwrapped_fields697 = fields696 self.write("(date") self.indent_sexp() self.newline() - field686 = unwrapped_fields685[0] - self.write(str(field686)) + field698 = unwrapped_fields697[0] + self.write(str(field698)) self.newline() - field687 = unwrapped_fields685[1] - self.write(str(field687)) + field699 = unwrapped_fields697[1] + self.write(str(field699)) self.newline() - field688 = unwrapped_fields685[2] - self.write(str(field688)) + field700 = unwrapped_fields697[2] + self.write(str(field700)) self.dedent() self.write(")") def pretty_datetime(self, msg: logic_pb2.DateTimeValue): - flat700 = self._try_flat(msg, self.pretty_datetime) - if flat700 is not None: - assert flat700 is not None - self.write(flat700) + flat712 = self._try_flat(msg, self.pretty_datetime) + if flat712 is not None: + assert flat712 is not None + self.write(flat712) return None else: _dollar_dollar = msg - fields690 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day), int(_dollar_dollar.hour), int(_dollar_dollar.minute), int(_dollar_dollar.second), int(_dollar_dollar.microsecond),) - assert fields690 is not None - unwrapped_fields691 = fields690 + fields702 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day), int(_dollar_dollar.hour), int(_dollar_dollar.minute), int(_dollar_dollar.second), int(_dollar_dollar.microsecond),) + assert fields702 is not None + unwrapped_fields703 = fields702 self.write("(datetime") self.indent_sexp() self.newline() - field692 = unwrapped_fields691[0] - self.write(str(field692)) + field704 = unwrapped_fields703[0] + self.write(str(field704)) self.newline() - field693 = unwrapped_fields691[1] - self.write(str(field693)) + field705 = unwrapped_fields703[1] + self.write(str(field705)) self.newline() - field694 = unwrapped_fields691[2] - self.write(str(field694)) + field706 = unwrapped_fields703[2] + self.write(str(field706)) self.newline() - field695 = unwrapped_fields691[3] - self.write(str(field695)) + field707 = unwrapped_fields703[3] + self.write(str(field707)) self.newline() - field696 = unwrapped_fields691[4] - self.write(str(field696)) + field708 = unwrapped_fields703[4] + self.write(str(field708)) self.newline() - field697 = unwrapped_fields691[5] - self.write(str(field697)) - field698 = unwrapped_fields691[6] - if field698 is not None: + field709 = unwrapped_fields703[5] + self.write(str(field709)) + field710 = unwrapped_fields703[6] + if field710 is not None: self.newline() - assert field698 is not None - opt_val699 = field698 - self.write(str(opt_val699)) + assert field710 is not None + opt_val711 = field710 + self.write(str(opt_val711)) self.dedent() self.write(")") def pretty_boolean_value(self, msg: bool): _dollar_dollar = msg if _dollar_dollar: - _t1296 = () + _t1320 = () else: - _t1296 = None - deconstruct_result703 = _t1296 - if deconstruct_result703 is not None: - assert deconstruct_result703 is not None - unwrapped704 = deconstruct_result703 + _t1320 = None + deconstruct_result715 = _t1320 + if deconstruct_result715 is not None: + assert deconstruct_result715 is not None + unwrapped716 = deconstruct_result715 self.write("true") else: _dollar_dollar = msg if not _dollar_dollar: - _t1297 = () + _t1321 = () else: - _t1297 = None - deconstruct_result701 = _t1297 - if deconstruct_result701 is not None: - assert deconstruct_result701 is not None - unwrapped702 = deconstruct_result701 + _t1321 = None + deconstruct_result713 = _t1321 + if deconstruct_result713 is not None: + assert deconstruct_result713 is not None + unwrapped714 = deconstruct_result713 self.write("false") else: raise ParseError("No matching rule for boolean_value") def pretty_sync(self, msg: transactions_pb2.Sync): - flat709 = self._try_flat(msg, self.pretty_sync) - if flat709 is not None: - assert flat709 is not None - self.write(flat709) + flat721 = self._try_flat(msg, self.pretty_sync) + if flat721 is not None: + assert flat721 is not None + self.write(flat721) return None else: _dollar_dollar = msg - fields705 = _dollar_dollar.fragments - assert fields705 is not None - unwrapped_fields706 = fields705 + fields717 = _dollar_dollar.fragments + assert fields717 is not None + unwrapped_fields718 = fields717 self.write("(sync") self.indent_sexp() - if not len(unwrapped_fields706) == 0: + if not len(unwrapped_fields718) == 0: self.newline() - for i708, elem707 in enumerate(unwrapped_fields706): - if (i708 > 0): + for i720, elem719 in enumerate(unwrapped_fields718): + if (i720 > 0): self.newline() - self.pretty_fragment_id(elem707) + self.pretty_fragment_id(elem719) self.dedent() self.write(")") def pretty_fragment_id(self, msg: fragments_pb2.FragmentId): - flat712 = self._try_flat(msg, self.pretty_fragment_id) - if flat712 is not None: - assert flat712 is not None - self.write(flat712) + flat724 = self._try_flat(msg, self.pretty_fragment_id) + if flat724 is not None: + assert flat724 is not None + self.write(flat724) return None else: _dollar_dollar = msg - fields710 = self.fragment_id_to_string(_dollar_dollar) - assert fields710 is not None - unwrapped_fields711 = fields710 + fields722 = self.fragment_id_to_string(_dollar_dollar) + assert fields722 is not None + unwrapped_fields723 = fields722 self.write(":") - self.write(unwrapped_fields711) + self.write(unwrapped_fields723) def pretty_epoch(self, msg: transactions_pb2.Epoch): - flat719 = self._try_flat(msg, self.pretty_epoch) - if flat719 is not None: - assert flat719 is not None - self.write(flat719) + flat731 = self._try_flat(msg, self.pretty_epoch) + if flat731 is not None: + assert flat731 is not None + self.write(flat731) return None else: _dollar_dollar = msg if not len(_dollar_dollar.writes) == 0: - _t1298 = _dollar_dollar.writes + _t1322 = _dollar_dollar.writes else: - _t1298 = None + _t1322 = None if not len(_dollar_dollar.reads) == 0: - _t1299 = _dollar_dollar.reads + _t1323 = _dollar_dollar.reads else: - _t1299 = None - fields713 = (_t1298, _t1299,) - assert fields713 is not None - unwrapped_fields714 = fields713 + _t1323 = None + fields725 = (_t1322, _t1323,) + assert fields725 is not None + unwrapped_fields726 = fields725 self.write("(epoch") self.indent_sexp() - field715 = unwrapped_fields714[0] - if field715 is not None: + field727 = unwrapped_fields726[0] + if field727 is not None: self.newline() - assert field715 is not None - opt_val716 = field715 - self.pretty_epoch_writes(opt_val716) - field717 = unwrapped_fields714[1] - if field717 is not None: + assert field727 is not None + opt_val728 = field727 + self.pretty_epoch_writes(opt_val728) + field729 = unwrapped_fields726[1] + if field729 is not None: self.newline() - assert field717 is not None - opt_val718 = field717 - self.pretty_epoch_reads(opt_val718) + assert field729 is not None + opt_val730 = field729 + self.pretty_epoch_reads(opt_val730) self.dedent() self.write(")") def pretty_epoch_writes(self, msg: Sequence[transactions_pb2.Write]): - flat723 = self._try_flat(msg, self.pretty_epoch_writes) - if flat723 is not None: - assert flat723 is not None - self.write(flat723) + flat735 = self._try_flat(msg, self.pretty_epoch_writes) + if flat735 is not None: + assert flat735 is not None + self.write(flat735) return None else: - fields720 = msg + fields732 = msg self.write("(writes") self.indent_sexp() - if not len(fields720) == 0: + if not len(fields732) == 0: self.newline() - for i722, elem721 in enumerate(fields720): - if (i722 > 0): + for i734, elem733 in enumerate(fields732): + if (i734 > 0): self.newline() - self.pretty_write(elem721) + self.pretty_write(elem733) self.dedent() self.write(")") def pretty_write(self, msg: transactions_pb2.Write): - flat732 = self._try_flat(msg, self.pretty_write) - if flat732 is not None: - assert flat732 is not None - self.write(flat732) + flat744 = self._try_flat(msg, self.pretty_write) + if flat744 is not None: + assert flat744 is not None + self.write(flat744) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("define"): - _t1300 = _dollar_dollar.define + _t1324 = _dollar_dollar.define else: - _t1300 = None - deconstruct_result730 = _t1300 - if deconstruct_result730 is not None: - assert deconstruct_result730 is not None - unwrapped731 = deconstruct_result730 - self.pretty_define(unwrapped731) + _t1324 = None + deconstruct_result742 = _t1324 + if deconstruct_result742 is not None: + assert deconstruct_result742 is not None + unwrapped743 = deconstruct_result742 + self.pretty_define(unwrapped743) else: _dollar_dollar = msg if _dollar_dollar.HasField("undefine"): - _t1301 = _dollar_dollar.undefine + _t1325 = _dollar_dollar.undefine else: - _t1301 = None - deconstruct_result728 = _t1301 - if deconstruct_result728 is not None: - assert deconstruct_result728 is not None - unwrapped729 = deconstruct_result728 - self.pretty_undefine(unwrapped729) + _t1325 = None + deconstruct_result740 = _t1325 + if deconstruct_result740 is not None: + assert deconstruct_result740 is not None + unwrapped741 = deconstruct_result740 + self.pretty_undefine(unwrapped741) else: _dollar_dollar = msg if _dollar_dollar.HasField("context"): - _t1302 = _dollar_dollar.context + _t1326 = _dollar_dollar.context else: - _t1302 = None - deconstruct_result726 = _t1302 - if deconstruct_result726 is not None: - assert deconstruct_result726 is not None - unwrapped727 = deconstruct_result726 - self.pretty_context(unwrapped727) + _t1326 = None + deconstruct_result738 = _t1326 + if deconstruct_result738 is not None: + assert deconstruct_result738 is not None + unwrapped739 = deconstruct_result738 + self.pretty_context(unwrapped739) else: _dollar_dollar = msg if _dollar_dollar.HasField("snapshot"): - _t1303 = _dollar_dollar.snapshot + _t1327 = _dollar_dollar.snapshot else: - _t1303 = None - deconstruct_result724 = _t1303 - if deconstruct_result724 is not None: - assert deconstruct_result724 is not None - unwrapped725 = deconstruct_result724 - self.pretty_snapshot(unwrapped725) + _t1327 = None + deconstruct_result736 = _t1327 + if deconstruct_result736 is not None: + assert deconstruct_result736 is not None + unwrapped737 = deconstruct_result736 + self.pretty_snapshot(unwrapped737) else: raise ParseError("No matching rule for write") def pretty_define(self, msg: transactions_pb2.Define): - flat735 = self._try_flat(msg, self.pretty_define) - if flat735 is not None: - assert flat735 is not None - self.write(flat735) + flat747 = self._try_flat(msg, self.pretty_define) + if flat747 is not None: + assert flat747 is not None + self.write(flat747) return None else: _dollar_dollar = msg - fields733 = _dollar_dollar.fragment - assert fields733 is not None - unwrapped_fields734 = fields733 + fields745 = _dollar_dollar.fragment + assert fields745 is not None + unwrapped_fields746 = fields745 self.write("(define") self.indent_sexp() self.newline() - self.pretty_fragment(unwrapped_fields734) + self.pretty_fragment(unwrapped_fields746) self.dedent() self.write(")") def pretty_fragment(self, msg: fragments_pb2.Fragment): - flat742 = self._try_flat(msg, self.pretty_fragment) - if flat742 is not None: - assert flat742 is not None - self.write(flat742) + flat754 = self._try_flat(msg, self.pretty_fragment) + if flat754 is not None: + assert flat754 is not None + self.write(flat754) return None else: _dollar_dollar = msg self.start_pretty_fragment(_dollar_dollar) - fields736 = (_dollar_dollar.id, _dollar_dollar.declarations,) - assert fields736 is not None - unwrapped_fields737 = fields736 + fields748 = (_dollar_dollar.id, _dollar_dollar.declarations,) + assert fields748 is not None + unwrapped_fields749 = fields748 self.write("(fragment") self.indent_sexp() self.newline() - field738 = unwrapped_fields737[0] - self.pretty_new_fragment_id(field738) - field739 = unwrapped_fields737[1] - if not len(field739) == 0: + field750 = unwrapped_fields749[0] + self.pretty_new_fragment_id(field750) + field751 = unwrapped_fields749[1] + if not len(field751) == 0: self.newline() - for i741, elem740 in enumerate(field739): - if (i741 > 0): + for i753, elem752 in enumerate(field751): + if (i753 > 0): self.newline() - self.pretty_declaration(elem740) + self.pretty_declaration(elem752) self.dedent() self.write(")") def pretty_new_fragment_id(self, msg: fragments_pb2.FragmentId): - flat744 = self._try_flat(msg, self.pretty_new_fragment_id) - if flat744 is not None: - assert flat744 is not None - self.write(flat744) + flat756 = self._try_flat(msg, self.pretty_new_fragment_id) + if flat756 is not None: + assert flat756 is not None + self.write(flat756) return None else: - fields743 = msg - self.pretty_fragment_id(fields743) + fields755 = msg + self.pretty_fragment_id(fields755) def pretty_declaration(self, msg: logic_pb2.Declaration): - flat753 = self._try_flat(msg, self.pretty_declaration) - if flat753 is not None: - assert flat753 is not None - self.write(flat753) + flat765 = self._try_flat(msg, self.pretty_declaration) + if flat765 is not None: + assert flat765 is not None + self.write(flat765) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("def"): - _t1304 = getattr(_dollar_dollar, 'def') + _t1328 = getattr(_dollar_dollar, 'def') else: - _t1304 = None - deconstruct_result751 = _t1304 - if deconstruct_result751 is not None: - assert deconstruct_result751 is not None - unwrapped752 = deconstruct_result751 - self.pretty_def(unwrapped752) + _t1328 = None + deconstruct_result763 = _t1328 + if deconstruct_result763 is not None: + assert deconstruct_result763 is not None + unwrapped764 = deconstruct_result763 + self.pretty_def(unwrapped764) else: _dollar_dollar = msg if _dollar_dollar.HasField("algorithm"): - _t1305 = _dollar_dollar.algorithm + _t1329 = _dollar_dollar.algorithm else: - _t1305 = None - deconstruct_result749 = _t1305 - if deconstruct_result749 is not None: - assert deconstruct_result749 is not None - unwrapped750 = deconstruct_result749 - self.pretty_algorithm(unwrapped750) + _t1329 = None + deconstruct_result761 = _t1329 + if deconstruct_result761 is not None: + assert deconstruct_result761 is not None + unwrapped762 = deconstruct_result761 + self.pretty_algorithm(unwrapped762) else: _dollar_dollar = msg if _dollar_dollar.HasField("constraint"): - _t1306 = _dollar_dollar.constraint + _t1330 = _dollar_dollar.constraint else: - _t1306 = None - deconstruct_result747 = _t1306 - if deconstruct_result747 is not None: - assert deconstruct_result747 is not None - unwrapped748 = deconstruct_result747 - self.pretty_constraint(unwrapped748) + _t1330 = None + deconstruct_result759 = _t1330 + if deconstruct_result759 is not None: + assert deconstruct_result759 is not None + unwrapped760 = deconstruct_result759 + self.pretty_constraint(unwrapped760) else: _dollar_dollar = msg if _dollar_dollar.HasField("data"): - _t1307 = _dollar_dollar.data + _t1331 = _dollar_dollar.data else: - _t1307 = None - deconstruct_result745 = _t1307 - if deconstruct_result745 is not None: - assert deconstruct_result745 is not None - unwrapped746 = deconstruct_result745 - self.pretty_data(unwrapped746) + _t1331 = None + deconstruct_result757 = _t1331 + if deconstruct_result757 is not None: + assert deconstruct_result757 is not None + unwrapped758 = deconstruct_result757 + self.pretty_data(unwrapped758) else: raise ParseError("No matching rule for declaration") def pretty_def(self, msg: logic_pb2.Def): - flat760 = self._try_flat(msg, self.pretty_def) - if flat760 is not None: - assert flat760 is not None - self.write(flat760) + flat772 = self._try_flat(msg, self.pretty_def) + if flat772 is not None: + assert flat772 is not None + self.write(flat772) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1308 = _dollar_dollar.attrs + _t1332 = _dollar_dollar.attrs else: - _t1308 = None - fields754 = (_dollar_dollar.name, _dollar_dollar.body, _t1308,) - assert fields754 is not None - unwrapped_fields755 = fields754 + _t1332 = None + fields766 = (_dollar_dollar.name, _dollar_dollar.body, _t1332,) + assert fields766 is not None + unwrapped_fields767 = fields766 self.write("(def") self.indent_sexp() self.newline() - field756 = unwrapped_fields755[0] - self.pretty_relation_id(field756) + field768 = unwrapped_fields767[0] + self.pretty_relation_id(field768) self.newline() - field757 = unwrapped_fields755[1] - self.pretty_abstraction(field757) - field758 = unwrapped_fields755[2] - if field758 is not None: + field769 = unwrapped_fields767[1] + self.pretty_abstraction(field769) + field770 = unwrapped_fields767[2] + if field770 is not None: self.newline() - assert field758 is not None - opt_val759 = field758 - self.pretty_attrs(opt_val759) + assert field770 is not None + opt_val771 = field770 + self.pretty_attrs(opt_val771) self.dedent() self.write(")") def pretty_relation_id(self, msg: logic_pb2.RelationId): - flat765 = self._try_flat(msg, self.pretty_relation_id) - if flat765 is not None: - assert flat765 is not None - self.write(flat765) + flat777 = self._try_flat(msg, self.pretty_relation_id) + if flat777 is not None: + assert flat777 is not None + self.write(flat777) return None else: _dollar_dollar = msg if self.relation_id_to_string(_dollar_dollar) is not None: - _t1310 = self.deconstruct_relation_id_string(_dollar_dollar) - _t1309 = _t1310 + _t1334 = self.deconstruct_relation_id_string(_dollar_dollar) + _t1333 = _t1334 else: - _t1309 = None - deconstruct_result763 = _t1309 - if deconstruct_result763 is not None: - assert deconstruct_result763 is not None - unwrapped764 = deconstruct_result763 + _t1333 = None + deconstruct_result775 = _t1333 + if deconstruct_result775 is not None: + assert deconstruct_result775 is not None + unwrapped776 = deconstruct_result775 self.write(":") - self.write(unwrapped764) + self.write(unwrapped776) else: _dollar_dollar = msg - _t1311 = self.deconstruct_relation_id_uint128(_dollar_dollar) - deconstruct_result761 = _t1311 - if deconstruct_result761 is not None: - assert deconstruct_result761 is not None - unwrapped762 = deconstruct_result761 - self.write(self.format_uint128(unwrapped762)) + _t1335 = self.deconstruct_relation_id_uint128(_dollar_dollar) + deconstruct_result773 = _t1335 + if deconstruct_result773 is not None: + assert deconstruct_result773 is not None + unwrapped774 = deconstruct_result773 + self.write(self.format_uint128(unwrapped774)) else: raise ParseError("No matching rule for relation_id") def pretty_abstraction(self, msg: logic_pb2.Abstraction): - flat770 = self._try_flat(msg, self.pretty_abstraction) - if flat770 is not None: - assert flat770 is not None - self.write(flat770) + flat782 = self._try_flat(msg, self.pretty_abstraction) + if flat782 is not None: + assert flat782 is not None + self.write(flat782) return None else: _dollar_dollar = msg - _t1312 = self.deconstruct_bindings(_dollar_dollar) - fields766 = (_t1312, _dollar_dollar.value,) - assert fields766 is not None - unwrapped_fields767 = fields766 + _t1336 = self.deconstruct_bindings(_dollar_dollar) + fields778 = (_t1336, _dollar_dollar.value,) + assert fields778 is not None + unwrapped_fields779 = fields778 self.write("(") self.indent() - field768 = unwrapped_fields767[0] - self.pretty_bindings(field768) + field780 = unwrapped_fields779[0] + self.pretty_bindings(field780) self.newline() - field769 = unwrapped_fields767[1] - self.pretty_formula(field769) + field781 = unwrapped_fields779[1] + self.pretty_formula(field781) self.dedent() self.write(")") def pretty_bindings(self, msg: tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]): - flat778 = self._try_flat(msg, self.pretty_bindings) - if flat778 is not None: - assert flat778 is not None - self.write(flat778) + flat790 = self._try_flat(msg, self.pretty_bindings) + if flat790 is not None: + assert flat790 is not None + self.write(flat790) return None else: _dollar_dollar = msg if not len(_dollar_dollar[1]) == 0: - _t1313 = _dollar_dollar[1] + _t1337 = _dollar_dollar[1] else: - _t1313 = None - fields771 = (_dollar_dollar[0], _t1313,) - assert fields771 is not None - unwrapped_fields772 = fields771 + _t1337 = None + fields783 = (_dollar_dollar[0], _t1337,) + assert fields783 is not None + unwrapped_fields784 = fields783 self.write("[") self.indent() - field773 = unwrapped_fields772[0] - for i775, elem774 in enumerate(field773): - if (i775 > 0): + field785 = unwrapped_fields784[0] + for i787, elem786 in enumerate(field785): + if (i787 > 0): self.newline() - self.pretty_binding(elem774) - field776 = unwrapped_fields772[1] - if field776 is not None: + self.pretty_binding(elem786) + field788 = unwrapped_fields784[1] + if field788 is not None: self.newline() - assert field776 is not None - opt_val777 = field776 - self.pretty_value_bindings(opt_val777) + assert field788 is not None + opt_val789 = field788 + self.pretty_value_bindings(opt_val789) self.dedent() self.write("]") def pretty_binding(self, msg: logic_pb2.Binding): - flat783 = self._try_flat(msg, self.pretty_binding) - if flat783 is not None: - assert flat783 is not None - self.write(flat783) + flat795 = self._try_flat(msg, self.pretty_binding) + if flat795 is not None: + assert flat795 is not None + self.write(flat795) return None else: _dollar_dollar = msg - fields779 = (_dollar_dollar.var.name, _dollar_dollar.type,) - assert fields779 is not None - unwrapped_fields780 = fields779 - field781 = unwrapped_fields780[0] - self.write(field781) + fields791 = (_dollar_dollar.var.name, _dollar_dollar.type,) + assert fields791 is not None + unwrapped_fields792 = fields791 + field793 = unwrapped_fields792[0] + self.write(field793) self.write("::") - field782 = unwrapped_fields780[1] - self.pretty_type(field782) + field794 = unwrapped_fields792[1] + self.pretty_type(field794) def pretty_type(self, msg: logic_pb2.Type): - flat806 = self._try_flat(msg, self.pretty_type) - if flat806 is not None: - assert flat806 is not None - self.write(flat806) + flat818 = self._try_flat(msg, self.pretty_type) + if flat818 is not None: + assert flat818 is not None + self.write(flat818) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("unspecified_type"): - _t1314 = _dollar_dollar.unspecified_type + _t1338 = _dollar_dollar.unspecified_type else: - _t1314 = None - deconstruct_result804 = _t1314 - if deconstruct_result804 is not None: - assert deconstruct_result804 is not None - unwrapped805 = deconstruct_result804 - self.pretty_unspecified_type(unwrapped805) + _t1338 = None + deconstruct_result816 = _t1338 + if deconstruct_result816 is not None: + assert deconstruct_result816 is not None + unwrapped817 = deconstruct_result816 + self.pretty_unspecified_type(unwrapped817) else: _dollar_dollar = msg if _dollar_dollar.HasField("string_type"): - _t1315 = _dollar_dollar.string_type + _t1339 = _dollar_dollar.string_type else: - _t1315 = None - deconstruct_result802 = _t1315 - if deconstruct_result802 is not None: - assert deconstruct_result802 is not None - unwrapped803 = deconstruct_result802 - self.pretty_string_type(unwrapped803) + _t1339 = None + deconstruct_result814 = _t1339 + if deconstruct_result814 is not None: + assert deconstruct_result814 is not None + unwrapped815 = deconstruct_result814 + self.pretty_string_type(unwrapped815) else: _dollar_dollar = msg if _dollar_dollar.HasField("int_type"): - _t1316 = _dollar_dollar.int_type + _t1340 = _dollar_dollar.int_type else: - _t1316 = None - deconstruct_result800 = _t1316 - if deconstruct_result800 is not None: - assert deconstruct_result800 is not None - unwrapped801 = deconstruct_result800 - self.pretty_int_type(unwrapped801) + _t1340 = None + deconstruct_result812 = _t1340 + if deconstruct_result812 is not None: + assert deconstruct_result812 is not None + unwrapped813 = deconstruct_result812 + self.pretty_int_type(unwrapped813) else: _dollar_dollar = msg if _dollar_dollar.HasField("float_type"): - _t1317 = _dollar_dollar.float_type + _t1341 = _dollar_dollar.float_type else: - _t1317 = None - deconstruct_result798 = _t1317 - if deconstruct_result798 is not None: - assert deconstruct_result798 is not None - unwrapped799 = deconstruct_result798 - self.pretty_float_type(unwrapped799) + _t1341 = None + deconstruct_result810 = _t1341 + if deconstruct_result810 is not None: + assert deconstruct_result810 is not None + unwrapped811 = deconstruct_result810 + self.pretty_float_type(unwrapped811) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint128_type"): - _t1318 = _dollar_dollar.uint128_type + _t1342 = _dollar_dollar.uint128_type else: - _t1318 = None - deconstruct_result796 = _t1318 - if deconstruct_result796 is not None: - assert deconstruct_result796 is not None - unwrapped797 = deconstruct_result796 - self.pretty_uint128_type(unwrapped797) + _t1342 = None + deconstruct_result808 = _t1342 + if deconstruct_result808 is not None: + assert deconstruct_result808 is not None + unwrapped809 = deconstruct_result808 + self.pretty_uint128_type(unwrapped809) else: _dollar_dollar = msg if _dollar_dollar.HasField("int128_type"): - _t1319 = _dollar_dollar.int128_type + _t1343 = _dollar_dollar.int128_type else: - _t1319 = None - deconstruct_result794 = _t1319 - if deconstruct_result794 is not None: - assert deconstruct_result794 is not None - unwrapped795 = deconstruct_result794 - self.pretty_int128_type(unwrapped795) + _t1343 = None + deconstruct_result806 = _t1343 + if deconstruct_result806 is not None: + assert deconstruct_result806 is not None + unwrapped807 = deconstruct_result806 + self.pretty_int128_type(unwrapped807) else: _dollar_dollar = msg if _dollar_dollar.HasField("date_type"): - _t1320 = _dollar_dollar.date_type + _t1344 = _dollar_dollar.date_type else: - _t1320 = None - deconstruct_result792 = _t1320 - if deconstruct_result792 is not None: - assert deconstruct_result792 is not None - unwrapped793 = deconstruct_result792 - self.pretty_date_type(unwrapped793) + _t1344 = None + deconstruct_result804 = _t1344 + if deconstruct_result804 is not None: + assert deconstruct_result804 is not None + unwrapped805 = deconstruct_result804 + self.pretty_date_type(unwrapped805) else: _dollar_dollar = msg if _dollar_dollar.HasField("datetime_type"): - _t1321 = _dollar_dollar.datetime_type + _t1345 = _dollar_dollar.datetime_type else: - _t1321 = None - deconstruct_result790 = _t1321 - if deconstruct_result790 is not None: - assert deconstruct_result790 is not None - unwrapped791 = deconstruct_result790 - self.pretty_datetime_type(unwrapped791) + _t1345 = None + deconstruct_result802 = _t1345 + if deconstruct_result802 is not None: + assert deconstruct_result802 is not None + unwrapped803 = deconstruct_result802 + self.pretty_datetime_type(unwrapped803) else: _dollar_dollar = msg if _dollar_dollar.HasField("missing_type"): - _t1322 = _dollar_dollar.missing_type + _t1346 = _dollar_dollar.missing_type else: - _t1322 = None - deconstruct_result788 = _t1322 - if deconstruct_result788 is not None: - assert deconstruct_result788 is not None - unwrapped789 = deconstruct_result788 - self.pretty_missing_type(unwrapped789) + _t1346 = None + deconstruct_result800 = _t1346 + if deconstruct_result800 is not None: + assert deconstruct_result800 is not None + unwrapped801 = deconstruct_result800 + self.pretty_missing_type(unwrapped801) else: _dollar_dollar = msg if _dollar_dollar.HasField("decimal_type"): - _t1323 = _dollar_dollar.decimal_type + _t1347 = _dollar_dollar.decimal_type else: - _t1323 = None - deconstruct_result786 = _t1323 - if deconstruct_result786 is not None: - assert deconstruct_result786 is not None - unwrapped787 = deconstruct_result786 - self.pretty_decimal_type(unwrapped787) + _t1347 = None + deconstruct_result798 = _t1347 + if deconstruct_result798 is not None: + assert deconstruct_result798 is not None + unwrapped799 = deconstruct_result798 + self.pretty_decimal_type(unwrapped799) else: _dollar_dollar = msg if _dollar_dollar.HasField("boolean_type"): - _t1324 = _dollar_dollar.boolean_type + _t1348 = _dollar_dollar.boolean_type else: - _t1324 = None - deconstruct_result784 = _t1324 - if deconstruct_result784 is not None: - assert deconstruct_result784 is not None - unwrapped785 = deconstruct_result784 - self.pretty_boolean_type(unwrapped785) + _t1348 = None + deconstruct_result796 = _t1348 + if deconstruct_result796 is not None: + assert deconstruct_result796 is not None + unwrapped797 = deconstruct_result796 + self.pretty_boolean_type(unwrapped797) else: raise ParseError("No matching rule for type") def pretty_unspecified_type(self, msg: logic_pb2.UnspecifiedType): - fields807 = msg + fields819 = msg self.write("UNKNOWN") def pretty_string_type(self, msg: logic_pb2.StringType): - fields808 = msg + fields820 = msg self.write("STRING") def pretty_int_type(self, msg: logic_pb2.IntType): - fields809 = msg + fields821 = msg self.write("INT") def pretty_float_type(self, msg: logic_pb2.FloatType): - fields810 = msg + fields822 = msg self.write("FLOAT") def pretty_uint128_type(self, msg: logic_pb2.UInt128Type): - fields811 = msg + fields823 = msg self.write("UINT128") def pretty_int128_type(self, msg: logic_pb2.Int128Type): - fields812 = msg + fields824 = msg self.write("INT128") def pretty_date_type(self, msg: logic_pb2.DateType): - fields813 = msg + fields825 = msg self.write("DATE") def pretty_datetime_type(self, msg: logic_pb2.DateTimeType): - fields814 = msg + fields826 = msg self.write("DATETIME") def pretty_missing_type(self, msg: logic_pb2.MissingType): - fields815 = msg + fields827 = msg self.write("MISSING") def pretty_decimal_type(self, msg: logic_pb2.DecimalType): - flat820 = self._try_flat(msg, self.pretty_decimal_type) - if flat820 is not None: - assert flat820 is not None - self.write(flat820) + flat832 = self._try_flat(msg, self.pretty_decimal_type) + if flat832 is not None: + assert flat832 is not None + self.write(flat832) return None else: _dollar_dollar = msg - fields816 = (int(_dollar_dollar.precision), int(_dollar_dollar.scale),) - assert fields816 is not None - unwrapped_fields817 = fields816 + fields828 = (int(_dollar_dollar.precision), int(_dollar_dollar.scale),) + assert fields828 is not None + unwrapped_fields829 = fields828 self.write("(DECIMAL") self.indent_sexp() self.newline() - field818 = unwrapped_fields817[0] - self.write(str(field818)) + field830 = unwrapped_fields829[0] + self.write(str(field830)) self.newline() - field819 = unwrapped_fields817[1] - self.write(str(field819)) + field831 = unwrapped_fields829[1] + self.write(str(field831)) self.dedent() self.write(")") def pretty_boolean_type(self, msg: logic_pb2.BooleanType): - fields821 = msg + fields833 = msg self.write("BOOLEAN") def pretty_value_bindings(self, msg: Sequence[logic_pb2.Binding]): - flat825 = self._try_flat(msg, self.pretty_value_bindings) - if flat825 is not None: - assert flat825 is not None - self.write(flat825) + flat837 = self._try_flat(msg, self.pretty_value_bindings) + if flat837 is not None: + assert flat837 is not None + self.write(flat837) return None else: - fields822 = msg + fields834 = msg self.write("|") - if not len(fields822) == 0: + if not len(fields834) == 0: self.write(" ") - for i824, elem823 in enumerate(fields822): - if (i824 > 0): + for i836, elem835 in enumerate(fields834): + if (i836 > 0): self.newline() - self.pretty_binding(elem823) + self.pretty_binding(elem835) def pretty_formula(self, msg: logic_pb2.Formula): - flat852 = self._try_flat(msg, self.pretty_formula) - if flat852 is not None: - assert flat852 is not None - self.write(flat852) + flat864 = self._try_flat(msg, self.pretty_formula) + if flat864 is not None: + assert flat864 is not None + self.write(flat864) return None else: _dollar_dollar = msg if (_dollar_dollar.HasField("conjunction") and len(_dollar_dollar.conjunction.args) == 0): - _t1325 = _dollar_dollar.conjunction + _t1349 = _dollar_dollar.conjunction else: - _t1325 = None - deconstruct_result850 = _t1325 - if deconstruct_result850 is not None: - assert deconstruct_result850 is not None - unwrapped851 = deconstruct_result850 - self.pretty_true(unwrapped851) + _t1349 = None + deconstruct_result862 = _t1349 + if deconstruct_result862 is not None: + assert deconstruct_result862 is not None + unwrapped863 = deconstruct_result862 + self.pretty_true(unwrapped863) else: _dollar_dollar = msg if (_dollar_dollar.HasField("disjunction") and len(_dollar_dollar.disjunction.args) == 0): - _t1326 = _dollar_dollar.disjunction + _t1350 = _dollar_dollar.disjunction else: - _t1326 = None - deconstruct_result848 = _t1326 - if deconstruct_result848 is not None: - assert deconstruct_result848 is not None - unwrapped849 = deconstruct_result848 - self.pretty_false(unwrapped849) + _t1350 = None + deconstruct_result860 = _t1350 + if deconstruct_result860 is not None: + assert deconstruct_result860 is not None + unwrapped861 = deconstruct_result860 + self.pretty_false(unwrapped861) else: _dollar_dollar = msg if _dollar_dollar.HasField("exists"): - _t1327 = _dollar_dollar.exists + _t1351 = _dollar_dollar.exists else: - _t1327 = None - deconstruct_result846 = _t1327 - if deconstruct_result846 is not None: - assert deconstruct_result846 is not None - unwrapped847 = deconstruct_result846 - self.pretty_exists(unwrapped847) + _t1351 = None + deconstruct_result858 = _t1351 + if deconstruct_result858 is not None: + assert deconstruct_result858 is not None + unwrapped859 = deconstruct_result858 + self.pretty_exists(unwrapped859) else: _dollar_dollar = msg if _dollar_dollar.HasField("reduce"): - _t1328 = _dollar_dollar.reduce + _t1352 = _dollar_dollar.reduce else: - _t1328 = None - deconstruct_result844 = _t1328 - if deconstruct_result844 is not None: - assert deconstruct_result844 is not None - unwrapped845 = deconstruct_result844 - self.pretty_reduce(unwrapped845) + _t1352 = None + deconstruct_result856 = _t1352 + if deconstruct_result856 is not None: + assert deconstruct_result856 is not None + unwrapped857 = deconstruct_result856 + self.pretty_reduce(unwrapped857) else: _dollar_dollar = msg if (_dollar_dollar.HasField("conjunction") and not len(_dollar_dollar.conjunction.args) == 0): - _t1329 = _dollar_dollar.conjunction + _t1353 = _dollar_dollar.conjunction else: - _t1329 = None - deconstruct_result842 = _t1329 - if deconstruct_result842 is not None: - assert deconstruct_result842 is not None - unwrapped843 = deconstruct_result842 - self.pretty_conjunction(unwrapped843) + _t1353 = None + deconstruct_result854 = _t1353 + if deconstruct_result854 is not None: + assert deconstruct_result854 is not None + unwrapped855 = deconstruct_result854 + self.pretty_conjunction(unwrapped855) else: _dollar_dollar = msg if (_dollar_dollar.HasField("disjunction") and not len(_dollar_dollar.disjunction.args) == 0): - _t1330 = _dollar_dollar.disjunction + _t1354 = _dollar_dollar.disjunction else: - _t1330 = None - deconstruct_result840 = _t1330 - if deconstruct_result840 is not None: - assert deconstruct_result840 is not None - unwrapped841 = deconstruct_result840 - self.pretty_disjunction(unwrapped841) + _t1354 = None + deconstruct_result852 = _t1354 + if deconstruct_result852 is not None: + assert deconstruct_result852 is not None + unwrapped853 = deconstruct_result852 + self.pretty_disjunction(unwrapped853) else: _dollar_dollar = msg if _dollar_dollar.HasField("not"): - _t1331 = getattr(_dollar_dollar, 'not') + _t1355 = getattr(_dollar_dollar, 'not') else: - _t1331 = None - deconstruct_result838 = _t1331 - if deconstruct_result838 is not None: - assert deconstruct_result838 is not None - unwrapped839 = deconstruct_result838 - self.pretty_not(unwrapped839) + _t1355 = None + deconstruct_result850 = _t1355 + if deconstruct_result850 is not None: + assert deconstruct_result850 is not None + unwrapped851 = deconstruct_result850 + self.pretty_not(unwrapped851) else: _dollar_dollar = msg if _dollar_dollar.HasField("ffi"): - _t1332 = _dollar_dollar.ffi + _t1356 = _dollar_dollar.ffi else: - _t1332 = None - deconstruct_result836 = _t1332 - if deconstruct_result836 is not None: - assert deconstruct_result836 is not None - unwrapped837 = deconstruct_result836 - self.pretty_ffi(unwrapped837) + _t1356 = None + deconstruct_result848 = _t1356 + if deconstruct_result848 is not None: + assert deconstruct_result848 is not None + unwrapped849 = deconstruct_result848 + self.pretty_ffi(unwrapped849) else: _dollar_dollar = msg if _dollar_dollar.HasField("atom"): - _t1333 = _dollar_dollar.atom + _t1357 = _dollar_dollar.atom else: - _t1333 = None - deconstruct_result834 = _t1333 - if deconstruct_result834 is not None: - assert deconstruct_result834 is not None - unwrapped835 = deconstruct_result834 - self.pretty_atom(unwrapped835) + _t1357 = None + deconstruct_result846 = _t1357 + if deconstruct_result846 is not None: + assert deconstruct_result846 is not None + unwrapped847 = deconstruct_result846 + self.pretty_atom(unwrapped847) else: _dollar_dollar = msg if _dollar_dollar.HasField("pragma"): - _t1334 = _dollar_dollar.pragma + _t1358 = _dollar_dollar.pragma else: - _t1334 = None - deconstruct_result832 = _t1334 - if deconstruct_result832 is not None: - assert deconstruct_result832 is not None - unwrapped833 = deconstruct_result832 - self.pretty_pragma(unwrapped833) + _t1358 = None + deconstruct_result844 = _t1358 + if deconstruct_result844 is not None: + assert deconstruct_result844 is not None + unwrapped845 = deconstruct_result844 + self.pretty_pragma(unwrapped845) else: _dollar_dollar = msg if _dollar_dollar.HasField("primitive"): - _t1335 = _dollar_dollar.primitive + _t1359 = _dollar_dollar.primitive else: - _t1335 = None - deconstruct_result830 = _t1335 - if deconstruct_result830 is not None: - assert deconstruct_result830 is not None - unwrapped831 = deconstruct_result830 - self.pretty_primitive(unwrapped831) + _t1359 = None + deconstruct_result842 = _t1359 + if deconstruct_result842 is not None: + assert deconstruct_result842 is not None + unwrapped843 = deconstruct_result842 + self.pretty_primitive(unwrapped843) else: _dollar_dollar = msg if _dollar_dollar.HasField("rel_atom"): - _t1336 = _dollar_dollar.rel_atom + _t1360 = _dollar_dollar.rel_atom else: - _t1336 = None - deconstruct_result828 = _t1336 - if deconstruct_result828 is not None: - assert deconstruct_result828 is not None - unwrapped829 = deconstruct_result828 - self.pretty_rel_atom(unwrapped829) + _t1360 = None + deconstruct_result840 = _t1360 + if deconstruct_result840 is not None: + assert deconstruct_result840 is not None + unwrapped841 = deconstruct_result840 + self.pretty_rel_atom(unwrapped841) else: _dollar_dollar = msg if _dollar_dollar.HasField("cast"): - _t1337 = _dollar_dollar.cast + _t1361 = _dollar_dollar.cast else: - _t1337 = None - deconstruct_result826 = _t1337 - if deconstruct_result826 is not None: - assert deconstruct_result826 is not None - unwrapped827 = deconstruct_result826 - self.pretty_cast(unwrapped827) + _t1361 = None + deconstruct_result838 = _t1361 + if deconstruct_result838 is not None: + assert deconstruct_result838 is not None + unwrapped839 = deconstruct_result838 + self.pretty_cast(unwrapped839) else: raise ParseError("No matching rule for formula") def pretty_true(self, msg: logic_pb2.Conjunction): - fields853 = msg + fields865 = msg self.write("(true)") def pretty_false(self, msg: logic_pb2.Disjunction): - fields854 = msg + fields866 = msg self.write("(false)") def pretty_exists(self, msg: logic_pb2.Exists): - flat859 = self._try_flat(msg, self.pretty_exists) - if flat859 is not None: - assert flat859 is not None - self.write(flat859) + flat871 = self._try_flat(msg, self.pretty_exists) + if flat871 is not None: + assert flat871 is not None + self.write(flat871) return None else: _dollar_dollar = msg - _t1338 = self.deconstruct_bindings(_dollar_dollar.body) - fields855 = (_t1338, _dollar_dollar.body.value,) - assert fields855 is not None - unwrapped_fields856 = fields855 + _t1362 = self.deconstruct_bindings(_dollar_dollar.body) + fields867 = (_t1362, _dollar_dollar.body.value,) + assert fields867 is not None + unwrapped_fields868 = fields867 self.write("(exists") self.indent_sexp() self.newline() - field857 = unwrapped_fields856[0] - self.pretty_bindings(field857) + field869 = unwrapped_fields868[0] + self.pretty_bindings(field869) self.newline() - field858 = unwrapped_fields856[1] - self.pretty_formula(field858) + field870 = unwrapped_fields868[1] + self.pretty_formula(field870) self.dedent() self.write(")") def pretty_reduce(self, msg: logic_pb2.Reduce): - flat865 = self._try_flat(msg, self.pretty_reduce) - if flat865 is not None: - assert flat865 is not None - self.write(flat865) + flat877 = self._try_flat(msg, self.pretty_reduce) + if flat877 is not None: + assert flat877 is not None + self.write(flat877) return None else: _dollar_dollar = msg - fields860 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) - assert fields860 is not None - unwrapped_fields861 = fields860 + fields872 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) + assert fields872 is not None + unwrapped_fields873 = fields872 self.write("(reduce") self.indent_sexp() self.newline() - field862 = unwrapped_fields861[0] - self.pretty_abstraction(field862) + field874 = unwrapped_fields873[0] + self.pretty_abstraction(field874) self.newline() - field863 = unwrapped_fields861[1] - self.pretty_abstraction(field863) + field875 = unwrapped_fields873[1] + self.pretty_abstraction(field875) self.newline() - field864 = unwrapped_fields861[2] - self.pretty_terms(field864) + field876 = unwrapped_fields873[2] + self.pretty_terms(field876) self.dedent() self.write(")") def pretty_terms(self, msg: Sequence[logic_pb2.Term]): - flat869 = self._try_flat(msg, self.pretty_terms) - if flat869 is not None: - assert flat869 is not None - self.write(flat869) + flat881 = self._try_flat(msg, self.pretty_terms) + if flat881 is not None: + assert flat881 is not None + self.write(flat881) return None else: - fields866 = msg + fields878 = msg self.write("(terms") self.indent_sexp() - if not len(fields866) == 0: + if not len(fields878) == 0: self.newline() - for i868, elem867 in enumerate(fields866): - if (i868 > 0): + for i880, elem879 in enumerate(fields878): + if (i880 > 0): self.newline() - self.pretty_term(elem867) + self.pretty_term(elem879) self.dedent() self.write(")") def pretty_term(self, msg: logic_pb2.Term): - flat874 = self._try_flat(msg, self.pretty_term) - if flat874 is not None: - assert flat874 is not None - self.write(flat874) + flat886 = self._try_flat(msg, self.pretty_term) + if flat886 is not None: + assert flat886 is not None + self.write(flat886) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("var"): - _t1339 = _dollar_dollar.var + _t1363 = _dollar_dollar.var else: - _t1339 = None - deconstruct_result872 = _t1339 - if deconstruct_result872 is not None: - assert deconstruct_result872 is not None - unwrapped873 = deconstruct_result872 - self.pretty_var(unwrapped873) + _t1363 = None + deconstruct_result884 = _t1363 + if deconstruct_result884 is not None: + assert deconstruct_result884 is not None + unwrapped885 = deconstruct_result884 + self.pretty_var(unwrapped885) else: _dollar_dollar = msg if _dollar_dollar.HasField("constant"): - _t1340 = _dollar_dollar.constant + _t1364 = _dollar_dollar.constant else: - _t1340 = None - deconstruct_result870 = _t1340 - if deconstruct_result870 is not None: - assert deconstruct_result870 is not None - unwrapped871 = deconstruct_result870 - self.pretty_constant(unwrapped871) + _t1364 = None + deconstruct_result882 = _t1364 + if deconstruct_result882 is not None: + assert deconstruct_result882 is not None + unwrapped883 = deconstruct_result882 + self.pretty_constant(unwrapped883) else: raise ParseError("No matching rule for term") def pretty_var(self, msg: logic_pb2.Var): - flat877 = self._try_flat(msg, self.pretty_var) - if flat877 is not None: - assert flat877 is not None - self.write(flat877) + flat889 = self._try_flat(msg, self.pretty_var) + if flat889 is not None: + assert flat889 is not None + self.write(flat889) return None else: _dollar_dollar = msg - fields875 = _dollar_dollar.name - assert fields875 is not None - unwrapped_fields876 = fields875 - self.write(unwrapped_fields876) + fields887 = _dollar_dollar.name + assert fields887 is not None + unwrapped_fields888 = fields887 + self.write(unwrapped_fields888) def pretty_constant(self, msg: logic_pb2.Value): - flat879 = self._try_flat(msg, self.pretty_constant) - if flat879 is not None: - assert flat879 is not None - self.write(flat879) + flat891 = self._try_flat(msg, self.pretty_constant) + if flat891 is not None: + assert flat891 is not None + self.write(flat891) return None else: - fields878 = msg - self.pretty_value(fields878) + fields890 = msg + self.pretty_value(fields890) def pretty_conjunction(self, msg: logic_pb2.Conjunction): - flat884 = self._try_flat(msg, self.pretty_conjunction) - if flat884 is not None: - assert flat884 is not None - self.write(flat884) + flat896 = self._try_flat(msg, self.pretty_conjunction) + if flat896 is not None: + assert flat896 is not None + self.write(flat896) return None else: _dollar_dollar = msg - fields880 = _dollar_dollar.args - assert fields880 is not None - unwrapped_fields881 = fields880 + fields892 = _dollar_dollar.args + assert fields892 is not None + unwrapped_fields893 = fields892 self.write("(and") self.indent_sexp() - if not len(unwrapped_fields881) == 0: + if not len(unwrapped_fields893) == 0: self.newline() - for i883, elem882 in enumerate(unwrapped_fields881): - if (i883 > 0): + for i895, elem894 in enumerate(unwrapped_fields893): + if (i895 > 0): self.newline() - self.pretty_formula(elem882) + self.pretty_formula(elem894) self.dedent() self.write(")") def pretty_disjunction(self, msg: logic_pb2.Disjunction): - flat889 = self._try_flat(msg, self.pretty_disjunction) - if flat889 is not None: - assert flat889 is not None - self.write(flat889) + flat901 = self._try_flat(msg, self.pretty_disjunction) + if flat901 is not None: + assert flat901 is not None + self.write(flat901) return None else: _dollar_dollar = msg - fields885 = _dollar_dollar.args - assert fields885 is not None - unwrapped_fields886 = fields885 + fields897 = _dollar_dollar.args + assert fields897 is not None + unwrapped_fields898 = fields897 self.write("(or") self.indent_sexp() - if not len(unwrapped_fields886) == 0: + if not len(unwrapped_fields898) == 0: self.newline() - for i888, elem887 in enumerate(unwrapped_fields886): - if (i888 > 0): + for i900, elem899 in enumerate(unwrapped_fields898): + if (i900 > 0): self.newline() - self.pretty_formula(elem887) + self.pretty_formula(elem899) self.dedent() self.write(")") def pretty_not(self, msg: logic_pb2.Not): - flat892 = self._try_flat(msg, self.pretty_not) - if flat892 is not None: - assert flat892 is not None - self.write(flat892) + flat904 = self._try_flat(msg, self.pretty_not) + if flat904 is not None: + assert flat904 is not None + self.write(flat904) return None else: _dollar_dollar = msg - fields890 = _dollar_dollar.arg - assert fields890 is not None - unwrapped_fields891 = fields890 + fields902 = _dollar_dollar.arg + assert fields902 is not None + unwrapped_fields903 = fields902 self.write("(not") self.indent_sexp() self.newline() - self.pretty_formula(unwrapped_fields891) + self.pretty_formula(unwrapped_fields903) self.dedent() self.write(")") def pretty_ffi(self, msg: logic_pb2.FFI): - flat898 = self._try_flat(msg, self.pretty_ffi) - if flat898 is not None: - assert flat898 is not None - self.write(flat898) + flat910 = self._try_flat(msg, self.pretty_ffi) + if flat910 is not None: + assert flat910 is not None + self.write(flat910) return None else: _dollar_dollar = msg - fields893 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) - assert fields893 is not None - unwrapped_fields894 = fields893 + fields905 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) + assert fields905 is not None + unwrapped_fields906 = fields905 self.write("(ffi") self.indent_sexp() self.newline() - field895 = unwrapped_fields894[0] - self.pretty_name(field895) + field907 = unwrapped_fields906[0] + self.pretty_name(field907) self.newline() - field896 = unwrapped_fields894[1] - self.pretty_ffi_args(field896) + field908 = unwrapped_fields906[1] + self.pretty_ffi_args(field908) self.newline() - field897 = unwrapped_fields894[2] - self.pretty_terms(field897) + field909 = unwrapped_fields906[2] + self.pretty_terms(field909) self.dedent() self.write(")") def pretty_name(self, msg: str): - flat900 = self._try_flat(msg, self.pretty_name) - if flat900 is not None: - assert flat900 is not None - self.write(flat900) + flat912 = self._try_flat(msg, self.pretty_name) + if flat912 is not None: + assert flat912 is not None + self.write(flat912) return None else: - fields899 = msg + fields911 = msg self.write(":") - self.write(fields899) + self.write(fields911) def pretty_ffi_args(self, msg: Sequence[logic_pb2.Abstraction]): - flat904 = self._try_flat(msg, self.pretty_ffi_args) - if flat904 is not None: - assert flat904 is not None - self.write(flat904) + flat916 = self._try_flat(msg, self.pretty_ffi_args) + if flat916 is not None: + assert flat916 is not None + self.write(flat916) return None else: - fields901 = msg + fields913 = msg self.write("(args") self.indent_sexp() - if not len(fields901) == 0: + if not len(fields913) == 0: self.newline() - for i903, elem902 in enumerate(fields901): - if (i903 > 0): + for i915, elem914 in enumerate(fields913): + if (i915 > 0): self.newline() - self.pretty_abstraction(elem902) + self.pretty_abstraction(elem914) self.dedent() self.write(")") def pretty_atom(self, msg: logic_pb2.Atom): - flat911 = self._try_flat(msg, self.pretty_atom) - if flat911 is not None: - assert flat911 is not None - self.write(flat911) + flat923 = self._try_flat(msg, self.pretty_atom) + if flat923 is not None: + assert flat923 is not None + self.write(flat923) return None else: _dollar_dollar = msg - fields905 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields905 is not None - unwrapped_fields906 = fields905 + fields917 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields917 is not None + unwrapped_fields918 = fields917 self.write("(atom") self.indent_sexp() self.newline() - field907 = unwrapped_fields906[0] - self.pretty_relation_id(field907) - field908 = unwrapped_fields906[1] - if not len(field908) == 0: + field919 = unwrapped_fields918[0] + self.pretty_relation_id(field919) + field920 = unwrapped_fields918[1] + if not len(field920) == 0: self.newline() - for i910, elem909 in enumerate(field908): - if (i910 > 0): + for i922, elem921 in enumerate(field920): + if (i922 > 0): self.newline() - self.pretty_term(elem909) + self.pretty_term(elem921) self.dedent() self.write(")") def pretty_pragma(self, msg: logic_pb2.Pragma): - flat918 = self._try_flat(msg, self.pretty_pragma) - if flat918 is not None: - assert flat918 is not None - self.write(flat918) + flat930 = self._try_flat(msg, self.pretty_pragma) + if flat930 is not None: + assert flat930 is not None + self.write(flat930) return None else: _dollar_dollar = msg - fields912 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields912 is not None - unwrapped_fields913 = fields912 + fields924 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields924 is not None + unwrapped_fields925 = fields924 self.write("(pragma") self.indent_sexp() self.newline() - field914 = unwrapped_fields913[0] - self.pretty_name(field914) - field915 = unwrapped_fields913[1] - if not len(field915) == 0: + field926 = unwrapped_fields925[0] + self.pretty_name(field926) + field927 = unwrapped_fields925[1] + if not len(field927) == 0: self.newline() - for i917, elem916 in enumerate(field915): - if (i917 > 0): + for i929, elem928 in enumerate(field927): + if (i929 > 0): self.newline() - self.pretty_term(elem916) + self.pretty_term(elem928) self.dedent() self.write(")") def pretty_primitive(self, msg: logic_pb2.Primitive): - flat934 = self._try_flat(msg, self.pretty_primitive) - if flat934 is not None: - assert flat934 is not None - self.write(flat934) + flat946 = self._try_flat(msg, self.pretty_primitive) + if flat946 is not None: + assert flat946 is not None + self.write(flat946) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq": - _t1341 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1365 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1341 = None - guard_result933 = _t1341 - if guard_result933 is not None: + _t1365 = None + guard_result945 = _t1365 + if guard_result945 is not None: self.pretty_eq(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype": - _t1342 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1366 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1342 = None - guard_result932 = _t1342 - if guard_result932 is not None: + _t1366 = None + guard_result944 = _t1366 + if guard_result944 is not None: self.pretty_lt(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype": - _t1343 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1367 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1343 = None - guard_result931 = _t1343 - if guard_result931 is not None: + _t1367 = None + guard_result943 = _t1367 + if guard_result943 is not None: self.pretty_lt_eq(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype": - _t1344 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1368 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1344 = None - guard_result930 = _t1344 - if guard_result930 is not None: + _t1368 = None + guard_result942 = _t1368 + if guard_result942 is not None: self.pretty_gt(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype": - _t1345 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1369 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1345 = None - guard_result929 = _t1345 - if guard_result929 is not None: + _t1369 = None + guard_result941 = _t1369 + if guard_result941 is not None: self.pretty_gt_eq(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype": - _t1346 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1370 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1346 = None - guard_result928 = _t1346 - if guard_result928 is not None: + _t1370 = None + guard_result940 = _t1370 + if guard_result940 is not None: self.pretty_add(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype": - _t1347 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1371 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1347 = None - guard_result927 = _t1347 - if guard_result927 is not None: + _t1371 = None + guard_result939 = _t1371 + if guard_result939 is not None: self.pretty_minus(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype": - _t1348 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1372 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1348 = None - guard_result926 = _t1348 - if guard_result926 is not None: + _t1372 = None + guard_result938 = _t1372 + if guard_result938 is not None: self.pretty_multiply(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype": - _t1349 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1373 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1349 = None - guard_result925 = _t1349 - if guard_result925 is not None: + _t1373 = None + guard_result937 = _t1373 + if guard_result937 is not None: self.pretty_divide(msg) else: _dollar_dollar = msg - fields919 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields919 is not None - unwrapped_fields920 = fields919 + fields931 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields931 is not None + unwrapped_fields932 = fields931 self.write("(primitive") self.indent_sexp() self.newline() - field921 = unwrapped_fields920[0] - self.pretty_name(field921) - field922 = unwrapped_fields920[1] - if not len(field922) == 0: + field933 = unwrapped_fields932[0] + self.pretty_name(field933) + field934 = unwrapped_fields932[1] + if not len(field934) == 0: self.newline() - for i924, elem923 in enumerate(field922): - if (i924 > 0): + for i936, elem935 in enumerate(field934): + if (i936 > 0): self.newline() - self.pretty_rel_term(elem923) + self.pretty_rel_term(elem935) self.dedent() self.write(")") def pretty_eq(self, msg: logic_pb2.Primitive): - flat939 = self._try_flat(msg, self.pretty_eq) - if flat939 is not None: - assert flat939 is not None - self.write(flat939) + flat951 = self._try_flat(msg, self.pretty_eq) + if flat951 is not None: + assert flat951 is not None + self.write(flat951) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq": - _t1350 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1374 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1350 = None - fields935 = _t1350 - assert fields935 is not None - unwrapped_fields936 = fields935 + _t1374 = None + fields947 = _t1374 + assert fields947 is not None + unwrapped_fields948 = fields947 self.write("(=") self.indent_sexp() self.newline() - field937 = unwrapped_fields936[0] - self.pretty_term(field937) + field949 = unwrapped_fields948[0] + self.pretty_term(field949) self.newline() - field938 = unwrapped_fields936[1] - self.pretty_term(field938) + field950 = unwrapped_fields948[1] + self.pretty_term(field950) self.dedent() self.write(")") def pretty_lt(self, msg: logic_pb2.Primitive): - flat944 = self._try_flat(msg, self.pretty_lt) - if flat944 is not None: - assert flat944 is not None - self.write(flat944) + flat956 = self._try_flat(msg, self.pretty_lt) + if flat956 is not None: + assert flat956 is not None + self.write(flat956) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype": - _t1351 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1375 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1351 = None - fields940 = _t1351 - assert fields940 is not None - unwrapped_fields941 = fields940 + _t1375 = None + fields952 = _t1375 + assert fields952 is not None + unwrapped_fields953 = fields952 self.write("(<") self.indent_sexp() self.newline() - field942 = unwrapped_fields941[0] - self.pretty_term(field942) + field954 = unwrapped_fields953[0] + self.pretty_term(field954) self.newline() - field943 = unwrapped_fields941[1] - self.pretty_term(field943) + field955 = unwrapped_fields953[1] + self.pretty_term(field955) self.dedent() self.write(")") def pretty_lt_eq(self, msg: logic_pb2.Primitive): - flat949 = self._try_flat(msg, self.pretty_lt_eq) - if flat949 is not None: - assert flat949 is not None - self.write(flat949) + flat961 = self._try_flat(msg, self.pretty_lt_eq) + if flat961 is not None: + assert flat961 is not None + self.write(flat961) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype": - _t1352 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1376 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1352 = None - fields945 = _t1352 - assert fields945 is not None - unwrapped_fields946 = fields945 + _t1376 = None + fields957 = _t1376 + assert fields957 is not None + unwrapped_fields958 = fields957 self.write("(<=") self.indent_sexp() self.newline() - field947 = unwrapped_fields946[0] - self.pretty_term(field947) + field959 = unwrapped_fields958[0] + self.pretty_term(field959) self.newline() - field948 = unwrapped_fields946[1] - self.pretty_term(field948) + field960 = unwrapped_fields958[1] + self.pretty_term(field960) self.dedent() self.write(")") def pretty_gt(self, msg: logic_pb2.Primitive): - flat954 = self._try_flat(msg, self.pretty_gt) - if flat954 is not None: - assert flat954 is not None - self.write(flat954) + flat966 = self._try_flat(msg, self.pretty_gt) + if flat966 is not None: + assert flat966 is not None + self.write(flat966) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype": - _t1353 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1377 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1353 = None - fields950 = _t1353 - assert fields950 is not None - unwrapped_fields951 = fields950 + _t1377 = None + fields962 = _t1377 + assert fields962 is not None + unwrapped_fields963 = fields962 self.write("(>") self.indent_sexp() self.newline() - field952 = unwrapped_fields951[0] - self.pretty_term(field952) + field964 = unwrapped_fields963[0] + self.pretty_term(field964) self.newline() - field953 = unwrapped_fields951[1] - self.pretty_term(field953) + field965 = unwrapped_fields963[1] + self.pretty_term(field965) self.dedent() self.write(")") def pretty_gt_eq(self, msg: logic_pb2.Primitive): - flat959 = self._try_flat(msg, self.pretty_gt_eq) - if flat959 is not None: - assert flat959 is not None - self.write(flat959) + flat971 = self._try_flat(msg, self.pretty_gt_eq) + if flat971 is not None: + assert flat971 is not None + self.write(flat971) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype": - _t1354 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1378 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1354 = None - fields955 = _t1354 - assert fields955 is not None - unwrapped_fields956 = fields955 + _t1378 = None + fields967 = _t1378 + assert fields967 is not None + unwrapped_fields968 = fields967 self.write("(>=") self.indent_sexp() self.newline() - field957 = unwrapped_fields956[0] - self.pretty_term(field957) + field969 = unwrapped_fields968[0] + self.pretty_term(field969) self.newline() - field958 = unwrapped_fields956[1] - self.pretty_term(field958) + field970 = unwrapped_fields968[1] + self.pretty_term(field970) self.dedent() self.write(")") def pretty_add(self, msg: logic_pb2.Primitive): - flat965 = self._try_flat(msg, self.pretty_add) - if flat965 is not None: - assert flat965 is not None - self.write(flat965) + flat977 = self._try_flat(msg, self.pretty_add) + if flat977 is not None: + assert flat977 is not None + self.write(flat977) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype": - _t1355 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1379 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1355 = None - fields960 = _t1355 - assert fields960 is not None - unwrapped_fields961 = fields960 + _t1379 = None + fields972 = _t1379 + assert fields972 is not None + unwrapped_fields973 = fields972 self.write("(+") self.indent_sexp() self.newline() - field962 = unwrapped_fields961[0] - self.pretty_term(field962) + field974 = unwrapped_fields973[0] + self.pretty_term(field974) self.newline() - field963 = unwrapped_fields961[1] - self.pretty_term(field963) + field975 = unwrapped_fields973[1] + self.pretty_term(field975) self.newline() - field964 = unwrapped_fields961[2] - self.pretty_term(field964) + field976 = unwrapped_fields973[2] + self.pretty_term(field976) self.dedent() self.write(")") def pretty_minus(self, msg: logic_pb2.Primitive): - flat971 = self._try_flat(msg, self.pretty_minus) - if flat971 is not None: - assert flat971 is not None - self.write(flat971) + flat983 = self._try_flat(msg, self.pretty_minus) + if flat983 is not None: + assert flat983 is not None + self.write(flat983) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype": - _t1356 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1380 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1356 = None - fields966 = _t1356 - assert fields966 is not None - unwrapped_fields967 = fields966 + _t1380 = None + fields978 = _t1380 + assert fields978 is not None + unwrapped_fields979 = fields978 self.write("(-") self.indent_sexp() self.newline() - field968 = unwrapped_fields967[0] - self.pretty_term(field968) + field980 = unwrapped_fields979[0] + self.pretty_term(field980) self.newline() - field969 = unwrapped_fields967[1] - self.pretty_term(field969) + field981 = unwrapped_fields979[1] + self.pretty_term(field981) self.newline() - field970 = unwrapped_fields967[2] - self.pretty_term(field970) + field982 = unwrapped_fields979[2] + self.pretty_term(field982) self.dedent() self.write(")") def pretty_multiply(self, msg: logic_pb2.Primitive): - flat977 = self._try_flat(msg, self.pretty_multiply) - if flat977 is not None: - assert flat977 is not None - self.write(flat977) + flat989 = self._try_flat(msg, self.pretty_multiply) + if flat989 is not None: + assert flat989 is not None + self.write(flat989) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype": - _t1357 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1381 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1357 = None - fields972 = _t1357 - assert fields972 is not None - unwrapped_fields973 = fields972 + _t1381 = None + fields984 = _t1381 + assert fields984 is not None + unwrapped_fields985 = fields984 self.write("(*") self.indent_sexp() self.newline() - field974 = unwrapped_fields973[0] - self.pretty_term(field974) + field986 = unwrapped_fields985[0] + self.pretty_term(field986) self.newline() - field975 = unwrapped_fields973[1] - self.pretty_term(field975) + field987 = unwrapped_fields985[1] + self.pretty_term(field987) self.newline() - field976 = unwrapped_fields973[2] - self.pretty_term(field976) + field988 = unwrapped_fields985[2] + self.pretty_term(field988) self.dedent() self.write(")") def pretty_divide(self, msg: logic_pb2.Primitive): - flat983 = self._try_flat(msg, self.pretty_divide) - if flat983 is not None: - assert flat983 is not None - self.write(flat983) + flat995 = self._try_flat(msg, self.pretty_divide) + if flat995 is not None: + assert flat995 is not None + self.write(flat995) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype": - _t1358 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1382 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1358 = None - fields978 = _t1358 - assert fields978 is not None - unwrapped_fields979 = fields978 + _t1382 = None + fields990 = _t1382 + assert fields990 is not None + unwrapped_fields991 = fields990 self.write("(/") self.indent_sexp() self.newline() - field980 = unwrapped_fields979[0] - self.pretty_term(field980) + field992 = unwrapped_fields991[0] + self.pretty_term(field992) self.newline() - field981 = unwrapped_fields979[1] - self.pretty_term(field981) + field993 = unwrapped_fields991[1] + self.pretty_term(field993) self.newline() - field982 = unwrapped_fields979[2] - self.pretty_term(field982) + field994 = unwrapped_fields991[2] + self.pretty_term(field994) self.dedent() self.write(")") def pretty_rel_term(self, msg: logic_pb2.RelTerm): - flat988 = self._try_flat(msg, self.pretty_rel_term) - if flat988 is not None: - assert flat988 is not None - self.write(flat988) + flat1000 = self._try_flat(msg, self.pretty_rel_term) + if flat1000 is not None: + assert flat1000 is not None + self.write(flat1000) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("specialized_value"): - _t1359 = _dollar_dollar.specialized_value + _t1383 = _dollar_dollar.specialized_value else: - _t1359 = None - deconstruct_result986 = _t1359 - if deconstruct_result986 is not None: - assert deconstruct_result986 is not None - unwrapped987 = deconstruct_result986 - self.pretty_specialized_value(unwrapped987) + _t1383 = None + deconstruct_result998 = _t1383 + if deconstruct_result998 is not None: + assert deconstruct_result998 is not None + unwrapped999 = deconstruct_result998 + self.pretty_specialized_value(unwrapped999) else: _dollar_dollar = msg if _dollar_dollar.HasField("term"): - _t1360 = _dollar_dollar.term + _t1384 = _dollar_dollar.term else: - _t1360 = None - deconstruct_result984 = _t1360 - if deconstruct_result984 is not None: - assert deconstruct_result984 is not None - unwrapped985 = deconstruct_result984 - self.pretty_term(unwrapped985) + _t1384 = None + deconstruct_result996 = _t1384 + if deconstruct_result996 is not None: + assert deconstruct_result996 is not None + unwrapped997 = deconstruct_result996 + self.pretty_term(unwrapped997) else: raise ParseError("No matching rule for rel_term") def pretty_specialized_value(self, msg: logic_pb2.Value): - flat990 = self._try_flat(msg, self.pretty_specialized_value) - if flat990 is not None: - assert flat990 is not None - self.write(flat990) + flat1002 = self._try_flat(msg, self.pretty_specialized_value) + if flat1002 is not None: + assert flat1002 is not None + self.write(flat1002) return None else: - fields989 = msg + fields1001 = msg self.write("#") - self.pretty_value(fields989) + self.pretty_value(fields1001) def pretty_rel_atom(self, msg: logic_pb2.RelAtom): - flat997 = self._try_flat(msg, self.pretty_rel_atom) - if flat997 is not None: - assert flat997 is not None - self.write(flat997) + flat1009 = self._try_flat(msg, self.pretty_rel_atom) + if flat1009 is not None: + assert flat1009 is not None + self.write(flat1009) return None else: _dollar_dollar = msg - fields991 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields991 is not None - unwrapped_fields992 = fields991 + fields1003 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1003 is not None + unwrapped_fields1004 = fields1003 self.write("(relatom") self.indent_sexp() self.newline() - field993 = unwrapped_fields992[0] - self.pretty_name(field993) - field994 = unwrapped_fields992[1] - if not len(field994) == 0: + field1005 = unwrapped_fields1004[0] + self.pretty_name(field1005) + field1006 = unwrapped_fields1004[1] + if not len(field1006) == 0: self.newline() - for i996, elem995 in enumerate(field994): - if (i996 > 0): + for i1008, elem1007 in enumerate(field1006): + if (i1008 > 0): self.newline() - self.pretty_rel_term(elem995) + self.pretty_rel_term(elem1007) self.dedent() self.write(")") def pretty_cast(self, msg: logic_pb2.Cast): - flat1002 = self._try_flat(msg, self.pretty_cast) - if flat1002 is not None: - assert flat1002 is not None - self.write(flat1002) + flat1014 = self._try_flat(msg, self.pretty_cast) + if flat1014 is not None: + assert flat1014 is not None + self.write(flat1014) return None else: _dollar_dollar = msg - fields998 = (_dollar_dollar.input, _dollar_dollar.result,) - assert fields998 is not None - unwrapped_fields999 = fields998 + fields1010 = (_dollar_dollar.input, _dollar_dollar.result,) + assert fields1010 is not None + unwrapped_fields1011 = fields1010 self.write("(cast") self.indent_sexp() self.newline() - field1000 = unwrapped_fields999[0] - self.pretty_term(field1000) + field1012 = unwrapped_fields1011[0] + self.pretty_term(field1012) self.newline() - field1001 = unwrapped_fields999[1] - self.pretty_term(field1001) + field1013 = unwrapped_fields1011[1] + self.pretty_term(field1013) self.dedent() self.write(")") def pretty_attrs(self, msg: Sequence[logic_pb2.Attribute]): - flat1006 = self._try_flat(msg, self.pretty_attrs) - if flat1006 is not None: - assert flat1006 is not None - self.write(flat1006) + flat1018 = self._try_flat(msg, self.pretty_attrs) + if flat1018 is not None: + assert flat1018 is not None + self.write(flat1018) return None else: - fields1003 = msg + fields1015 = msg self.write("(attrs") self.indent_sexp() - if not len(fields1003) == 0: + if not len(fields1015) == 0: self.newline() - for i1005, elem1004 in enumerate(fields1003): - if (i1005 > 0): + for i1017, elem1016 in enumerate(fields1015): + if (i1017 > 0): self.newline() - self.pretty_attribute(elem1004) + self.pretty_attribute(elem1016) self.dedent() self.write(")") def pretty_attribute(self, msg: logic_pb2.Attribute): - flat1013 = self._try_flat(msg, self.pretty_attribute) - if flat1013 is not None: - assert flat1013 is not None - self.write(flat1013) + flat1025 = self._try_flat(msg, self.pretty_attribute) + if flat1025 is not None: + assert flat1025 is not None + self.write(flat1025) return None else: _dollar_dollar = msg - fields1007 = (_dollar_dollar.name, _dollar_dollar.args,) - assert fields1007 is not None - unwrapped_fields1008 = fields1007 + fields1019 = (_dollar_dollar.name, _dollar_dollar.args,) + assert fields1019 is not None + unwrapped_fields1020 = fields1019 self.write("(attribute") self.indent_sexp() self.newline() - field1009 = unwrapped_fields1008[0] - self.pretty_name(field1009) - field1010 = unwrapped_fields1008[1] - if not len(field1010) == 0: + field1021 = unwrapped_fields1020[0] + self.pretty_name(field1021) + field1022 = unwrapped_fields1020[1] + if not len(field1022) == 0: self.newline() - for i1012, elem1011 in enumerate(field1010): - if (i1012 > 0): + for i1024, elem1023 in enumerate(field1022): + if (i1024 > 0): self.newline() - self.pretty_value(elem1011) + self.pretty_value(elem1023) self.dedent() self.write(")") def pretty_algorithm(self, msg: logic_pb2.Algorithm): - flat1020 = self._try_flat(msg, self.pretty_algorithm) - if flat1020 is not None: - assert flat1020 is not None - self.write(flat1020) + flat1032 = self._try_flat(msg, self.pretty_algorithm) + if flat1032 is not None: + assert flat1032 is not None + self.write(flat1032) return None else: _dollar_dollar = msg - fields1014 = (getattr(_dollar_dollar, 'global'), _dollar_dollar.body,) - assert fields1014 is not None - unwrapped_fields1015 = fields1014 + fields1026 = (getattr(_dollar_dollar, 'global'), _dollar_dollar.body,) + assert fields1026 is not None + unwrapped_fields1027 = fields1026 self.write("(algorithm") self.indent_sexp() - field1016 = unwrapped_fields1015[0] - if not len(field1016) == 0: + field1028 = unwrapped_fields1027[0] + if not len(field1028) == 0: self.newline() - for i1018, elem1017 in enumerate(field1016): - if (i1018 > 0): + for i1030, elem1029 in enumerate(field1028): + if (i1030 > 0): self.newline() - self.pretty_relation_id(elem1017) + self.pretty_relation_id(elem1029) self.newline() - field1019 = unwrapped_fields1015[1] - self.pretty_script(field1019) + field1031 = unwrapped_fields1027[1] + self.pretty_script(field1031) self.dedent() self.write(")") def pretty_script(self, msg: logic_pb2.Script): - flat1025 = self._try_flat(msg, self.pretty_script) - if flat1025 is not None: - assert flat1025 is not None - self.write(flat1025) + flat1037 = self._try_flat(msg, self.pretty_script) + if flat1037 is not None: + assert flat1037 is not None + self.write(flat1037) return None else: _dollar_dollar = msg - fields1021 = _dollar_dollar.constructs - assert fields1021 is not None - unwrapped_fields1022 = fields1021 + fields1033 = _dollar_dollar.constructs + assert fields1033 is not None + unwrapped_fields1034 = fields1033 self.write("(script") self.indent_sexp() - if not len(unwrapped_fields1022) == 0: + if not len(unwrapped_fields1034) == 0: self.newline() - for i1024, elem1023 in enumerate(unwrapped_fields1022): - if (i1024 > 0): + for i1036, elem1035 in enumerate(unwrapped_fields1034): + if (i1036 > 0): self.newline() - self.pretty_construct(elem1023) + self.pretty_construct(elem1035) self.dedent() self.write(")") def pretty_construct(self, msg: logic_pb2.Construct): - flat1030 = self._try_flat(msg, self.pretty_construct) - if flat1030 is not None: - assert flat1030 is not None - self.write(flat1030) + flat1042 = self._try_flat(msg, self.pretty_construct) + if flat1042 is not None: + assert flat1042 is not None + self.write(flat1042) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("loop"): - _t1361 = _dollar_dollar.loop + _t1385 = _dollar_dollar.loop else: - _t1361 = None - deconstruct_result1028 = _t1361 - if deconstruct_result1028 is not None: - assert deconstruct_result1028 is not None - unwrapped1029 = deconstruct_result1028 - self.pretty_loop(unwrapped1029) + _t1385 = None + deconstruct_result1040 = _t1385 + if deconstruct_result1040 is not None: + assert deconstruct_result1040 is not None + unwrapped1041 = deconstruct_result1040 + self.pretty_loop(unwrapped1041) else: _dollar_dollar = msg if _dollar_dollar.HasField("instruction"): - _t1362 = _dollar_dollar.instruction + _t1386 = _dollar_dollar.instruction else: - _t1362 = None - deconstruct_result1026 = _t1362 - if deconstruct_result1026 is not None: - assert deconstruct_result1026 is not None - unwrapped1027 = deconstruct_result1026 - self.pretty_instruction(unwrapped1027) + _t1386 = None + deconstruct_result1038 = _t1386 + if deconstruct_result1038 is not None: + assert deconstruct_result1038 is not None + unwrapped1039 = deconstruct_result1038 + self.pretty_instruction(unwrapped1039) else: raise ParseError("No matching rule for construct") def pretty_loop(self, msg: logic_pb2.Loop): - flat1035 = self._try_flat(msg, self.pretty_loop) - if flat1035 is not None: - assert flat1035 is not None - self.write(flat1035) + flat1047 = self._try_flat(msg, self.pretty_loop) + if flat1047 is not None: + assert flat1047 is not None + self.write(flat1047) return None else: _dollar_dollar = msg - fields1031 = (_dollar_dollar.init, _dollar_dollar.body,) - assert fields1031 is not None - unwrapped_fields1032 = fields1031 + fields1043 = (_dollar_dollar.init, _dollar_dollar.body,) + assert fields1043 is not None + unwrapped_fields1044 = fields1043 self.write("(loop") self.indent_sexp() self.newline() - field1033 = unwrapped_fields1032[0] - self.pretty_init(field1033) + field1045 = unwrapped_fields1044[0] + self.pretty_init(field1045) self.newline() - field1034 = unwrapped_fields1032[1] - self.pretty_script(field1034) + field1046 = unwrapped_fields1044[1] + self.pretty_script(field1046) self.dedent() self.write(")") def pretty_init(self, msg: Sequence[logic_pb2.Instruction]): - flat1039 = self._try_flat(msg, self.pretty_init) - if flat1039 is not None: - assert flat1039 is not None - self.write(flat1039) + flat1051 = self._try_flat(msg, self.pretty_init) + if flat1051 is not None: + assert flat1051 is not None + self.write(flat1051) return None else: - fields1036 = msg + fields1048 = msg self.write("(init") self.indent_sexp() - if not len(fields1036) == 0: + if not len(fields1048) == 0: self.newline() - for i1038, elem1037 in enumerate(fields1036): - if (i1038 > 0): + for i1050, elem1049 in enumerate(fields1048): + if (i1050 > 0): self.newline() - self.pretty_instruction(elem1037) + self.pretty_instruction(elem1049) self.dedent() self.write(")") def pretty_instruction(self, msg: logic_pb2.Instruction): - flat1050 = self._try_flat(msg, self.pretty_instruction) - if flat1050 is not None: - assert flat1050 is not None - self.write(flat1050) + flat1062 = self._try_flat(msg, self.pretty_instruction) + if flat1062 is not None: + assert flat1062 is not None + self.write(flat1062) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("assign"): - _t1363 = _dollar_dollar.assign + _t1387 = _dollar_dollar.assign else: - _t1363 = None - deconstruct_result1048 = _t1363 - if deconstruct_result1048 is not None: - assert deconstruct_result1048 is not None - unwrapped1049 = deconstruct_result1048 - self.pretty_assign(unwrapped1049) + _t1387 = None + deconstruct_result1060 = _t1387 + if deconstruct_result1060 is not None: + assert deconstruct_result1060 is not None + unwrapped1061 = deconstruct_result1060 + self.pretty_assign(unwrapped1061) else: _dollar_dollar = msg if _dollar_dollar.HasField("upsert"): - _t1364 = _dollar_dollar.upsert + _t1388 = _dollar_dollar.upsert else: - _t1364 = None - deconstruct_result1046 = _t1364 - if deconstruct_result1046 is not None: - assert deconstruct_result1046 is not None - unwrapped1047 = deconstruct_result1046 - self.pretty_upsert(unwrapped1047) + _t1388 = None + deconstruct_result1058 = _t1388 + if deconstruct_result1058 is not None: + assert deconstruct_result1058 is not None + unwrapped1059 = deconstruct_result1058 + self.pretty_upsert(unwrapped1059) else: _dollar_dollar = msg if _dollar_dollar.HasField("break"): - _t1365 = getattr(_dollar_dollar, 'break') + _t1389 = getattr(_dollar_dollar, 'break') else: - _t1365 = None - deconstruct_result1044 = _t1365 - if deconstruct_result1044 is not None: - assert deconstruct_result1044 is not None - unwrapped1045 = deconstruct_result1044 - self.pretty_break(unwrapped1045) + _t1389 = None + deconstruct_result1056 = _t1389 + if deconstruct_result1056 is not None: + assert deconstruct_result1056 is not None + unwrapped1057 = deconstruct_result1056 + self.pretty_break(unwrapped1057) else: _dollar_dollar = msg if _dollar_dollar.HasField("monoid_def"): - _t1366 = _dollar_dollar.monoid_def + _t1390 = _dollar_dollar.monoid_def else: - _t1366 = None - deconstruct_result1042 = _t1366 - if deconstruct_result1042 is not None: - assert deconstruct_result1042 is not None - unwrapped1043 = deconstruct_result1042 - self.pretty_monoid_def(unwrapped1043) + _t1390 = None + deconstruct_result1054 = _t1390 + if deconstruct_result1054 is not None: + assert deconstruct_result1054 is not None + unwrapped1055 = deconstruct_result1054 + self.pretty_monoid_def(unwrapped1055) else: _dollar_dollar = msg if _dollar_dollar.HasField("monus_def"): - _t1367 = _dollar_dollar.monus_def + _t1391 = _dollar_dollar.monus_def else: - _t1367 = None - deconstruct_result1040 = _t1367 - if deconstruct_result1040 is not None: - assert deconstruct_result1040 is not None - unwrapped1041 = deconstruct_result1040 - self.pretty_monus_def(unwrapped1041) + _t1391 = None + deconstruct_result1052 = _t1391 + if deconstruct_result1052 is not None: + assert deconstruct_result1052 is not None + unwrapped1053 = deconstruct_result1052 + self.pretty_monus_def(unwrapped1053) else: raise ParseError("No matching rule for instruction") def pretty_assign(self, msg: logic_pb2.Assign): - flat1057 = self._try_flat(msg, self.pretty_assign) - if flat1057 is not None: - assert flat1057 is not None - self.write(flat1057) + flat1069 = self._try_flat(msg, self.pretty_assign) + if flat1069 is not None: + assert flat1069 is not None + self.write(flat1069) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1368 = _dollar_dollar.attrs + _t1392 = _dollar_dollar.attrs else: - _t1368 = None - fields1051 = (_dollar_dollar.name, _dollar_dollar.body, _t1368,) - assert fields1051 is not None - unwrapped_fields1052 = fields1051 + _t1392 = None + fields1063 = (_dollar_dollar.name, _dollar_dollar.body, _t1392,) + assert fields1063 is not None + unwrapped_fields1064 = fields1063 self.write("(assign") self.indent_sexp() self.newline() - field1053 = unwrapped_fields1052[0] - self.pretty_relation_id(field1053) + field1065 = unwrapped_fields1064[0] + self.pretty_relation_id(field1065) self.newline() - field1054 = unwrapped_fields1052[1] - self.pretty_abstraction(field1054) - field1055 = unwrapped_fields1052[2] - if field1055 is not None: + field1066 = unwrapped_fields1064[1] + self.pretty_abstraction(field1066) + field1067 = unwrapped_fields1064[2] + if field1067 is not None: self.newline() - assert field1055 is not None - opt_val1056 = field1055 - self.pretty_attrs(opt_val1056) + assert field1067 is not None + opt_val1068 = field1067 + self.pretty_attrs(opt_val1068) self.dedent() self.write(")") def pretty_upsert(self, msg: logic_pb2.Upsert): - flat1064 = self._try_flat(msg, self.pretty_upsert) - if flat1064 is not None: - assert flat1064 is not None - self.write(flat1064) + flat1076 = self._try_flat(msg, self.pretty_upsert) + if flat1076 is not None: + assert flat1076 is not None + self.write(flat1076) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1369 = _dollar_dollar.attrs + _t1393 = _dollar_dollar.attrs else: - _t1369 = None - fields1058 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1369,) - assert fields1058 is not None - unwrapped_fields1059 = fields1058 + _t1393 = None + fields1070 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1393,) + assert fields1070 is not None + unwrapped_fields1071 = fields1070 self.write("(upsert") self.indent_sexp() self.newline() - field1060 = unwrapped_fields1059[0] - self.pretty_relation_id(field1060) + field1072 = unwrapped_fields1071[0] + self.pretty_relation_id(field1072) self.newline() - field1061 = unwrapped_fields1059[1] - self.pretty_abstraction_with_arity(field1061) - field1062 = unwrapped_fields1059[2] - if field1062 is not None: + field1073 = unwrapped_fields1071[1] + self.pretty_abstraction_with_arity(field1073) + field1074 = unwrapped_fields1071[2] + if field1074 is not None: self.newline() - assert field1062 is not None - opt_val1063 = field1062 - self.pretty_attrs(opt_val1063) + assert field1074 is not None + opt_val1075 = field1074 + self.pretty_attrs(opt_val1075) self.dedent() self.write(")") def pretty_abstraction_with_arity(self, msg: tuple[logic_pb2.Abstraction, int]): - flat1069 = self._try_flat(msg, self.pretty_abstraction_with_arity) - if flat1069 is not None: - assert flat1069 is not None - self.write(flat1069) + flat1081 = self._try_flat(msg, self.pretty_abstraction_with_arity) + if flat1081 is not None: + assert flat1081 is not None + self.write(flat1081) return None else: _dollar_dollar = msg - _t1370 = self.deconstruct_bindings_with_arity(_dollar_dollar[0], _dollar_dollar[1]) - fields1065 = (_t1370, _dollar_dollar[0].value,) - assert fields1065 is not None - unwrapped_fields1066 = fields1065 + _t1394 = self.deconstruct_bindings_with_arity(_dollar_dollar[0], _dollar_dollar[1]) + fields1077 = (_t1394, _dollar_dollar[0].value,) + assert fields1077 is not None + unwrapped_fields1078 = fields1077 self.write("(") self.indent() - field1067 = unwrapped_fields1066[0] - self.pretty_bindings(field1067) + field1079 = unwrapped_fields1078[0] + self.pretty_bindings(field1079) self.newline() - field1068 = unwrapped_fields1066[1] - self.pretty_formula(field1068) + field1080 = unwrapped_fields1078[1] + self.pretty_formula(field1080) self.dedent() self.write(")") def pretty_break(self, msg: logic_pb2.Break): - flat1076 = self._try_flat(msg, self.pretty_break) - if flat1076 is not None: - assert flat1076 is not None - self.write(flat1076) + flat1088 = self._try_flat(msg, self.pretty_break) + if flat1088 is not None: + assert flat1088 is not None + self.write(flat1088) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1371 = _dollar_dollar.attrs + _t1395 = _dollar_dollar.attrs else: - _t1371 = None - fields1070 = (_dollar_dollar.name, _dollar_dollar.body, _t1371,) - assert fields1070 is not None - unwrapped_fields1071 = fields1070 + _t1395 = None + fields1082 = (_dollar_dollar.name, _dollar_dollar.body, _t1395,) + assert fields1082 is not None + unwrapped_fields1083 = fields1082 self.write("(break") self.indent_sexp() self.newline() - field1072 = unwrapped_fields1071[0] - self.pretty_relation_id(field1072) + field1084 = unwrapped_fields1083[0] + self.pretty_relation_id(field1084) self.newline() - field1073 = unwrapped_fields1071[1] - self.pretty_abstraction(field1073) - field1074 = unwrapped_fields1071[2] - if field1074 is not None: + field1085 = unwrapped_fields1083[1] + self.pretty_abstraction(field1085) + field1086 = unwrapped_fields1083[2] + if field1086 is not None: self.newline() - assert field1074 is not None - opt_val1075 = field1074 - self.pretty_attrs(opt_val1075) + assert field1086 is not None + opt_val1087 = field1086 + self.pretty_attrs(opt_val1087) self.dedent() self.write(")") def pretty_monoid_def(self, msg: logic_pb2.MonoidDef): - flat1084 = self._try_flat(msg, self.pretty_monoid_def) - if flat1084 is not None: - assert flat1084 is not None - self.write(flat1084) + flat1096 = self._try_flat(msg, self.pretty_monoid_def) + if flat1096 is not None: + assert flat1096 is not None + self.write(flat1096) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1372 = _dollar_dollar.attrs + _t1396 = _dollar_dollar.attrs else: - _t1372 = None - fields1077 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1372,) - assert fields1077 is not None - unwrapped_fields1078 = fields1077 + _t1396 = None + fields1089 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1396,) + assert fields1089 is not None + unwrapped_fields1090 = fields1089 self.write("(monoid") self.indent_sexp() self.newline() - field1079 = unwrapped_fields1078[0] - self.pretty_monoid(field1079) + field1091 = unwrapped_fields1090[0] + self.pretty_monoid(field1091) self.newline() - field1080 = unwrapped_fields1078[1] - self.pretty_relation_id(field1080) + field1092 = unwrapped_fields1090[1] + self.pretty_relation_id(field1092) self.newline() - field1081 = unwrapped_fields1078[2] - self.pretty_abstraction_with_arity(field1081) - field1082 = unwrapped_fields1078[3] - if field1082 is not None: + field1093 = unwrapped_fields1090[2] + self.pretty_abstraction_with_arity(field1093) + field1094 = unwrapped_fields1090[3] + if field1094 is not None: self.newline() - assert field1082 is not None - opt_val1083 = field1082 - self.pretty_attrs(opt_val1083) + assert field1094 is not None + opt_val1095 = field1094 + self.pretty_attrs(opt_val1095) self.dedent() self.write(")") def pretty_monoid(self, msg: logic_pb2.Monoid): - flat1093 = self._try_flat(msg, self.pretty_monoid) - if flat1093 is not None: - assert flat1093 is not None - self.write(flat1093) + flat1105 = self._try_flat(msg, self.pretty_monoid) + if flat1105 is not None: + assert flat1105 is not None + self.write(flat1105) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("or_monoid"): - _t1373 = _dollar_dollar.or_monoid + _t1397 = _dollar_dollar.or_monoid else: - _t1373 = None - deconstruct_result1091 = _t1373 - if deconstruct_result1091 is not None: - assert deconstruct_result1091 is not None - unwrapped1092 = deconstruct_result1091 - self.pretty_or_monoid(unwrapped1092) + _t1397 = None + deconstruct_result1103 = _t1397 + if deconstruct_result1103 is not None: + assert deconstruct_result1103 is not None + unwrapped1104 = deconstruct_result1103 + self.pretty_or_monoid(unwrapped1104) else: _dollar_dollar = msg if _dollar_dollar.HasField("min_monoid"): - _t1374 = _dollar_dollar.min_monoid + _t1398 = _dollar_dollar.min_monoid else: - _t1374 = None - deconstruct_result1089 = _t1374 - if deconstruct_result1089 is not None: - assert deconstruct_result1089 is not None - unwrapped1090 = deconstruct_result1089 - self.pretty_min_monoid(unwrapped1090) + _t1398 = None + deconstruct_result1101 = _t1398 + if deconstruct_result1101 is not None: + assert deconstruct_result1101 is not None + unwrapped1102 = deconstruct_result1101 + self.pretty_min_monoid(unwrapped1102) else: _dollar_dollar = msg if _dollar_dollar.HasField("max_monoid"): - _t1375 = _dollar_dollar.max_monoid + _t1399 = _dollar_dollar.max_monoid else: - _t1375 = None - deconstruct_result1087 = _t1375 - if deconstruct_result1087 is not None: - assert deconstruct_result1087 is not None - unwrapped1088 = deconstruct_result1087 - self.pretty_max_monoid(unwrapped1088) + _t1399 = None + deconstruct_result1099 = _t1399 + if deconstruct_result1099 is not None: + assert deconstruct_result1099 is not None + unwrapped1100 = deconstruct_result1099 + self.pretty_max_monoid(unwrapped1100) else: _dollar_dollar = msg if _dollar_dollar.HasField("sum_monoid"): - _t1376 = _dollar_dollar.sum_monoid + _t1400 = _dollar_dollar.sum_monoid else: - _t1376 = None - deconstruct_result1085 = _t1376 - if deconstruct_result1085 is not None: - assert deconstruct_result1085 is not None - unwrapped1086 = deconstruct_result1085 - self.pretty_sum_monoid(unwrapped1086) + _t1400 = None + deconstruct_result1097 = _t1400 + if deconstruct_result1097 is not None: + assert deconstruct_result1097 is not None + unwrapped1098 = deconstruct_result1097 + self.pretty_sum_monoid(unwrapped1098) else: raise ParseError("No matching rule for monoid") def pretty_or_monoid(self, msg: logic_pb2.OrMonoid): - fields1094 = msg + fields1106 = msg self.write("(or)") def pretty_min_monoid(self, msg: logic_pb2.MinMonoid): - flat1097 = self._try_flat(msg, self.pretty_min_monoid) - if flat1097 is not None: - assert flat1097 is not None - self.write(flat1097) + flat1109 = self._try_flat(msg, self.pretty_min_monoid) + if flat1109 is not None: + assert flat1109 is not None + self.write(flat1109) return None else: _dollar_dollar = msg - fields1095 = _dollar_dollar.type - assert fields1095 is not None - unwrapped_fields1096 = fields1095 + fields1107 = _dollar_dollar.type + assert fields1107 is not None + unwrapped_fields1108 = fields1107 self.write("(min") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1096) + self.pretty_type(unwrapped_fields1108) self.dedent() self.write(")") def pretty_max_monoid(self, msg: logic_pb2.MaxMonoid): - flat1100 = self._try_flat(msg, self.pretty_max_monoid) - if flat1100 is not None: - assert flat1100 is not None - self.write(flat1100) + flat1112 = self._try_flat(msg, self.pretty_max_monoid) + if flat1112 is not None: + assert flat1112 is not None + self.write(flat1112) return None else: _dollar_dollar = msg - fields1098 = _dollar_dollar.type - assert fields1098 is not None - unwrapped_fields1099 = fields1098 + fields1110 = _dollar_dollar.type + assert fields1110 is not None + unwrapped_fields1111 = fields1110 self.write("(max") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1099) + self.pretty_type(unwrapped_fields1111) self.dedent() self.write(")") def pretty_sum_monoid(self, msg: logic_pb2.SumMonoid): - flat1103 = self._try_flat(msg, self.pretty_sum_monoid) - if flat1103 is not None: - assert flat1103 is not None - self.write(flat1103) + flat1115 = self._try_flat(msg, self.pretty_sum_monoid) + if flat1115 is not None: + assert flat1115 is not None + self.write(flat1115) return None else: _dollar_dollar = msg - fields1101 = _dollar_dollar.type - assert fields1101 is not None - unwrapped_fields1102 = fields1101 + fields1113 = _dollar_dollar.type + assert fields1113 is not None + unwrapped_fields1114 = fields1113 self.write("(sum") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1102) + self.pretty_type(unwrapped_fields1114) self.dedent() self.write(")") def pretty_monus_def(self, msg: logic_pb2.MonusDef): - flat1111 = self._try_flat(msg, self.pretty_monus_def) - if flat1111 is not None: - assert flat1111 is not None - self.write(flat1111) + flat1123 = self._try_flat(msg, self.pretty_monus_def) + if flat1123 is not None: + assert flat1123 is not None + self.write(flat1123) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1377 = _dollar_dollar.attrs + _t1401 = _dollar_dollar.attrs else: - _t1377 = None - fields1104 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1377,) - assert fields1104 is not None - unwrapped_fields1105 = fields1104 + _t1401 = None + fields1116 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1401,) + assert fields1116 is not None + unwrapped_fields1117 = fields1116 self.write("(monus") self.indent_sexp() self.newline() - field1106 = unwrapped_fields1105[0] - self.pretty_monoid(field1106) + field1118 = unwrapped_fields1117[0] + self.pretty_monoid(field1118) self.newline() - field1107 = unwrapped_fields1105[1] - self.pretty_relation_id(field1107) + field1119 = unwrapped_fields1117[1] + self.pretty_relation_id(field1119) self.newline() - field1108 = unwrapped_fields1105[2] - self.pretty_abstraction_with_arity(field1108) - field1109 = unwrapped_fields1105[3] - if field1109 is not None: + field1120 = unwrapped_fields1117[2] + self.pretty_abstraction_with_arity(field1120) + field1121 = unwrapped_fields1117[3] + if field1121 is not None: self.newline() - assert field1109 is not None - opt_val1110 = field1109 - self.pretty_attrs(opt_val1110) + assert field1121 is not None + opt_val1122 = field1121 + self.pretty_attrs(opt_val1122) self.dedent() self.write(")") def pretty_constraint(self, msg: logic_pb2.Constraint): - flat1118 = self._try_flat(msg, self.pretty_constraint) - if flat1118 is not None: - assert flat1118 is not None - self.write(flat1118) + flat1130 = self._try_flat(msg, self.pretty_constraint) + if flat1130 is not None: + assert flat1130 is not None + self.write(flat1130) return None else: _dollar_dollar = msg - fields1112 = (_dollar_dollar.name, _dollar_dollar.functional_dependency.guard, _dollar_dollar.functional_dependency.keys, _dollar_dollar.functional_dependency.values,) - assert fields1112 is not None - unwrapped_fields1113 = fields1112 + fields1124 = (_dollar_dollar.name, _dollar_dollar.functional_dependency.guard, _dollar_dollar.functional_dependency.keys, _dollar_dollar.functional_dependency.values,) + assert fields1124 is not None + unwrapped_fields1125 = fields1124 self.write("(functional_dependency") self.indent_sexp() self.newline() - field1114 = unwrapped_fields1113[0] - self.pretty_relation_id(field1114) + field1126 = unwrapped_fields1125[0] + self.pretty_relation_id(field1126) self.newline() - field1115 = unwrapped_fields1113[1] - self.pretty_abstraction(field1115) + field1127 = unwrapped_fields1125[1] + self.pretty_abstraction(field1127) self.newline() - field1116 = unwrapped_fields1113[2] - self.pretty_functional_dependency_keys(field1116) + field1128 = unwrapped_fields1125[2] + self.pretty_functional_dependency_keys(field1128) self.newline() - field1117 = unwrapped_fields1113[3] - self.pretty_functional_dependency_values(field1117) + field1129 = unwrapped_fields1125[3] + self.pretty_functional_dependency_values(field1129) self.dedent() self.write(")") def pretty_functional_dependency_keys(self, msg: Sequence[logic_pb2.Var]): - flat1122 = self._try_flat(msg, self.pretty_functional_dependency_keys) - if flat1122 is not None: - assert flat1122 is not None - self.write(flat1122) + flat1134 = self._try_flat(msg, self.pretty_functional_dependency_keys) + if flat1134 is not None: + assert flat1134 is not None + self.write(flat1134) return None else: - fields1119 = msg + fields1131 = msg self.write("(keys") self.indent_sexp() - if not len(fields1119) == 0: + if not len(fields1131) == 0: self.newline() - for i1121, elem1120 in enumerate(fields1119): - if (i1121 > 0): + for i1133, elem1132 in enumerate(fields1131): + if (i1133 > 0): self.newline() - self.pretty_var(elem1120) + self.pretty_var(elem1132) self.dedent() self.write(")") def pretty_functional_dependency_values(self, msg: Sequence[logic_pb2.Var]): - flat1126 = self._try_flat(msg, self.pretty_functional_dependency_values) - if flat1126 is not None: - assert flat1126 is not None - self.write(flat1126) + flat1138 = self._try_flat(msg, self.pretty_functional_dependency_values) + if flat1138 is not None: + assert flat1138 is not None + self.write(flat1138) return None else: - fields1123 = msg + fields1135 = msg self.write("(values") self.indent_sexp() - if not len(fields1123) == 0: + if not len(fields1135) == 0: self.newline() - for i1125, elem1124 in enumerate(fields1123): - if (i1125 > 0): + for i1137, elem1136 in enumerate(fields1135): + if (i1137 > 0): self.newline() - self.pretty_var(elem1124) + self.pretty_var(elem1136) self.dedent() self.write(")") def pretty_data(self, msg: logic_pb2.Data): - flat1133 = self._try_flat(msg, self.pretty_data) - if flat1133 is not None: - assert flat1133 is not None - self.write(flat1133) + flat1145 = self._try_flat(msg, self.pretty_data) + if flat1145 is not None: + assert flat1145 is not None + self.write(flat1145) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("edb"): - _t1378 = _dollar_dollar.edb + _t1402 = _dollar_dollar.edb else: - _t1378 = None - deconstruct_result1131 = _t1378 - if deconstruct_result1131 is not None: - assert deconstruct_result1131 is not None - unwrapped1132 = deconstruct_result1131 - self.pretty_edb(unwrapped1132) + _t1402 = None + deconstruct_result1143 = _t1402 + if deconstruct_result1143 is not None: + assert deconstruct_result1143 is not None + unwrapped1144 = deconstruct_result1143 + self.pretty_edb(unwrapped1144) else: _dollar_dollar = msg if _dollar_dollar.HasField("betree_relation"): - _t1379 = _dollar_dollar.betree_relation + _t1403 = _dollar_dollar.betree_relation else: - _t1379 = None - deconstruct_result1129 = _t1379 - if deconstruct_result1129 is not None: - assert deconstruct_result1129 is not None - unwrapped1130 = deconstruct_result1129 - self.pretty_betree_relation(unwrapped1130) + _t1403 = None + deconstruct_result1141 = _t1403 + if deconstruct_result1141 is not None: + assert deconstruct_result1141 is not None + unwrapped1142 = deconstruct_result1141 + self.pretty_betree_relation(unwrapped1142) else: _dollar_dollar = msg if _dollar_dollar.HasField("csv_data"): - _t1380 = _dollar_dollar.csv_data + _t1404 = _dollar_dollar.csv_data else: - _t1380 = None - deconstruct_result1127 = _t1380 - if deconstruct_result1127 is not None: - assert deconstruct_result1127 is not None - unwrapped1128 = deconstruct_result1127 - self.pretty_csv_data(unwrapped1128) + _t1404 = None + deconstruct_result1139 = _t1404 + if deconstruct_result1139 is not None: + assert deconstruct_result1139 is not None + unwrapped1140 = deconstruct_result1139 + self.pretty_csv_data(unwrapped1140) else: raise ParseError("No matching rule for data") def pretty_edb(self, msg: logic_pb2.EDB): - flat1139 = self._try_flat(msg, self.pretty_edb) - if flat1139 is not None: - assert flat1139 is not None - self.write(flat1139) + flat1151 = self._try_flat(msg, self.pretty_edb) + if flat1151 is not None: + assert flat1151 is not None + self.write(flat1151) return None else: _dollar_dollar = msg - fields1134 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) - assert fields1134 is not None - unwrapped_fields1135 = fields1134 + fields1146 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) + assert fields1146 is not None + unwrapped_fields1147 = fields1146 self.write("(edb") self.indent_sexp() self.newline() - field1136 = unwrapped_fields1135[0] - self.pretty_relation_id(field1136) + field1148 = unwrapped_fields1147[0] + self.pretty_relation_id(field1148) self.newline() - field1137 = unwrapped_fields1135[1] - self.pretty_edb_path(field1137) + field1149 = unwrapped_fields1147[1] + self.pretty_edb_path(field1149) self.newline() - field1138 = unwrapped_fields1135[2] - self.pretty_edb_types(field1138) + field1150 = unwrapped_fields1147[2] + self.pretty_edb_types(field1150) self.dedent() self.write(")") def pretty_edb_path(self, msg: Sequence[str]): - flat1143 = self._try_flat(msg, self.pretty_edb_path) - if flat1143 is not None: - assert flat1143 is not None - self.write(flat1143) + flat1155 = self._try_flat(msg, self.pretty_edb_path) + if flat1155 is not None: + assert flat1155 is not None + self.write(flat1155) return None else: - fields1140 = msg + fields1152 = msg self.write("[") self.indent() - for i1142, elem1141 in enumerate(fields1140): - if (i1142 > 0): + for i1154, elem1153 in enumerate(fields1152): + if (i1154 > 0): self.newline() - self.write(self.format_string_value(elem1141)) + self.write(self.format_string_value(elem1153)) self.dedent() self.write("]") def pretty_edb_types(self, msg: Sequence[logic_pb2.Type]): - flat1147 = self._try_flat(msg, self.pretty_edb_types) - if flat1147 is not None: - assert flat1147 is not None - self.write(flat1147) + flat1159 = self._try_flat(msg, self.pretty_edb_types) + if flat1159 is not None: + assert flat1159 is not None + self.write(flat1159) return None else: - fields1144 = msg + fields1156 = msg self.write("[") self.indent() - for i1146, elem1145 in enumerate(fields1144): - if (i1146 > 0): + for i1158, elem1157 in enumerate(fields1156): + if (i1158 > 0): self.newline() - self.pretty_type(elem1145) + self.pretty_type(elem1157) self.dedent() self.write("]") def pretty_betree_relation(self, msg: logic_pb2.BeTreeRelation): - flat1152 = self._try_flat(msg, self.pretty_betree_relation) - if flat1152 is not None: - assert flat1152 is not None - self.write(flat1152) + flat1164 = self._try_flat(msg, self.pretty_betree_relation) + if flat1164 is not None: + assert flat1164 is not None + self.write(flat1164) return None else: _dollar_dollar = msg - fields1148 = (_dollar_dollar.name, _dollar_dollar.relation_info,) - assert fields1148 is not None - unwrapped_fields1149 = fields1148 + fields1160 = (_dollar_dollar.name, _dollar_dollar.relation_info,) + assert fields1160 is not None + unwrapped_fields1161 = fields1160 self.write("(betree_relation") self.indent_sexp() self.newline() - field1150 = unwrapped_fields1149[0] - self.pretty_relation_id(field1150) + field1162 = unwrapped_fields1161[0] + self.pretty_relation_id(field1162) self.newline() - field1151 = unwrapped_fields1149[1] - self.pretty_betree_info(field1151) + field1163 = unwrapped_fields1161[1] + self.pretty_betree_info(field1163) self.dedent() self.write(")") def pretty_betree_info(self, msg: logic_pb2.BeTreeInfo): - flat1158 = self._try_flat(msg, self.pretty_betree_info) - if flat1158 is not None: - assert flat1158 is not None - self.write(flat1158) + flat1170 = self._try_flat(msg, self.pretty_betree_info) + if flat1170 is not None: + assert flat1170 is not None + self.write(flat1170) return None else: _dollar_dollar = msg - _t1381 = self.deconstruct_betree_info_config(_dollar_dollar) - fields1153 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1381,) - assert fields1153 is not None - unwrapped_fields1154 = fields1153 + _t1405 = self.deconstruct_betree_info_config(_dollar_dollar) + fields1165 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1405,) + assert fields1165 is not None + unwrapped_fields1166 = fields1165 self.write("(betree_info") self.indent_sexp() self.newline() - field1155 = unwrapped_fields1154[0] - self.pretty_betree_info_key_types(field1155) + field1167 = unwrapped_fields1166[0] + self.pretty_betree_info_key_types(field1167) self.newline() - field1156 = unwrapped_fields1154[1] - self.pretty_betree_info_value_types(field1156) + field1168 = unwrapped_fields1166[1] + self.pretty_betree_info_value_types(field1168) self.newline() - field1157 = unwrapped_fields1154[2] - self.pretty_config_dict(field1157) + field1169 = unwrapped_fields1166[2] + self.pretty_config_dict(field1169) self.dedent() self.write(")") def pretty_betree_info_key_types(self, msg: Sequence[logic_pb2.Type]): - flat1162 = self._try_flat(msg, self.pretty_betree_info_key_types) - if flat1162 is not None: - assert flat1162 is not None - self.write(flat1162) + flat1174 = self._try_flat(msg, self.pretty_betree_info_key_types) + if flat1174 is not None: + assert flat1174 is not None + self.write(flat1174) return None else: - fields1159 = msg + fields1171 = msg self.write("(key_types") self.indent_sexp() - if not len(fields1159) == 0: + if not len(fields1171) == 0: self.newline() - for i1161, elem1160 in enumerate(fields1159): - if (i1161 > 0): + for i1173, elem1172 in enumerate(fields1171): + if (i1173 > 0): self.newline() - self.pretty_type(elem1160) + self.pretty_type(elem1172) self.dedent() self.write(")") def pretty_betree_info_value_types(self, msg: Sequence[logic_pb2.Type]): - flat1166 = self._try_flat(msg, self.pretty_betree_info_value_types) - if flat1166 is not None: - assert flat1166 is not None - self.write(flat1166) + flat1178 = self._try_flat(msg, self.pretty_betree_info_value_types) + if flat1178 is not None: + assert flat1178 is not None + self.write(flat1178) return None else: - fields1163 = msg + fields1175 = msg self.write("(value_types") self.indent_sexp() - if not len(fields1163) == 0: + if not len(fields1175) == 0: self.newline() - for i1165, elem1164 in enumerate(fields1163): - if (i1165 > 0): + for i1177, elem1176 in enumerate(fields1175): + if (i1177 > 0): self.newline() - self.pretty_type(elem1164) + self.pretty_type(elem1176) self.dedent() self.write(")") def pretty_csv_data(self, msg: logic_pb2.CSVData): - flat1173 = self._try_flat(msg, self.pretty_csv_data) - if flat1173 is not None: - assert flat1173 is not None - self.write(flat1173) + flat1185 = self._try_flat(msg, self.pretty_csv_data) + if flat1185 is not None: + assert flat1185 is not None + self.write(flat1185) return None else: _dollar_dollar = msg - fields1167 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) - assert fields1167 is not None - unwrapped_fields1168 = fields1167 + fields1179 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) + assert fields1179 is not None + unwrapped_fields1180 = fields1179 self.write("(csv_data") self.indent_sexp() self.newline() - field1169 = unwrapped_fields1168[0] - self.pretty_csvlocator(field1169) + field1181 = unwrapped_fields1180[0] + self.pretty_csvlocator(field1181) self.newline() - field1170 = unwrapped_fields1168[1] - self.pretty_csv_config(field1170) + field1182 = unwrapped_fields1180[1] + self.pretty_csv_config(field1182) self.newline() - field1171 = unwrapped_fields1168[2] - self.pretty_gnf_columns(field1171) + field1183 = unwrapped_fields1180[2] + self.pretty_gnf_columns(field1183) self.newline() - field1172 = unwrapped_fields1168[3] - self.pretty_csv_asof(field1172) + field1184 = unwrapped_fields1180[3] + self.pretty_csv_asof(field1184) self.dedent() self.write(")") def pretty_csvlocator(self, msg: logic_pb2.CSVLocator): - flat1180 = self._try_flat(msg, self.pretty_csvlocator) - if flat1180 is not None: - assert flat1180 is not None - self.write(flat1180) + flat1192 = self._try_flat(msg, self.pretty_csvlocator) + if flat1192 is not None: + assert flat1192 is not None + self.write(flat1192) return None else: _dollar_dollar = msg if not len(_dollar_dollar.paths) == 0: - _t1382 = _dollar_dollar.paths + _t1406 = _dollar_dollar.paths else: - _t1382 = None + _t1406 = None if _dollar_dollar.inline_data.decode('utf-8') != "": - _t1383 = _dollar_dollar.inline_data.decode('utf-8') + _t1407 = _dollar_dollar.inline_data.decode('utf-8') else: - _t1383 = None - fields1174 = (_t1382, _t1383,) - assert fields1174 is not None - unwrapped_fields1175 = fields1174 + _t1407 = None + fields1186 = (_t1406, _t1407,) + assert fields1186 is not None + unwrapped_fields1187 = fields1186 self.write("(csv_locator") self.indent_sexp() - field1176 = unwrapped_fields1175[0] - if field1176 is not None: + field1188 = unwrapped_fields1187[0] + if field1188 is not None: self.newline() - assert field1176 is not None - opt_val1177 = field1176 - self.pretty_csv_locator_paths(opt_val1177) - field1178 = unwrapped_fields1175[1] - if field1178 is not None: + assert field1188 is not None + opt_val1189 = field1188 + self.pretty_csv_locator_paths(opt_val1189) + field1190 = unwrapped_fields1187[1] + if field1190 is not None: self.newline() - assert field1178 is not None - opt_val1179 = field1178 - self.pretty_csv_locator_inline_data(opt_val1179) + assert field1190 is not None + opt_val1191 = field1190 + self.pretty_csv_locator_inline_data(opt_val1191) self.dedent() self.write(")") def pretty_csv_locator_paths(self, msg: Sequence[str]): - flat1184 = self._try_flat(msg, self.pretty_csv_locator_paths) - if flat1184 is not None: - assert flat1184 is not None - self.write(flat1184) + flat1196 = self._try_flat(msg, self.pretty_csv_locator_paths) + if flat1196 is not None: + assert flat1196 is not None + self.write(flat1196) return None else: - fields1181 = msg + fields1193 = msg self.write("(paths") self.indent_sexp() - if not len(fields1181) == 0: + if not len(fields1193) == 0: self.newline() - for i1183, elem1182 in enumerate(fields1181): - if (i1183 > 0): + for i1195, elem1194 in enumerate(fields1193): + if (i1195 > 0): self.newline() - self.write(self.format_string_value(elem1182)) + self.write(self.format_string_value(elem1194)) self.dedent() self.write(")") def pretty_csv_locator_inline_data(self, msg: str): - flat1186 = self._try_flat(msg, self.pretty_csv_locator_inline_data) - if flat1186 is not None: - assert flat1186 is not None - self.write(flat1186) + flat1198 = self._try_flat(msg, self.pretty_csv_locator_inline_data) + if flat1198 is not None: + assert flat1198 is not None + self.write(flat1198) return None else: - fields1185 = msg + fields1197 = msg self.write("(inline_data") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1185)) + self.write(self.format_string_value(fields1197)) self.dedent() self.write(")") def pretty_csv_config(self, msg: logic_pb2.CSVConfig): - flat1189 = self._try_flat(msg, self.pretty_csv_config) - if flat1189 is not None: - assert flat1189 is not None - self.write(flat1189) + flat1201 = self._try_flat(msg, self.pretty_csv_config) + if flat1201 is not None: + assert flat1201 is not None + self.write(flat1201) return None else: _dollar_dollar = msg - _t1384 = self.deconstruct_csv_config(_dollar_dollar) - fields1187 = _t1384 - assert fields1187 is not None - unwrapped_fields1188 = fields1187 + _t1408 = self.deconstruct_csv_config(_dollar_dollar) + fields1199 = _t1408 + assert fields1199 is not None + unwrapped_fields1200 = fields1199 self.write("(csv_config") self.indent_sexp() self.newline() - self.pretty_config_dict(unwrapped_fields1188) + self.pretty_config_dict(unwrapped_fields1200) self.dedent() self.write(")") def pretty_gnf_columns(self, msg: Sequence[logic_pb2.GNFColumn]): - flat1193 = self._try_flat(msg, self.pretty_gnf_columns) - if flat1193 is not None: - assert flat1193 is not None - self.write(flat1193) + flat1205 = self._try_flat(msg, self.pretty_gnf_columns) + if flat1205 is not None: + assert flat1205 is not None + self.write(flat1205) return None else: - fields1190 = msg + fields1202 = msg self.write("(columns") self.indent_sexp() - if not len(fields1190) == 0: + if not len(fields1202) == 0: self.newline() - for i1192, elem1191 in enumerate(fields1190): - if (i1192 > 0): + for i1204, elem1203 in enumerate(fields1202): + if (i1204 > 0): self.newline() - self.pretty_gnf_column(elem1191) + self.pretty_gnf_column(elem1203) self.dedent() self.write(")") def pretty_gnf_column(self, msg: logic_pb2.GNFColumn): - flat1202 = self._try_flat(msg, self.pretty_gnf_column) - if flat1202 is not None: - assert flat1202 is not None - self.write(flat1202) + flat1214 = self._try_flat(msg, self.pretty_gnf_column) + if flat1214 is not None: + assert flat1214 is not None + self.write(flat1214) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("target_id"): - _t1385 = _dollar_dollar.target_id + _t1409 = _dollar_dollar.target_id else: - _t1385 = None - fields1194 = (_dollar_dollar.column_path, _t1385, _dollar_dollar.types,) - assert fields1194 is not None - unwrapped_fields1195 = fields1194 + _t1409 = None + fields1206 = (_dollar_dollar.column_path, _t1409, _dollar_dollar.types,) + assert fields1206 is not None + unwrapped_fields1207 = fields1206 self.write("(column") self.indent_sexp() self.newline() - field1196 = unwrapped_fields1195[0] - self.pretty_gnf_column_path(field1196) - field1197 = unwrapped_fields1195[1] - if field1197 is not None: + field1208 = unwrapped_fields1207[0] + self.pretty_gnf_column_path(field1208) + field1209 = unwrapped_fields1207[1] + if field1209 is not None: self.newline() - assert field1197 is not None - opt_val1198 = field1197 - self.pretty_relation_id(opt_val1198) + assert field1209 is not None + opt_val1210 = field1209 + self.pretty_relation_id(opt_val1210) self.newline() self.write("[") - field1199 = unwrapped_fields1195[2] - for i1201, elem1200 in enumerate(field1199): - if (i1201 > 0): + field1211 = unwrapped_fields1207[2] + for i1213, elem1212 in enumerate(field1211): + if (i1213 > 0): self.newline() - self.pretty_type(elem1200) + self.pretty_type(elem1212) self.write("]") self.dedent() self.write(")") def pretty_gnf_column_path(self, msg: Sequence[str]): - flat1209 = self._try_flat(msg, self.pretty_gnf_column_path) - if flat1209 is not None: - assert flat1209 is not None - self.write(flat1209) + flat1221 = self._try_flat(msg, self.pretty_gnf_column_path) + if flat1221 is not None: + assert flat1221 is not None + self.write(flat1221) return None else: _dollar_dollar = msg if len(_dollar_dollar) == 1: - _t1386 = _dollar_dollar[0] + _t1410 = _dollar_dollar[0] else: - _t1386 = None - deconstruct_result1207 = _t1386 - if deconstruct_result1207 is not None: - assert deconstruct_result1207 is not None - unwrapped1208 = deconstruct_result1207 - self.write(self.format_string_value(unwrapped1208)) + _t1410 = None + deconstruct_result1219 = _t1410 + if deconstruct_result1219 is not None: + assert deconstruct_result1219 is not None + unwrapped1220 = deconstruct_result1219 + self.write(self.format_string_value(unwrapped1220)) else: _dollar_dollar = msg if len(_dollar_dollar) != 1: - _t1387 = _dollar_dollar + _t1411 = _dollar_dollar else: - _t1387 = None - deconstruct_result1203 = _t1387 - if deconstruct_result1203 is not None: - assert deconstruct_result1203 is not None - unwrapped1204 = deconstruct_result1203 + _t1411 = None + deconstruct_result1215 = _t1411 + if deconstruct_result1215 is not None: + assert deconstruct_result1215 is not None + unwrapped1216 = deconstruct_result1215 self.write("[") self.indent() - for i1206, elem1205 in enumerate(unwrapped1204): - if (i1206 > 0): + for i1218, elem1217 in enumerate(unwrapped1216): + if (i1218 > 0): self.newline() - self.write(self.format_string_value(elem1205)) + self.write(self.format_string_value(elem1217)) self.dedent() self.write("]") else: raise ParseError("No matching rule for gnf_column_path") def pretty_csv_asof(self, msg: str): - flat1211 = self._try_flat(msg, self.pretty_csv_asof) - if flat1211 is not None: - assert flat1211 is not None - self.write(flat1211) + flat1223 = self._try_flat(msg, self.pretty_csv_asof) + if flat1223 is not None: + assert flat1223 is not None + self.write(flat1223) return None else: - fields1210 = msg + fields1222 = msg self.write("(asof") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1210)) + self.write(self.format_string_value(fields1222)) self.dedent() self.write(")") def pretty_undefine(self, msg: transactions_pb2.Undefine): - flat1214 = self._try_flat(msg, self.pretty_undefine) - if flat1214 is not None: - assert flat1214 is not None - self.write(flat1214) + flat1226 = self._try_flat(msg, self.pretty_undefine) + if flat1226 is not None: + assert flat1226 is not None + self.write(flat1226) return None else: _dollar_dollar = msg - fields1212 = _dollar_dollar.fragment_id - assert fields1212 is not None - unwrapped_fields1213 = fields1212 + fields1224 = _dollar_dollar.fragment_id + assert fields1224 is not None + unwrapped_fields1225 = fields1224 self.write("(undefine") self.indent_sexp() self.newline() - self.pretty_fragment_id(unwrapped_fields1213) + self.pretty_fragment_id(unwrapped_fields1225) self.dedent() self.write(")") def pretty_context(self, msg: transactions_pb2.Context): - flat1219 = self._try_flat(msg, self.pretty_context) - if flat1219 is not None: - assert flat1219 is not None - self.write(flat1219) + flat1231 = self._try_flat(msg, self.pretty_context) + if flat1231 is not None: + assert flat1231 is not None + self.write(flat1231) return None else: _dollar_dollar = msg - fields1215 = _dollar_dollar.relations - assert fields1215 is not None - unwrapped_fields1216 = fields1215 + fields1227 = _dollar_dollar.relations + assert fields1227 is not None + unwrapped_fields1228 = fields1227 self.write("(context") self.indent_sexp() - if not len(unwrapped_fields1216) == 0: + if not len(unwrapped_fields1228) == 0: self.newline() - for i1218, elem1217 in enumerate(unwrapped_fields1216): - if (i1218 > 0): + for i1230, elem1229 in enumerate(unwrapped_fields1228): + if (i1230 > 0): self.newline() - self.pretty_relation_id(elem1217) + self.pretty_relation_id(elem1229) self.dedent() self.write(")") def pretty_snapshot(self, msg: transactions_pb2.Snapshot): - flat1224 = self._try_flat(msg, self.pretty_snapshot) - if flat1224 is not None: - assert flat1224 is not None - self.write(flat1224) + flat1236 = self._try_flat(msg, self.pretty_snapshot) + if flat1236 is not None: + assert flat1236 is not None + self.write(flat1236) return None else: _dollar_dollar = msg - fields1220 = _dollar_dollar.mappings - assert fields1220 is not None - unwrapped_fields1221 = fields1220 + fields1232 = _dollar_dollar.mappings + assert fields1232 is not None + unwrapped_fields1233 = fields1232 self.write("(snapshot") self.indent_sexp() - if not len(unwrapped_fields1221) == 0: + if not len(unwrapped_fields1233) == 0: self.newline() - for i1223, elem1222 in enumerate(unwrapped_fields1221): - if (i1223 > 0): + for i1235, elem1234 in enumerate(unwrapped_fields1233): + if (i1235 > 0): self.newline() - self.pretty_snapshot_mapping(elem1222) + self.pretty_snapshot_mapping(elem1234) self.dedent() self.write(")") def pretty_snapshot_mapping(self, msg: transactions_pb2.SnapshotMapping): - flat1229 = self._try_flat(msg, self.pretty_snapshot_mapping) - if flat1229 is not None: - assert flat1229 is not None - self.write(flat1229) + flat1241 = self._try_flat(msg, self.pretty_snapshot_mapping) + if flat1241 is not None: + assert flat1241 is not None + self.write(flat1241) return None else: _dollar_dollar = msg - fields1225 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) - assert fields1225 is not None - unwrapped_fields1226 = fields1225 - field1227 = unwrapped_fields1226[0] - self.pretty_edb_path(field1227) + fields1237 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) + assert fields1237 is not None + unwrapped_fields1238 = fields1237 + field1239 = unwrapped_fields1238[0] + self.pretty_edb_path(field1239) self.write(" ") - field1228 = unwrapped_fields1226[1] - self.pretty_relation_id(field1228) + field1240 = unwrapped_fields1238[1] + self.pretty_relation_id(field1240) def pretty_epoch_reads(self, msg: Sequence[transactions_pb2.Read]): - flat1233 = self._try_flat(msg, self.pretty_epoch_reads) - if flat1233 is not None: - assert flat1233 is not None - self.write(flat1233) + flat1245 = self._try_flat(msg, self.pretty_epoch_reads) + if flat1245 is not None: + assert flat1245 is not None + self.write(flat1245) return None else: - fields1230 = msg + fields1242 = msg self.write("(reads") self.indent_sexp() - if not len(fields1230) == 0: + if not len(fields1242) == 0: self.newline() - for i1232, elem1231 in enumerate(fields1230): - if (i1232 > 0): + for i1244, elem1243 in enumerate(fields1242): + if (i1244 > 0): self.newline() - self.pretty_read(elem1231) + self.pretty_read(elem1243) self.dedent() self.write(")") def pretty_read(self, msg: transactions_pb2.Read): - flat1244 = self._try_flat(msg, self.pretty_read) - if flat1244 is not None: - assert flat1244 is not None - self.write(flat1244) + flat1256 = self._try_flat(msg, self.pretty_read) + if flat1256 is not None: + assert flat1256 is not None + self.write(flat1256) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("demand"): - _t1388 = _dollar_dollar.demand + _t1412 = _dollar_dollar.demand else: - _t1388 = None - deconstruct_result1242 = _t1388 - if deconstruct_result1242 is not None: - assert deconstruct_result1242 is not None - unwrapped1243 = deconstruct_result1242 - self.pretty_demand(unwrapped1243) + _t1412 = None + deconstruct_result1254 = _t1412 + if deconstruct_result1254 is not None: + assert deconstruct_result1254 is not None + unwrapped1255 = deconstruct_result1254 + self.pretty_demand(unwrapped1255) else: _dollar_dollar = msg if _dollar_dollar.HasField("output"): - _t1389 = _dollar_dollar.output + _t1413 = _dollar_dollar.output else: - _t1389 = None - deconstruct_result1240 = _t1389 - if deconstruct_result1240 is not None: - assert deconstruct_result1240 is not None - unwrapped1241 = deconstruct_result1240 - self.pretty_output(unwrapped1241) + _t1413 = None + deconstruct_result1252 = _t1413 + if deconstruct_result1252 is not None: + assert deconstruct_result1252 is not None + unwrapped1253 = deconstruct_result1252 + self.pretty_output(unwrapped1253) else: _dollar_dollar = msg if _dollar_dollar.HasField("what_if"): - _t1390 = _dollar_dollar.what_if + _t1414 = _dollar_dollar.what_if else: - _t1390 = None - deconstruct_result1238 = _t1390 - if deconstruct_result1238 is not None: - assert deconstruct_result1238 is not None - unwrapped1239 = deconstruct_result1238 - self.pretty_what_if(unwrapped1239) + _t1414 = None + deconstruct_result1250 = _t1414 + if deconstruct_result1250 is not None: + assert deconstruct_result1250 is not None + unwrapped1251 = deconstruct_result1250 + self.pretty_what_if(unwrapped1251) else: _dollar_dollar = msg if _dollar_dollar.HasField("abort"): - _t1391 = _dollar_dollar.abort + _t1415 = _dollar_dollar.abort else: - _t1391 = None - deconstruct_result1236 = _t1391 - if deconstruct_result1236 is not None: - assert deconstruct_result1236 is not None - unwrapped1237 = deconstruct_result1236 - self.pretty_abort(unwrapped1237) + _t1415 = None + deconstruct_result1248 = _t1415 + if deconstruct_result1248 is not None: + assert deconstruct_result1248 is not None + unwrapped1249 = deconstruct_result1248 + self.pretty_abort(unwrapped1249) else: _dollar_dollar = msg if _dollar_dollar.HasField("export"): - _t1392 = _dollar_dollar.export + _t1416 = _dollar_dollar.export else: - _t1392 = None - deconstruct_result1234 = _t1392 - if deconstruct_result1234 is not None: - assert deconstruct_result1234 is not None - unwrapped1235 = deconstruct_result1234 - self.pretty_export(unwrapped1235) + _t1416 = None + deconstruct_result1246 = _t1416 + if deconstruct_result1246 is not None: + assert deconstruct_result1246 is not None + unwrapped1247 = deconstruct_result1246 + self.pretty_export(unwrapped1247) else: raise ParseError("No matching rule for read") def pretty_demand(self, msg: transactions_pb2.Demand): - flat1247 = self._try_flat(msg, self.pretty_demand) - if flat1247 is not None: - assert flat1247 is not None - self.write(flat1247) + flat1259 = self._try_flat(msg, self.pretty_demand) + if flat1259 is not None: + assert flat1259 is not None + self.write(flat1259) return None else: _dollar_dollar = msg - fields1245 = _dollar_dollar.relation_id - assert fields1245 is not None - unwrapped_fields1246 = fields1245 + fields1257 = _dollar_dollar.relation_id + assert fields1257 is not None + unwrapped_fields1258 = fields1257 self.write("(demand") self.indent_sexp() self.newline() - self.pretty_relation_id(unwrapped_fields1246) + self.pretty_relation_id(unwrapped_fields1258) self.dedent() self.write(")") def pretty_output(self, msg: transactions_pb2.Output): - flat1252 = self._try_flat(msg, self.pretty_output) - if flat1252 is not None: - assert flat1252 is not None - self.write(flat1252) + flat1264 = self._try_flat(msg, self.pretty_output) + if flat1264 is not None: + assert flat1264 is not None + self.write(flat1264) return None else: _dollar_dollar = msg - fields1248 = (_dollar_dollar.name, _dollar_dollar.relation_id,) - assert fields1248 is not None - unwrapped_fields1249 = fields1248 + fields1260 = (_dollar_dollar.name, _dollar_dollar.relation_id,) + assert fields1260 is not None + unwrapped_fields1261 = fields1260 self.write("(output") self.indent_sexp() self.newline() - field1250 = unwrapped_fields1249[0] - self.pretty_name(field1250) + field1262 = unwrapped_fields1261[0] + self.pretty_name(field1262) self.newline() - field1251 = unwrapped_fields1249[1] - self.pretty_relation_id(field1251) + field1263 = unwrapped_fields1261[1] + self.pretty_relation_id(field1263) self.dedent() self.write(")") def pretty_what_if(self, msg: transactions_pb2.WhatIf): - flat1257 = self._try_flat(msg, self.pretty_what_if) - if flat1257 is not None: - assert flat1257 is not None - self.write(flat1257) + flat1269 = self._try_flat(msg, self.pretty_what_if) + if flat1269 is not None: + assert flat1269 is not None + self.write(flat1269) return None else: _dollar_dollar = msg - fields1253 = (_dollar_dollar.branch, _dollar_dollar.epoch,) - assert fields1253 is not None - unwrapped_fields1254 = fields1253 + fields1265 = (_dollar_dollar.branch, _dollar_dollar.epoch,) + assert fields1265 is not None + unwrapped_fields1266 = fields1265 self.write("(what_if") self.indent_sexp() self.newline() - field1255 = unwrapped_fields1254[0] - self.pretty_name(field1255) + field1267 = unwrapped_fields1266[0] + self.pretty_name(field1267) self.newline() - field1256 = unwrapped_fields1254[1] - self.pretty_epoch(field1256) + field1268 = unwrapped_fields1266[1] + self.pretty_epoch(field1268) self.dedent() self.write(")") def pretty_abort(self, msg: transactions_pb2.Abort): - flat1263 = self._try_flat(msg, self.pretty_abort) - if flat1263 is not None: - assert flat1263 is not None - self.write(flat1263) + flat1275 = self._try_flat(msg, self.pretty_abort) + if flat1275 is not None: + assert flat1275 is not None + self.write(flat1275) return None else: _dollar_dollar = msg if _dollar_dollar.name != "abort": - _t1393 = _dollar_dollar.name + _t1417 = _dollar_dollar.name else: - _t1393 = None - fields1258 = (_t1393, _dollar_dollar.relation_id,) - assert fields1258 is not None - unwrapped_fields1259 = fields1258 + _t1417 = None + fields1270 = (_t1417, _dollar_dollar.relation_id,) + assert fields1270 is not None + unwrapped_fields1271 = fields1270 self.write("(abort") self.indent_sexp() - field1260 = unwrapped_fields1259[0] - if field1260 is not None: + field1272 = unwrapped_fields1271[0] + if field1272 is not None: self.newline() - assert field1260 is not None - opt_val1261 = field1260 - self.pretty_name(opt_val1261) + assert field1272 is not None + opt_val1273 = field1272 + self.pretty_name(opt_val1273) self.newline() - field1262 = unwrapped_fields1259[1] - self.pretty_relation_id(field1262) + field1274 = unwrapped_fields1271[1] + self.pretty_relation_id(field1274) self.dedent() self.write(")") def pretty_export(self, msg: transactions_pb2.Export): - flat1266 = self._try_flat(msg, self.pretty_export) - if flat1266 is not None: - assert flat1266 is not None - self.write(flat1266) + flat1278 = self._try_flat(msg, self.pretty_export) + if flat1278 is not None: + assert flat1278 is not None + self.write(flat1278) return None else: _dollar_dollar = msg - fields1264 = _dollar_dollar.csv_config - assert fields1264 is not None - unwrapped_fields1265 = fields1264 + fields1276 = _dollar_dollar.csv_config + assert fields1276 is not None + unwrapped_fields1277 = fields1276 self.write("(export") self.indent_sexp() self.newline() - self.pretty_export_csv_config(unwrapped_fields1265) + self.pretty_export_csv_config(unwrapped_fields1277) self.dedent() self.write(")") def pretty_export_csv_config(self, msg: transactions_pb2.ExportCSVConfig): - flat1272 = self._try_flat(msg, self.pretty_export_csv_config) - if flat1272 is not None: - assert flat1272 is not None - self.write(flat1272) + flat1289 = self._try_flat(msg, self.pretty_export_csv_config) + if flat1289 is not None: + assert flat1289 is not None + self.write(flat1289) return None else: _dollar_dollar = msg - _t1394 = self.deconstruct_export_csv_config(_dollar_dollar) - fields1267 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1394,) - assert fields1267 is not None - unwrapped_fields1268 = fields1267 - self.write("(export_csv_config") - self.indent_sexp() - self.newline() - field1269 = unwrapped_fields1268[0] - self.pretty_export_csv_path(field1269) - self.newline() - field1270 = unwrapped_fields1268[1] - self.pretty_export_csv_columns(field1270) - self.newline() - field1271 = unwrapped_fields1268[2] - self.pretty_config_dict(field1271) - self.dedent() - self.write(")") + if len(_dollar_dollar.data_columns) == 0: + _t1418 = (_dollar_dollar.path, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) + else: + _t1418 = None + deconstruct_result1284 = _t1418 + if deconstruct_result1284 is not None: + assert deconstruct_result1284 is not None + unwrapped1285 = deconstruct_result1284 + self.write("(export_csv_config_v2") + self.indent_sexp() + self.newline() + field1286 = unwrapped1285[0] + self.pretty_export_csv_path(field1286) + self.newline() + field1287 = unwrapped1285[1] + self.pretty_export_csv_source(field1287) + self.newline() + field1288 = unwrapped1285[2] + self.pretty_csv_config(field1288) + self.dedent() + self.write(")") + else: + _dollar_dollar = msg + if len(_dollar_dollar.data_columns) != 0: + _t1420 = self.deconstruct_export_csv_config(_dollar_dollar) + _t1419 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1420,) + else: + _t1419 = None + deconstruct_result1279 = _t1419 + if deconstruct_result1279 is not None: + assert deconstruct_result1279 is not None + unwrapped1280 = deconstruct_result1279 + self.write("(export_csv_config") + self.indent_sexp() + self.newline() + field1281 = unwrapped1280[0] + self.pretty_export_csv_path(field1281) + self.newline() + field1282 = unwrapped1280[1] + self.pretty_export_csv_columns_list(field1282) + self.newline() + field1283 = unwrapped1280[2] + self.pretty_config_dict(field1283) + self.dedent() + self.write(")") + else: + raise ParseError("No matching rule for export_csv_config") def pretty_export_csv_path(self, msg: str): - flat1274 = self._try_flat(msg, self.pretty_export_csv_path) - if flat1274 is not None: - assert flat1274 is not None - self.write(flat1274) + flat1291 = self._try_flat(msg, self.pretty_export_csv_path) + if flat1291 is not None: + assert flat1291 is not None + self.write(flat1291) return None else: - fields1273 = msg + fields1290 = msg self.write("(path") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1273)) + self.write(self.format_string_value(fields1290)) self.dedent() self.write(")") - def pretty_export_csv_columns(self, msg: Sequence[transactions_pb2.ExportCSVColumn]): - flat1278 = self._try_flat(msg, self.pretty_export_csv_columns) - if flat1278 is not None: - assert flat1278 is not None - self.write(flat1278) + def pretty_export_csv_source(self, msg: transactions_pb2.ExportCSVSource): + flat1298 = self._try_flat(msg, self.pretty_export_csv_source) + if flat1298 is not None: + assert flat1298 is not None + self.write(flat1298) return None else: - fields1275 = msg - self.write("(columns") - self.indent_sexp() - if not len(fields1275) == 0: - self.newline() - for i1277, elem1276 in enumerate(fields1275): - if (i1277 > 0): - self.newline() - self.pretty_export_csv_column(elem1276) - self.dedent() - self.write(")") + _dollar_dollar = msg + if _dollar_dollar.HasField("gnf_columns"): + _t1421 = _dollar_dollar.gnf_columns.columns + else: + _t1421 = None + deconstruct_result1294 = _t1421 + if deconstruct_result1294 is not None: + assert deconstruct_result1294 is not None + unwrapped1295 = deconstruct_result1294 + self.write("(gnf_columns") + self.indent_sexp() + if not len(unwrapped1295) == 0: + self.newline() + for i1297, elem1296 in enumerate(unwrapped1295): + if (i1297 > 0): + self.newline() + self.pretty_export_csv_column(elem1296) + self.dedent() + self.write(")") + else: + _dollar_dollar = msg + if _dollar_dollar.HasField("table_def"): + _t1422 = _dollar_dollar.table_def + else: + _t1422 = None + deconstruct_result1292 = _t1422 + if deconstruct_result1292 is not None: + assert deconstruct_result1292 is not None + unwrapped1293 = deconstruct_result1292 + self.write("(table_def") + self.indent_sexp() + self.newline() + self.pretty_relation_id(unwrapped1293) + self.dedent() + self.write(")") + else: + raise ParseError("No matching rule for export_csv_source") def pretty_export_csv_column(self, msg: transactions_pb2.ExportCSVColumn): - flat1283 = self._try_flat(msg, self.pretty_export_csv_column) - if flat1283 is not None: - assert flat1283 is not None - self.write(flat1283) + flat1303 = self._try_flat(msg, self.pretty_export_csv_column) + if flat1303 is not None: + assert flat1303 is not None + self.write(flat1303) return None else: _dollar_dollar = msg - fields1279 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) - assert fields1279 is not None - unwrapped_fields1280 = fields1279 + fields1299 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) + assert fields1299 is not None + unwrapped_fields1300 = fields1299 self.write("(column") self.indent_sexp() self.newline() - field1281 = unwrapped_fields1280[0] - self.write(self.format_string_value(field1281)) + field1301 = unwrapped_fields1300[0] + self.write(self.format_string_value(field1301)) self.newline() - field1282 = unwrapped_fields1280[1] - self.pretty_relation_id(field1282) + field1302 = unwrapped_fields1300[1] + self.pretty_relation_id(field1302) + self.dedent() + self.write(")") + + def pretty_export_csv_columns_list(self, msg: Sequence[transactions_pb2.ExportCSVColumn]): + flat1307 = self._try_flat(msg, self.pretty_export_csv_columns_list) + if flat1307 is not None: + assert flat1307 is not None + self.write(flat1307) + return None + else: + fields1304 = msg + self.write("(columns") + self.indent_sexp() + if not len(fields1304) == 0: + self.newline() + for i1306, elem1305 in enumerate(fields1304): + if (i1306 > 0): + self.newline() + self.pretty_export_csv_column(elem1305) self.dedent() self.write(")") @@ -3496,8 +3574,8 @@ def pretty_debug_info(self, msg: fragments_pb2.DebugInfo): for _idx, _rid in enumerate(msg.ids): self.newline() self.write("(") - _t1432 = logic_pb2.UInt128Value(low=_rid.id_low, high=_rid.id_high) - self.pprint_dispatch(_t1432) + _t1461 = logic_pb2.UInt128Value(low=_rid.id_low, high=_rid.id_high) + self.pprint_dispatch(_t1461) self.write(" ") self.write(self.format_string_value(msg.orig_names[_idx])) self.write(")") @@ -3581,6 +3659,18 @@ def pretty_missing_value(self, msg: logic_pb2.MissingValue): def pretty_u_int128_value(self, msg: logic_pb2.UInt128Value): self.write(self.format_uint128(msg)) + def pretty_export_csv_columns(self, msg: transactions_pb2.ExportCSVColumns): + self.write("(export_csv_columns") + self.indent_sexp() + self.newline() + self.write(":columns (") + for _idx, _elem in enumerate(msg.columns): + if (_idx > 0): + self.write(" ") + self.pprint_dispatch(_elem) + self.write("))") + self.dedent() + def pretty_ivm_config(self, msg: transactions_pb2.IVMConfig): self.write("(ivm_config") self.indent_sexp() @@ -3768,6 +3858,8 @@ def pprint_dispatch(self, msg): self.pretty_export(msg) elif isinstance(msg, transactions_pb2.ExportCSVConfig): self.pretty_export_csv_config(msg) + elif isinstance(msg, transactions_pb2.ExportCSVSource): + self.pretty_export_csv_source(msg) elif isinstance(msg, transactions_pb2.ExportCSVColumn): self.pretty_export_csv_column(msg) elif isinstance(msg, fragments_pb2.DebugInfo): @@ -3786,6 +3878,8 @@ def pprint_dispatch(self, msg): self.pretty_missing_value(msg) elif isinstance(msg, logic_pb2.UInt128Value): self.pretty_u_int128_value(msg) + elif isinstance(msg, transactions_pb2.ExportCSVColumns): + self.pretty_export_csv_columns(msg) elif isinstance(msg, transactions_pb2.IVMConfig): self.pretty_ivm_config(msg) # enum: int diff --git a/sdks/python/src/lqp/proto/v1/logic_pb2.py b/sdks/python/src/lqp/proto/v1/logic_pb2.py index 74019ce3..1a476b8e 100644 --- a/sdks/python/src/lqp/proto/v1/logic_pb2.py +++ b/sdks/python/src/lqp/proto/v1/logic_pb2.py @@ -14,7 +14,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1frelationalai/lqp/v1/logic.proto\x12\x13relationalai.lqp.v1\"\x83\x02\n\x0b\x44\x65\x63laration\x12,\n\x03\x64\x65\x66\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.DefH\x00R\x03\x64\x65\x66\x12>\n\talgorithm\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.AlgorithmH\x00R\talgorithm\x12\x41\n\nconstraint\x18\x03 \x01(\x0b\x32\x1f.relationalai.lqp.v1.ConstraintH\x00R\nconstraint\x12/\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32\x19.relationalai.lqp.v1.DataH\x00R\x04\x64\x61taB\x12\n\x10\x64\x65\x63laration_type\"\xa6\x01\n\x03\x44\x65\x66\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xb6\x01\n\nConstraint\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12`\n\x15\x66unctional_dependency\x18\x01 \x01(\x0b\x32).relationalai.lqp.v1.FunctionalDependencyH\x00R\x14\x66unctionalDependencyB\x11\n\x0f\x63onstraint_type\"\xae\x01\n\x14\x46unctionalDependency\x12\x36\n\x05guard\x18\x01 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x05guard\x12,\n\x04keys\x18\x02 \x03(\x0b\x32\x18.relationalai.lqp.v1.VarR\x04keys\x12\x30\n\x06values\x18\x03 \x03(\x0b\x32\x18.relationalai.lqp.v1.VarR\x06values\"u\n\tAlgorithm\x12\x37\n\x06global\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x06global\x12/\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ScriptR\x04\x62ody\"H\n\x06Script\x12>\n\nconstructs\x18\x01 \x03(\x0b\x32\x1e.relationalai.lqp.v1.ConstructR\nconstructs\"\x94\x01\n\tConstruct\x12/\n\x04loop\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.LoopH\x00R\x04loop\x12\x44\n\x0binstruction\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.InstructionH\x00R\x0binstructionB\x10\n\x0e\x63onstruct_type\"m\n\x04Loop\x12\x34\n\x04init\x18\x01 \x03(\x0b\x32 .relationalai.lqp.v1.InstructionR\x04init\x12/\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ScriptR\x04\x62ody\"\xc2\x02\n\x0bInstruction\x12\x35\n\x06\x61ssign\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.AssignH\x00R\x06\x61ssign\x12\x35\n\x06upsert\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.UpsertH\x00R\x06upsert\x12\x32\n\x05\x62reak\x18\x03 \x01(\x0b\x32\x1a.relationalai.lqp.v1.BreakH\x00R\x05\x62reak\x12?\n\nmonoid_def\x18\x05 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MonoidDefH\x00R\tmonoidDef\x12<\n\tmonus_def\x18\x06 \x01(\x0b\x32\x1d.relationalai.lqp.v1.MonusDefH\x00R\x08monusDefB\x0c\n\ninstr_typeJ\x04\x08\x04\x10\x05\"\xa9\x01\n\x06\x41ssign\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xca\x01\n\x06Upsert\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x04 \x01(\x03R\nvalueArity\"\xa8\x01\n\x05\x42reak\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\x82\x02\n\tMonoidDef\x12\x33\n\x06monoid\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.MonoidR\x06monoid\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x04 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x05 \x01(\x03R\nvalueArity\"\x81\x02\n\x08MonusDef\x12\x33\n\x06monoid\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.MonoidR\x06monoid\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x04 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x05 \x01(\x03R\nvalueArity\"\x92\x02\n\x06Monoid\x12<\n\tor_monoid\x18\x01 \x01(\x0b\x32\x1d.relationalai.lqp.v1.OrMonoidH\x00R\x08orMonoid\x12?\n\nmin_monoid\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MinMonoidH\x00R\tminMonoid\x12?\n\nmax_monoid\x18\x03 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MaxMonoidH\x00R\tmaxMonoid\x12?\n\nsum_monoid\x18\x04 \x01(\x0b\x32\x1e.relationalai.lqp.v1.SumMonoidH\x00R\tsumMonoidB\x07\n\x05value\"\n\n\x08OrMonoid\":\n\tMinMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\":\n\tMaxMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\":\n\tSumMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"d\n\x07\x42inding\x12*\n\x03var\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.VarR\x03var\x12-\n\x04type\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"s\n\x0b\x41\x62straction\x12\x30\n\x04vars\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.BindingR\x04vars\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x05value\"\x83\x05\n\x07\x46ormula\x12\x35\n\x06\x65xists\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ExistsH\x00R\x06\x65xists\x12\x35\n\x06reduce\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ReduceH\x00R\x06reduce\x12\x44\n\x0b\x63onjunction\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.ConjunctionH\x00R\x0b\x63onjunction\x12\x44\n\x0b\x64isjunction\x18\x04 \x01(\x0b\x32 .relationalai.lqp.v1.DisjunctionH\x00R\x0b\x64isjunction\x12,\n\x03not\x18\x05 \x01(\x0b\x32\x18.relationalai.lqp.v1.NotH\x00R\x03not\x12,\n\x03\x66\x66i\x18\x06 \x01(\x0b\x32\x18.relationalai.lqp.v1.FFIH\x00R\x03\x66\x66i\x12/\n\x04\x61tom\x18\x07 \x01(\x0b\x32\x19.relationalai.lqp.v1.AtomH\x00R\x04\x61tom\x12\x35\n\x06pragma\x18\x08 \x01(\x0b\x32\x1b.relationalai.lqp.v1.PragmaH\x00R\x06pragma\x12>\n\tprimitive\x18\t \x01(\x0b\x32\x1e.relationalai.lqp.v1.PrimitiveH\x00R\tprimitive\x12\x39\n\x08rel_atom\x18\n \x01(\x0b\x32\x1c.relationalai.lqp.v1.RelAtomH\x00R\x07relAtom\x12/\n\x04\x63\x61st\x18\x0b \x01(\x0b\x32\x19.relationalai.lqp.v1.CastH\x00R\x04\x63\x61stB\x0e\n\x0c\x66ormula_type\">\n\x06\x45xists\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\"\xa1\x01\n\x06Reduce\x12\x30\n\x02op\x18\x01 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x02op\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12/\n\x05terms\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"?\n\x0b\x43onjunction\x12\x30\n\x04\x61rgs\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x04\x61rgs\"?\n\x0b\x44isjunction\x12\x30\n\x04\x61rgs\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x04\x61rgs\"5\n\x03Not\x12.\n\x03\x61rg\x18\x01 \x01(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x03\x61rg\"\x80\x01\n\x03\x46\x46I\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x34\n\x04\x61rgs\x18\x02 \x03(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x61rgs\x12/\n\x05terms\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"l\n\x04\x41tom\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12/\n\x05terms\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"M\n\x06Pragma\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12/\n\x05terms\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"S\n\tPrimitive\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x32\n\x05terms\x18\x02 \x03(\x0b\x32\x1c.relationalai.lqp.v1.RelTermR\x05terms\"Q\n\x07RelAtom\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x32\n\x05terms\x18\x02 \x03(\x0b\x32\x1c.relationalai.lqp.v1.RelTermR\x05terms\"j\n\x04\x43\x61st\x12/\n\x05input\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05input\x12\x31\n\x06result\x18\x03 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermR\x06result\"\x96\x01\n\x07RelTerm\x12I\n\x11specialized_value\x18\x01 \x01(\x0b\x32\x1a.relationalai.lqp.v1.ValueH\x00R\x10specializedValue\x12/\n\x04term\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermH\x00R\x04termB\x0f\n\rrel_term_type\"{\n\x04Term\x12,\n\x03var\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.VarH\x00R\x03var\x12\x38\n\x08\x63onstant\x18\x02 \x01(\x0b\x32\x1a.relationalai.lqp.v1.ValueH\x00R\x08\x63onstantB\x0b\n\tterm_type\"\x19\n\x03Var\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"O\n\tAttribute\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12.\n\x04\x61rgs\x18\x02 \x03(\x0b\x32\x1a.relationalai.lqp.v1.ValueR\x04\x61rgs\"\xcc\x01\n\x04\x44\x61ta\x12,\n\x03\x65\x64\x62\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.EDBH\x00R\x03\x65\x64\x62\x12N\n\x0f\x62\x65tree_relation\x18\x02 \x01(\x0b\x32#.relationalai.lqp.v1.BeTreeRelationH\x00R\x0e\x62\x65treeRelation\x12\x39\n\x08\x63sv_data\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.CSVDataH\x00R\x07\x63svDataB\x0b\n\tdata_type\"\x88\x01\n\x03\x45\x44\x42\x12<\n\ttarget_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08targetId\x12\x12\n\x04path\x18\x02 \x03(\tR\x04path\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05types\"\x8b\x01\n\x0e\x42\x65TreeRelation\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x44\n\rrelation_info\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.BeTreeInfoR\x0crelationInfo\"\x9f\x02\n\nBeTreeInfo\x12\x36\n\tkey_types\x18\x01 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x08keyTypes\x12:\n\x0bvalue_types\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\nvalueTypes\x12H\n\x0estorage_config\x18\x04 \x01(\x0b\x32!.relationalai.lqp.v1.BeTreeConfigR\rstorageConfig\x12M\n\x10relation_locator\x18\x05 \x01(\x0b\x32\".relationalai.lqp.v1.BeTreeLocatorR\x0frelationLocatorJ\x04\x08\x03\x10\x04\"\x81\x01\n\x0c\x42\x65TreeConfig\x12\x18\n\x07\x65psilon\x18\x01 \x01(\x01R\x07\x65psilon\x12\x1d\n\nmax_pivots\x18\x02 \x01(\x03R\tmaxPivots\x12\x1d\n\nmax_deltas\x18\x03 \x01(\x03R\tmaxDeltas\x12\x19\n\x08max_leaf\x18\x04 \x01(\x03R\x07maxLeaf\"\xca\x01\n\rBeTreeLocator\x12\x44\n\x0broot_pageid\x18\x01 \x01(\x0b\x32!.relationalai.lqp.v1.UInt128ValueH\x00R\nrootPageid\x12!\n\x0binline_data\x18\x04 \x01(\x0cH\x00R\ninlineData\x12#\n\relement_count\x18\x02 \x01(\x03R\x0c\x65lementCount\x12\x1f\n\x0btree_height\x18\x03 \x01(\x03R\ntreeHeightB\n\n\x08location\"\xca\x01\n\x07\x43SVData\x12\x39\n\x07locator\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.CSVLocatorR\x07locator\x12\x36\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.CSVConfigR\x06\x63onfig\x12\x38\n\x07\x63olumns\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.GNFColumnR\x07\x63olumns\x12\x12\n\x04\x61sof\x18\x04 \x01(\tR\x04\x61sof\"C\n\nCSVLocator\x12\x14\n\x05paths\x18\x01 \x03(\tR\x05paths\x12\x1f\n\x0binline_data\x18\x02 \x01(\x0cR\ninlineData\"\xe3\x02\n\tCSVConfig\x12\x1d\n\nheader_row\x18\x01 \x01(\x05R\theaderRow\x12\x12\n\x04skip\x18\x02 \x01(\x03R\x04skip\x12\x19\n\x08new_line\x18\x03 \x01(\tR\x07newLine\x12\x1c\n\tdelimiter\x18\x04 \x01(\tR\tdelimiter\x12\x1c\n\tquotechar\x18\x05 \x01(\tR\tquotechar\x12\x1e\n\nescapechar\x18\x06 \x01(\tR\nescapechar\x12\x18\n\x07\x63omment\x18\x07 \x01(\tR\x07\x63omment\x12\'\n\x0fmissing_strings\x18\x08 \x03(\tR\x0emissingStrings\x12+\n\x11\x64\x65\x63imal_separator\x18\t \x01(\tR\x10\x64\x65\x63imalSeparator\x12\x1a\n\x08\x65ncoding\x18\n \x01(\tR\x08\x65ncoding\x12 \n\x0b\x63ompression\x18\x0b \x01(\tR\x0b\x63ompression\"\xae\x01\n\tGNFColumn\x12\x1f\n\x0b\x63olumn_path\x18\x01 \x03(\tR\ncolumnPath\x12\x41\n\ttarget_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdH\x00R\x08targetId\x88\x01\x01\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05typesB\x0c\n\n_target_id\"<\n\nRelationId\x12\x15\n\x06id_low\x18\x01 \x01(\x06R\x05idLow\x12\x17\n\x07id_high\x18\x02 \x01(\x06R\x06idHigh\"\x89\x06\n\x04Type\x12Q\n\x10unspecified_type\x18\x01 \x01(\x0b\x32$.relationalai.lqp.v1.UnspecifiedTypeH\x00R\x0funspecifiedType\x12\x42\n\x0bstring_type\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.StringTypeH\x00R\nstringType\x12\x39\n\x08int_type\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.IntTypeH\x00R\x07intType\x12?\n\nfloat_type\x18\x04 \x01(\x0b\x32\x1e.relationalai.lqp.v1.FloatTypeH\x00R\tfloatType\x12\x45\n\x0cuint128_type\x18\x05 \x01(\x0b\x32 .relationalai.lqp.v1.UInt128TypeH\x00R\x0buint128Type\x12\x42\n\x0bint128_type\x18\x06 \x01(\x0b\x32\x1f.relationalai.lqp.v1.Int128TypeH\x00R\nint128Type\x12<\n\tdate_type\x18\x07 \x01(\x0b\x32\x1d.relationalai.lqp.v1.DateTypeH\x00R\x08\x64\x61teType\x12H\n\rdatetime_type\x18\x08 \x01(\x0b\x32!.relationalai.lqp.v1.DateTimeTypeH\x00R\x0c\x64\x61tetimeType\x12\x45\n\x0cmissing_type\x18\t \x01(\x0b\x32 .relationalai.lqp.v1.MissingTypeH\x00R\x0bmissingType\x12\x45\n\x0c\x64\x65\x63imal_type\x18\n \x01(\x0b\x32 .relationalai.lqp.v1.DecimalTypeH\x00R\x0b\x64\x65\x63imalType\x12\x45\n\x0c\x62oolean_type\x18\x0b \x01(\x0b\x32 .relationalai.lqp.v1.BooleanTypeH\x00R\x0b\x62ooleanTypeB\x06\n\x04type\"\x11\n\x0fUnspecifiedType\"\x0c\n\nStringType\"\t\n\x07IntType\"\x0b\n\tFloatType\"\r\n\x0bUInt128Type\"\x0c\n\nInt128Type\"\n\n\x08\x44\x61teType\"\x0e\n\x0c\x44\x61teTimeType\"\r\n\x0bMissingType\"A\n\x0b\x44\x65\x63imalType\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05scale\x18\x02 \x01(\x05R\x05scale\"\r\n\x0b\x42ooleanType\"\xd1\x04\n\x05Value\x12#\n\x0cstring_value\x18\x01 \x01(\tH\x00R\x0bstringValue\x12\x1d\n\tint_value\x18\x02 \x01(\x03H\x00R\x08intValue\x12!\n\x0b\x66loat_value\x18\x03 \x01(\x01H\x00R\nfloatValue\x12H\n\ruint128_value\x18\x04 \x01(\x0b\x32!.relationalai.lqp.v1.UInt128ValueH\x00R\x0cuint128Value\x12\x45\n\x0cint128_value\x18\x05 \x01(\x0b\x32 .relationalai.lqp.v1.Int128ValueH\x00R\x0bint128Value\x12H\n\rmissing_value\x18\x06 \x01(\x0b\x32!.relationalai.lqp.v1.MissingValueH\x00R\x0cmissingValue\x12?\n\ndate_value\x18\x07 \x01(\x0b\x32\x1e.relationalai.lqp.v1.DateValueH\x00R\tdateValue\x12K\n\x0e\x64\x61tetime_value\x18\x08 \x01(\x0b\x32\".relationalai.lqp.v1.DateTimeValueH\x00R\rdatetimeValue\x12H\n\rdecimal_value\x18\t \x01(\x0b\x32!.relationalai.lqp.v1.DecimalValueH\x00R\x0c\x64\x65\x63imalValue\x12%\n\rboolean_value\x18\n \x01(\x08H\x00R\x0c\x62ooleanValueB\x07\n\x05value\"4\n\x0cUInt128Value\x12\x10\n\x03low\x18\x01 \x01(\x06R\x03low\x12\x12\n\x04high\x18\x02 \x01(\x06R\x04high\"3\n\x0bInt128Value\x12\x10\n\x03low\x18\x01 \x01(\x06R\x03low\x12\x12\n\x04high\x18\x02 \x01(\x06R\x04high\"\x0e\n\x0cMissingValue\"G\n\tDateValue\x12\x12\n\x04year\x18\x01 \x01(\x05R\x04year\x12\x14\n\x05month\x18\x02 \x01(\x05R\x05month\x12\x10\n\x03\x64\x61y\x18\x03 \x01(\x05R\x03\x64\x61y\"\xb1\x01\n\rDateTimeValue\x12\x12\n\x04year\x18\x01 \x01(\x05R\x04year\x12\x14\n\x05month\x18\x02 \x01(\x05R\x05month\x12\x10\n\x03\x64\x61y\x18\x03 \x01(\x05R\x03\x64\x61y\x12\x12\n\x04hour\x18\x04 \x01(\x05R\x04hour\x12\x16\n\x06minute\x18\x05 \x01(\x05R\x06minute\x12\x16\n\x06second\x18\x06 \x01(\x05R\x06second\x12 \n\x0bmicrosecond\x18\x07 \x01(\x05R\x0bmicrosecond\"z\n\x0c\x44\x65\x63imalValue\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05scale\x18\x02 \x01(\x05R\x05scale\x12\x36\n\x05value\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.Int128ValueR\x05valueBCZAgithub.com/RelationalAI/logical-query-protocol/sdks/go/src/lqp/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1frelationalai/lqp/v1/logic.proto\x12\x13relationalai.lqp.v1\"\x83\x02\n\x0b\x44\x65\x63laration\x12,\n\x03\x64\x65\x66\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.DefH\x00R\x03\x64\x65\x66\x12>\n\talgorithm\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.AlgorithmH\x00R\talgorithm\x12\x41\n\nconstraint\x18\x03 \x01(\x0b\x32\x1f.relationalai.lqp.v1.ConstraintH\x00R\nconstraint\x12/\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32\x19.relationalai.lqp.v1.DataH\x00R\x04\x64\x61taB\x12\n\x10\x64\x65\x63laration_type\"\xa6\x01\n\x03\x44\x65\x66\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xb6\x01\n\nConstraint\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12`\n\x15\x66unctional_dependency\x18\x01 \x01(\x0b\x32).relationalai.lqp.v1.FunctionalDependencyH\x00R\x14\x66unctionalDependencyB\x11\n\x0f\x63onstraint_type\"\xae\x01\n\x14\x46unctionalDependency\x12\x36\n\x05guard\x18\x01 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x05guard\x12,\n\x04keys\x18\x02 \x03(\x0b\x32\x18.relationalai.lqp.v1.VarR\x04keys\x12\x30\n\x06values\x18\x03 \x03(\x0b\x32\x18.relationalai.lqp.v1.VarR\x06values\"u\n\tAlgorithm\x12\x37\n\x06global\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x06global\x12/\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ScriptR\x04\x62ody\"H\n\x06Script\x12>\n\nconstructs\x18\x01 \x03(\x0b\x32\x1e.relationalai.lqp.v1.ConstructR\nconstructs\"\x94\x01\n\tConstruct\x12/\n\x04loop\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.LoopH\x00R\x04loop\x12\x44\n\x0binstruction\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.InstructionH\x00R\x0binstructionB\x10\n\x0e\x63onstruct_type\"m\n\x04Loop\x12\x34\n\x04init\x18\x01 \x03(\x0b\x32 .relationalai.lqp.v1.InstructionR\x04init\x12/\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ScriptR\x04\x62ody\"\xc2\x02\n\x0bInstruction\x12\x35\n\x06\x61ssign\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.AssignH\x00R\x06\x61ssign\x12\x35\n\x06upsert\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.UpsertH\x00R\x06upsert\x12\x32\n\x05\x62reak\x18\x03 \x01(\x0b\x32\x1a.relationalai.lqp.v1.BreakH\x00R\x05\x62reak\x12?\n\nmonoid_def\x18\x05 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MonoidDefH\x00R\tmonoidDef\x12<\n\tmonus_def\x18\x06 \x01(\x0b\x32\x1d.relationalai.lqp.v1.MonusDefH\x00R\x08monusDefB\x0c\n\ninstr_typeJ\x04\x08\x04\x10\x05\"\xa9\x01\n\x06\x41ssign\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xca\x01\n\x06Upsert\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x04 \x01(\x03R\nvalueArity\"\xa8\x01\n\x05\x42reak\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\x82\x02\n\tMonoidDef\x12\x33\n\x06monoid\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.MonoidR\x06monoid\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x04 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x05 \x01(\x03R\nvalueArity\"\x81\x02\n\x08MonusDef\x12\x33\n\x06monoid\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.MonoidR\x06monoid\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x04 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x05 \x01(\x03R\nvalueArity\"\x92\x02\n\x06Monoid\x12<\n\tor_monoid\x18\x01 \x01(\x0b\x32\x1d.relationalai.lqp.v1.OrMonoidH\x00R\x08orMonoid\x12?\n\nmin_monoid\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MinMonoidH\x00R\tminMonoid\x12?\n\nmax_monoid\x18\x03 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MaxMonoidH\x00R\tmaxMonoid\x12?\n\nsum_monoid\x18\x04 \x01(\x0b\x32\x1e.relationalai.lqp.v1.SumMonoidH\x00R\tsumMonoidB\x07\n\x05value\"\n\n\x08OrMonoid\":\n\tMinMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\":\n\tMaxMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\":\n\tSumMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"d\n\x07\x42inding\x12*\n\x03var\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.VarR\x03var\x12-\n\x04type\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"s\n\x0b\x41\x62straction\x12\x30\n\x04vars\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.BindingR\x04vars\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x05value\"\x83\x05\n\x07\x46ormula\x12\x35\n\x06\x65xists\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ExistsH\x00R\x06\x65xists\x12\x35\n\x06reduce\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ReduceH\x00R\x06reduce\x12\x44\n\x0b\x63onjunction\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.ConjunctionH\x00R\x0b\x63onjunction\x12\x44\n\x0b\x64isjunction\x18\x04 \x01(\x0b\x32 .relationalai.lqp.v1.DisjunctionH\x00R\x0b\x64isjunction\x12,\n\x03not\x18\x05 \x01(\x0b\x32\x18.relationalai.lqp.v1.NotH\x00R\x03not\x12,\n\x03\x66\x66i\x18\x06 \x01(\x0b\x32\x18.relationalai.lqp.v1.FFIH\x00R\x03\x66\x66i\x12/\n\x04\x61tom\x18\x07 \x01(\x0b\x32\x19.relationalai.lqp.v1.AtomH\x00R\x04\x61tom\x12\x35\n\x06pragma\x18\x08 \x01(\x0b\x32\x1b.relationalai.lqp.v1.PragmaH\x00R\x06pragma\x12>\n\tprimitive\x18\t \x01(\x0b\x32\x1e.relationalai.lqp.v1.PrimitiveH\x00R\tprimitive\x12\x39\n\x08rel_atom\x18\n \x01(\x0b\x32\x1c.relationalai.lqp.v1.RelAtomH\x00R\x07relAtom\x12/\n\x04\x63\x61st\x18\x0b \x01(\x0b\x32\x19.relationalai.lqp.v1.CastH\x00R\x04\x63\x61stB\x0e\n\x0c\x66ormula_type\">\n\x06\x45xists\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\"\xa1\x01\n\x06Reduce\x12\x30\n\x02op\x18\x01 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x02op\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12/\n\x05terms\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"?\n\x0b\x43onjunction\x12\x30\n\x04\x61rgs\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x04\x61rgs\"?\n\x0b\x44isjunction\x12\x30\n\x04\x61rgs\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x04\x61rgs\"5\n\x03Not\x12.\n\x03\x61rg\x18\x01 \x01(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x03\x61rg\"\x80\x01\n\x03\x46\x46I\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x34\n\x04\x61rgs\x18\x02 \x03(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x61rgs\x12/\n\x05terms\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"l\n\x04\x41tom\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12/\n\x05terms\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"M\n\x06Pragma\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12/\n\x05terms\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"S\n\tPrimitive\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x32\n\x05terms\x18\x02 \x03(\x0b\x32\x1c.relationalai.lqp.v1.RelTermR\x05terms\"Q\n\x07RelAtom\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x32\n\x05terms\x18\x02 \x03(\x0b\x32\x1c.relationalai.lqp.v1.RelTermR\x05terms\"j\n\x04\x43\x61st\x12/\n\x05input\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05input\x12\x31\n\x06result\x18\x03 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermR\x06result\"\x96\x01\n\x07RelTerm\x12I\n\x11specialized_value\x18\x01 \x01(\x0b\x32\x1a.relationalai.lqp.v1.ValueH\x00R\x10specializedValue\x12/\n\x04term\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermH\x00R\x04termB\x0f\n\rrel_term_type\"{\n\x04Term\x12,\n\x03var\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.VarH\x00R\x03var\x12\x38\n\x08\x63onstant\x18\x02 \x01(\x0b\x32\x1a.relationalai.lqp.v1.ValueH\x00R\x08\x63onstantB\x0b\n\tterm_type\"\x19\n\x03Var\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"O\n\tAttribute\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12.\n\x04\x61rgs\x18\x02 \x03(\x0b\x32\x1a.relationalai.lqp.v1.ValueR\x04\x61rgs\"\xcc\x01\n\x04\x44\x61ta\x12,\n\x03\x65\x64\x62\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.EDBH\x00R\x03\x65\x64\x62\x12N\n\x0f\x62\x65tree_relation\x18\x02 \x01(\x0b\x32#.relationalai.lqp.v1.BeTreeRelationH\x00R\x0e\x62\x65treeRelation\x12\x39\n\x08\x63sv_data\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.CSVDataH\x00R\x07\x63svDataB\x0b\n\tdata_type\"\x88\x01\n\x03\x45\x44\x42\x12<\n\ttarget_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08targetId\x12\x12\n\x04path\x18\x02 \x03(\tR\x04path\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05types\"\x8b\x01\n\x0e\x42\x65TreeRelation\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x44\n\rrelation_info\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.BeTreeInfoR\x0crelationInfo\"\x9f\x02\n\nBeTreeInfo\x12\x36\n\tkey_types\x18\x01 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x08keyTypes\x12:\n\x0bvalue_types\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\nvalueTypes\x12H\n\x0estorage_config\x18\x04 \x01(\x0b\x32!.relationalai.lqp.v1.BeTreeConfigR\rstorageConfig\x12M\n\x10relation_locator\x18\x05 \x01(\x0b\x32\".relationalai.lqp.v1.BeTreeLocatorR\x0frelationLocatorJ\x04\x08\x03\x10\x04\"\x81\x01\n\x0c\x42\x65TreeConfig\x12\x18\n\x07\x65psilon\x18\x01 \x01(\x01R\x07\x65psilon\x12\x1d\n\nmax_pivots\x18\x02 \x01(\x03R\tmaxPivots\x12\x1d\n\nmax_deltas\x18\x03 \x01(\x03R\tmaxDeltas\x12\x19\n\x08max_leaf\x18\x04 \x01(\x03R\x07maxLeaf\"\xca\x01\n\rBeTreeLocator\x12\x44\n\x0broot_pageid\x18\x01 \x01(\x0b\x32!.relationalai.lqp.v1.UInt128ValueH\x00R\nrootPageid\x12!\n\x0binline_data\x18\x04 \x01(\x0cH\x00R\ninlineData\x12#\n\relement_count\x18\x02 \x01(\x03R\x0c\x65lementCount\x12\x1f\n\x0btree_height\x18\x03 \x01(\x03R\ntreeHeightB\n\n\x08location\"\xca\x01\n\x07\x43SVData\x12\x39\n\x07locator\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.CSVLocatorR\x07locator\x12\x36\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.CSVConfigR\x06\x63onfig\x12\x38\n\x07\x63olumns\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.GNFColumnR\x07\x63olumns\x12\x12\n\x04\x61sof\x18\x04 \x01(\tR\x04\x61sof\"C\n\nCSVLocator\x12\x14\n\x05paths\x18\x01 \x03(\tR\x05paths\x12\x1f\n\x0binline_data\x18\x02 \x01(\x0cR\ninlineData\"\x8f\x03\n\tCSVConfig\x12\x1d\n\nheader_row\x18\x01 \x01(\x05R\theaderRow\x12\x12\n\x04skip\x18\x02 \x01(\x03R\x04skip\x12\x19\n\x08new_line\x18\x03 \x01(\tR\x07newLine\x12\x1c\n\tdelimiter\x18\x04 \x01(\tR\tdelimiter\x12\x1c\n\tquotechar\x18\x05 \x01(\tR\tquotechar\x12\x1e\n\nescapechar\x18\x06 \x01(\tR\nescapechar\x12\x18\n\x07\x63omment\x18\x07 \x01(\tR\x07\x63omment\x12\'\n\x0fmissing_strings\x18\x08 \x03(\tR\x0emissingStrings\x12+\n\x11\x64\x65\x63imal_separator\x18\t \x01(\tR\x10\x64\x65\x63imalSeparator\x12\x1a\n\x08\x65ncoding\x18\n \x01(\tR\x08\x65ncoding\x12 \n\x0b\x63ompression\x18\x0b \x01(\tR\x0b\x63ompression\x12*\n\x11partition_size_mb\x18\x0c \x01(\x03R\x0fpartitionSizeMb\"\xae\x01\n\tGNFColumn\x12\x1f\n\x0b\x63olumn_path\x18\x01 \x03(\tR\ncolumnPath\x12\x41\n\ttarget_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdH\x00R\x08targetId\x88\x01\x01\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05typesB\x0c\n\n_target_id\"<\n\nRelationId\x12\x15\n\x06id_low\x18\x01 \x01(\x06R\x05idLow\x12\x17\n\x07id_high\x18\x02 \x01(\x06R\x06idHigh\"\x89\x06\n\x04Type\x12Q\n\x10unspecified_type\x18\x01 \x01(\x0b\x32$.relationalai.lqp.v1.UnspecifiedTypeH\x00R\x0funspecifiedType\x12\x42\n\x0bstring_type\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.StringTypeH\x00R\nstringType\x12\x39\n\x08int_type\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.IntTypeH\x00R\x07intType\x12?\n\nfloat_type\x18\x04 \x01(\x0b\x32\x1e.relationalai.lqp.v1.FloatTypeH\x00R\tfloatType\x12\x45\n\x0cuint128_type\x18\x05 \x01(\x0b\x32 .relationalai.lqp.v1.UInt128TypeH\x00R\x0buint128Type\x12\x42\n\x0bint128_type\x18\x06 \x01(\x0b\x32\x1f.relationalai.lqp.v1.Int128TypeH\x00R\nint128Type\x12<\n\tdate_type\x18\x07 \x01(\x0b\x32\x1d.relationalai.lqp.v1.DateTypeH\x00R\x08\x64\x61teType\x12H\n\rdatetime_type\x18\x08 \x01(\x0b\x32!.relationalai.lqp.v1.DateTimeTypeH\x00R\x0c\x64\x61tetimeType\x12\x45\n\x0cmissing_type\x18\t \x01(\x0b\x32 .relationalai.lqp.v1.MissingTypeH\x00R\x0bmissingType\x12\x45\n\x0c\x64\x65\x63imal_type\x18\n \x01(\x0b\x32 .relationalai.lqp.v1.DecimalTypeH\x00R\x0b\x64\x65\x63imalType\x12\x45\n\x0c\x62oolean_type\x18\x0b \x01(\x0b\x32 .relationalai.lqp.v1.BooleanTypeH\x00R\x0b\x62ooleanTypeB\x06\n\x04type\"\x11\n\x0fUnspecifiedType\"\x0c\n\nStringType\"\t\n\x07IntType\"\x0b\n\tFloatType\"\r\n\x0bUInt128Type\"\x0c\n\nInt128Type\"\n\n\x08\x44\x61teType\"\x0e\n\x0c\x44\x61teTimeType\"\r\n\x0bMissingType\"A\n\x0b\x44\x65\x63imalType\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05scale\x18\x02 \x01(\x05R\x05scale\"\r\n\x0b\x42ooleanType\"\xd1\x04\n\x05Value\x12#\n\x0cstring_value\x18\x01 \x01(\tH\x00R\x0bstringValue\x12\x1d\n\tint_value\x18\x02 \x01(\x03H\x00R\x08intValue\x12!\n\x0b\x66loat_value\x18\x03 \x01(\x01H\x00R\nfloatValue\x12H\n\ruint128_value\x18\x04 \x01(\x0b\x32!.relationalai.lqp.v1.UInt128ValueH\x00R\x0cuint128Value\x12\x45\n\x0cint128_value\x18\x05 \x01(\x0b\x32 .relationalai.lqp.v1.Int128ValueH\x00R\x0bint128Value\x12H\n\rmissing_value\x18\x06 \x01(\x0b\x32!.relationalai.lqp.v1.MissingValueH\x00R\x0cmissingValue\x12?\n\ndate_value\x18\x07 \x01(\x0b\x32\x1e.relationalai.lqp.v1.DateValueH\x00R\tdateValue\x12K\n\x0e\x64\x61tetime_value\x18\x08 \x01(\x0b\x32\".relationalai.lqp.v1.DateTimeValueH\x00R\rdatetimeValue\x12H\n\rdecimal_value\x18\t \x01(\x0b\x32!.relationalai.lqp.v1.DecimalValueH\x00R\x0c\x64\x65\x63imalValue\x12%\n\rboolean_value\x18\n \x01(\x08H\x00R\x0c\x62ooleanValueB\x07\n\x05value\"4\n\x0cUInt128Value\x12\x10\n\x03low\x18\x01 \x01(\x06R\x03low\x12\x12\n\x04high\x18\x02 \x01(\x06R\x04high\"3\n\x0bInt128Value\x12\x10\n\x03low\x18\x01 \x01(\x06R\x03low\x12\x12\n\x04high\x18\x02 \x01(\x06R\x04high\"\x0e\n\x0cMissingValue\"G\n\tDateValue\x12\x12\n\x04year\x18\x01 \x01(\x05R\x04year\x12\x14\n\x05month\x18\x02 \x01(\x05R\x05month\x12\x10\n\x03\x64\x61y\x18\x03 \x01(\x05R\x03\x64\x61y\"\xb1\x01\n\rDateTimeValue\x12\x12\n\x04year\x18\x01 \x01(\x05R\x04year\x12\x14\n\x05month\x18\x02 \x01(\x05R\x05month\x12\x10\n\x03\x64\x61y\x18\x03 \x01(\x05R\x03\x64\x61y\x12\x12\n\x04hour\x18\x04 \x01(\x05R\x04hour\x12\x16\n\x06minute\x18\x05 \x01(\x05R\x06minute\x12\x16\n\x06second\x18\x06 \x01(\x05R\x06second\x12 \n\x0bmicrosecond\x18\x07 \x01(\x05R\x0bmicrosecond\"z\n\x0c\x44\x65\x63imalValue\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05scale\x18\x02 \x01(\x05R\x05scale\x12\x36\n\x05value\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.Int128ValueR\x05valueBCZAgithub.com/RelationalAI/logical-query-protocol/sdks/go/src/lqp/v1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -113,47 +113,47 @@ _globals['_CSVLOCATOR']._serialized_start=6747 _globals['_CSVLOCATOR']._serialized_end=6814 _globals['_CSVCONFIG']._serialized_start=6817 - _globals['_CSVCONFIG']._serialized_end=7172 - _globals['_GNFCOLUMN']._serialized_start=7175 - _globals['_GNFCOLUMN']._serialized_end=7349 - _globals['_RELATIONID']._serialized_start=7351 - _globals['_RELATIONID']._serialized_end=7411 - _globals['_TYPE']._serialized_start=7414 - _globals['_TYPE']._serialized_end=8191 - _globals['_UNSPECIFIEDTYPE']._serialized_start=8193 - _globals['_UNSPECIFIEDTYPE']._serialized_end=8210 - _globals['_STRINGTYPE']._serialized_start=8212 - _globals['_STRINGTYPE']._serialized_end=8224 - _globals['_INTTYPE']._serialized_start=8226 - _globals['_INTTYPE']._serialized_end=8235 - _globals['_FLOATTYPE']._serialized_start=8237 - _globals['_FLOATTYPE']._serialized_end=8248 - _globals['_UINT128TYPE']._serialized_start=8250 - _globals['_UINT128TYPE']._serialized_end=8263 - _globals['_INT128TYPE']._serialized_start=8265 - _globals['_INT128TYPE']._serialized_end=8277 - _globals['_DATETYPE']._serialized_start=8279 - _globals['_DATETYPE']._serialized_end=8289 - _globals['_DATETIMETYPE']._serialized_start=8291 - _globals['_DATETIMETYPE']._serialized_end=8305 - _globals['_MISSINGTYPE']._serialized_start=8307 - _globals['_MISSINGTYPE']._serialized_end=8320 - _globals['_DECIMALTYPE']._serialized_start=8322 - _globals['_DECIMALTYPE']._serialized_end=8387 - _globals['_BOOLEANTYPE']._serialized_start=8389 - _globals['_BOOLEANTYPE']._serialized_end=8402 - _globals['_VALUE']._serialized_start=8405 - _globals['_VALUE']._serialized_end=8998 - _globals['_UINT128VALUE']._serialized_start=9000 - _globals['_UINT128VALUE']._serialized_end=9052 - _globals['_INT128VALUE']._serialized_start=9054 - _globals['_INT128VALUE']._serialized_end=9105 - _globals['_MISSINGVALUE']._serialized_start=9107 - _globals['_MISSINGVALUE']._serialized_end=9121 - _globals['_DATEVALUE']._serialized_start=9123 - _globals['_DATEVALUE']._serialized_end=9194 - _globals['_DATETIMEVALUE']._serialized_start=9197 - _globals['_DATETIMEVALUE']._serialized_end=9374 - _globals['_DECIMALVALUE']._serialized_start=9376 - _globals['_DECIMALVALUE']._serialized_end=9498 + _globals['_CSVCONFIG']._serialized_end=7216 + _globals['_GNFCOLUMN']._serialized_start=7219 + _globals['_GNFCOLUMN']._serialized_end=7393 + _globals['_RELATIONID']._serialized_start=7395 + _globals['_RELATIONID']._serialized_end=7455 + _globals['_TYPE']._serialized_start=7458 + _globals['_TYPE']._serialized_end=8235 + _globals['_UNSPECIFIEDTYPE']._serialized_start=8237 + _globals['_UNSPECIFIEDTYPE']._serialized_end=8254 + _globals['_STRINGTYPE']._serialized_start=8256 + _globals['_STRINGTYPE']._serialized_end=8268 + _globals['_INTTYPE']._serialized_start=8270 + _globals['_INTTYPE']._serialized_end=8279 + _globals['_FLOATTYPE']._serialized_start=8281 + _globals['_FLOATTYPE']._serialized_end=8292 + _globals['_UINT128TYPE']._serialized_start=8294 + _globals['_UINT128TYPE']._serialized_end=8307 + _globals['_INT128TYPE']._serialized_start=8309 + _globals['_INT128TYPE']._serialized_end=8321 + _globals['_DATETYPE']._serialized_start=8323 + _globals['_DATETYPE']._serialized_end=8333 + _globals['_DATETIMETYPE']._serialized_start=8335 + _globals['_DATETIMETYPE']._serialized_end=8349 + _globals['_MISSINGTYPE']._serialized_start=8351 + _globals['_MISSINGTYPE']._serialized_end=8364 + _globals['_DECIMALTYPE']._serialized_start=8366 + _globals['_DECIMALTYPE']._serialized_end=8431 + _globals['_BOOLEANTYPE']._serialized_start=8433 + _globals['_BOOLEANTYPE']._serialized_end=8446 + _globals['_VALUE']._serialized_start=8449 + _globals['_VALUE']._serialized_end=9042 + _globals['_UINT128VALUE']._serialized_start=9044 + _globals['_UINT128VALUE']._serialized_end=9096 + _globals['_INT128VALUE']._serialized_start=9098 + _globals['_INT128VALUE']._serialized_end=9149 + _globals['_MISSINGVALUE']._serialized_start=9151 + _globals['_MISSINGVALUE']._serialized_end=9165 + _globals['_DATEVALUE']._serialized_start=9167 + _globals['_DATEVALUE']._serialized_end=9238 + _globals['_DATETIMEVALUE']._serialized_start=9241 + _globals['_DATETIMEVALUE']._serialized_end=9418 + _globals['_DECIMALVALUE']._serialized_start=9420 + _globals['_DECIMALVALUE']._serialized_end=9542 # @@protoc_insertion_point(module_scope) diff --git a/sdks/python/src/lqp/proto/v1/logic_pb2.pyi b/sdks/python/src/lqp/proto/v1/logic_pb2.pyi index 8f8e1a08..2947b2fc 100644 --- a/sdks/python/src/lqp/proto/v1/logic_pb2.pyi +++ b/sdks/python/src/lqp/proto/v1/logic_pb2.pyi @@ -421,7 +421,7 @@ class CSVLocator(_message.Message): def __init__(self, paths: _Optional[_Iterable[str]] = ..., inline_data: _Optional[bytes] = ...) -> None: ... class CSVConfig(_message.Message): - __slots__ = ("header_row", "skip", "new_line", "delimiter", "quotechar", "escapechar", "comment", "missing_strings", "decimal_separator", "encoding", "compression") + __slots__ = ("header_row", "skip", "new_line", "delimiter", "quotechar", "escapechar", "comment", "missing_strings", "decimal_separator", "encoding", "compression", "partition_size_mb") HEADER_ROW_FIELD_NUMBER: _ClassVar[int] SKIP_FIELD_NUMBER: _ClassVar[int] NEW_LINE_FIELD_NUMBER: _ClassVar[int] @@ -433,6 +433,7 @@ class CSVConfig(_message.Message): DECIMAL_SEPARATOR_FIELD_NUMBER: _ClassVar[int] ENCODING_FIELD_NUMBER: _ClassVar[int] COMPRESSION_FIELD_NUMBER: _ClassVar[int] + PARTITION_SIZE_MB_FIELD_NUMBER: _ClassVar[int] header_row: int skip: int new_line: str @@ -444,7 +445,8 @@ class CSVConfig(_message.Message): decimal_separator: str encoding: str compression: str - def __init__(self, header_row: _Optional[int] = ..., skip: _Optional[int] = ..., new_line: _Optional[str] = ..., delimiter: _Optional[str] = ..., quotechar: _Optional[str] = ..., escapechar: _Optional[str] = ..., comment: _Optional[str] = ..., missing_strings: _Optional[_Iterable[str]] = ..., decimal_separator: _Optional[str] = ..., encoding: _Optional[str] = ..., compression: _Optional[str] = ...) -> None: ... + partition_size_mb: int + def __init__(self, header_row: _Optional[int] = ..., skip: _Optional[int] = ..., new_line: _Optional[str] = ..., delimiter: _Optional[str] = ..., quotechar: _Optional[str] = ..., escapechar: _Optional[str] = ..., comment: _Optional[str] = ..., missing_strings: _Optional[_Iterable[str]] = ..., decimal_separator: _Optional[str] = ..., encoding: _Optional[str] = ..., compression: _Optional[str] = ..., partition_size_mb: _Optional[int] = ...) -> None: ... class GNFColumn(_message.Message): __slots__ = ("column_path", "target_id", "types") diff --git a/sdks/python/src/lqp/proto/v1/transactions_pb2.py b/sdks/python/src/lqp/proto/v1/transactions_pb2.py index 5d4f5cd3..4d771cac 100644 --- a/sdks/python/src/lqp/proto/v1/transactions_pb2.py +++ b/sdks/python/src/lqp/proto/v1/transactions_pb2.py @@ -16,7 +16,7 @@ from lqp.proto.v1 import logic_pb2 as relationalai_dot_lqp_dot_v1_dot_logic__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&relationalai/lqp/v1/transactions.proto\x12\x13relationalai.lqp.v1\x1a#relationalai/lqp/v1/fragments.proto\x1a\x1frelationalai/lqp/v1/logic.proto\"\xbc\x01\n\x0bTransaction\x12\x32\n\x06\x65pochs\x18\x01 \x03(\x0b\x32\x1a.relationalai.lqp.v1.EpochR\x06\x65pochs\x12<\n\tconfigure\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.ConfigureR\tconfigure\x12\x32\n\x04sync\x18\x03 \x01(\x0b\x32\x19.relationalai.lqp.v1.SyncH\x00R\x04sync\x88\x01\x01\x42\x07\n\x05_sync\"w\n\tConfigure\x12+\n\x11semantics_version\x18\x01 \x01(\x03R\x10semanticsVersion\x12=\n\nivm_config\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.IVMConfigR\tivmConfig\"H\n\tIVMConfig\x12;\n\x05level\x18\x01 \x01(\x0e\x32%.relationalai.lqp.v1.MaintenanceLevelR\x05level\"E\n\x04Sync\x12=\n\tfragments\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.FragmentIdR\tfragments\"l\n\x05\x45poch\x12\x32\n\x06writes\x18\x01 \x03(\x0b\x32\x1a.relationalai.lqp.v1.WriteR\x06writes\x12/\n\x05reads\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.ReadR\x05reads\"\x86\x02\n\x05Write\x12\x35\n\x06\x64\x65\x66ine\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.DefineH\x00R\x06\x64\x65\x66ine\x12;\n\x08undefine\x18\x02 \x01(\x0b\x32\x1d.relationalai.lqp.v1.UndefineH\x00R\x08undefine\x12\x38\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.ContextH\x00R\x07\x63ontext\x12;\n\x08snapshot\x18\x05 \x01(\x0b\x32\x1d.relationalai.lqp.v1.SnapshotH\x00R\x08snapshotB\x0c\n\nwrite_typeJ\x04\x08\x04\x10\x05\"C\n\x06\x44\x65\x66ine\x12\x39\n\x08\x66ragment\x18\x01 \x01(\x0b\x32\x1d.relationalai.lqp.v1.FragmentR\x08\x66ragment\"L\n\x08Undefine\x12@\n\x0b\x66ragment_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.FragmentIdR\nfragmentId\"H\n\x07\x43ontext\x12=\n\trelations\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\trelations\"\x86\x01\n\x0fSnapshotMapping\x12)\n\x10\x64\x65stination_path\x18\x01 \x03(\tR\x0f\x64\x65stinationPath\x12H\n\x0fsource_relation\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x0esourceRelation\"L\n\x08Snapshot\x12@\n\x08mappings\x18\x01 \x03(\x0b\x32$.relationalai.lqp.v1.SnapshotMappingR\x08mappings\"\xc4\x04\n\x0f\x45xportCSVConfig\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12G\n\x0c\x64\x61ta_columns\x18\x02 \x03(\x0b\x32$.relationalai.lqp.v1.ExportCSVColumnR\x0b\x64\x61taColumns\x12*\n\x0epartition_size\x18\x03 \x01(\x03H\x00R\rpartitionSize\x88\x01\x01\x12%\n\x0b\x63ompression\x18\x04 \x01(\tH\x01R\x0b\x63ompression\x88\x01\x01\x12/\n\x11syntax_header_row\x18\x05 \x01(\x08H\x02R\x0fsyntaxHeaderRow\x88\x01\x01\x12\x37\n\x15syntax_missing_string\x18\x06 \x01(\tH\x03R\x13syntaxMissingString\x88\x01\x01\x12&\n\x0csyntax_delim\x18\x07 \x01(\tH\x04R\x0bsyntaxDelim\x88\x01\x01\x12.\n\x10syntax_quotechar\x18\x08 \x01(\tH\x05R\x0fsyntaxQuotechar\x88\x01\x01\x12\x30\n\x11syntax_escapechar\x18\t \x01(\tH\x06R\x10syntaxEscapechar\x88\x01\x01\x42\x11\n\x0f_partition_sizeB\x0e\n\x0c_compressionB\x14\n\x12_syntax_header_rowB\x18\n\x16_syntax_missing_stringB\x0f\n\r_syntax_delimB\x13\n\x11_syntax_quotecharB\x14\n\x12_syntax_escapechar\"t\n\x0f\x45xportCSVColumn\x12\x1f\n\x0b\x63olumn_name\x18\x01 \x01(\tR\ncolumnName\x12@\n\x0b\x63olumn_data\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\ncolumnData\"\xa4\x02\n\x04Read\x12\x35\n\x06\x64\x65mand\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.DemandH\x00R\x06\x64\x65mand\x12\x35\n\x06output\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.OutputH\x00R\x06output\x12\x36\n\x07what_if\x18\x03 \x01(\x0b\x32\x1b.relationalai.lqp.v1.WhatIfH\x00R\x06whatIf\x12\x32\n\x05\x61\x62ort\x18\x04 \x01(\x0b\x32\x1a.relationalai.lqp.v1.AbortH\x00R\x05\x61\x62ort\x12\x35\n\x06\x65xport\x18\x05 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ExportH\x00R\x06\x65xportB\x0b\n\tread_type\"J\n\x06\x44\x65mand\x12@\n\x0brelation_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\nrelationId\"^\n\x06Output\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12@\n\x0brelation_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\nrelationId\"`\n\x06\x45xport\x12\x45\n\ncsv_config\x18\x01 \x01(\x0b\x32$.relationalai.lqp.v1.ExportCSVConfigH\x00R\tcsvConfigB\x0f\n\rexport_config\"R\n\x06WhatIf\x12\x16\n\x06\x62ranch\x18\x01 \x01(\tR\x06\x62ranch\x12\x30\n\x05\x65poch\x18\x02 \x01(\x0b\x32\x1a.relationalai.lqp.v1.EpochR\x05\x65poch\"]\n\x05\x41\x62ort\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12@\n\x0brelation_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\nrelationId*\x87\x01\n\x10MaintenanceLevel\x12!\n\x1dMAINTENANCE_LEVEL_UNSPECIFIED\x10\x00\x12\x19\n\x15MAINTENANCE_LEVEL_OFF\x10\x01\x12\x1a\n\x16MAINTENANCE_LEVEL_AUTO\x10\x02\x12\x19\n\x15MAINTENANCE_LEVEL_ALL\x10\x03\x42\x43ZAgithub.com/RelationalAI/logical-query-protocol/sdks/go/src/lqp/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&relationalai/lqp/v1/transactions.proto\x12\x13relationalai.lqp.v1\x1a#relationalai/lqp/v1/fragments.proto\x1a\x1frelationalai/lqp/v1/logic.proto\"\xbc\x01\n\x0bTransaction\x12\x32\n\x06\x65pochs\x18\x01 \x03(\x0b\x32\x1a.relationalai.lqp.v1.EpochR\x06\x65pochs\x12<\n\tconfigure\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.ConfigureR\tconfigure\x12\x32\n\x04sync\x18\x03 \x01(\x0b\x32\x19.relationalai.lqp.v1.SyncH\x00R\x04sync\x88\x01\x01\x42\x07\n\x05_sync\"w\n\tConfigure\x12+\n\x11semantics_version\x18\x01 \x01(\x03R\x10semanticsVersion\x12=\n\nivm_config\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.IVMConfigR\tivmConfig\"H\n\tIVMConfig\x12;\n\x05level\x18\x01 \x01(\x0e\x32%.relationalai.lqp.v1.MaintenanceLevelR\x05level\"E\n\x04Sync\x12=\n\tfragments\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.FragmentIdR\tfragments\"l\n\x05\x45poch\x12\x32\n\x06writes\x18\x01 \x03(\x0b\x32\x1a.relationalai.lqp.v1.WriteR\x06writes\x12/\n\x05reads\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.ReadR\x05reads\"\x86\x02\n\x05Write\x12\x35\n\x06\x64\x65\x66ine\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.DefineH\x00R\x06\x64\x65\x66ine\x12;\n\x08undefine\x18\x02 \x01(\x0b\x32\x1d.relationalai.lqp.v1.UndefineH\x00R\x08undefine\x12\x38\n\x07\x63ontext\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.ContextH\x00R\x07\x63ontext\x12;\n\x08snapshot\x18\x05 \x01(\x0b\x32\x1d.relationalai.lqp.v1.SnapshotH\x00R\x08snapshotB\x0c\n\nwrite_typeJ\x04\x08\x04\x10\x05\"C\n\x06\x44\x65\x66ine\x12\x39\n\x08\x66ragment\x18\x01 \x01(\x0b\x32\x1d.relationalai.lqp.v1.FragmentR\x08\x66ragment\"L\n\x08Undefine\x12@\n\x0b\x66ragment_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.FragmentIdR\nfragmentId\"H\n\x07\x43ontext\x12=\n\trelations\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\trelations\"\x86\x01\n\x0fSnapshotMapping\x12)\n\x10\x64\x65stination_path\x18\x01 \x03(\tR\x0f\x64\x65stinationPath\x12H\n\x0fsource_relation\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x0esourceRelation\"L\n\x08Snapshot\x12@\n\x08mappings\x18\x01 \x03(\x0b\x32$.relationalai.lqp.v1.SnapshotMappingR\x08mappings\"\xc8\x05\n\x0f\x45xportCSVConfig\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\x12\x43\n\ncsv_source\x18\n \x01(\x0b\x32$.relationalai.lqp.v1.ExportCSVSourceR\tcsvSource\x12=\n\ncsv_config\x18\x0b \x01(\x0b\x32\x1e.relationalai.lqp.v1.CSVConfigR\tcsvConfig\x12G\n\x0c\x64\x61ta_columns\x18\x02 \x03(\x0b\x32$.relationalai.lqp.v1.ExportCSVColumnR\x0b\x64\x61taColumns\x12*\n\x0epartition_size\x18\x03 \x01(\x03H\x00R\rpartitionSize\x88\x01\x01\x12%\n\x0b\x63ompression\x18\x04 \x01(\tH\x01R\x0b\x63ompression\x88\x01\x01\x12/\n\x11syntax_header_row\x18\x05 \x01(\x08H\x02R\x0fsyntaxHeaderRow\x88\x01\x01\x12\x37\n\x15syntax_missing_string\x18\x06 \x01(\tH\x03R\x13syntaxMissingString\x88\x01\x01\x12&\n\x0csyntax_delim\x18\x07 \x01(\tH\x04R\x0bsyntaxDelim\x88\x01\x01\x12.\n\x10syntax_quotechar\x18\x08 \x01(\tH\x05R\x0fsyntaxQuotechar\x88\x01\x01\x12\x30\n\x11syntax_escapechar\x18\t \x01(\tH\x06R\x10syntaxEscapechar\x88\x01\x01\x42\x11\n\x0f_partition_sizeB\x0e\n\x0c_compressionB\x14\n\x12_syntax_header_rowB\x18\n\x16_syntax_missing_stringB\x0f\n\r_syntax_delimB\x13\n\x11_syntax_quotecharB\x14\n\x12_syntax_escapechar\"t\n\x0f\x45xportCSVColumn\x12\x1f\n\x0b\x63olumn_name\x18\x01 \x01(\tR\ncolumnName\x12@\n\x0b\x63olumn_data\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\ncolumnData\"R\n\x10\x45xportCSVColumns\x12>\n\x07\x63olumns\x18\x01 \x03(\x0b\x32$.relationalai.lqp.v1.ExportCSVColumnR\x07\x63olumns\"\xa9\x01\n\x0f\x45xportCSVSource\x12H\n\x0bgnf_columns\x18\x01 \x01(\x0b\x32%.relationalai.lqp.v1.ExportCSVColumnsH\x00R\ngnfColumns\x12>\n\ttable_def\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdH\x00R\x08tableDefB\x0c\n\ncsv_source\"\xa4\x02\n\x04Read\x12\x35\n\x06\x64\x65mand\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.DemandH\x00R\x06\x64\x65mand\x12\x35\n\x06output\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.OutputH\x00R\x06output\x12\x36\n\x07what_if\x18\x03 \x01(\x0b\x32\x1b.relationalai.lqp.v1.WhatIfH\x00R\x06whatIf\x12\x32\n\x05\x61\x62ort\x18\x04 \x01(\x0b\x32\x1a.relationalai.lqp.v1.AbortH\x00R\x05\x61\x62ort\x12\x35\n\x06\x65xport\x18\x05 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ExportH\x00R\x06\x65xportB\x0b\n\tread_type\"J\n\x06\x44\x65mand\x12@\n\x0brelation_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\nrelationId\"^\n\x06Output\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12@\n\x0brelation_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\nrelationId\"`\n\x06\x45xport\x12\x45\n\ncsv_config\x18\x01 \x01(\x0b\x32$.relationalai.lqp.v1.ExportCSVConfigH\x00R\tcsvConfigB\x0f\n\rexport_config\"R\n\x06WhatIf\x12\x16\n\x06\x62ranch\x18\x01 \x01(\tR\x06\x62ranch\x12\x30\n\x05\x65poch\x18\x02 \x01(\x0b\x32\x1a.relationalai.lqp.v1.EpochR\x05\x65poch\"]\n\x05\x41\x62ort\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12@\n\x0brelation_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\nrelationId*\x87\x01\n\x10MaintenanceLevel\x12!\n\x1dMAINTENANCE_LEVEL_UNSPECIFIED\x10\x00\x12\x19\n\x15MAINTENANCE_LEVEL_OFF\x10\x01\x12\x1a\n\x16MAINTENANCE_LEVEL_AUTO\x10\x02\x12\x19\n\x15MAINTENANCE_LEVEL_ALL\x10\x03\x42\x43ZAgithub.com/RelationalAI/logical-query-protocol/sdks/go/src/lqp/v1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -24,8 +24,8 @@ if _descriptor._USE_C_DESCRIPTORS == False: _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'ZAgithub.com/RelationalAI/logical-query-protocol/sdks/go/src/lqp/v1' - _globals['_MAINTENANCELEVEL']._serialized_start=2847 - _globals['_MAINTENANCELEVEL']._serialized_end=2982 + _globals['_MAINTENANCELEVEL']._serialized_start=3235 + _globals['_MAINTENANCELEVEL']._serialized_end=3370 _globals['_TRANSACTION']._serialized_start=134 _globals['_TRANSACTION']._serialized_end=322 _globals['_CONFIGURE']._serialized_start=324 @@ -49,19 +49,23 @@ _globals['_SNAPSHOT']._serialized_start=1323 _globals['_SNAPSHOT']._serialized_end=1399 _globals['_EXPORTCSVCONFIG']._serialized_start=1402 - _globals['_EXPORTCSVCONFIG']._serialized_end=1982 - _globals['_EXPORTCSVCOLUMN']._serialized_start=1984 - _globals['_EXPORTCSVCOLUMN']._serialized_end=2100 - _globals['_READ']._serialized_start=2103 - _globals['_READ']._serialized_end=2395 - _globals['_DEMAND']._serialized_start=2397 - _globals['_DEMAND']._serialized_end=2471 - _globals['_OUTPUT']._serialized_start=2473 - _globals['_OUTPUT']._serialized_end=2567 - _globals['_EXPORT']._serialized_start=2569 - _globals['_EXPORT']._serialized_end=2665 - _globals['_WHATIF']._serialized_start=2667 - _globals['_WHATIF']._serialized_end=2749 - _globals['_ABORT']._serialized_start=2751 - _globals['_ABORT']._serialized_end=2844 + _globals['_EXPORTCSVCONFIG']._serialized_end=2114 + _globals['_EXPORTCSVCOLUMN']._serialized_start=2116 + _globals['_EXPORTCSVCOLUMN']._serialized_end=2232 + _globals['_EXPORTCSVCOLUMNS']._serialized_start=2234 + _globals['_EXPORTCSVCOLUMNS']._serialized_end=2316 + _globals['_EXPORTCSVSOURCE']._serialized_start=2319 + _globals['_EXPORTCSVSOURCE']._serialized_end=2488 + _globals['_READ']._serialized_start=2491 + _globals['_READ']._serialized_end=2783 + _globals['_DEMAND']._serialized_start=2785 + _globals['_DEMAND']._serialized_end=2859 + _globals['_OUTPUT']._serialized_start=2861 + _globals['_OUTPUT']._serialized_end=2955 + _globals['_EXPORT']._serialized_start=2957 + _globals['_EXPORT']._serialized_end=3053 + _globals['_WHATIF']._serialized_start=3055 + _globals['_WHATIF']._serialized_end=3137 + _globals['_ABORT']._serialized_start=3139 + _globals['_ABORT']._serialized_end=3232 # @@protoc_insertion_point(module_scope) diff --git a/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi b/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi index 58274043..b5b0dce0 100644 --- a/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi +++ b/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi @@ -103,8 +103,10 @@ class Snapshot(_message.Message): def __init__(self, mappings: _Optional[_Iterable[_Union[SnapshotMapping, _Mapping]]] = ...) -> None: ... class ExportCSVConfig(_message.Message): - __slots__ = ("path", "data_columns", "partition_size", "compression", "syntax_header_row", "syntax_missing_string", "syntax_delim", "syntax_quotechar", "syntax_escapechar") + __slots__ = ("path", "csv_source", "csv_config", "data_columns", "partition_size", "compression", "syntax_header_row", "syntax_missing_string", "syntax_delim", "syntax_quotechar", "syntax_escapechar") PATH_FIELD_NUMBER: _ClassVar[int] + CSV_SOURCE_FIELD_NUMBER: _ClassVar[int] + CSV_CONFIG_FIELD_NUMBER: _ClassVar[int] DATA_COLUMNS_FIELD_NUMBER: _ClassVar[int] PARTITION_SIZE_FIELD_NUMBER: _ClassVar[int] COMPRESSION_FIELD_NUMBER: _ClassVar[int] @@ -114,6 +116,8 @@ class ExportCSVConfig(_message.Message): SYNTAX_QUOTECHAR_FIELD_NUMBER: _ClassVar[int] SYNTAX_ESCAPECHAR_FIELD_NUMBER: _ClassVar[int] path: str + csv_source: ExportCSVSource + csv_config: _logic_pb2.CSVConfig data_columns: _containers.RepeatedCompositeFieldContainer[ExportCSVColumn] partition_size: int compression: str @@ -122,7 +126,7 @@ class ExportCSVConfig(_message.Message): syntax_delim: str syntax_quotechar: str syntax_escapechar: str - def __init__(self, path: _Optional[str] = ..., data_columns: _Optional[_Iterable[_Union[ExportCSVColumn, _Mapping]]] = ..., partition_size: _Optional[int] = ..., compression: _Optional[str] = ..., syntax_header_row: _Optional[bool] = ..., syntax_missing_string: _Optional[str] = ..., syntax_delim: _Optional[str] = ..., syntax_quotechar: _Optional[str] = ..., syntax_escapechar: _Optional[str] = ...) -> None: ... + def __init__(self, path: _Optional[str] = ..., csv_source: _Optional[_Union[ExportCSVSource, _Mapping]] = ..., csv_config: _Optional[_Union[_logic_pb2.CSVConfig, _Mapping]] = ..., data_columns: _Optional[_Iterable[_Union[ExportCSVColumn, _Mapping]]] = ..., partition_size: _Optional[int] = ..., compression: _Optional[str] = ..., syntax_header_row: _Optional[bool] = ..., syntax_missing_string: _Optional[str] = ..., syntax_delim: _Optional[str] = ..., syntax_quotechar: _Optional[str] = ..., syntax_escapechar: _Optional[str] = ...) -> None: ... class ExportCSVColumn(_message.Message): __slots__ = ("column_name", "column_data") @@ -132,6 +136,20 @@ class ExportCSVColumn(_message.Message): column_data: _logic_pb2.RelationId def __init__(self, column_name: _Optional[str] = ..., column_data: _Optional[_Union[_logic_pb2.RelationId, _Mapping]] = ...) -> None: ... +class ExportCSVColumns(_message.Message): + __slots__ = ("columns",) + COLUMNS_FIELD_NUMBER: _ClassVar[int] + columns: _containers.RepeatedCompositeFieldContainer[ExportCSVColumn] + def __init__(self, columns: _Optional[_Iterable[_Union[ExportCSVColumn, _Mapping]]] = ...) -> None: ... + +class ExportCSVSource(_message.Message): + __slots__ = ("gnf_columns", "table_def") + GNF_COLUMNS_FIELD_NUMBER: _ClassVar[int] + TABLE_DEF_FIELD_NUMBER: _ClassVar[int] + gnf_columns: ExportCSVColumns + table_def: _logic_pb2.RelationId + def __init__(self, gnf_columns: _Optional[_Union[ExportCSVColumns, _Mapping]] = ..., table_def: _Optional[_Union[_logic_pb2.RelationId, _Mapping]] = ...) -> None: ... + class Read(_message.Message): __slots__ = ("demand", "output", "what_if", "abort", "export") DEMAND_FIELD_NUMBER: _ClassVar[int] diff --git a/tests/bin/csv_export_v2.bin b/tests/bin/csv_export_v2.bin new file mode 100644 index 00000000..2926e268 Binary files /dev/null and b/tests/bin/csv_export_v2.bin differ diff --git a/tests/bin/simple_export_v2.bin b/tests/bin/simple_export_v2.bin new file mode 100644 index 00000000..5b4459f8 Binary files /dev/null and b/tests/bin/simple_export_v2.bin differ diff --git a/tests/lqp/csv_export_v2.lqp b/tests/lqp/csv_export_v2.lqp new file mode 100644 index 00000000..89d9a9c2 --- /dev/null +++ b/tests/lqp/csv_export_v2.lqp @@ -0,0 +1,203 @@ +(transaction + (epoch + (writes + (define + (fragment :f1 + ;; Simple table with multiple columns + (def :users + ([id::INT name::STRING score::FLOAT] + (or + (and (= id 100) (= name "Alice") (= score 95.5)) + (and (= id 200) (= name "Bob") (= score 87.3))))) + + ;; Table with various data types + (def :products + ([id::INT name::STRING price::(DECIMAL 10 2) active::BOOLEAN] + (or + (and (= id 1) (= name "Widget") (= price 19.99) (= active true)) + (and (= id 2) (= name "Gadget") (= price 29.50) (= active false))))) + + ;; Table with timestamp + (def :events + ([event_id::INT timestamp::DATETIME description::STRING] + (or + (and (= event_id 1) (= timestamp (datetime 2025 1 1 10 30 0 0)) (= description "Start")) + (and (= event_id 2) (= timestamp (datetime 2025 1 2 14 45 0 0)) (= description "End"))))) + + ;; Simple two-column table + (def :simple + ([key::STRING value::INT] + (or + (and (= key "a") (= value 1)) + (and (= key "b") (= value 2))))) + + ;; Single column table + (def :names + ([name::STRING] + (or + (= name "Alice") + (= name "Bob") + (= name "Carol")))) + + ;; Individual column definitions for gnf_columns tests + (def :col_id + ([row::INT v::INT] + (or + (and (= row 1) (= v 100)) + (and (= row 2) (= v 200)) + (and (= row 3) (= v 300))))) + + (def :col_name + ([row::INT v::STRING] + (or + (and (= row 1) (= v "Alice")) + (and (= row 2) (= v "Bob")) + (and (= row 3) (= v "Carol"))))) + + (def :col_score + ([row::INT v::FLOAT] + (or + (and (= row 1) (= v 95.5)) + (and (= row 2) (= v 87.3)) + (and (= row 3) (= v 92.0))))) + + (def :col_active + ([row::INT v::BOOLEAN] + (or + (and (= row 1) (= v true)) + (and (= row 2) (= v false)) + (and (= row 3) (= v true)))))))) + + (reads + ;; Test 1: Basic table export with default config + (export + (export_csv_config_v2 + (path "users_basic.csv") + (table_def :users) + (csv_config {}))) + + ;; Test 2: Table export with custom delimiter + (export + (export_csv_config_v2 + (path "users_pipe.csv") + (table_def :users) + (csv_config + { :csv_header_row 1 + :csv_delimiter "|" + :csv_quotechar "\"" + :csv_escapechar "\\" }))) + + ;; Test 3: Table export with compression + (export + (export_csv_config_v2 + (path "users_compressed.csv.gz") + (table_def :users) + (csv_config + { :csv_partition_size_mb 1000 + :csv_compression "gzip" + :csv_quotechar "\"" + :csv_escapechar "\\" }))) + + ;; Test 4: Products table with decimal type + (export + (export_csv_config_v2 + (path "products.csv") + (table_def :products) + (csv_config + { :csv_header_row 1 + :csv_delimiter "," + :csv_quotechar "\"" + :csv_escapechar "\\" }))) + + ;; Test 5: Events table with timestamp + (export + (export_csv_config_v2 + (path "events.csv") + (table_def :events) + (csv_config + { :csv_header_row 1 + :csv_delimiter "," + :csv_quotechar "\"" + :csv_escapechar "\\" }))) + + ;; Test 6: Tab-separated values + (export + (export_csv_config_v2 + (path "users.tsv") + (table_def :users) + (csv_config + { :csv_header_row 1 + :csv_delimiter "\t" + :csv_quotechar "\"" + :csv_escapechar "\\" }))) + + ;; Test 7: Export without header row + (export + (export_csv_config_v2 + (path "simple_no_header.csv") + (table_def :simple) + (csv_config + { :csv_header_row 0 + :csv_delimiter "," + :csv_quotechar "\"" + :csv_escapechar "\\" }))) + + ;; Test 8: Single column export + (export + (export_csv_config_v2 + (path "names_only.csv") + (table_def :names) + (csv_config + { :csv_header_row 1 }))) + + ;; Test 9: gnf_columns with all columns + (export + (export_csv_config_v2 + (path "gnf_all_columns.csv") + (gnf_columns + (column "id" :col_id) + (column "name" :col_name) + (column "score" :col_score) + (column "active" :col_active)) + (csv_config + { :csv_header_row 1 + :csv_delimiter "," + :csv_quotechar "\"" + :csv_escapechar "\\" }))) + + ;; Test 10: gnf_columns with subset of columns + (export + (export_csv_config_v2 + (path "gnf_subset.csv") + (gnf_columns + (column "user_id" :col_id) + (column "user_name" :col_name)) + (csv_config + { :csv_header_row 1 + :csv_delimiter "," + :csv_quotechar "\"" + :csv_escapechar "\\" }))) + + ;; Test 11: gnf_columns with custom delimiter and compression + (export + (export_csv_config_v2 + (path "gnf_custom.csv.gz") + (gnf_columns + (column "id" :col_id) + (column "score" :col_score)) + (csv_config + { :partition_size 500 + :compression "gzip" + :syntax_header_row true + :syntax_delim "|" + :syntax_quotechar "'" + :syntax_escapechar "\\" }))) + + ;; Test 12: gnf_columns single column + (export + (export_csv_config_v2 + (path "gnf_single.csv") + (gnf_columns + (column "score" :col_score)) + (csv_config + { :csv_header_row 1 })))))) diff --git a/tests/lqp/simple_export_v2.lqp b/tests/lqp/simple_export_v2.lqp new file mode 100644 index 00000000..e3a06c4a --- /dev/null +++ b/tests/lqp/simple_export_v2.lqp @@ -0,0 +1,23 @@ +(transaction + (epoch + (writes + (define + (fragment :f1 + (def :my_table + ([col1::INT col2::STRING] + (or + (and (= col1 1) (= col2 "hello")) + (and (= col1 2) (= col2 "world")))) + (attrs + (attribute :csv_export)))))) + + (reads + (export + (export_csv_config_v2 + (path "output.csv") + (table_def :my_table) + (csv_config + { :csv_partition_size_mb 10 + :csv_compression "" + :csv_quotechar "\"" + :csv_escapechar "\\" })))))) diff --git a/tests/pretty/csv_export_v2.lqp b/tests/pretty/csv_export_v2.lqp new file mode 100644 index 00000000..852c4bc0 --- /dev/null +++ b/tests/pretty/csv_export_v2.lqp @@ -0,0 +1,240 @@ +(transaction + (configure { :ivm.maintenance_level "off" :semantics_version 0}) + (epoch + (writes + (define + (fragment + :f1 + (def + :users + ([id::INT name::STRING score::FLOAT] + (or + (and (= id 100) (= name "Alice") (= score 95.5)) + (and (= id 200) (= name "Bob") (= score 87.3))))) + (def + :products + ([id::INT name::STRING price::(DECIMAL 10 2) active::BOOLEAN] + (or + (and (= id 1) (= name "Widget") (= price 19.99) (= active true)) + (and (= id 2) (= name "Gadget") (= price 29.5) (= active false))))) + (def + :events + ([event_id::INT timestamp::DATETIME description::STRING] + (or + (and + (= event_id 1) + (= timestamp (datetime 2025 1 1 10 30 0 0)) + (= description "Start")) + (and + (= event_id 2) + (= timestamp (datetime 2025 1 2 14 45 0 0)) + (= description "End"))))) + (def + :simple + ([key::STRING value::INT] + (or (and (= key "a") (= value 1)) (and (= key "b") (= value 2))))) + (def + :names + ([name::STRING] (or (= name "Alice") (= name "Bob") (= name "Carol")))) + (def + :col_id + ([row::INT v::INT] + (or + (and (= row 1) (= v 100)) + (and (= row 2) (= v 200)) + (and (= row 3) (= v 300))))) + (def + :col_name + ([row::INT v::STRING] + (or + (and (= row 1) (= v "Alice")) + (and (= row 2) (= v "Bob")) + (and (= row 3) (= v "Carol"))))) + (def + :col_score + ([row::INT v::FLOAT] + (or + (and (= row 1) (= v 95.5)) + (and (= row 2) (= v 87.3)) + (and (= row 3) (= v 92.0))))) + (def + :col_active + ([row::INT v::BOOLEAN] + (or + (and (= row 1) (= v true)) + (and (= row 2) (= v false)) + (and (= row 3) (= v true)))))))) + (reads + (export + (export_csv_config_v2 + (path "users_basic.csv") + (table_def :users) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "users_pipe.csv") + (table_def :users) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "|" + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "users_compressed.csv.gz") + (table_def :users) + (csv_config + { + :csv_compression "gzip" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_partition_size_mb 1000 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "products.csv") + (table_def :products) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "events.csv") + (table_def :events) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "users.tsv") + (table_def :users) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "\t" + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "simple_no_header.csv") + (table_def :simple) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 0 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "names_only.csv") + (table_def :names) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "gnf_all_columns.csv") + (gnf_columns + (column "id" :col_id) + (column "name" :col_name) + (column "score" :col_score) + (column "active" :col_active)) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "gnf_subset.csv") + (gnf_columns (column "user_id" :col_id) (column "user_name" :col_name)) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "gnf_custom.csv.gz") + (gnf_columns (column "id" :col_id) (column "score" :col_score)) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "gnf_single.csv") + (gnf_columns (column "score" :col_score)) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0})))))) diff --git a/tests/pretty/simple_export_v2.lqp b/tests/pretty/simple_export_v2.lqp new file mode 100644 index 00000000..e03071e4 --- /dev/null +++ b/tests/pretty/simple_export_v2.lqp @@ -0,0 +1,28 @@ +(transaction + (configure { :ivm.maintenance_level "off" :semantics_version 0}) + (epoch + (writes + (define + (fragment + :f1 + (def + :my_table + ([col1::INT col2::STRING] + (or (and (= col1 1) (= col2 "hello")) (and (= col1 2) (= col2 "world")))) + (attrs (attribute :csv_export)))))) + (reads + (export + (export_csv_config_v2 + (path "output.csv") + (table_def :my_table) + (csv_config + { + :csv_compression "" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_partition_size_mb 10 + :csv_quotechar "\"" + :csv_skip 0})))))) diff --git a/tests/pretty_debug/csv_export_v2.lqp b/tests/pretty_debug/csv_export_v2.lqp new file mode 100644 index 00000000..5c6f6edd --- /dev/null +++ b/tests/pretty_debug/csv_export_v2.lqp @@ -0,0 +1,255 @@ +(transaction + (configure { :ivm.maintenance_level "off" :semantics_version 0}) + (epoch + (writes + (define + (fragment + :f1 + (def + 0x7dfb4cf67742cb06 + ([id::INT name::STRING score::FLOAT] + (or + (and (= id 100) (= name "Alice") (= score 95.5)) + (and (= id 200) (= name "Bob") (= score 87.3))))) + (def + 0xa3e27b8ca818264 + ([id::INT name::STRING price::(DECIMAL 10 2) active::BOOLEAN] + (or + (and (= id 1) (= name "Widget") (= price 19.99) (= active true)) + (and (= id 2) (= name "Gadget") (= price 29.5) (= active false))))) + (def + 0x862417b9e7c3720b + ([event_id::INT timestamp::DATETIME description::STRING] + (or + (and + (= event_id 1) + (= timestamp (datetime 2025 1 1 10 30 0 0)) + (= description "Start")) + (and + (= event_id 2) + (= timestamp (datetime 2025 1 2 14 45 0 0)) + (= description "End"))))) + (def + 0xa7a39b72f29718e6 + ([key::STRING value::INT] + (or (and (= key "a") (= value 1)) (and (= key "b") (= value 2))))) + (def + 0xaeb24056810d3d1f + ([name::STRING] (or (= name "Alice") (= name "Bob") (= name "Carol")))) + (def + 0x718827a01a28b6a9 + ([row::INT v::INT] + (or + (and (= row 1) (= v 100)) + (and (= row 2) (= v 200)) + (and (= row 3) (= v 300))))) + (def + 0xd0d5c8429362b4e3 + ([row::INT v::STRING] + (or + (and (= row 1) (= v "Alice")) + (and (= row 2) (= v "Bob")) + (and (= row 3) (= v "Carol"))))) + (def + 0x6f442434acf7f56 + ([row::INT v::FLOAT] + (or + (and (= row 1) (= v 95.5)) + (and (= row 2) (= v 87.3)) + (and (= row 3) (= v 92.0))))) + (def + 0xa51e572880b40a50 + ([row::INT v::BOOLEAN] + (or + (and (= row 1) (= v true)) + (and (= row 2) (= v false)) + (and (= row 3) (= v true)))))))) + (reads + (export + (export_csv_config_v2 + (path "users_basic.csv") + (table_def 0x7dfb4cf67742cb06) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "users_pipe.csv") + (table_def 0x7dfb4cf67742cb06) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "|" + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "users_compressed.csv.gz") + (table_def 0x7dfb4cf67742cb06) + (csv_config + { + :csv_compression "gzip" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_partition_size_mb 1000 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "products.csv") + (table_def 0xa3e27b8ca818264) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "events.csv") + (table_def 0x862417b9e7c3720b) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "users.tsv") + (table_def 0x7dfb4cf67742cb06) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "\t" + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "simple_no_header.csv") + (table_def 0xa7a39b72f29718e6) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 0 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "names_only.csv") + (table_def 0xaeb24056810d3d1f) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "gnf_all_columns.csv") + (gnf_columns + (column "id" 0x718827a01a28b6a9) + (column "name" 0xd0d5c8429362b4e3) + (column "score" 0x6f442434acf7f56) + (column "active" 0xa51e572880b40a50)) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "gnf_subset.csv") + (gnf_columns + (column "user_id" 0x718827a01a28b6a9) + (column "user_name" 0xd0d5c8429362b4e3)) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "gnf_custom.csv.gz") + (gnf_columns (column "id" 0x718827a01a28b6a9) (column "score" 0x6f442434acf7f56)) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0}))) + (export + (export_csv_config_v2 + (path "gnf_single.csv") + (gnf_columns (column "score" 0x6f442434acf7f56)) + (csv_config + { + :csv_compression "auto" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\"" + :csv_header_row 1 + :csv_quotechar "\"" + :csv_skip 0})))))) + +;; Debug information +;; ----------------------- +;; Original names +;; ID `0xa51e572880b40a50` -> `col_active` +;; ID `0x718827a01a28b6a9` -> `col_id` +;; ID `0xd0d5c8429362b4e3` -> `col_name` +;; ID `0x6f442434acf7f56` -> `col_score` +;; ID `0x862417b9e7c3720b` -> `events` +;; ID `0xaeb24056810d3d1f` -> `names` +;; ID `0xa3e27b8ca818264` -> `products` +;; ID `0xa7a39b72f29718e6` -> `simple` +;; ID `0x7dfb4cf67742cb06` -> `users` diff --git a/tests/pretty_debug/simple_export_v2.lqp b/tests/pretty_debug/simple_export_v2.lqp new file mode 100644 index 00000000..e9aa6f5c --- /dev/null +++ b/tests/pretty_debug/simple_export_v2.lqp @@ -0,0 +1,33 @@ +(transaction + (configure { :ivm.maintenance_level "off" :semantics_version 0}) + (epoch + (writes + (define + (fragment + :f1 + (def + 0x145770157dd34e15 + ([col1::INT col2::STRING] + (or (and (= col1 1) (= col2 "hello")) (and (= col1 2) (= col2 "world")))) + (attrs (attribute :csv_export)))))) + (reads + (export + (export_csv_config_v2 + (path "output.csv") + (table_def 0x145770157dd34e15) + (csv_config + { + :csv_compression "" + :csv_decimal_separator "." + :csv_delimiter "," + :csv_encoding "utf-8" + :csv_escapechar "\\" + :csv_header_row 1 + :csv_partition_size_mb 10 + :csv_quotechar "\"" + :csv_skip 0})))))) + +;; Debug information +;; ----------------------- +;; Original names +;; ID `0x145770157dd34e15` -> `my_table`