diff --git a/meta/src/meta/grammar.y b/meta/src/meta/grammar.y index d4d7f01c..4d1623af 100644 --- a/meta/src/meta/grammar.y +++ b/meta/src/meta/grammar.y @@ -98,9 +98,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] @@ -176,6 +177,7 @@ %validator_ignore_completeness DecimalValue %validator_ignore_completeness BeTreeLocator %validator_ignore_completeness BeTreeConfig +%validator_ignore_completeness ExportCSVColumns %% @@ -1062,9 +1064,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($$) @@ -1072,7 +1080,7 @@ export_csv_config export_csv_path : "(" "path" STRING ")" -export_csv_columns +export_csv_columns_list : "(" "columns" export_csv_column* ")" export_csv_column @@ -1082,6 +1090,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 + %% @@ -1181,6 +1199,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, @@ -1193,6 +1212,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, ) @@ -1258,8 +1278,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]], @@ -1284,6 +1303,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)) @@ -1345,6 +1375,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 a64c4ef5..5e66803b 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 CSVColumn { diff --git a/proto/relationalai/lqp/v1/transactions.proto b/proto/relationalai/lqp/v1/transactions.proto index e93725b3..a8a53c6f 100644 --- a/proto/relationalai/lqp/v1/transactions.proto +++ b/proto/relationalai/lqp/v1/transactions.proto @@ -79,6 +79,9 @@ message ExportCSVConfig { string path = 1; repeated ExportCSVColumn data_columns = 2; + ExportCSVSource csv_source = 10; + CSVConfig csv_config = 11; + optional int64 partition_size = 3; optional string compression = 4; optional bool syntax_header_row = 5; @@ -95,6 +98,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 df23d7e5..09227548 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 CSVColumn struct { state protoimpl.MessageState `protogen:"open.v1"` ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"` // Name in CSV file @@ -4898,7 +4907,7 @@ var file_relationalai_lqp_v1_logic_proto_rawDesc = string([]byte{ 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, + 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, @@ -4921,153 +4930,156 @@ var file_relationalai_lqp_v1_logic_proto_rawDesc = string([]byte{ 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, 0x9b, 0x01, 0x0a, 0x09, 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, 0x3c, 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, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 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, 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, + 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, 0x9b, 0x01, + 0x0a, 0x09, 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, 0x3c, 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, + 0x52, 0x08, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 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, 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, 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, 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, + 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, 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, - 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, + 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, - 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, + 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, 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, 0x1f, 0x5a, 0x1d, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2d, - 0x71, 0x75, 0x65, 0x72, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6c, - 0x71, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 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, 0x1f, 0x5a, 0x1d, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2d, 0x71, 0x75, 0x65, 0x72, + 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 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 a1d58575..c08a5963 100644 --- a/sdks/go/src/lqp/v1/transactions.pb.go +++ b/sdks/go/src/lqp/v1/transactions.pb.go @@ -629,6 +629,8 @@ 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"` + 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"` 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"` @@ -684,6 +686,20 @@ func (x *ExportCSVConfig) GetDataColumns() []*ExportCSVColumn { return nil } +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) GetPartitionSize() int64 { if x != nil && x.PartitionSize != nil { return *x.PartitionSize @@ -785,6 +801,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[12] + 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[12] + 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{12} +} + +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[13] + 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[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 ExportCSVSource.ProtoReflect.Descriptor instead. +func (*ExportCSVSource) Descriptor() ([]byte, []int) { + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{13} +} + +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: @@ -801,7 +943,7 @@ type Read struct { func (x *Read) Reset() { *x = Read{} - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[12] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -813,7 +955,7 @@ func (x *Read) String() string { func (*Read) ProtoMessage() {} func (x *Read) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[12] + mi := &file_relationalai_lqp_v1_transactions_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -826,7 +968,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{12} + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{14} } func (x *Read) GetReadType() isRead_ReadType { @@ -924,7 +1066,7 @@ type Demand struct { func (x *Demand) Reset() { *x = Demand{} - 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) } @@ -936,7 +1078,7 @@ func (x *Demand) String() string { func (*Demand) ProtoMessage() {} func (x *Demand) 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 { @@ -949,7 +1091,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{13} + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{15} } func (x *Demand) GetRelationId() *RelationId { @@ -969,7 +1111,7 @@ type Output struct { func (x *Output) Reset() { *x = Output{} - 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 +1123,7 @@ func (x *Output) String() string { func (*Output) ProtoMessage() {} func (x *Output) 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 +1136,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{14} + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{16} } func (x *Output) GetName() string { @@ -1023,7 +1165,7 @@ type Export struct { func (x *Export) Reset() { *x = Export{} - 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) } @@ -1035,7 +1177,7 @@ func (x *Export) String() string { func (*Export) ProtoMessage() {} func (x *Export) 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 { @@ -1048,7 +1190,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{15} + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{17} } func (x *Export) GetExportConfig() isExport_ExportConfig { @@ -1087,7 +1229,7 @@ type WhatIf struct { func (x *WhatIf) Reset() { *x = WhatIf{} - 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) } @@ -1099,7 +1241,7 @@ func (x *WhatIf) String() string { func (*WhatIf) ProtoMessage() {} func (x *WhatIf) 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 { @@ -1112,7 +1254,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{16} + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{18} } func (x *WhatIf) GetBranch() string { @@ -1139,7 +1281,7 @@ type Abort struct { func (x *Abort) Reset() { *x = Abort{} - 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) } @@ -1151,7 +1293,7 @@ func (x *Abort) String() string { func (*Abort) ProtoMessage() {} func (x *Abort) 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 { @@ -1164,7 +1306,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{17} + return file_relationalai_lqp_v1_transactions_proto_rawDescGZIP(), []int{19} } func (x *Abort) GetName() string { @@ -1266,108 +1408,132 @@ var file_relationalai_lqp_v1_transactions_proto_rawDesc = string([]byte{ 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, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0xc4, 0x04, 0x0a, 0x0f, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x53, 0x56, 0x43, + 0x6e, 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, 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, + 0x6e, 0x73, 0x12, 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, 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, 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, + 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, - 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, 0x1f, 0x5a, 0x1d, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2d, 0x71, 0x75, 0x65, 0x72, - 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6c, 0x71, 0x70, 0x2f, 0x76, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x4c, 0x4c, 0x10, 0x03, 0x42, 0x1f, 0x5a, 0x1d, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2d, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x6c, + 0x71, 0x70, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, }) var ( @@ -1383,30 +1549,33 @@ 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, 18) +var file_relationalai_lqp_v1_transactions_proto_msgTypes = make([]protoimpl.MessageInfo, 20) 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 - (*Snapshot)(nil), // 10: relationalai.lqp.v1.Snapshot - (*ExportCSVConfig)(nil), // 11: relationalai.lqp.v1.ExportCSVConfig - (*ExportCSVColumn)(nil), // 12: relationalai.lqp.v1.ExportCSVColumn - (*Read)(nil), // 13: relationalai.lqp.v1.Read - (*Demand)(nil), // 14: relationalai.lqp.v1.Demand - (*Output)(nil), // 15: relationalai.lqp.v1.Output - (*Export)(nil), // 16: relationalai.lqp.v1.Export - (*WhatIf)(nil), // 17: relationalai.lqp.v1.WhatIf - (*Abort)(nil), // 18: relationalai.lqp.v1.Abort - (*FragmentId)(nil), // 19: relationalai.lqp.v1.FragmentId - (*Fragment)(nil), // 20: relationalai.lqp.v1.Fragment - (*RelationId)(nil), // 21: 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 + (*Snapshot)(nil), // 10: relationalai.lqp.v1.Snapshot + (*ExportCSVConfig)(nil), // 11: relationalai.lqp.v1.ExportCSVConfig + (*ExportCSVColumn)(nil), // 12: relationalai.lqp.v1.ExportCSVColumn + (*ExportCSVColumns)(nil), // 13: relationalai.lqp.v1.ExportCSVColumns + (*ExportCSVSource)(nil), // 14: relationalai.lqp.v1.ExportCSVSource + (*Read)(nil), // 15: relationalai.lqp.v1.Read + (*Demand)(nil), // 16: relationalai.lqp.v1.Demand + (*Output)(nil), // 17: relationalai.lqp.v1.Output + (*Export)(nil), // 18: relationalai.lqp.v1.Export + (*WhatIf)(nil), // 19: relationalai.lqp.v1.WhatIf + (*Abort)(nil), // 20: relationalai.lqp.v1.Abort + (*FragmentId)(nil), // 21: relationalai.lqp.v1.FragmentId + (*Fragment)(nil), // 22: relationalai.lqp.v1.Fragment + (*RelationId)(nil), // 23: relationalai.lqp.v1.RelationId + (*CSVConfig)(nil), // 24: 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 @@ -1414,34 +1583,39 @@ 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 - 19, // 5: relationalai.lqp.v1.Sync.fragments:type_name -> relationalai.lqp.v1.FragmentId + 21, // 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 - 13, // 7: relationalai.lqp.v1.Epoch.reads:type_name -> relationalai.lqp.v1.Read + 15, // 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 10, // 11: relationalai.lqp.v1.Write.snapshot:type_name -> relationalai.lqp.v1.Snapshot - 20, // 12: relationalai.lqp.v1.Define.fragment:type_name -> relationalai.lqp.v1.Fragment - 19, // 13: relationalai.lqp.v1.Undefine.fragment_id:type_name -> relationalai.lqp.v1.FragmentId - 21, // 14: relationalai.lqp.v1.Context.relations:type_name -> relationalai.lqp.v1.RelationId - 21, // 15: relationalai.lqp.v1.Snapshot.source_relation:type_name -> relationalai.lqp.v1.RelationId + 22, // 12: relationalai.lqp.v1.Define.fragment:type_name -> relationalai.lqp.v1.Fragment + 21, // 13: relationalai.lqp.v1.Undefine.fragment_id:type_name -> relationalai.lqp.v1.FragmentId + 23, // 14: relationalai.lqp.v1.Context.relations:type_name -> relationalai.lqp.v1.RelationId + 23, // 15: relationalai.lqp.v1.Snapshot.source_relation:type_name -> relationalai.lqp.v1.RelationId 12, // 16: relationalai.lqp.v1.ExportCSVConfig.data_columns:type_name -> relationalai.lqp.v1.ExportCSVColumn - 21, // 17: relationalai.lqp.v1.ExportCSVColumn.column_data:type_name -> relationalai.lqp.v1.RelationId - 14, // 18: relationalai.lqp.v1.Read.demand:type_name -> relationalai.lqp.v1.Demand - 15, // 19: relationalai.lqp.v1.Read.output:type_name -> relationalai.lqp.v1.Output - 17, // 20: relationalai.lqp.v1.Read.what_if:type_name -> relationalai.lqp.v1.WhatIf - 18, // 21: relationalai.lqp.v1.Read.abort:type_name -> relationalai.lqp.v1.Abort - 16, // 22: relationalai.lqp.v1.Read.export:type_name -> relationalai.lqp.v1.Export - 21, // 23: relationalai.lqp.v1.Demand.relation_id:type_name -> relationalai.lqp.v1.RelationId - 21, // 24: relationalai.lqp.v1.Output.relation_id:type_name -> relationalai.lqp.v1.RelationId - 11, // 25: relationalai.lqp.v1.Export.csv_config:type_name -> relationalai.lqp.v1.ExportCSVConfig - 5, // 26: relationalai.lqp.v1.WhatIf.epoch:type_name -> relationalai.lqp.v1.Epoch - 21, // 27: relationalai.lqp.v1.Abort.relation_id:type_name -> relationalai.lqp.v1.RelationId - 28, // [28:28] is the sub-list for method output_type - 28, // [28:28] is the sub-list for method input_type - 28, // [28:28] is the sub-list for extension type_name - 28, // [28:28] is the sub-list for extension extendee - 0, // [0:28] is the sub-list for field type_name + 14, // 17: relationalai.lqp.v1.ExportCSVConfig.csv_source:type_name -> relationalai.lqp.v1.ExportCSVSource + 24, // 18: relationalai.lqp.v1.ExportCSVConfig.csv_config:type_name -> relationalai.lqp.v1.CSVConfig + 23, // 19: relationalai.lqp.v1.ExportCSVColumn.column_data:type_name -> relationalai.lqp.v1.RelationId + 12, // 20: relationalai.lqp.v1.ExportCSVColumns.columns:type_name -> relationalai.lqp.v1.ExportCSVColumn + 13, // 21: relationalai.lqp.v1.ExportCSVSource.gnf_columns:type_name -> relationalai.lqp.v1.ExportCSVColumns + 23, // 22: relationalai.lqp.v1.ExportCSVSource.table_def:type_name -> relationalai.lqp.v1.RelationId + 16, // 23: relationalai.lqp.v1.Read.demand:type_name -> relationalai.lqp.v1.Demand + 17, // 24: relationalai.lqp.v1.Read.output:type_name -> relationalai.lqp.v1.Output + 19, // 25: relationalai.lqp.v1.Read.what_if:type_name -> relationalai.lqp.v1.WhatIf + 20, // 26: relationalai.lqp.v1.Read.abort:type_name -> relationalai.lqp.v1.Abort + 18, // 27: relationalai.lqp.v1.Read.export:type_name -> relationalai.lqp.v1.Export + 23, // 28: relationalai.lqp.v1.Demand.relation_id:type_name -> relationalai.lqp.v1.RelationId + 23, // 29: relationalai.lqp.v1.Output.relation_id:type_name -> relationalai.lqp.v1.RelationId + 11, // 30: relationalai.lqp.v1.Export.csv_config:type_name -> relationalai.lqp.v1.ExportCSVConfig + 5, // 31: relationalai.lqp.v1.WhatIf.epoch:type_name -> relationalai.lqp.v1.Epoch + 23, // 32: relationalai.lqp.v1.Abort.relation_id:type_name -> relationalai.lqp.v1.RelationId + 33, // [33:33] is the sub-list for method output_type + 33, // [33:33] is the sub-list for method input_type + 33, // [33:33] is the sub-list for extension type_name + 33, // [33:33] is the sub-list for extension extendee + 0, // [0:33] is the sub-list for field type_name } func init() { file_relationalai_lqp_v1_transactions_proto_init() } @@ -1459,14 +1633,18 @@ func file_relationalai_lqp_v1_transactions_proto_init() { (*Write_Snapshot)(nil), } file_relationalai_lqp_v1_transactions_proto_msgTypes[10].OneofWrappers = []any{} - file_relationalai_lqp_v1_transactions_proto_msgTypes[12].OneofWrappers = []any{ + file_relationalai_lqp_v1_transactions_proto_msgTypes[13].OneofWrappers = []any{ + (*ExportCSVSource_GnfColumns)(nil), + (*ExportCSVSource_TableDef)(nil), + } + file_relationalai_lqp_v1_transactions_proto_msgTypes[14].OneofWrappers = []any{ (*Read_Demand)(nil), (*Read_Output)(nil), (*Read_WhatIf)(nil), (*Read_Abort)(nil), (*Read_Export)(nil), } - file_relationalai_lqp_v1_transactions_proto_msgTypes[15].OneofWrappers = []any{ + file_relationalai_lqp_v1_transactions_proto_msgTypes[17].OneofWrappers = []any{ (*Export_CsvConfig)(nil), } type x struct{} @@ -1475,7 +1653,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: 18, + NumMessages: 20, NumExtensions: 0, NumServices: 0, }, diff --git a/sdks/go/src/parser.go b/sdks/go/src/parser.go index 32010315..a061b648 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 _t1322 interface{} + var _t1361 interface{} if (value != nil && hasProtoField(value, "int_value")) { return int32(value.GetIntValue()) } - _ = _t1322 + _ = _t1361 return int32(default_) } func (p *Parser) _extract_value_int64(value *pb.Value, default_ int64) int64 { - var _t1323 interface{} + var _t1362 interface{} if (value != nil && hasProtoField(value, "int_value")) { return value.GetIntValue() } - _ = _t1323 + _ = _t1362 return default_ } func (p *Parser) _extract_value_string(value *pb.Value, default_ string) string { - var _t1324 interface{} + var _t1363 interface{} if (value != nil && hasProtoField(value, "string_value")) { return value.GetStringValue() } - _ = _t1324 + _ = _t1363 return default_ } func (p *Parser) _extract_value_boolean(value *pb.Value, default_ bool) bool { - var _t1325 interface{} + var _t1364 interface{} if (value != nil && hasProtoField(value, "boolean_value")) { return value.GetBooleanValue() } - _ = _t1325 + _ = _t1364 return default_ } func (p *Parser) _extract_value_string_list(value *pb.Value, default_ []string) []string { - var _t1326 interface{} + var _t1365 interface{} if (value != nil && hasProtoField(value, "string_value")) { return []string{value.GetStringValue()} } - _ = _t1326 + _ = _t1365 return default_ } func (p *Parser) _try_extract_value_int64(value *pb.Value) *int64 { - var _t1327 interface{} + var _t1366 interface{} if (value != nil && hasProtoField(value, "int_value")) { return ptr(value.GetIntValue()) } - _ = _t1327 + _ = _t1366 return nil } func (p *Parser) _try_extract_value_float64(value *pb.Value) *float64 { - var _t1328 interface{} + var _t1367 interface{} if (value != nil && hasProtoField(value, "float_value")) { return ptr(value.GetFloatValue()) } - _ = _t1328 + _ = _t1367 return nil } func (p *Parser) _try_extract_value_bytes(value *pb.Value) []byte { - var _t1329 interface{} + var _t1368 interface{} if (value != nil && hasProtoField(value, "string_value")) { return []byte(value.GetStringValue()) } - _ = _t1329 + _ = _t1368 return nil } func (p *Parser) _try_extract_value_uint128(value *pb.Value) *pb.UInt128Value { - var _t1330 interface{} + var _t1369 interface{} if (value != nil && hasProtoField(value, "uint128_value")) { return value.GetUint128Value() } - _ = _t1330 + _ = _t1369 return nil } func (p *Parser) construct_csv_config(config_dict [][]interface{}) *pb.CSVConfig { config := dictFromList(config_dict) - _t1331 := p._extract_value_int32(dictGetValue(config, "csv_header_row"), 1) - header_row := _t1331 - _t1332 := p._extract_value_int64(dictGetValue(config, "csv_skip"), 0) - skip := _t1332 - _t1333 := p._extract_value_string(dictGetValue(config, "csv_new_line"), "") - new_line := _t1333 - _t1334 := p._extract_value_string(dictGetValue(config, "csv_delimiter"), ",") - delimiter := _t1334 - _t1335 := p._extract_value_string(dictGetValue(config, "csv_quotechar"), "\"") - quotechar := _t1335 - _t1336 := p._extract_value_string(dictGetValue(config, "csv_escapechar"), "\"") - escapechar := _t1336 - _t1337 := p._extract_value_string(dictGetValue(config, "csv_comment"), "") - comment := _t1337 - _t1338 := p._extract_value_string_list(dictGetValue(config, "csv_missing_strings"), []string{}) - missing_strings := _t1338 - _t1339 := p._extract_value_string(dictGetValue(config, "csv_decimal_separator"), ".") - decimal_separator := _t1339 - _t1340 := p._extract_value_string(dictGetValue(config, "csv_encoding"), "utf-8") - encoding := _t1340 - _t1341 := p._extract_value_string(dictGetValue(config, "csv_compression"), "auto") - compression := _t1341 - _t1342 := &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 _t1342 + _t1370 := p._extract_value_int32(dictGetValue(config, "csv_header_row"), 1) + header_row := _t1370 + _t1371 := p._extract_value_int64(dictGetValue(config, "csv_skip"), 0) + skip := _t1371 + _t1372 := p._extract_value_string(dictGetValue(config, "csv_new_line"), "") + new_line := _t1372 + _t1373 := p._extract_value_string(dictGetValue(config, "csv_delimiter"), ",") + delimiter := _t1373 + _t1374 := p._extract_value_string(dictGetValue(config, "csv_quotechar"), "\"") + quotechar := _t1374 + _t1375 := p._extract_value_string(dictGetValue(config, "csv_escapechar"), "\"") + escapechar := _t1375 + _t1376 := p._extract_value_string(dictGetValue(config, "csv_comment"), "") + comment := _t1376 + _t1377 := p._extract_value_string_list(dictGetValue(config, "csv_missing_strings"), []string{}) + missing_strings := _t1377 + _t1378 := p._extract_value_string(dictGetValue(config, "csv_decimal_separator"), ".") + decimal_separator := _t1378 + _t1379 := p._extract_value_string(dictGetValue(config, "csv_encoding"), "utf-8") + encoding := _t1379 + _t1380 := p._extract_value_string(dictGetValue(config, "csv_compression"), "auto") + compression := _t1380 + _t1381 := p._extract_value_int64(dictGetValue(config, "csv_partition_size_mb"), 0) + partition_size_mb := _t1381 + _t1382 := &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 _t1382 } func (p *Parser) construct_betree_info(key_types []*pb.Type, value_types []*pb.Type, config_dict [][]interface{}) *pb.BeTreeInfo { config := dictFromList(config_dict) - _t1343 := p._try_extract_value_float64(dictGetValue(config, "betree_config_epsilon")) - epsilon := _t1343 - _t1344 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_pivots")) - max_pivots := _t1344 - _t1345 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_deltas")) - max_deltas := _t1345 - _t1346 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_leaf")) - max_leaf := _t1346 - _t1347 := &pb.BeTreeConfig{Epsilon: deref(epsilon, 0.0), MaxPivots: deref(max_pivots, 0), MaxDeltas: deref(max_deltas, 0), MaxLeaf: deref(max_leaf, 0)} - storage_config := _t1347 - _t1348 := p._try_extract_value_uint128(dictGetValue(config, "betree_locator_root_pageid")) - root_pageid := _t1348 - _t1349 := p._try_extract_value_bytes(dictGetValue(config, "betree_locator_inline_data")) - inline_data := _t1349 - _t1350 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_element_count")) - element_count := _t1350 - _t1351 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_tree_height")) - tree_height := _t1351 - _t1352 := &pb.BeTreeLocator{ElementCount: deref(element_count, 0), TreeHeight: deref(tree_height, 0)} + _t1383 := p._try_extract_value_float64(dictGetValue(config, "betree_config_epsilon")) + epsilon := _t1383 + _t1384 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_pivots")) + max_pivots := _t1384 + _t1385 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_deltas")) + max_deltas := _t1385 + _t1386 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_leaf")) + max_leaf := _t1386 + _t1387 := &pb.BeTreeConfig{Epsilon: deref(epsilon, 0.0), MaxPivots: deref(max_pivots, 0), MaxDeltas: deref(max_deltas, 0), MaxLeaf: deref(max_leaf, 0)} + storage_config := _t1387 + _t1388 := p._try_extract_value_uint128(dictGetValue(config, "betree_locator_root_pageid")) + root_pageid := _t1388 + _t1389 := p._try_extract_value_bytes(dictGetValue(config, "betree_locator_inline_data")) + inline_data := _t1389 + _t1390 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_element_count")) + element_count := _t1390 + _t1391 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_tree_height")) + tree_height := _t1391 + _t1392 := &pb.BeTreeLocator{ElementCount: deref(element_count, 0), TreeHeight: deref(tree_height, 0)} if root_pageid != nil { - _t1352.Location = &pb.BeTreeLocator_RootPageid{RootPageid: root_pageid} + _t1392.Location = &pb.BeTreeLocator_RootPageid{RootPageid: root_pageid} } else { - _t1352.Location = &pb.BeTreeLocator_InlineData{InlineData: inline_data} + _t1392.Location = &pb.BeTreeLocator_InlineData{InlineData: inline_data} } - relation_locator := _t1352 - _t1353 := &pb.BeTreeInfo{KeyTypes: key_types, ValueTypes: value_types, StorageConfig: storage_config, RelationLocator: relation_locator} - return _t1353 + relation_locator := _t1392 + _t1393 := &pb.BeTreeInfo{KeyTypes: key_types, ValueTypes: value_types, StorageConfig: storage_config, RelationLocator: relation_locator} + return _t1393 } func (p *Parser) default_configure() *pb.Configure { - _t1354 := &pb.IVMConfig{Level: pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF} - ivm_config := _t1354 - _t1355 := &pb.Configure{SemanticsVersion: 0, IvmConfig: ivm_config} - return _t1355 + _t1394 := &pb.IVMConfig{Level: pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF} + ivm_config := _t1394 + _t1395 := &pb.Configure{SemanticsVersion: 0, IvmConfig: ivm_config} + return _t1395 } func (p *Parser) construct_configure(config_dict [][]interface{}) *pb.Configure { @@ -689,32 +691,37 @@ func (p *Parser) construct_configure(config_dict [][]interface{}) *pb.Configure } } } - _t1356 := &pb.IVMConfig{Level: maintenance_level} - ivm_config := _t1356 - _t1357 := p._extract_value_int64(dictGetValue(config, "semantics_version"), 0) - semantics_version := _t1357 - _t1358 := &pb.Configure{SemanticsVersion: semantics_version, IvmConfig: ivm_config} - return _t1358 + _t1396 := &pb.IVMConfig{Level: maintenance_level} + ivm_config := _t1396 + _t1397 := p._extract_value_int64(dictGetValue(config, "semantics_version"), 0) + semantics_version := _t1397 + _t1398 := &pb.Configure{SemanticsVersion: semantics_version, IvmConfig: ivm_config} + return _t1398 } -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) - _t1359 := p._extract_value_int64(dictGetValue(config, "partition_size"), 0) - partition_size := _t1359 - _t1360 := p._extract_value_string(dictGetValue(config, "compression"), "") - compression := _t1360 - _t1361 := p._extract_value_boolean(dictGetValue(config, "syntax_header_row"), true) - syntax_header_row := _t1361 - _t1362 := p._extract_value_string(dictGetValue(config, "syntax_missing_string"), "") - syntax_missing_string := _t1362 - _t1363 := p._extract_value_string(dictGetValue(config, "syntax_delim"), ",") - syntax_delim := _t1363 - _t1364 := p._extract_value_string(dictGetValue(config, "syntax_quotechar"), "\"") - syntax_quotechar := _t1364 - _t1365 := p._extract_value_string(dictGetValue(config, "syntax_escapechar"), "\\") - syntax_escapechar := _t1365 - _t1366 := &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 _t1366 + _t1399 := p._extract_value_int64(dictGetValue(config, "partition_size"), 0) + partition_size := _t1399 + _t1400 := p._extract_value_string(dictGetValue(config, "compression"), "") + compression := _t1400 + _t1401 := p._extract_value_boolean(dictGetValue(config, "syntax_header_row"), true) + syntax_header_row := _t1401 + _t1402 := p._extract_value_string(dictGetValue(config, "syntax_missing_string"), "") + syntax_missing_string := _t1402 + _t1403 := p._extract_value_string(dictGetValue(config, "syntax_delim"), ",") + syntax_delim := _t1403 + _t1404 := p._extract_value_string(dictGetValue(config, "syntax_quotechar"), "\"") + syntax_quotechar := _t1404 + _t1405 := p._extract_value_string(dictGetValue(config, "syntax_escapechar"), "\\") + syntax_escapechar := _t1405 + _t1406 := &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 _t1406 +} + +func (p *Parser) construct_export_csv_config_with_source(path string, csv_source *pb.ExportCSVSource, csv_config *pb.CSVConfig) *pb.ExportCSVConfig { + _t1407 := &pb.ExportCSVConfig{Path: path, CsvSource: csv_source, CsvConfig: csv_config} + return _t1407 } // --- Parse functions --- @@ -722,3022 +729,3120 @@ 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 _t712 *pb.Configure + var _t732 *pb.Configure if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("configure", 1)) { - _t713 := p.parse_configure() - _t712 = _t713 + _t733 := p.parse_configure() + _t732 = _t733 } - configure356 := _t712 - var _t714 *pb.Sync + configure366 := _t732 + var _t734 *pb.Sync if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("sync", 1)) { - _t715 := p.parse_sync() - _t714 = _t715 + _t735 := p.parse_sync() + _t734 = _t735 } - sync357 := _t714 - xs358 := []*pb.Epoch{} - cond359 := p.matchLookaheadLiteral("(", 0) - for cond359 { - _t716 := p.parse_epoch() - item360 := _t716 - xs358 = append(xs358, item360) - cond359 = p.matchLookaheadLiteral("(", 0) + 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) } - epochs361 := xs358 + epochs371 := xs368 p.consumeLiteral(")") - _t717 := p.default_configure() - _t718 := configure356 - if configure356 == nil { - _t718 = _t717 + _t737 := p.default_configure() + _t738 := configure366 + if configure366 == nil { + _t738 = _t737 } - _t719 := &pb.Transaction{Epochs: epochs361, Configure: _t718, Sync: sync357} - return _t719 + _t739 := &pb.Transaction{Epochs: epochs371, Configure: _t738, Sync: sync367} + return _t739 } func (p *Parser) parse_configure() *pb.Configure { p.consumeLiteral("(") p.consumeLiteral("configure") - _t720 := p.parse_config_dict() - config_dict362 := _t720 + _t740 := p.parse_config_dict() + config_dict372 := _t740 p.consumeLiteral(")") - _t721 := p.construct_configure(config_dict362) - return _t721 + _t741 := p.construct_configure(config_dict372) + return _t741 } func (p *Parser) parse_config_dict() [][]interface{} { p.consumeLiteral("{") - xs363 := [][]interface{}{} - cond364 := p.matchLookaheadLiteral(":", 0) - for cond364 { - _t722 := p.parse_config_key_value() - item365 := _t722 - xs363 = append(xs363, item365) - cond364 = p.matchLookaheadLiteral(":", 0) - } - config_key_values366 := xs363 + 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 p.consumeLiteral("}") - return config_key_values366 + return config_key_values376 } func (p *Parser) parse_config_key_value() []interface{} { p.consumeLiteral(":") - symbol367 := p.consumeTerminal("SYMBOL").Value.str - _t723 := p.parse_value() - value368 := _t723 - return []interface{}{symbol367, value368} + symbol377 := p.consumeTerminal("SYMBOL").Value.str + _t743 := p.parse_value() + value378 := _t743 + return []interface{}{symbol377, value378} } func (p *Parser) parse_value() *pb.Value { - var _t724 int64 + var _t744 int64 if p.matchLookaheadLiteral("true", 0) { - _t724 = 9 + _t744 = 9 } else { - var _t725 int64 + var _t745 int64 if p.matchLookaheadLiteral("missing", 0) { - _t725 = 8 + _t745 = 8 } else { - var _t726 int64 + var _t746 int64 if p.matchLookaheadLiteral("false", 0) { - _t726 = 9 + _t746 = 9 } else { - var _t727 int64 + var _t747 int64 if p.matchLookaheadLiteral("(", 0) { - var _t728 int64 + var _t748 int64 if p.matchLookaheadLiteral("datetime", 1) { - _t728 = 1 + _t748 = 1 } else { - var _t729 int64 + var _t749 int64 if p.matchLookaheadLiteral("date", 1) { - _t729 = 0 + _t749 = 0 } else { - _t729 = -1 + _t749 = -1 } - _t728 = _t729 + _t748 = _t749 } - _t727 = _t728 + _t747 = _t748 } else { - var _t730 int64 + var _t750 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t730 = 5 + _t750 = 5 } else { - var _t731 int64 + var _t751 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t731 = 2 + _t751 = 2 } else { - var _t732 int64 + var _t752 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t732 = 6 + _t752 = 6 } else { - var _t733 int64 + var _t753 int64 if p.matchLookaheadTerminal("INT", 0) { - _t733 = 3 + _t753 = 3 } else { - var _t734 int64 + var _t754 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t734 = 4 + _t754 = 4 } else { - var _t735 int64 + var _t755 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t735 = 7 + _t755 = 7 } else { - _t735 = -1 + _t755 = -1 } - _t734 = _t735 + _t754 = _t755 } - _t733 = _t734 + _t753 = _t754 } - _t732 = _t733 + _t752 = _t753 } - _t731 = _t732 + _t751 = _t752 } - _t730 = _t731 + _t750 = _t751 } - _t727 = _t730 + _t747 = _t750 } - _t726 = _t727 + _t746 = _t747 } - _t725 = _t726 + _t745 = _t746 } - _t724 = _t725 - } - prediction369 := _t724 - var _t736 *pb.Value - if prediction369 == 9 { - _t737 := p.parse_boolean_value() - boolean_value378 := _t737 - _t738 := &pb.Value{} - _t738.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value378} - _t736 = _t738 + _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 } else { - var _t739 *pb.Value - if prediction369 == 8 { + var _t759 *pb.Value + if prediction379 == 8 { p.consumeLiteral("missing") - _t740 := &pb.MissingValue{} - _t741 := &pb.Value{} - _t741.Value = &pb.Value_MissingValue{MissingValue: _t740} - _t739 = _t741 + _t760 := &pb.MissingValue{} + _t761 := &pb.Value{} + _t761.Value = &pb.Value_MissingValue{MissingValue: _t760} + _t759 = _t761 } else { - var _t742 *pb.Value - if prediction369 == 7 { - decimal377 := p.consumeTerminal("DECIMAL").Value.decimal - _t743 := &pb.Value{} - _t743.Value = &pb.Value_DecimalValue{DecimalValue: decimal377} - _t742 = _t743 + 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 } else { - var _t744 *pb.Value - if prediction369 == 6 { - int128376 := p.consumeTerminal("INT128").Value.int128 - _t745 := &pb.Value{} - _t745.Value = &pb.Value_Int128Value{Int128Value: int128376} - _t744 = _t745 + 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 } else { - var _t746 *pb.Value - if prediction369 == 5 { - uint128375 := p.consumeTerminal("UINT128").Value.uint128 - _t747 := &pb.Value{} - _t747.Value = &pb.Value_Uint128Value{Uint128Value: uint128375} - _t746 = _t747 + 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 } else { - var _t748 *pb.Value - if prediction369 == 4 { - float374 := p.consumeTerminal("FLOAT").Value.f64 - _t749 := &pb.Value{} - _t749.Value = &pb.Value_FloatValue{FloatValue: float374} - _t748 = _t749 + 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 } else { - var _t750 *pb.Value - if prediction369 == 3 { - int373 := p.consumeTerminal("INT").Value.i64 - _t751 := &pb.Value{} - _t751.Value = &pb.Value_IntValue{IntValue: int373} - _t750 = _t751 + 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 } else { - var _t752 *pb.Value - if prediction369 == 2 { - string372 := p.consumeTerminal("STRING").Value.str - _t753 := &pb.Value{} - _t753.Value = &pb.Value_StringValue{StringValue: string372} - _t752 = _t753 + 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 } else { - var _t754 *pb.Value - if prediction369 == 1 { - _t755 := p.parse_datetime() - datetime371 := _t755 - _t756 := &pb.Value{} - _t756.Value = &pb.Value_DatetimeValue{DatetimeValue: datetime371} - _t754 = _t756 + 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 } else { - var _t757 *pb.Value - if prediction369 == 0 { - _t758 := p.parse_date() - date370 := _t758 - _t759 := &pb.Value{} - _t759.Value = &pb.Value_DateValue{DateValue: date370} - _t757 = _t759 + 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 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t754 = _t757 + _t774 = _t777 } - _t752 = _t754 + _t772 = _t774 } - _t750 = _t752 + _t770 = _t772 } - _t748 = _t750 + _t768 = _t770 } - _t746 = _t748 + _t766 = _t768 } - _t744 = _t746 + _t764 = _t766 } - _t742 = _t744 + _t762 = _t764 } - _t739 = _t742 + _t759 = _t762 } - _t736 = _t739 + _t756 = _t759 } - return _t736 + return _t756 } func (p *Parser) parse_date() *pb.DateValue { p.consumeLiteral("(") p.consumeLiteral("date") - int379 := p.consumeTerminal("INT").Value.i64 - int_3380 := p.consumeTerminal("INT").Value.i64 - int_4381 := p.consumeTerminal("INT").Value.i64 + int389 := p.consumeTerminal("INT").Value.i64 + int_3390 := p.consumeTerminal("INT").Value.i64 + int_4391 := p.consumeTerminal("INT").Value.i64 p.consumeLiteral(")") - _t760 := &pb.DateValue{Year: int32(int379), Month: int32(int_3380), Day: int32(int_4381)} - return _t760 + _t780 := &pb.DateValue{Year: int32(int389), Month: int32(int_3390), Day: int32(int_4391)} + return _t780 } func (p *Parser) parse_datetime() *pb.DateTimeValue { p.consumeLiteral("(") p.consumeLiteral("datetime") - int382 := p.consumeTerminal("INT").Value.i64 - int_3383 := p.consumeTerminal("INT").Value.i64 - int_4384 := p.consumeTerminal("INT").Value.i64 - int_5385 := p.consumeTerminal("INT").Value.i64 - int_6386 := p.consumeTerminal("INT").Value.i64 - int_7387 := p.consumeTerminal("INT").Value.i64 - var _t761 *int64 + 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 if p.matchLookaheadTerminal("INT", 0) { - _t761 = ptr(p.consumeTerminal("INT").Value.i64) + _t781 = ptr(p.consumeTerminal("INT").Value.i64) } - int_8388 := _t761 + int_8398 := _t781 p.consumeLiteral(")") - _t762 := &pb.DateTimeValue{Year: int32(int382), Month: int32(int_3383), Day: int32(int_4384), Hour: int32(int_5385), Minute: int32(int_6386), Second: int32(int_7387), Microsecond: int32(deref(int_8388, 0))} - return _t762 + _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 } func (p *Parser) parse_boolean_value() bool { - var _t763 int64 + var _t783 int64 if p.matchLookaheadLiteral("true", 0) { - _t763 = 0 + _t783 = 0 } else { - var _t764 int64 + var _t784 int64 if p.matchLookaheadLiteral("false", 0) { - _t764 = 1 + _t784 = 1 } else { - _t764 = -1 + _t784 = -1 } - _t763 = _t764 + _t783 = _t784 } - prediction389 := _t763 - var _t765 bool - if prediction389 == 1 { + prediction399 := _t783 + var _t785 bool + if prediction399 == 1 { p.consumeLiteral("false") - _t765 = false + _t785 = false } else { - var _t766 bool - if prediction389 == 0 { + var _t786 bool + if prediction399 == 0 { p.consumeLiteral("true") - _t766 = true + _t786 = true } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in boolean_value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t765 = _t766 + _t785 = _t786 } - return _t765 + return _t785 } func (p *Parser) parse_sync() *pb.Sync { p.consumeLiteral("(") p.consumeLiteral("sync") - xs390 := []*pb.FragmentId{} - cond391 := p.matchLookaheadLiteral(":", 0) - for cond391 { - _t767 := p.parse_fragment_id() - item392 := _t767 - xs390 = append(xs390, item392) - cond391 = p.matchLookaheadLiteral(":", 0) + xs400 := []*pb.FragmentId{} + cond401 := p.matchLookaheadLiteral(":", 0) + for cond401 { + _t787 := p.parse_fragment_id() + item402 := _t787 + xs400 = append(xs400, item402) + cond401 = p.matchLookaheadLiteral(":", 0) } - fragment_ids393 := xs390 + fragment_ids403 := xs400 p.consumeLiteral(")") - _t768 := &pb.Sync{Fragments: fragment_ids393} - return _t768 + _t788 := &pb.Sync{Fragments: fragment_ids403} + return _t788 } func (p *Parser) parse_fragment_id() *pb.FragmentId { p.consumeLiteral(":") - symbol394 := p.consumeTerminal("SYMBOL").Value.str - return &pb.FragmentId{Id: []byte(symbol394)} + symbol404 := p.consumeTerminal("SYMBOL").Value.str + return &pb.FragmentId{Id: []byte(symbol404)} } func (p *Parser) parse_epoch() *pb.Epoch { p.consumeLiteral("(") p.consumeLiteral("epoch") - var _t769 []*pb.Write + var _t789 []*pb.Write if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("writes", 1)) { - _t770 := p.parse_epoch_writes() - _t769 = _t770 + _t790 := p.parse_epoch_writes() + _t789 = _t790 } - epoch_writes395 := _t769 - var _t771 []*pb.Read + epoch_writes405 := _t789 + var _t791 []*pb.Read if p.matchLookaheadLiteral("(", 0) { - _t772 := p.parse_epoch_reads() - _t771 = _t772 + _t792 := p.parse_epoch_reads() + _t791 = _t792 } - epoch_reads396 := _t771 + epoch_reads406 := _t791 p.consumeLiteral(")") - _t773 := epoch_writes395 - if epoch_writes395 == nil { - _t773 = []*pb.Write{} + _t793 := epoch_writes405 + if epoch_writes405 == nil { + _t793 = []*pb.Write{} } - _t774 := epoch_reads396 - if epoch_reads396 == nil { - _t774 = []*pb.Read{} + _t794 := epoch_reads406 + if epoch_reads406 == nil { + _t794 = []*pb.Read{} } - _t775 := &pb.Epoch{Writes: _t773, Reads: _t774} - return _t775 + _t795 := &pb.Epoch{Writes: _t793, Reads: _t794} + return _t795 } func (p *Parser) parse_epoch_writes() []*pb.Write { p.consumeLiteral("(") p.consumeLiteral("writes") - xs397 := []*pb.Write{} - cond398 := p.matchLookaheadLiteral("(", 0) - for cond398 { - _t776 := p.parse_write() - item399 := _t776 - xs397 = append(xs397, item399) - cond398 = p.matchLookaheadLiteral("(", 0) + xs407 := []*pb.Write{} + cond408 := p.matchLookaheadLiteral("(", 0) + for cond408 { + _t796 := p.parse_write() + item409 := _t796 + xs407 = append(xs407, item409) + cond408 = p.matchLookaheadLiteral("(", 0) } - writes400 := xs397 + writes410 := xs407 p.consumeLiteral(")") - return writes400 + return writes410 } func (p *Parser) parse_write() *pb.Write { - var _t777 int64 + var _t797 int64 if p.matchLookaheadLiteral("(", 0) { - var _t778 int64 + var _t798 int64 if p.matchLookaheadLiteral("undefine", 1) { - _t778 = 1 + _t798 = 1 } else { - var _t779 int64 + var _t799 int64 if p.matchLookaheadLiteral("snapshot", 1) { - _t779 = 3 + _t799 = 3 } else { - var _t780 int64 + var _t800 int64 if p.matchLookaheadLiteral("define", 1) { - _t780 = 0 + _t800 = 0 } else { - var _t781 int64 + var _t801 int64 if p.matchLookaheadLiteral("context", 1) { - _t781 = 2 + _t801 = 2 } else { - _t781 = -1 + _t801 = -1 } - _t780 = _t781 + _t800 = _t801 } - _t779 = _t780 + _t799 = _t800 } - _t778 = _t779 + _t798 = _t799 } - _t777 = _t778 + _t797 = _t798 } else { - _t777 = -1 - } - prediction401 := _t777 - var _t782 *pb.Write - if prediction401 == 3 { - _t783 := p.parse_snapshot() - snapshot405 := _t783 - _t784 := &pb.Write{} - _t784.WriteType = &pb.Write_Snapshot{Snapshot: snapshot405} - _t782 = _t784 + _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 } else { - var _t785 *pb.Write - if prediction401 == 2 { - _t786 := p.parse_context() - context404 := _t786 - _t787 := &pb.Write{} - _t787.WriteType = &pb.Write_Context{Context: context404} - _t785 = _t787 + 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 } else { - var _t788 *pb.Write - if prediction401 == 1 { - _t789 := p.parse_undefine() - undefine403 := _t789 - _t790 := &pb.Write{} - _t790.WriteType = &pb.Write_Undefine{Undefine: undefine403} - _t788 = _t790 + 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 } else { - var _t791 *pb.Write - if prediction401 == 0 { - _t792 := p.parse_define() - define402 := _t792 - _t793 := &pb.Write{} - _t793.WriteType = &pb.Write_Define{Define: define402} - _t791 = _t793 + 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 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in write", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t788 = _t791 + _t808 = _t811 } - _t785 = _t788 + _t805 = _t808 } - _t782 = _t785 + _t802 = _t805 } - return _t782 + return _t802 } func (p *Parser) parse_define() *pb.Define { p.consumeLiteral("(") p.consumeLiteral("define") - _t794 := p.parse_fragment() - fragment406 := _t794 + _t814 := p.parse_fragment() + fragment416 := _t814 p.consumeLiteral(")") - _t795 := &pb.Define{Fragment: fragment406} - return _t795 + _t815 := &pb.Define{Fragment: fragment416} + return _t815 } func (p *Parser) parse_fragment() *pb.Fragment { p.consumeLiteral("(") p.consumeLiteral("fragment") - _t796 := p.parse_new_fragment_id() - new_fragment_id407 := _t796 - xs408 := []*pb.Declaration{} - cond409 := p.matchLookaheadLiteral("(", 0) - for cond409 { - _t797 := p.parse_declaration() - item410 := _t797 - xs408 = append(xs408, item410) - cond409 = p.matchLookaheadLiteral("(", 0) + _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) } - declarations411 := xs408 + declarations421 := xs418 p.consumeLiteral(")") - return p.constructFragment(new_fragment_id407, declarations411) + return p.constructFragment(new_fragment_id417, declarations421) } func (p *Parser) parse_new_fragment_id() *pb.FragmentId { - _t798 := p.parse_fragment_id() - fragment_id412 := _t798 - p.startFragment(fragment_id412) - return fragment_id412 + _t818 := p.parse_fragment_id() + fragment_id422 := _t818 + p.startFragment(fragment_id422) + return fragment_id422 } func (p *Parser) parse_declaration() *pb.Declaration { - var _t799 int64 + var _t819 int64 if p.matchLookaheadLiteral("(", 0) { - var _t800 int64 + var _t820 int64 if p.matchLookaheadLiteral("rel_edb", 1) { - _t800 = 3 + _t820 = 3 } else { - var _t801 int64 + var _t821 int64 if p.matchLookaheadLiteral("functional_dependency", 1) { - _t801 = 2 + _t821 = 2 } else { - var _t802 int64 + var _t822 int64 if p.matchLookaheadLiteral("def", 1) { - _t802 = 0 + _t822 = 0 } else { - var _t803 int64 + var _t823 int64 if p.matchLookaheadLiteral("csv_data", 1) { - _t803 = 3 + _t823 = 3 } else { - var _t804 int64 + var _t824 int64 if p.matchLookaheadLiteral("betree_relation", 1) { - _t804 = 3 + _t824 = 3 } else { - var _t805 int64 + var _t825 int64 if p.matchLookaheadLiteral("algorithm", 1) { - _t805 = 1 + _t825 = 1 } else { - _t805 = -1 + _t825 = -1 } - _t804 = _t805 + _t824 = _t825 } - _t803 = _t804 + _t823 = _t824 } - _t802 = _t803 + _t822 = _t823 } - _t801 = _t802 + _t821 = _t822 } - _t800 = _t801 + _t820 = _t821 } - _t799 = _t800 + _t819 = _t820 } else { - _t799 = -1 - } - prediction413 := _t799 - var _t806 *pb.Declaration - if prediction413 == 3 { - _t807 := p.parse_data() - data417 := _t807 - _t808 := &pb.Declaration{} - _t808.DeclarationType = &pb.Declaration_Data{Data: data417} - _t806 = _t808 + _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 } else { - var _t809 *pb.Declaration - if prediction413 == 2 { - _t810 := p.parse_constraint() - constraint416 := _t810 - _t811 := &pb.Declaration{} - _t811.DeclarationType = &pb.Declaration_Constraint{Constraint: constraint416} - _t809 = _t811 + 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 } else { - var _t812 *pb.Declaration - if prediction413 == 1 { - _t813 := p.parse_algorithm() - algorithm415 := _t813 - _t814 := &pb.Declaration{} - _t814.DeclarationType = &pb.Declaration_Algorithm{Algorithm: algorithm415} - _t812 = _t814 + 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 } else { - var _t815 *pb.Declaration - if prediction413 == 0 { - _t816 := p.parse_def() - def414 := _t816 - _t817 := &pb.Declaration{} - _t817.DeclarationType = &pb.Declaration_Def{Def: def414} - _t815 = _t817 + 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 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in declaration", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t812 = _t815 + _t832 = _t835 } - _t809 = _t812 + _t829 = _t832 } - _t806 = _t809 + _t826 = _t829 } - return _t806 + return _t826 } func (p *Parser) parse_def() *pb.Def { p.consumeLiteral("(") p.consumeLiteral("def") - _t818 := p.parse_relation_id() - relation_id418 := _t818 - _t819 := p.parse_abstraction() - abstraction419 := _t819 - var _t820 []*pb.Attribute + _t838 := p.parse_relation_id() + relation_id428 := _t838 + _t839 := p.parse_abstraction() + abstraction429 := _t839 + var _t840 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t821 := p.parse_attrs() - _t820 = _t821 + _t841 := p.parse_attrs() + _t840 = _t841 } - attrs420 := _t820 + attrs430 := _t840 p.consumeLiteral(")") - _t822 := attrs420 - if attrs420 == nil { - _t822 = []*pb.Attribute{} + _t842 := attrs430 + if attrs430 == nil { + _t842 = []*pb.Attribute{} } - _t823 := &pb.Def{Name: relation_id418, Body: abstraction419, Attrs: _t822} - return _t823 + _t843 := &pb.Def{Name: relation_id428, Body: abstraction429, Attrs: _t842} + return _t843 } func (p *Parser) parse_relation_id() *pb.RelationId { - var _t824 int64 + var _t844 int64 if p.matchLookaheadLiteral(":", 0) { - _t824 = 0 + _t844 = 0 } else { - var _t825 int64 + var _t845 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t825 = 1 + _t845 = 1 } else { - _t825 = -1 + _t845 = -1 } - _t824 = _t825 - } - prediction421 := _t824 - var _t826 *pb.RelationId - if prediction421 == 1 { - uint128423 := p.consumeTerminal("UINT128").Value.uint128 - _ = uint128423 - _t826 = &pb.RelationId{IdLow: uint128423.Low, IdHigh: uint128423.High} + _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} } else { - var _t827 *pb.RelationId - if prediction421 == 0 { + var _t847 *pb.RelationId + if prediction431 == 0 { p.consumeLiteral(":") - symbol422 := p.consumeTerminal("SYMBOL").Value.str - _t827 = p.relationIdFromString(symbol422) + symbol432 := p.consumeTerminal("SYMBOL").Value.str + _t847 = p.relationIdFromString(symbol432) } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in relation_id", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t826 = _t827 + _t846 = _t847 } - return _t826 + return _t846 } func (p *Parser) parse_abstraction() *pb.Abstraction { p.consumeLiteral("(") - _t828 := p.parse_bindings() - bindings424 := _t828 - _t829 := p.parse_formula() - formula425 := _t829 + _t848 := p.parse_bindings() + bindings434 := _t848 + _t849 := p.parse_formula() + formula435 := _t849 p.consumeLiteral(")") - _t830 := &pb.Abstraction{Vars: listConcat(bindings424[0].([]*pb.Binding), bindings424[1].([]*pb.Binding)), Value: formula425} - return _t830 + _t850 := &pb.Abstraction{Vars: listConcat(bindings434[0].([]*pb.Binding), bindings434[1].([]*pb.Binding)), Value: formula435} + return _t850 } func (p *Parser) parse_bindings() []interface{} { p.consumeLiteral("[") - xs426 := []*pb.Binding{} - cond427 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond427 { - _t831 := p.parse_binding() - item428 := _t831 - xs426 = append(xs426, item428) - cond427 = p.matchLookaheadTerminal("SYMBOL", 0) - } - bindings429 := xs426 - var _t832 []*pb.Binding + 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 if p.matchLookaheadLiteral("|", 0) { - _t833 := p.parse_value_bindings() - _t832 = _t833 + _t853 := p.parse_value_bindings() + _t852 = _t853 } - value_bindings430 := _t832 + value_bindings440 := _t852 p.consumeLiteral("]") - _t834 := value_bindings430 - if value_bindings430 == nil { - _t834 = []*pb.Binding{} + _t854 := value_bindings440 + if value_bindings440 == nil { + _t854 = []*pb.Binding{} } - return []interface{}{bindings429, _t834} + return []interface{}{bindings439, _t854} } func (p *Parser) parse_binding() *pb.Binding { - symbol431 := p.consumeTerminal("SYMBOL").Value.str + symbol441 := p.consumeTerminal("SYMBOL").Value.str p.consumeLiteral("::") - _t835 := p.parse_type() - type432 := _t835 - _t836 := &pb.Var{Name: symbol431} - _t837 := &pb.Binding{Var: _t836, Type: type432} - return _t837 + _t855 := p.parse_type() + type442 := _t855 + _t856 := &pb.Var{Name: symbol441} + _t857 := &pb.Binding{Var: _t856, Type: type442} + return _t857 } func (p *Parser) parse_type() *pb.Type { - var _t838 int64 + var _t858 int64 if p.matchLookaheadLiteral("UNKNOWN", 0) { - _t838 = 0 + _t858 = 0 } else { - var _t839 int64 + var _t859 int64 if p.matchLookaheadLiteral("UINT128", 0) { - _t839 = 4 + _t859 = 4 } else { - var _t840 int64 + var _t860 int64 if p.matchLookaheadLiteral("STRING", 0) { - _t840 = 1 + _t860 = 1 } else { - var _t841 int64 + var _t861 int64 if p.matchLookaheadLiteral("MISSING", 0) { - _t841 = 8 + _t861 = 8 } else { - var _t842 int64 + var _t862 int64 if p.matchLookaheadLiteral("INT128", 0) { - _t842 = 5 + _t862 = 5 } else { - var _t843 int64 + var _t863 int64 if p.matchLookaheadLiteral("INT", 0) { - _t843 = 2 + _t863 = 2 } else { - var _t844 int64 + var _t864 int64 if p.matchLookaheadLiteral("FLOAT", 0) { - _t844 = 3 + _t864 = 3 } else { - var _t845 int64 + var _t865 int64 if p.matchLookaheadLiteral("DATETIME", 0) { - _t845 = 7 + _t865 = 7 } else { - var _t846 int64 + var _t866 int64 if p.matchLookaheadLiteral("DATE", 0) { - _t846 = 6 + _t866 = 6 } else { - var _t847 int64 + var _t867 int64 if p.matchLookaheadLiteral("BOOLEAN", 0) { - _t847 = 10 + _t867 = 10 } else { - var _t848 int64 + var _t868 int64 if p.matchLookaheadLiteral("(", 0) { - _t848 = 9 + _t868 = 9 } else { - _t848 = -1 + _t868 = -1 } - _t847 = _t848 + _t867 = _t868 } - _t846 = _t847 + _t866 = _t867 } - _t845 = _t846 + _t865 = _t866 } - _t844 = _t845 + _t864 = _t865 } - _t843 = _t844 + _t863 = _t864 } - _t842 = _t843 + _t862 = _t863 } - _t841 = _t842 + _t861 = _t862 } - _t840 = _t841 + _t860 = _t861 } - _t839 = _t840 + _t859 = _t860 } - _t838 = _t839 - } - prediction433 := _t838 - var _t849 *pb.Type - if prediction433 == 10 { - _t850 := p.parse_boolean_type() - boolean_type444 := _t850 - _t851 := &pb.Type{} - _t851.Type = &pb.Type_BooleanType{BooleanType: boolean_type444} - _t849 = _t851 + _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 } else { - var _t852 *pb.Type - if prediction433 == 9 { - _t853 := p.parse_decimal_type() - decimal_type443 := _t853 - _t854 := &pb.Type{} - _t854.Type = &pb.Type_DecimalType{DecimalType: decimal_type443} - _t852 = _t854 + 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 } else { - var _t855 *pb.Type - if prediction433 == 8 { - _t856 := p.parse_missing_type() - missing_type442 := _t856 - _t857 := &pb.Type{} - _t857.Type = &pb.Type_MissingType{MissingType: missing_type442} - _t855 = _t857 + 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 } else { - var _t858 *pb.Type - if prediction433 == 7 { - _t859 := p.parse_datetime_type() - datetime_type441 := _t859 - _t860 := &pb.Type{} - _t860.Type = &pb.Type_DatetimeType{DatetimeType: datetime_type441} - _t858 = _t860 + 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 } else { - var _t861 *pb.Type - if prediction433 == 6 { - _t862 := p.parse_date_type() - date_type440 := _t862 - _t863 := &pb.Type{} - _t863.Type = &pb.Type_DateType{DateType: date_type440} - _t861 = _t863 + 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 } else { - var _t864 *pb.Type - if prediction433 == 5 { - _t865 := p.parse_int128_type() - int128_type439 := _t865 - _t866 := &pb.Type{} - _t866.Type = &pb.Type_Int128Type{Int128Type: int128_type439} - _t864 = _t866 + 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 } else { - var _t867 *pb.Type - if prediction433 == 4 { - _t868 := p.parse_uint128_type() - uint128_type438 := _t868 - _t869 := &pb.Type{} - _t869.Type = &pb.Type_Uint128Type{Uint128Type: uint128_type438} - _t867 = _t869 + 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 } else { - var _t870 *pb.Type - if prediction433 == 3 { - _t871 := p.parse_float_type() - float_type437 := _t871 - _t872 := &pb.Type{} - _t872.Type = &pb.Type_FloatType{FloatType: float_type437} - _t870 = _t872 + 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 } else { - var _t873 *pb.Type - if prediction433 == 2 { - _t874 := p.parse_int_type() - int_type436 := _t874 - _t875 := &pb.Type{} - _t875.Type = &pb.Type_IntType{IntType: int_type436} - _t873 = _t875 + 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 } else { - var _t876 *pb.Type - if prediction433 == 1 { - _t877 := p.parse_string_type() - string_type435 := _t877 - _t878 := &pb.Type{} - _t878.Type = &pb.Type_StringType{StringType: string_type435} - _t876 = _t878 + 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 } else { - var _t879 *pb.Type - if prediction433 == 0 { - _t880 := p.parse_unspecified_type() - unspecified_type434 := _t880 - _t881 := &pb.Type{} - _t881.Type = &pb.Type_UnspecifiedType{UnspecifiedType: unspecified_type434} - _t879 = _t881 + 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 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in type", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t876 = _t879 + _t896 = _t899 } - _t873 = _t876 + _t893 = _t896 } - _t870 = _t873 + _t890 = _t893 } - _t867 = _t870 + _t887 = _t890 } - _t864 = _t867 + _t884 = _t887 } - _t861 = _t864 + _t881 = _t884 } - _t858 = _t861 + _t878 = _t881 } - _t855 = _t858 + _t875 = _t878 } - _t852 = _t855 + _t872 = _t875 } - _t849 = _t852 + _t869 = _t872 } - return _t849 + return _t869 } func (p *Parser) parse_unspecified_type() *pb.UnspecifiedType { p.consumeLiteral("UNKNOWN") - _t882 := &pb.UnspecifiedType{} - return _t882 + _t902 := &pb.UnspecifiedType{} + return _t902 } func (p *Parser) parse_string_type() *pb.StringType { p.consumeLiteral("STRING") - _t883 := &pb.StringType{} - return _t883 + _t903 := &pb.StringType{} + return _t903 } func (p *Parser) parse_int_type() *pb.IntType { p.consumeLiteral("INT") - _t884 := &pb.IntType{} - return _t884 + _t904 := &pb.IntType{} + return _t904 } func (p *Parser) parse_float_type() *pb.FloatType { p.consumeLiteral("FLOAT") - _t885 := &pb.FloatType{} - return _t885 + _t905 := &pb.FloatType{} + return _t905 } func (p *Parser) parse_uint128_type() *pb.UInt128Type { p.consumeLiteral("UINT128") - _t886 := &pb.UInt128Type{} - return _t886 + _t906 := &pb.UInt128Type{} + return _t906 } func (p *Parser) parse_int128_type() *pb.Int128Type { p.consumeLiteral("INT128") - _t887 := &pb.Int128Type{} - return _t887 + _t907 := &pb.Int128Type{} + return _t907 } func (p *Parser) parse_date_type() *pb.DateType { p.consumeLiteral("DATE") - _t888 := &pb.DateType{} - return _t888 + _t908 := &pb.DateType{} + return _t908 } func (p *Parser) parse_datetime_type() *pb.DateTimeType { p.consumeLiteral("DATETIME") - _t889 := &pb.DateTimeType{} - return _t889 + _t909 := &pb.DateTimeType{} + return _t909 } func (p *Parser) parse_missing_type() *pb.MissingType { p.consumeLiteral("MISSING") - _t890 := &pb.MissingType{} - return _t890 + _t910 := &pb.MissingType{} + return _t910 } func (p *Parser) parse_decimal_type() *pb.DecimalType { p.consumeLiteral("(") p.consumeLiteral("DECIMAL") - int445 := p.consumeTerminal("INT").Value.i64 - int_3446 := p.consumeTerminal("INT").Value.i64 + int455 := p.consumeTerminal("INT").Value.i64 + int_3456 := p.consumeTerminal("INT").Value.i64 p.consumeLiteral(")") - _t891 := &pb.DecimalType{Precision: int32(int445), Scale: int32(int_3446)} - return _t891 + _t911 := &pb.DecimalType{Precision: int32(int455), Scale: int32(int_3456)} + return _t911 } func (p *Parser) parse_boolean_type() *pb.BooleanType { p.consumeLiteral("BOOLEAN") - _t892 := &pb.BooleanType{} - return _t892 + _t912 := &pb.BooleanType{} + return _t912 } func (p *Parser) parse_value_bindings() []*pb.Binding { p.consumeLiteral("|") - xs447 := []*pb.Binding{} - cond448 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond448 { - _t893 := p.parse_binding() - item449 := _t893 - xs447 = append(xs447, item449) - cond448 = p.matchLookaheadTerminal("SYMBOL", 0) + 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) } - bindings450 := xs447 - return bindings450 + bindings460 := xs457 + return bindings460 } func (p *Parser) parse_formula() *pb.Formula { - var _t894 int64 + var _t914 int64 if p.matchLookaheadLiteral("(", 0) { - var _t895 int64 + var _t915 int64 if p.matchLookaheadLiteral("true", 1) { - _t895 = 0 + _t915 = 0 } else { - var _t896 int64 + var _t916 int64 if p.matchLookaheadLiteral("relatom", 1) { - _t896 = 11 + _t916 = 11 } else { - var _t897 int64 + var _t917 int64 if p.matchLookaheadLiteral("reduce", 1) { - _t897 = 3 + _t917 = 3 } else { - var _t898 int64 + var _t918 int64 if p.matchLookaheadLiteral("primitive", 1) { - _t898 = 10 + _t918 = 10 } else { - var _t899 int64 + var _t919 int64 if p.matchLookaheadLiteral("pragma", 1) { - _t899 = 9 + _t919 = 9 } else { - var _t900 int64 + var _t920 int64 if p.matchLookaheadLiteral("or", 1) { - _t900 = 5 + _t920 = 5 } else { - var _t901 int64 + var _t921 int64 if p.matchLookaheadLiteral("not", 1) { - _t901 = 6 + _t921 = 6 } else { - var _t902 int64 + var _t922 int64 if p.matchLookaheadLiteral("ffi", 1) { - _t902 = 7 + _t922 = 7 } else { - var _t903 int64 + var _t923 int64 if p.matchLookaheadLiteral("false", 1) { - _t903 = 1 + _t923 = 1 } else { - var _t904 int64 + var _t924 int64 if p.matchLookaheadLiteral("exists", 1) { - _t904 = 2 + _t924 = 2 } else { - var _t905 int64 + var _t925 int64 if p.matchLookaheadLiteral("cast", 1) { - _t905 = 12 + _t925 = 12 } else { - var _t906 int64 + var _t926 int64 if p.matchLookaheadLiteral("atom", 1) { - _t906 = 8 + _t926 = 8 } else { - var _t907 int64 + var _t927 int64 if p.matchLookaheadLiteral("and", 1) { - _t907 = 4 + _t927 = 4 } else { - var _t908 int64 + var _t928 int64 if p.matchLookaheadLiteral(">=", 1) { - _t908 = 10 + _t928 = 10 } else { - var _t909 int64 + var _t929 int64 if p.matchLookaheadLiteral(">", 1) { - _t909 = 10 + _t929 = 10 } else { - var _t910 int64 + var _t930 int64 if p.matchLookaheadLiteral("=", 1) { - _t910 = 10 + _t930 = 10 } else { - var _t911 int64 + var _t931 int64 if p.matchLookaheadLiteral("<=", 1) { - _t911 = 10 + _t931 = 10 } else { - var _t912 int64 + var _t932 int64 if p.matchLookaheadLiteral("<", 1) { - _t912 = 10 + _t932 = 10 } else { - var _t913 int64 + var _t933 int64 if p.matchLookaheadLiteral("/", 1) { - _t913 = 10 + _t933 = 10 } else { - var _t914 int64 + var _t934 int64 if p.matchLookaheadLiteral("-", 1) { - _t914 = 10 + _t934 = 10 } else { - var _t915 int64 + var _t935 int64 if p.matchLookaheadLiteral("+", 1) { - _t915 = 10 + _t935 = 10 } else { - var _t916 int64 + var _t936 int64 if p.matchLookaheadLiteral("*", 1) { - _t916 = 10 + _t936 = 10 } else { - _t916 = -1 + _t936 = -1 } - _t915 = _t916 + _t935 = _t936 } - _t914 = _t915 + _t934 = _t935 } - _t913 = _t914 + _t933 = _t934 } - _t912 = _t913 + _t932 = _t933 } - _t911 = _t912 + _t931 = _t932 } - _t910 = _t911 + _t930 = _t931 } - _t909 = _t910 + _t929 = _t930 } - _t908 = _t909 + _t928 = _t929 } - _t907 = _t908 + _t927 = _t928 } - _t906 = _t907 + _t926 = _t927 } - _t905 = _t906 + _t925 = _t926 } - _t904 = _t905 + _t924 = _t925 } - _t903 = _t904 + _t923 = _t924 } - _t902 = _t903 + _t922 = _t923 } - _t901 = _t902 + _t921 = _t922 } - _t900 = _t901 + _t920 = _t921 } - _t899 = _t900 + _t919 = _t920 } - _t898 = _t899 + _t918 = _t919 } - _t897 = _t898 + _t917 = _t918 } - _t896 = _t897 + _t916 = _t917 } - _t895 = _t896 + _t915 = _t916 } - _t894 = _t895 + _t914 = _t915 } else { - _t894 = -1 - } - prediction451 := _t894 - var _t917 *pb.Formula - if prediction451 == 12 { - _t918 := p.parse_cast() - cast464 := _t918 - _t919 := &pb.Formula{} - _t919.FormulaType = &pb.Formula_Cast{Cast: cast464} - _t917 = _t919 + _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 } else { - var _t920 *pb.Formula - if prediction451 == 11 { - _t921 := p.parse_rel_atom() - rel_atom463 := _t921 - _t922 := &pb.Formula{} - _t922.FormulaType = &pb.Formula_RelAtom{RelAtom: rel_atom463} - _t920 = _t922 + 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 } else { - var _t923 *pb.Formula - if prediction451 == 10 { - _t924 := p.parse_primitive() - primitive462 := _t924 - _t925 := &pb.Formula{} - _t925.FormulaType = &pb.Formula_Primitive{Primitive: primitive462} - _t923 = _t925 + 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 } else { - var _t926 *pb.Formula - if prediction451 == 9 { - _t927 := p.parse_pragma() - pragma461 := _t927 - _t928 := &pb.Formula{} - _t928.FormulaType = &pb.Formula_Pragma{Pragma: pragma461} - _t926 = _t928 + 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 } else { - var _t929 *pb.Formula - if prediction451 == 8 { - _t930 := p.parse_atom() - atom460 := _t930 - _t931 := &pb.Formula{} - _t931.FormulaType = &pb.Formula_Atom{Atom: atom460} - _t929 = _t931 + 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 } else { - var _t932 *pb.Formula - if prediction451 == 7 { - _t933 := p.parse_ffi() - ffi459 := _t933 - _t934 := &pb.Formula{} - _t934.FormulaType = &pb.Formula_Ffi{Ffi: ffi459} - _t932 = _t934 + 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 } else { - var _t935 *pb.Formula - if prediction451 == 6 { - _t936 := p.parse_not() - not458 := _t936 - _t937 := &pb.Formula{} - _t937.FormulaType = &pb.Formula_Not{Not: not458} - _t935 = _t937 + 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 } else { - var _t938 *pb.Formula - if prediction451 == 5 { - _t939 := p.parse_disjunction() - disjunction457 := _t939 - _t940 := &pb.Formula{} - _t940.FormulaType = &pb.Formula_Disjunction{Disjunction: disjunction457} - _t938 = _t940 + 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 } else { - var _t941 *pb.Formula - if prediction451 == 4 { - _t942 := p.parse_conjunction() - conjunction456 := _t942 - _t943 := &pb.Formula{} - _t943.FormulaType = &pb.Formula_Conjunction{Conjunction: conjunction456} - _t941 = _t943 + 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 } else { - var _t944 *pb.Formula - if prediction451 == 3 { - _t945 := p.parse_reduce() - reduce455 := _t945 - _t946 := &pb.Formula{} - _t946.FormulaType = &pb.Formula_Reduce{Reduce: reduce455} - _t944 = _t946 + 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 } else { - var _t947 *pb.Formula - if prediction451 == 2 { - _t948 := p.parse_exists() - exists454 := _t948 - _t949 := &pb.Formula{} - _t949.FormulaType = &pb.Formula_Exists{Exists: exists454} - _t947 = _t949 + 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 } else { - var _t950 *pb.Formula - if prediction451 == 1 { - _t951 := p.parse_false() - false453 := _t951 - _t952 := &pb.Formula{} - _t952.FormulaType = &pb.Formula_Disjunction{Disjunction: false453} - _t950 = _t952 + 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 } else { - var _t953 *pb.Formula - if prediction451 == 0 { - _t954 := p.parse_true() - true452 := _t954 - _t955 := &pb.Formula{} - _t955.FormulaType = &pb.Formula_Conjunction{Conjunction: true452} - _t953 = _t955 + 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 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in formula", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t950 = _t953 + _t970 = _t973 } - _t947 = _t950 + _t967 = _t970 } - _t944 = _t947 + _t964 = _t967 } - _t941 = _t944 + _t961 = _t964 } - _t938 = _t941 + _t958 = _t961 } - _t935 = _t938 + _t955 = _t958 } - _t932 = _t935 + _t952 = _t955 } - _t929 = _t932 + _t949 = _t952 } - _t926 = _t929 + _t946 = _t949 } - _t923 = _t926 + _t943 = _t946 } - _t920 = _t923 + _t940 = _t943 } - _t917 = _t920 + _t937 = _t940 } - return _t917 + return _t937 } func (p *Parser) parse_true() *pb.Conjunction { p.consumeLiteral("(") p.consumeLiteral("true") p.consumeLiteral(")") - _t956 := &pb.Conjunction{Args: []*pb.Formula{}} - return _t956 + _t976 := &pb.Conjunction{Args: []*pb.Formula{}} + return _t976 } func (p *Parser) parse_false() *pb.Disjunction { p.consumeLiteral("(") p.consumeLiteral("false") p.consumeLiteral(")") - _t957 := &pb.Disjunction{Args: []*pb.Formula{}} - return _t957 + _t977 := &pb.Disjunction{Args: []*pb.Formula{}} + return _t977 } func (p *Parser) parse_exists() *pb.Exists { p.consumeLiteral("(") p.consumeLiteral("exists") - _t958 := p.parse_bindings() - bindings465 := _t958 - _t959 := p.parse_formula() - formula466 := _t959 + _t978 := p.parse_bindings() + bindings475 := _t978 + _t979 := p.parse_formula() + formula476 := _t979 p.consumeLiteral(")") - _t960 := &pb.Abstraction{Vars: listConcat(bindings465[0].([]*pb.Binding), bindings465[1].([]*pb.Binding)), Value: formula466} - _t961 := &pb.Exists{Body: _t960} - return _t961 + _t980 := &pb.Abstraction{Vars: listConcat(bindings475[0].([]*pb.Binding), bindings475[1].([]*pb.Binding)), Value: formula476} + _t981 := &pb.Exists{Body: _t980} + return _t981 } func (p *Parser) parse_reduce() *pb.Reduce { p.consumeLiteral("(") p.consumeLiteral("reduce") - _t962 := p.parse_abstraction() - abstraction467 := _t962 - _t963 := p.parse_abstraction() - abstraction_3468 := _t963 - _t964 := p.parse_terms() - terms469 := _t964 + _t982 := p.parse_abstraction() + abstraction477 := _t982 + _t983 := p.parse_abstraction() + abstraction_3478 := _t983 + _t984 := p.parse_terms() + terms479 := _t984 p.consumeLiteral(")") - _t965 := &pb.Reduce{Op: abstraction467, Body: abstraction_3468, Terms: terms469} - return _t965 + _t985 := &pb.Reduce{Op: abstraction477, Body: abstraction_3478, Terms: terms479} + return _t985 } func (p *Parser) parse_terms() []*pb.Term { p.consumeLiteral("(") p.consumeLiteral("terms") - xs470 := []*pb.Term{} - cond471 := ((((((((((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 cond471 { - _t966 := p.parse_term() - item472 := _t966 - xs470 = append(xs470, item472) - cond471 = ((((((((((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)) + 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)) } - terms473 := xs470 + terms483 := xs480 p.consumeLiteral(")") - return terms473 + return terms483 } func (p *Parser) parse_term() *pb.Term { - var _t967 int64 + var _t987 int64 if p.matchLookaheadLiteral("true", 0) { - _t967 = 1 + _t987 = 1 } else { - var _t968 int64 + var _t988 int64 if p.matchLookaheadLiteral("missing", 0) { - _t968 = 1 + _t988 = 1 } else { - var _t969 int64 + var _t989 int64 if p.matchLookaheadLiteral("false", 0) { - _t969 = 1 + _t989 = 1 } else { - var _t970 int64 + var _t990 int64 if p.matchLookaheadLiteral("(", 0) { - _t970 = 1 + _t990 = 1 } else { - var _t971 int64 + var _t991 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t971 = 1 + _t991 = 1 } else { - var _t972 int64 + var _t992 int64 if p.matchLookaheadTerminal("SYMBOL", 0) { - _t972 = 0 + _t992 = 0 } else { - var _t973 int64 + var _t993 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t973 = 1 + _t993 = 1 } else { - var _t974 int64 + var _t994 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t974 = 1 + _t994 = 1 } else { - var _t975 int64 + var _t995 int64 if p.matchLookaheadTerminal("INT", 0) { - _t975 = 1 + _t995 = 1 } else { - var _t976 int64 + var _t996 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t976 = 1 + _t996 = 1 } else { - var _t977 int64 + var _t997 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t977 = 1 + _t997 = 1 } else { - _t977 = -1 + _t997 = -1 } - _t976 = _t977 + _t996 = _t997 } - _t975 = _t976 + _t995 = _t996 } - _t974 = _t975 + _t994 = _t995 } - _t973 = _t974 + _t993 = _t994 } - _t972 = _t973 + _t992 = _t993 } - _t971 = _t972 + _t991 = _t992 } - _t970 = _t971 + _t990 = _t991 } - _t969 = _t970 + _t989 = _t990 } - _t968 = _t969 + _t988 = _t989 } - _t967 = _t968 - } - prediction474 := _t967 - var _t978 *pb.Term - if prediction474 == 1 { - _t979 := p.parse_constant() - constant476 := _t979 - _t980 := &pb.Term{} - _t980.TermType = &pb.Term_Constant{Constant: constant476} - _t978 = _t980 + _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 } else { - var _t981 *pb.Term - if prediction474 == 0 { - _t982 := p.parse_var() - var475 := _t982 - _t983 := &pb.Term{} - _t983.TermType = &pb.Term_Var{Var: var475} - _t981 = _t983 + 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 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in term", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t978 = _t981 + _t998 = _t1001 } - return _t978 + return _t998 } func (p *Parser) parse_var() *pb.Var { - symbol477 := p.consumeTerminal("SYMBOL").Value.str - _t984 := &pb.Var{Name: symbol477} - return _t984 + symbol487 := p.consumeTerminal("SYMBOL").Value.str + _t1004 := &pb.Var{Name: symbol487} + return _t1004 } func (p *Parser) parse_constant() *pb.Value { - _t985 := p.parse_value() - value478 := _t985 - return value478 + _t1005 := p.parse_value() + value488 := _t1005 + return value488 } func (p *Parser) parse_conjunction() *pb.Conjunction { p.consumeLiteral("(") p.consumeLiteral("and") - xs479 := []*pb.Formula{} - cond480 := p.matchLookaheadLiteral("(", 0) - for cond480 { - _t986 := p.parse_formula() - item481 := _t986 - xs479 = append(xs479, item481) - cond480 = p.matchLookaheadLiteral("(", 0) + xs489 := []*pb.Formula{} + cond490 := p.matchLookaheadLiteral("(", 0) + for cond490 { + _t1006 := p.parse_formula() + item491 := _t1006 + xs489 = append(xs489, item491) + cond490 = p.matchLookaheadLiteral("(", 0) } - formulas482 := xs479 + formulas492 := xs489 p.consumeLiteral(")") - _t987 := &pb.Conjunction{Args: formulas482} - return _t987 + _t1007 := &pb.Conjunction{Args: formulas492} + return _t1007 } func (p *Parser) parse_disjunction() *pb.Disjunction { p.consumeLiteral("(") p.consumeLiteral("or") - xs483 := []*pb.Formula{} - cond484 := p.matchLookaheadLiteral("(", 0) - for cond484 { - _t988 := p.parse_formula() - item485 := _t988 - xs483 = append(xs483, item485) - cond484 = p.matchLookaheadLiteral("(", 0) + xs493 := []*pb.Formula{} + cond494 := p.matchLookaheadLiteral("(", 0) + for cond494 { + _t1008 := p.parse_formula() + item495 := _t1008 + xs493 = append(xs493, item495) + cond494 = p.matchLookaheadLiteral("(", 0) } - formulas486 := xs483 + formulas496 := xs493 p.consumeLiteral(")") - _t989 := &pb.Disjunction{Args: formulas486} - return _t989 + _t1009 := &pb.Disjunction{Args: formulas496} + return _t1009 } func (p *Parser) parse_not() *pb.Not { p.consumeLiteral("(") p.consumeLiteral("not") - _t990 := p.parse_formula() - formula487 := _t990 + _t1010 := p.parse_formula() + formula497 := _t1010 p.consumeLiteral(")") - _t991 := &pb.Not{Arg: formula487} - return _t991 + _t1011 := &pb.Not{Arg: formula497} + return _t1011 } func (p *Parser) parse_ffi() *pb.FFI { p.consumeLiteral("(") p.consumeLiteral("ffi") - _t992 := p.parse_name() - name488 := _t992 - _t993 := p.parse_ffi_args() - ffi_args489 := _t993 - _t994 := p.parse_terms() - terms490 := _t994 + _t1012 := p.parse_name() + name498 := _t1012 + _t1013 := p.parse_ffi_args() + ffi_args499 := _t1013 + _t1014 := p.parse_terms() + terms500 := _t1014 p.consumeLiteral(")") - _t995 := &pb.FFI{Name: name488, Args: ffi_args489, Terms: terms490} - return _t995 + _t1015 := &pb.FFI{Name: name498, Args: ffi_args499, Terms: terms500} + return _t1015 } func (p *Parser) parse_name() string { p.consumeLiteral(":") - symbol491 := p.consumeTerminal("SYMBOL").Value.str - return symbol491 + symbol501 := p.consumeTerminal("SYMBOL").Value.str + return symbol501 } func (p *Parser) parse_ffi_args() []*pb.Abstraction { p.consumeLiteral("(") p.consumeLiteral("args") - xs492 := []*pb.Abstraction{} - cond493 := p.matchLookaheadLiteral("(", 0) - for cond493 { - _t996 := p.parse_abstraction() - item494 := _t996 - xs492 = append(xs492, item494) - cond493 = p.matchLookaheadLiteral("(", 0) + xs502 := []*pb.Abstraction{} + cond503 := p.matchLookaheadLiteral("(", 0) + for cond503 { + _t1016 := p.parse_abstraction() + item504 := _t1016 + xs502 = append(xs502, item504) + cond503 = p.matchLookaheadLiteral("(", 0) } - abstractions495 := xs492 + abstractions505 := xs502 p.consumeLiteral(")") - return abstractions495 + return abstractions505 } func (p *Parser) parse_atom() *pb.Atom { p.consumeLiteral("(") p.consumeLiteral("atom") - _t997 := p.parse_relation_id() - relation_id496 := _t997 - xs497 := []*pb.Term{} - cond498 := ((((((((((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 cond498 { - _t998 := p.parse_term() - item499 := _t998 - xs497 = append(xs497, item499) - cond498 = ((((((((((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)) + _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)) } - terms500 := xs497 + terms510 := xs507 p.consumeLiteral(")") - _t999 := &pb.Atom{Name: relation_id496, Terms: terms500} - return _t999 + _t1019 := &pb.Atom{Name: relation_id506, Terms: terms510} + return _t1019 } func (p *Parser) parse_pragma() *pb.Pragma { p.consumeLiteral("(") p.consumeLiteral("pragma") - _t1000 := p.parse_name() - name501 := _t1000 - xs502 := []*pb.Term{} - cond503 := ((((((((((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 cond503 { - _t1001 := p.parse_term() - item504 := _t1001 - xs502 = append(xs502, item504) - cond503 = ((((((((((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)) + _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)) } - terms505 := xs502 + terms515 := xs512 p.consumeLiteral(")") - _t1002 := &pb.Pragma{Name: name501, Terms: terms505} - return _t1002 + _t1022 := &pb.Pragma{Name: name511, Terms: terms515} + return _t1022 } func (p *Parser) parse_primitive() *pb.Primitive { - var _t1003 int64 + var _t1023 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1004 int64 + var _t1024 int64 if p.matchLookaheadLiteral("primitive", 1) { - _t1004 = 9 + _t1024 = 9 } else { - var _t1005 int64 + var _t1025 int64 if p.matchLookaheadLiteral(">=", 1) { - _t1005 = 4 + _t1025 = 4 } else { - var _t1006 int64 + var _t1026 int64 if p.matchLookaheadLiteral(">", 1) { - _t1006 = 3 + _t1026 = 3 } else { - var _t1007 int64 + var _t1027 int64 if p.matchLookaheadLiteral("=", 1) { - _t1007 = 0 + _t1027 = 0 } else { - var _t1008 int64 + var _t1028 int64 if p.matchLookaheadLiteral("<=", 1) { - _t1008 = 2 + _t1028 = 2 } else { - var _t1009 int64 + var _t1029 int64 if p.matchLookaheadLiteral("<", 1) { - _t1009 = 1 + _t1029 = 1 } else { - var _t1010 int64 + var _t1030 int64 if p.matchLookaheadLiteral("/", 1) { - _t1010 = 8 + _t1030 = 8 } else { - var _t1011 int64 + var _t1031 int64 if p.matchLookaheadLiteral("-", 1) { - _t1011 = 6 + _t1031 = 6 } else { - var _t1012 int64 + var _t1032 int64 if p.matchLookaheadLiteral("+", 1) { - _t1012 = 5 + _t1032 = 5 } else { - var _t1013 int64 + var _t1033 int64 if p.matchLookaheadLiteral("*", 1) { - _t1013 = 7 + _t1033 = 7 } else { - _t1013 = -1 + _t1033 = -1 } - _t1012 = _t1013 + _t1032 = _t1033 } - _t1011 = _t1012 + _t1031 = _t1032 } - _t1010 = _t1011 + _t1030 = _t1031 } - _t1009 = _t1010 + _t1029 = _t1030 } - _t1008 = _t1009 + _t1028 = _t1029 } - _t1007 = _t1008 + _t1027 = _t1028 } - _t1006 = _t1007 + _t1026 = _t1027 } - _t1005 = _t1006 + _t1025 = _t1026 } - _t1004 = _t1005 + _t1024 = _t1025 } - _t1003 = _t1004 + _t1023 = _t1024 } else { - _t1003 = -1 + _t1023 = -1 } - prediction506 := _t1003 - var _t1014 *pb.Primitive - if prediction506 == 9 { + prediction516 := _t1023 + var _t1034 *pb.Primitive + if prediction516 == 9 { p.consumeLiteral("(") p.consumeLiteral("primitive") - _t1015 := p.parse_name() - name516 := _t1015 - xs517 := []*pb.RelTerm{} - cond518 := (((((((((((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 cond518 { - _t1016 := p.parse_rel_term() - item519 := _t1016 - xs517 = append(xs517, item519) - cond518 = (((((((((((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)) + _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)) } - rel_terms520 := xs517 + rel_terms530 := xs527 p.consumeLiteral(")") - _t1017 := &pb.Primitive{Name: name516, Terms: rel_terms520} - _t1014 = _t1017 + _t1037 := &pb.Primitive{Name: name526, Terms: rel_terms530} + _t1034 = _t1037 } else { - var _t1018 *pb.Primitive - if prediction506 == 8 { - _t1019 := p.parse_divide() - divide515 := _t1019 - _t1018 = divide515 + var _t1038 *pb.Primitive + if prediction516 == 8 { + _t1039 := p.parse_divide() + divide525 := _t1039 + _t1038 = divide525 } else { - var _t1020 *pb.Primitive - if prediction506 == 7 { - _t1021 := p.parse_multiply() - multiply514 := _t1021 - _t1020 = multiply514 + var _t1040 *pb.Primitive + if prediction516 == 7 { + _t1041 := p.parse_multiply() + multiply524 := _t1041 + _t1040 = multiply524 } else { - var _t1022 *pb.Primitive - if prediction506 == 6 { - _t1023 := p.parse_minus() - minus513 := _t1023 - _t1022 = minus513 + var _t1042 *pb.Primitive + if prediction516 == 6 { + _t1043 := p.parse_minus() + minus523 := _t1043 + _t1042 = minus523 } else { - var _t1024 *pb.Primitive - if prediction506 == 5 { - _t1025 := p.parse_add() - add512 := _t1025 - _t1024 = add512 + var _t1044 *pb.Primitive + if prediction516 == 5 { + _t1045 := p.parse_add() + add522 := _t1045 + _t1044 = add522 } else { - var _t1026 *pb.Primitive - if prediction506 == 4 { - _t1027 := p.parse_gt_eq() - gt_eq511 := _t1027 - _t1026 = gt_eq511 + var _t1046 *pb.Primitive + if prediction516 == 4 { + _t1047 := p.parse_gt_eq() + gt_eq521 := _t1047 + _t1046 = gt_eq521 } else { - var _t1028 *pb.Primitive - if prediction506 == 3 { - _t1029 := p.parse_gt() - gt510 := _t1029 - _t1028 = gt510 + var _t1048 *pb.Primitive + if prediction516 == 3 { + _t1049 := p.parse_gt() + gt520 := _t1049 + _t1048 = gt520 } else { - var _t1030 *pb.Primitive - if prediction506 == 2 { - _t1031 := p.parse_lt_eq() - lt_eq509 := _t1031 - _t1030 = lt_eq509 + var _t1050 *pb.Primitive + if prediction516 == 2 { + _t1051 := p.parse_lt_eq() + lt_eq519 := _t1051 + _t1050 = lt_eq519 } else { - var _t1032 *pb.Primitive - if prediction506 == 1 { - _t1033 := p.parse_lt() - lt508 := _t1033 - _t1032 = lt508 + var _t1052 *pb.Primitive + if prediction516 == 1 { + _t1053 := p.parse_lt() + lt518 := _t1053 + _t1052 = lt518 } else { - var _t1034 *pb.Primitive - if prediction506 == 0 { - _t1035 := p.parse_eq() - eq507 := _t1035 - _t1034 = eq507 + var _t1054 *pb.Primitive + if prediction516 == 0 { + _t1055 := p.parse_eq() + eq517 := _t1055 + _t1054 = eq517 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in primitive", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1032 = _t1034 + _t1052 = _t1054 } - _t1030 = _t1032 + _t1050 = _t1052 } - _t1028 = _t1030 + _t1048 = _t1050 } - _t1026 = _t1028 + _t1046 = _t1048 } - _t1024 = _t1026 + _t1044 = _t1046 } - _t1022 = _t1024 + _t1042 = _t1044 } - _t1020 = _t1022 + _t1040 = _t1042 } - _t1018 = _t1020 + _t1038 = _t1040 } - _t1014 = _t1018 + _t1034 = _t1038 } - return _t1014 + return _t1034 } func (p *Parser) parse_eq() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("=") - _t1036 := p.parse_term() - term521 := _t1036 - _t1037 := p.parse_term() - term_3522 := _t1037 + _t1056 := p.parse_term() + term531 := _t1056 + _t1057 := p.parse_term() + term_3532 := _t1057 p.consumeLiteral(")") - _t1038 := &pb.RelTerm{} - _t1038.RelTermType = &pb.RelTerm_Term{Term: term521} - _t1039 := &pb.RelTerm{} - _t1039.RelTermType = &pb.RelTerm_Term{Term: term_3522} - _t1040 := &pb.Primitive{Name: "rel_primitive_eq", Terms: []*pb.RelTerm{_t1038, _t1039}} - return _t1040 + _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 } func (p *Parser) parse_lt() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("<") - _t1041 := p.parse_term() - term523 := _t1041 - _t1042 := p.parse_term() - term_3524 := _t1042 + _t1061 := p.parse_term() + term533 := _t1061 + _t1062 := p.parse_term() + term_3534 := _t1062 p.consumeLiteral(")") - _t1043 := &pb.RelTerm{} - _t1043.RelTermType = &pb.RelTerm_Term{Term: term523} - _t1044 := &pb.RelTerm{} - _t1044.RelTermType = &pb.RelTerm_Term{Term: term_3524} - _t1045 := &pb.Primitive{Name: "rel_primitive_lt_monotype", Terms: []*pb.RelTerm{_t1043, _t1044}} - return _t1045 + _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 } func (p *Parser) parse_lt_eq() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("<=") - _t1046 := p.parse_term() - term525 := _t1046 - _t1047 := p.parse_term() - term_3526 := _t1047 + _t1066 := p.parse_term() + term535 := _t1066 + _t1067 := p.parse_term() + term_3536 := _t1067 p.consumeLiteral(")") - _t1048 := &pb.RelTerm{} - _t1048.RelTermType = &pb.RelTerm_Term{Term: term525} - _t1049 := &pb.RelTerm{} - _t1049.RelTermType = &pb.RelTerm_Term{Term: term_3526} - _t1050 := &pb.Primitive{Name: "rel_primitive_lt_eq_monotype", Terms: []*pb.RelTerm{_t1048, _t1049}} - return _t1050 + _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 } func (p *Parser) parse_gt() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral(">") - _t1051 := p.parse_term() - term527 := _t1051 - _t1052 := p.parse_term() - term_3528 := _t1052 + _t1071 := p.parse_term() + term537 := _t1071 + _t1072 := p.parse_term() + term_3538 := _t1072 p.consumeLiteral(")") - _t1053 := &pb.RelTerm{} - _t1053.RelTermType = &pb.RelTerm_Term{Term: term527} - _t1054 := &pb.RelTerm{} - _t1054.RelTermType = &pb.RelTerm_Term{Term: term_3528} - _t1055 := &pb.Primitive{Name: "rel_primitive_gt_monotype", Terms: []*pb.RelTerm{_t1053, _t1054}} - return _t1055 + _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 } func (p *Parser) parse_gt_eq() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral(">=") - _t1056 := p.parse_term() - term529 := _t1056 - _t1057 := p.parse_term() - term_3530 := _t1057 + _t1076 := p.parse_term() + term539 := _t1076 + _t1077 := p.parse_term() + term_3540 := _t1077 p.consumeLiteral(")") - _t1058 := &pb.RelTerm{} - _t1058.RelTermType = &pb.RelTerm_Term{Term: term529} - _t1059 := &pb.RelTerm{} - _t1059.RelTermType = &pb.RelTerm_Term{Term: term_3530} - _t1060 := &pb.Primitive{Name: "rel_primitive_gt_eq_monotype", Terms: []*pb.RelTerm{_t1058, _t1059}} - return _t1060 + _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 } func (p *Parser) parse_add() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("+") - _t1061 := p.parse_term() - term531 := _t1061 - _t1062 := p.parse_term() - term_3532 := _t1062 - _t1063 := p.parse_term() - term_4533 := _t1063 + _t1081 := p.parse_term() + term541 := _t1081 + _t1082 := p.parse_term() + term_3542 := _t1082 + _t1083 := p.parse_term() + term_4543 := _t1083 p.consumeLiteral(")") - _t1064 := &pb.RelTerm{} - _t1064.RelTermType = &pb.RelTerm_Term{Term: term531} - _t1065 := &pb.RelTerm{} - _t1065.RelTermType = &pb.RelTerm_Term{Term: term_3532} - _t1066 := &pb.RelTerm{} - _t1066.RelTermType = &pb.RelTerm_Term{Term: term_4533} - _t1067 := &pb.Primitive{Name: "rel_primitive_add_monotype", Terms: []*pb.RelTerm{_t1064, _t1065, _t1066}} - return _t1067 + _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 } func (p *Parser) parse_minus() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("-") - _t1068 := p.parse_term() - term534 := _t1068 - _t1069 := p.parse_term() - term_3535 := _t1069 - _t1070 := p.parse_term() - term_4536 := _t1070 - p.consumeLiteral(")") - _t1071 := &pb.RelTerm{} - _t1071.RelTermType = &pb.RelTerm_Term{Term: term534} - _t1072 := &pb.RelTerm{} - _t1072.RelTermType = &pb.RelTerm_Term{Term: term_3535} - _t1073 := &pb.RelTerm{} - _t1073.RelTermType = &pb.RelTerm_Term{Term: term_4536} - _t1074 := &pb.Primitive{Name: "rel_primitive_subtract_monotype", Terms: []*pb.RelTerm{_t1071, _t1072, _t1073}} - return _t1074 + _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 } func (p *Parser) parse_multiply() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("*") - _t1075 := p.parse_term() - term537 := _t1075 - _t1076 := p.parse_term() - term_3538 := _t1076 - _t1077 := p.parse_term() - term_4539 := _t1077 - p.consumeLiteral(")") - _t1078 := &pb.RelTerm{} - _t1078.RelTermType = &pb.RelTerm_Term{Term: term537} - _t1079 := &pb.RelTerm{} - _t1079.RelTermType = &pb.RelTerm_Term{Term: term_3538} - _t1080 := &pb.RelTerm{} - _t1080.RelTermType = &pb.RelTerm_Term{Term: term_4539} - _t1081 := &pb.Primitive{Name: "rel_primitive_multiply_monotype", Terms: []*pb.RelTerm{_t1078, _t1079, _t1080}} - return _t1081 + _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 } func (p *Parser) parse_divide() *pb.Primitive { p.consumeLiteral("(") p.consumeLiteral("/") - _t1082 := p.parse_term() - term540 := _t1082 - _t1083 := p.parse_term() - term_3541 := _t1083 - _t1084 := p.parse_term() - term_4542 := _t1084 - p.consumeLiteral(")") - _t1085 := &pb.RelTerm{} - _t1085.RelTermType = &pb.RelTerm_Term{Term: term540} - _t1086 := &pb.RelTerm{} - _t1086.RelTermType = &pb.RelTerm_Term{Term: term_3541} - _t1087 := &pb.RelTerm{} - _t1087.RelTermType = &pb.RelTerm_Term{Term: term_4542} - _t1088 := &pb.Primitive{Name: "rel_primitive_divide_monotype", Terms: []*pb.RelTerm{_t1085, _t1086, _t1087}} - return _t1088 + _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 } func (p *Parser) parse_rel_term() *pb.RelTerm { - var _t1089 int64 + var _t1109 int64 if p.matchLookaheadLiteral("true", 0) { - _t1089 = 1 + _t1109 = 1 } else { - var _t1090 int64 + var _t1110 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1090 = 1 + _t1110 = 1 } else { - var _t1091 int64 + var _t1111 int64 if p.matchLookaheadLiteral("false", 0) { - _t1091 = 1 + _t1111 = 1 } else { - var _t1092 int64 + var _t1112 int64 if p.matchLookaheadLiteral("(", 0) { - _t1092 = 1 + _t1112 = 1 } else { - var _t1093 int64 + var _t1113 int64 if p.matchLookaheadLiteral("#", 0) { - _t1093 = 0 + _t1113 = 0 } else { - var _t1094 int64 + var _t1114 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1094 = 1 + _t1114 = 1 } else { - var _t1095 int64 + var _t1115 int64 if p.matchLookaheadTerminal("SYMBOL", 0) { - _t1095 = 1 + _t1115 = 1 } else { - var _t1096 int64 + var _t1116 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1096 = 1 + _t1116 = 1 } else { - var _t1097 int64 + var _t1117 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1097 = 1 + _t1117 = 1 } else { - var _t1098 int64 + var _t1118 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1098 = 1 + _t1118 = 1 } else { - var _t1099 int64 + var _t1119 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1099 = 1 + _t1119 = 1 } else { - var _t1100 int64 + var _t1120 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1100 = 1 + _t1120 = 1 } else { - _t1100 = -1 + _t1120 = -1 } - _t1099 = _t1100 + _t1119 = _t1120 } - _t1098 = _t1099 + _t1118 = _t1119 } - _t1097 = _t1098 + _t1117 = _t1118 } - _t1096 = _t1097 + _t1116 = _t1117 } - _t1095 = _t1096 + _t1115 = _t1116 } - _t1094 = _t1095 + _t1114 = _t1115 } - _t1093 = _t1094 + _t1113 = _t1114 } - _t1092 = _t1093 + _t1112 = _t1113 } - _t1091 = _t1092 + _t1111 = _t1112 } - _t1090 = _t1091 + _t1110 = _t1111 } - _t1089 = _t1090 - } - prediction543 := _t1089 - var _t1101 *pb.RelTerm - if prediction543 == 1 { - _t1102 := p.parse_term() - term545 := _t1102 - _t1103 := &pb.RelTerm{} - _t1103.RelTermType = &pb.RelTerm_Term{Term: term545} - _t1101 = _t1103 + _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 } else { - var _t1104 *pb.RelTerm - if prediction543 == 0 { - _t1105 := p.parse_specialized_value() - specialized_value544 := _t1105 - _t1106 := &pb.RelTerm{} - _t1106.RelTermType = &pb.RelTerm_SpecializedValue{SpecializedValue: specialized_value544} - _t1104 = _t1106 + 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 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in rel_term", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1101 = _t1104 + _t1121 = _t1124 } - return _t1101 + return _t1121 } func (p *Parser) parse_specialized_value() *pb.Value { p.consumeLiteral("#") - _t1107 := p.parse_value() - value546 := _t1107 - return value546 + _t1127 := p.parse_value() + value556 := _t1127 + return value556 } func (p *Parser) parse_rel_atom() *pb.RelAtom { p.consumeLiteral("(") p.consumeLiteral("relatom") - _t1108 := p.parse_name() - name547 := _t1108 - xs548 := []*pb.RelTerm{} - cond549 := (((((((((((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 cond549 { - _t1109 := p.parse_rel_term() - item550 := _t1109 - xs548 = append(xs548, item550) - cond549 = (((((((((((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_terms551 := xs548 - p.consumeLiteral(")") - _t1110 := &pb.RelAtom{Name: name547, Terms: rel_terms551} - return _t1110 + _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 } func (p *Parser) parse_cast() *pb.Cast { p.consumeLiteral("(") p.consumeLiteral("cast") - _t1111 := p.parse_term() - term552 := _t1111 - _t1112 := p.parse_term() - term_3553 := _t1112 + _t1131 := p.parse_term() + term562 := _t1131 + _t1132 := p.parse_term() + term_3563 := _t1132 p.consumeLiteral(")") - _t1113 := &pb.Cast{Input: term552, Result: term_3553} - return _t1113 + _t1133 := &pb.Cast{Input: term562, Result: term_3563} + return _t1133 } func (p *Parser) parse_attrs() []*pb.Attribute { p.consumeLiteral("(") p.consumeLiteral("attrs") - xs554 := []*pb.Attribute{} - cond555 := p.matchLookaheadLiteral("(", 0) - for cond555 { - _t1114 := p.parse_attribute() - item556 := _t1114 - xs554 = append(xs554, item556) - cond555 = p.matchLookaheadLiteral("(", 0) + xs564 := []*pb.Attribute{} + cond565 := p.matchLookaheadLiteral("(", 0) + for cond565 { + _t1134 := p.parse_attribute() + item566 := _t1134 + xs564 = append(xs564, item566) + cond565 = p.matchLookaheadLiteral("(", 0) } - attributes557 := xs554 + attributes567 := xs564 p.consumeLiteral(")") - return attributes557 + return attributes567 } func (p *Parser) parse_attribute() *pb.Attribute { p.consumeLiteral("(") p.consumeLiteral("attribute") - _t1115 := p.parse_name() - name558 := _t1115 - xs559 := []*pb.Value{} - cond560 := (((((((((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 cond560 { - _t1116 := p.parse_value() - item561 := _t1116 - xs559 = append(xs559, item561) - cond560 = (((((((((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)) + _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)) } - values562 := xs559 + values572 := xs569 p.consumeLiteral(")") - _t1117 := &pb.Attribute{Name: name558, Args: values562} - return _t1117 + _t1137 := &pb.Attribute{Name: name568, Args: values572} + return _t1137 } func (p *Parser) parse_algorithm() *pb.Algorithm { p.consumeLiteral("(") p.consumeLiteral("algorithm") - xs563 := []*pb.RelationId{} - cond564 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - for cond564 { - _t1118 := p.parse_relation_id() - item565 := _t1118 - xs563 = append(xs563, item565) - cond564 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + 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)) } - relation_ids566 := xs563 - _t1119 := p.parse_script() - script567 := _t1119 + relation_ids576 := xs573 + _t1139 := p.parse_script() + script577 := _t1139 p.consumeLiteral(")") - _t1120 := &pb.Algorithm{Global: relation_ids566, Body: script567} - return _t1120 + _t1140 := &pb.Algorithm{Global: relation_ids576, Body: script577} + return _t1140 } func (p *Parser) parse_script() *pb.Script { p.consumeLiteral("(") p.consumeLiteral("script") - xs568 := []*pb.Construct{} - cond569 := p.matchLookaheadLiteral("(", 0) - for cond569 { - _t1121 := p.parse_construct() - item570 := _t1121 - xs568 = append(xs568, item570) - cond569 = p.matchLookaheadLiteral("(", 0) + xs578 := []*pb.Construct{} + cond579 := p.matchLookaheadLiteral("(", 0) + for cond579 { + _t1141 := p.parse_construct() + item580 := _t1141 + xs578 = append(xs578, item580) + cond579 = p.matchLookaheadLiteral("(", 0) } - constructs571 := xs568 + constructs581 := xs578 p.consumeLiteral(")") - _t1122 := &pb.Script{Constructs: constructs571} - return _t1122 + _t1142 := &pb.Script{Constructs: constructs581} + return _t1142 } func (p *Parser) parse_construct() *pb.Construct { - var _t1123 int64 + var _t1143 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1124 int64 + var _t1144 int64 if p.matchLookaheadLiteral("upsert", 1) { - _t1124 = 1 + _t1144 = 1 } else { - var _t1125 int64 + var _t1145 int64 if p.matchLookaheadLiteral("monus", 1) { - _t1125 = 1 + _t1145 = 1 } else { - var _t1126 int64 + var _t1146 int64 if p.matchLookaheadLiteral("monoid", 1) { - _t1126 = 1 + _t1146 = 1 } else { - var _t1127 int64 + var _t1147 int64 if p.matchLookaheadLiteral("loop", 1) { - _t1127 = 0 + _t1147 = 0 } else { - var _t1128 int64 + var _t1148 int64 if p.matchLookaheadLiteral("break", 1) { - _t1128 = 1 + _t1148 = 1 } else { - var _t1129 int64 + var _t1149 int64 if p.matchLookaheadLiteral("assign", 1) { - _t1129 = 1 + _t1149 = 1 } else { - _t1129 = -1 + _t1149 = -1 } - _t1128 = _t1129 + _t1148 = _t1149 } - _t1127 = _t1128 + _t1147 = _t1148 } - _t1126 = _t1127 + _t1146 = _t1147 } - _t1125 = _t1126 + _t1145 = _t1146 } - _t1124 = _t1125 + _t1144 = _t1145 } - _t1123 = _t1124 + _t1143 = _t1144 } else { - _t1123 = -1 - } - prediction572 := _t1123 - var _t1130 *pb.Construct - if prediction572 == 1 { - _t1131 := p.parse_instruction() - instruction574 := _t1131 - _t1132 := &pb.Construct{} - _t1132.ConstructType = &pb.Construct_Instruction{Instruction: instruction574} - _t1130 = _t1132 + _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 } else { - var _t1133 *pb.Construct - if prediction572 == 0 { - _t1134 := p.parse_loop() - loop573 := _t1134 - _t1135 := &pb.Construct{} - _t1135.ConstructType = &pb.Construct_Loop{Loop: loop573} - _t1133 = _t1135 + 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 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in construct", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1130 = _t1133 + _t1150 = _t1153 } - return _t1130 + return _t1150 } func (p *Parser) parse_loop() *pb.Loop { p.consumeLiteral("(") p.consumeLiteral("loop") - _t1136 := p.parse_init() - init575 := _t1136 - _t1137 := p.parse_script() - script576 := _t1137 + _t1156 := p.parse_init() + init585 := _t1156 + _t1157 := p.parse_script() + script586 := _t1157 p.consumeLiteral(")") - _t1138 := &pb.Loop{Init: init575, Body: script576} - return _t1138 + _t1158 := &pb.Loop{Init: init585, Body: script586} + return _t1158 } func (p *Parser) parse_init() []*pb.Instruction { p.consumeLiteral("(") p.consumeLiteral("init") - xs577 := []*pb.Instruction{} - cond578 := p.matchLookaheadLiteral("(", 0) - for cond578 { - _t1139 := p.parse_instruction() - item579 := _t1139 - xs577 = append(xs577, item579) - cond578 = p.matchLookaheadLiteral("(", 0) + xs587 := []*pb.Instruction{} + cond588 := p.matchLookaheadLiteral("(", 0) + for cond588 { + _t1159 := p.parse_instruction() + item589 := _t1159 + xs587 = append(xs587, item589) + cond588 = p.matchLookaheadLiteral("(", 0) } - instructions580 := xs577 + instructions590 := xs587 p.consumeLiteral(")") - return instructions580 + return instructions590 } func (p *Parser) parse_instruction() *pb.Instruction { - var _t1140 int64 + var _t1160 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1141 int64 + var _t1161 int64 if p.matchLookaheadLiteral("upsert", 1) { - _t1141 = 1 + _t1161 = 1 } else { - var _t1142 int64 + var _t1162 int64 if p.matchLookaheadLiteral("monus", 1) { - _t1142 = 4 + _t1162 = 4 } else { - var _t1143 int64 + var _t1163 int64 if p.matchLookaheadLiteral("monoid", 1) { - _t1143 = 3 + _t1163 = 3 } else { - var _t1144 int64 + var _t1164 int64 if p.matchLookaheadLiteral("break", 1) { - _t1144 = 2 + _t1164 = 2 } else { - var _t1145 int64 + var _t1165 int64 if p.matchLookaheadLiteral("assign", 1) { - _t1145 = 0 + _t1165 = 0 } else { - _t1145 = -1 + _t1165 = -1 } - _t1144 = _t1145 + _t1164 = _t1165 } - _t1143 = _t1144 + _t1163 = _t1164 } - _t1142 = _t1143 + _t1162 = _t1163 } - _t1141 = _t1142 + _t1161 = _t1162 } - _t1140 = _t1141 + _t1160 = _t1161 } else { - _t1140 = -1 - } - prediction581 := _t1140 - var _t1146 *pb.Instruction - if prediction581 == 4 { - _t1147 := p.parse_monus_def() - monus_def586 := _t1147 - _t1148 := &pb.Instruction{} - _t1148.InstrType = &pb.Instruction_MonusDef{MonusDef: monus_def586} - _t1146 = _t1148 + _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 } else { - var _t1149 *pb.Instruction - if prediction581 == 3 { - _t1150 := p.parse_monoid_def() - monoid_def585 := _t1150 - _t1151 := &pb.Instruction{} - _t1151.InstrType = &pb.Instruction_MonoidDef{MonoidDef: monoid_def585} - _t1149 = _t1151 + 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 } else { - var _t1152 *pb.Instruction - if prediction581 == 2 { - _t1153 := p.parse_break() - break584 := _t1153 - _t1154 := &pb.Instruction{} - _t1154.InstrType = &pb.Instruction_Break{Break: break584} - _t1152 = _t1154 + 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 } else { - var _t1155 *pb.Instruction - if prediction581 == 1 { - _t1156 := p.parse_upsert() - upsert583 := _t1156 - _t1157 := &pb.Instruction{} - _t1157.InstrType = &pb.Instruction_Upsert{Upsert: upsert583} - _t1155 = _t1157 + 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 } else { - var _t1158 *pb.Instruction - if prediction581 == 0 { - _t1159 := p.parse_assign() - assign582 := _t1159 - _t1160 := &pb.Instruction{} - _t1160.InstrType = &pb.Instruction_Assign{Assign: assign582} - _t1158 = _t1160 + 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 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in instruction", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1155 = _t1158 + _t1175 = _t1178 } - _t1152 = _t1155 + _t1172 = _t1175 } - _t1149 = _t1152 + _t1169 = _t1172 } - _t1146 = _t1149 + _t1166 = _t1169 } - return _t1146 + return _t1166 } func (p *Parser) parse_assign() *pb.Assign { p.consumeLiteral("(") p.consumeLiteral("assign") - _t1161 := p.parse_relation_id() - relation_id587 := _t1161 - _t1162 := p.parse_abstraction() - abstraction588 := _t1162 - var _t1163 []*pb.Attribute + _t1181 := p.parse_relation_id() + relation_id597 := _t1181 + _t1182 := p.parse_abstraction() + abstraction598 := _t1182 + var _t1183 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1164 := p.parse_attrs() - _t1163 = _t1164 + _t1184 := p.parse_attrs() + _t1183 = _t1184 } - attrs589 := _t1163 + attrs599 := _t1183 p.consumeLiteral(")") - _t1165 := attrs589 - if attrs589 == nil { - _t1165 = []*pb.Attribute{} + _t1185 := attrs599 + if attrs599 == nil { + _t1185 = []*pb.Attribute{} } - _t1166 := &pb.Assign{Name: relation_id587, Body: abstraction588, Attrs: _t1165} - return _t1166 + _t1186 := &pb.Assign{Name: relation_id597, Body: abstraction598, Attrs: _t1185} + return _t1186 } func (p *Parser) parse_upsert() *pb.Upsert { p.consumeLiteral("(") p.consumeLiteral("upsert") - _t1167 := p.parse_relation_id() - relation_id590 := _t1167 - _t1168 := p.parse_abstraction_with_arity() - abstraction_with_arity591 := _t1168 - var _t1169 []*pb.Attribute + _t1187 := p.parse_relation_id() + relation_id600 := _t1187 + _t1188 := p.parse_abstraction_with_arity() + abstraction_with_arity601 := _t1188 + var _t1189 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1170 := p.parse_attrs() - _t1169 = _t1170 + _t1190 := p.parse_attrs() + _t1189 = _t1190 } - attrs592 := _t1169 + attrs602 := _t1189 p.consumeLiteral(")") - _t1171 := attrs592 - if attrs592 == nil { - _t1171 = []*pb.Attribute{} + _t1191 := attrs602 + if attrs602 == nil { + _t1191 = []*pb.Attribute{} } - _t1172 := &pb.Upsert{Name: relation_id590, Body: abstraction_with_arity591[0].(*pb.Abstraction), Attrs: _t1171, ValueArity: abstraction_with_arity591[1].(int64)} - return _t1172 + _t1192 := &pb.Upsert{Name: relation_id600, Body: abstraction_with_arity601[0].(*pb.Abstraction), Attrs: _t1191, ValueArity: abstraction_with_arity601[1].(int64)} + return _t1192 } func (p *Parser) parse_abstraction_with_arity() []interface{} { p.consumeLiteral("(") - _t1173 := p.parse_bindings() - bindings593 := _t1173 - _t1174 := p.parse_formula() - formula594 := _t1174 + _t1193 := p.parse_bindings() + bindings603 := _t1193 + _t1194 := p.parse_formula() + formula604 := _t1194 p.consumeLiteral(")") - _t1175 := &pb.Abstraction{Vars: listConcat(bindings593[0].([]*pb.Binding), bindings593[1].([]*pb.Binding)), Value: formula594} - return []interface{}{_t1175, int64(len(bindings593[1].([]*pb.Binding)))} + _t1195 := &pb.Abstraction{Vars: listConcat(bindings603[0].([]*pb.Binding), bindings603[1].([]*pb.Binding)), Value: formula604} + return []interface{}{_t1195, int64(len(bindings603[1].([]*pb.Binding)))} } func (p *Parser) parse_break() *pb.Break { p.consumeLiteral("(") p.consumeLiteral("break") - _t1176 := p.parse_relation_id() - relation_id595 := _t1176 - _t1177 := p.parse_abstraction() - abstraction596 := _t1177 - var _t1178 []*pb.Attribute + _t1196 := p.parse_relation_id() + relation_id605 := _t1196 + _t1197 := p.parse_abstraction() + abstraction606 := _t1197 + var _t1198 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1179 := p.parse_attrs() - _t1178 = _t1179 + _t1199 := p.parse_attrs() + _t1198 = _t1199 } - attrs597 := _t1178 + attrs607 := _t1198 p.consumeLiteral(")") - _t1180 := attrs597 - if attrs597 == nil { - _t1180 = []*pb.Attribute{} + _t1200 := attrs607 + if attrs607 == nil { + _t1200 = []*pb.Attribute{} } - _t1181 := &pb.Break{Name: relation_id595, Body: abstraction596, Attrs: _t1180} - return _t1181 + _t1201 := &pb.Break{Name: relation_id605, Body: abstraction606, Attrs: _t1200} + return _t1201 } func (p *Parser) parse_monoid_def() *pb.MonoidDef { p.consumeLiteral("(") p.consumeLiteral("monoid") - _t1182 := p.parse_monoid() - monoid598 := _t1182 - _t1183 := p.parse_relation_id() - relation_id599 := _t1183 - _t1184 := p.parse_abstraction_with_arity() - abstraction_with_arity600 := _t1184 - var _t1185 []*pb.Attribute + _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 if p.matchLookaheadLiteral("(", 0) { - _t1186 := p.parse_attrs() - _t1185 = _t1186 + _t1206 := p.parse_attrs() + _t1205 = _t1206 } - attrs601 := _t1185 + attrs611 := _t1205 p.consumeLiteral(")") - _t1187 := attrs601 - if attrs601 == nil { - _t1187 = []*pb.Attribute{} + _t1207 := attrs611 + if attrs611 == nil { + _t1207 = []*pb.Attribute{} } - _t1188 := &pb.MonoidDef{Monoid: monoid598, Name: relation_id599, Body: abstraction_with_arity600[0].(*pb.Abstraction), Attrs: _t1187, ValueArity: abstraction_with_arity600[1].(int64)} - return _t1188 + _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 } func (p *Parser) parse_monoid() *pb.Monoid { - var _t1189 int64 + var _t1209 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1190 int64 + var _t1210 int64 if p.matchLookaheadLiteral("sum", 1) { - _t1190 = 3 + _t1210 = 3 } else { - var _t1191 int64 + var _t1211 int64 if p.matchLookaheadLiteral("or", 1) { - _t1191 = 0 + _t1211 = 0 } else { - var _t1192 int64 + var _t1212 int64 if p.matchLookaheadLiteral("min", 1) { - _t1192 = 1 + _t1212 = 1 } else { - var _t1193 int64 + var _t1213 int64 if p.matchLookaheadLiteral("max", 1) { - _t1193 = 2 + _t1213 = 2 } else { - _t1193 = -1 + _t1213 = -1 } - _t1192 = _t1193 + _t1212 = _t1213 } - _t1191 = _t1192 + _t1211 = _t1212 } - _t1190 = _t1191 + _t1210 = _t1211 } - _t1189 = _t1190 + _t1209 = _t1210 } else { - _t1189 = -1 - } - prediction602 := _t1189 - var _t1194 *pb.Monoid - if prediction602 == 3 { - _t1195 := p.parse_sum_monoid() - sum_monoid606 := _t1195 - _t1196 := &pb.Monoid{} - _t1196.Value = &pb.Monoid_SumMonoid{SumMonoid: sum_monoid606} - _t1194 = _t1196 + _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 } else { - var _t1197 *pb.Monoid - if prediction602 == 2 { - _t1198 := p.parse_max_monoid() - max_monoid605 := _t1198 - _t1199 := &pb.Monoid{} - _t1199.Value = &pb.Monoid_MaxMonoid{MaxMonoid: max_monoid605} - _t1197 = _t1199 + 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 } else { - var _t1200 *pb.Monoid - if prediction602 == 1 { - _t1201 := p.parse_min_monoid() - min_monoid604 := _t1201 - _t1202 := &pb.Monoid{} - _t1202.Value = &pb.Monoid_MinMonoid{MinMonoid: min_monoid604} - _t1200 = _t1202 + 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 } else { - var _t1203 *pb.Monoid - if prediction602 == 0 { - _t1204 := p.parse_or_monoid() - or_monoid603 := _t1204 - _t1205 := &pb.Monoid{} - _t1205.Value = &pb.Monoid_OrMonoid{OrMonoid: or_monoid603} - _t1203 = _t1205 + 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 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in monoid", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1200 = _t1203 + _t1220 = _t1223 } - _t1197 = _t1200 + _t1217 = _t1220 } - _t1194 = _t1197 + _t1214 = _t1217 } - return _t1194 + return _t1214 } func (p *Parser) parse_or_monoid() *pb.OrMonoid { p.consumeLiteral("(") p.consumeLiteral("or") p.consumeLiteral(")") - _t1206 := &pb.OrMonoid{} - return _t1206 + _t1226 := &pb.OrMonoid{} + return _t1226 } func (p *Parser) parse_min_monoid() *pb.MinMonoid { p.consumeLiteral("(") p.consumeLiteral("min") - _t1207 := p.parse_type() - type607 := _t1207 + _t1227 := p.parse_type() + type617 := _t1227 p.consumeLiteral(")") - _t1208 := &pb.MinMonoid{Type: type607} - return _t1208 + _t1228 := &pb.MinMonoid{Type: type617} + return _t1228 } func (p *Parser) parse_max_monoid() *pb.MaxMonoid { p.consumeLiteral("(") p.consumeLiteral("max") - _t1209 := p.parse_type() - type608 := _t1209 + _t1229 := p.parse_type() + type618 := _t1229 p.consumeLiteral(")") - _t1210 := &pb.MaxMonoid{Type: type608} - return _t1210 + _t1230 := &pb.MaxMonoid{Type: type618} + return _t1230 } func (p *Parser) parse_sum_monoid() *pb.SumMonoid { p.consumeLiteral("(") p.consumeLiteral("sum") - _t1211 := p.parse_type() - type609 := _t1211 + _t1231 := p.parse_type() + type619 := _t1231 p.consumeLiteral(")") - _t1212 := &pb.SumMonoid{Type: type609} - return _t1212 + _t1232 := &pb.SumMonoid{Type: type619} + return _t1232 } func (p *Parser) parse_monus_def() *pb.MonusDef { p.consumeLiteral("(") p.consumeLiteral("monus") - _t1213 := p.parse_monoid() - monoid610 := _t1213 - _t1214 := p.parse_relation_id() - relation_id611 := _t1214 - _t1215 := p.parse_abstraction_with_arity() - abstraction_with_arity612 := _t1215 - var _t1216 []*pb.Attribute + _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 if p.matchLookaheadLiteral("(", 0) { - _t1217 := p.parse_attrs() - _t1216 = _t1217 + _t1237 := p.parse_attrs() + _t1236 = _t1237 } - attrs613 := _t1216 + attrs623 := _t1236 p.consumeLiteral(")") - _t1218 := attrs613 - if attrs613 == nil { - _t1218 = []*pb.Attribute{} + _t1238 := attrs623 + if attrs623 == nil { + _t1238 = []*pb.Attribute{} } - _t1219 := &pb.MonusDef{Monoid: monoid610, Name: relation_id611, Body: abstraction_with_arity612[0].(*pb.Abstraction), Attrs: _t1218, ValueArity: abstraction_with_arity612[1].(int64)} - return _t1219 + _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 } func (p *Parser) parse_constraint() *pb.Constraint { p.consumeLiteral("(") p.consumeLiteral("functional_dependency") - _t1220 := p.parse_relation_id() - relation_id614 := _t1220 - _t1221 := p.parse_abstraction() - abstraction615 := _t1221 - _t1222 := p.parse_functional_dependency_keys() - functional_dependency_keys616 := _t1222 - _t1223 := p.parse_functional_dependency_values() - functional_dependency_values617 := _t1223 + _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 p.consumeLiteral(")") - _t1224 := &pb.FunctionalDependency{Guard: abstraction615, Keys: functional_dependency_keys616, Values: functional_dependency_values617} - _t1225 := &pb.Constraint{Name: relation_id614} - _t1225.ConstraintType = &pb.Constraint_FunctionalDependency{FunctionalDependency: _t1224} - return _t1225 + _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 } func (p *Parser) parse_functional_dependency_keys() []*pb.Var { p.consumeLiteral("(") p.consumeLiteral("keys") - xs618 := []*pb.Var{} - cond619 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond619 { - _t1226 := p.parse_var() - item620 := _t1226 - xs618 = append(xs618, item620) - cond619 = p.matchLookaheadTerminal("SYMBOL", 0) + 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) } - vars621 := xs618 + vars631 := xs628 p.consumeLiteral(")") - return vars621 + return vars631 } func (p *Parser) parse_functional_dependency_values() []*pb.Var { p.consumeLiteral("(") p.consumeLiteral("values") - xs622 := []*pb.Var{} - cond623 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond623 { - _t1227 := p.parse_var() - item624 := _t1227 - xs622 = append(xs622, item624) - cond623 = p.matchLookaheadTerminal("SYMBOL", 0) + 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) } - vars625 := xs622 + vars635 := xs632 p.consumeLiteral(")") - return vars625 + return vars635 } func (p *Parser) parse_data() *pb.Data { - var _t1228 int64 + var _t1248 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1229 int64 + var _t1249 int64 if p.matchLookaheadLiteral("rel_edb", 1) { - _t1229 = 0 + _t1249 = 0 } else { - var _t1230 int64 + var _t1250 int64 if p.matchLookaheadLiteral("csv_data", 1) { - _t1230 = 2 + _t1250 = 2 } else { - var _t1231 int64 + var _t1251 int64 if p.matchLookaheadLiteral("betree_relation", 1) { - _t1231 = 1 + _t1251 = 1 } else { - _t1231 = -1 + _t1251 = -1 } - _t1230 = _t1231 + _t1250 = _t1251 } - _t1229 = _t1230 + _t1249 = _t1250 } - _t1228 = _t1229 + _t1248 = _t1249 } else { - _t1228 = -1 - } - prediction626 := _t1228 - var _t1232 *pb.Data - if prediction626 == 2 { - _t1233 := p.parse_csv_data() - csv_data629 := _t1233 - _t1234 := &pb.Data{} - _t1234.DataType = &pb.Data_CsvData{CsvData: csv_data629} - _t1232 = _t1234 + _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 } else { - var _t1235 *pb.Data - if prediction626 == 1 { - _t1236 := p.parse_betree_relation() - betree_relation628 := _t1236 - _t1237 := &pb.Data{} - _t1237.DataType = &pb.Data_BetreeRelation{BetreeRelation: betree_relation628} - _t1235 = _t1237 + 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 } else { - var _t1238 *pb.Data - if prediction626 == 0 { - _t1239 := p.parse_rel_edb() - rel_edb627 := _t1239 - _t1240 := &pb.Data{} - _t1240.DataType = &pb.Data_RelEdb{RelEdb: rel_edb627} - _t1238 = _t1240 + var _t1258 *pb.Data + if prediction636 == 0 { + _t1259 := p.parse_rel_edb() + rel_edb637 := _t1259 + _t1260 := &pb.Data{} + _t1260.DataType = &pb.Data_RelEdb{RelEdb: rel_edb637} + _t1258 = _t1260 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in data", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1235 = _t1238 + _t1255 = _t1258 } - _t1232 = _t1235 + _t1252 = _t1255 } - return _t1232 + return _t1252 } func (p *Parser) parse_rel_edb() *pb.RelEDB { p.consumeLiteral("(") p.consumeLiteral("rel_edb") - _t1241 := p.parse_relation_id() - relation_id630 := _t1241 - _t1242 := p.parse_rel_edb_path() - rel_edb_path631 := _t1242 - _t1243 := p.parse_rel_edb_types() - rel_edb_types632 := _t1243 + _t1261 := p.parse_relation_id() + relation_id640 := _t1261 + _t1262 := p.parse_rel_edb_path() + rel_edb_path641 := _t1262 + _t1263 := p.parse_rel_edb_types() + rel_edb_types642 := _t1263 p.consumeLiteral(")") - _t1244 := &pb.RelEDB{TargetId: relation_id630, Path: rel_edb_path631, Types: rel_edb_types632} - return _t1244 + _t1264 := &pb.RelEDB{TargetId: relation_id640, Path: rel_edb_path641, Types: rel_edb_types642} + return _t1264 } func (p *Parser) parse_rel_edb_path() []string { p.consumeLiteral("[") - xs633 := []string{} - cond634 := p.matchLookaheadTerminal("STRING", 0) - for cond634 { - item635 := p.consumeTerminal("STRING").Value.str - xs633 = append(xs633, item635) - cond634 = p.matchLookaheadTerminal("STRING", 0) - } - strings636 := xs633 + 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 p.consumeLiteral("]") - return strings636 + return strings646 } func (p *Parser) parse_rel_edb_types() []*pb.Type { p.consumeLiteral("[") - xs637 := []*pb.Type{} - cond638 := ((((((((((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 cond638 { - _t1245 := p.parse_type() - item639 := _t1245 - xs637 = append(xs637, item639) - cond638 = ((((((((((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)) - } - types640 := xs637 + 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 p.consumeLiteral("]") - return types640 + return types650 } func (p *Parser) parse_betree_relation() *pb.BeTreeRelation { p.consumeLiteral("(") p.consumeLiteral("betree_relation") - _t1246 := p.parse_relation_id() - relation_id641 := _t1246 - _t1247 := p.parse_betree_info() - betree_info642 := _t1247 + _t1266 := p.parse_relation_id() + relation_id651 := _t1266 + _t1267 := p.parse_betree_info() + betree_info652 := _t1267 p.consumeLiteral(")") - _t1248 := &pb.BeTreeRelation{Name: relation_id641, RelationInfo: betree_info642} - return _t1248 + _t1268 := &pb.BeTreeRelation{Name: relation_id651, RelationInfo: betree_info652} + return _t1268 } func (p *Parser) parse_betree_info() *pb.BeTreeInfo { p.consumeLiteral("(") p.consumeLiteral("betree_info") - _t1249 := p.parse_betree_info_key_types() - betree_info_key_types643 := _t1249 - _t1250 := p.parse_betree_info_value_types() - betree_info_value_types644 := _t1250 - _t1251 := p.parse_config_dict() - config_dict645 := _t1251 - p.consumeLiteral(")") - _t1252 := p.construct_betree_info(betree_info_key_types643, betree_info_value_types644, config_dict645) - return _t1252 + _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 } func (p *Parser) parse_betree_info_key_types() []*pb.Type { p.consumeLiteral("(") p.consumeLiteral("key_types") - xs646 := []*pb.Type{} - cond647 := ((((((((((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 cond647 { - _t1253 := p.parse_type() - item648 := _t1253 - xs646 = append(xs646, item648) - cond647 = ((((((((((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)) + 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)) } - types649 := xs646 + types659 := xs656 p.consumeLiteral(")") - return types649 + return types659 } func (p *Parser) parse_betree_info_value_types() []*pb.Type { p.consumeLiteral("(") p.consumeLiteral("value_types") - xs650 := []*pb.Type{} - cond651 := ((((((((((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 cond651 { - _t1254 := p.parse_type() - item652 := _t1254 - xs650 = append(xs650, item652) - cond651 = ((((((((((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)) + 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)) } - types653 := xs650 + types663 := xs660 p.consumeLiteral(")") - return types653 + return types663 } func (p *Parser) parse_csv_data() *pb.CSVData { p.consumeLiteral("(") p.consumeLiteral("csv_data") - _t1255 := p.parse_csvlocator() - csvlocator654 := _t1255 - _t1256 := p.parse_csv_config() - csv_config655 := _t1256 - _t1257 := p.parse_csv_columns() - csv_columns656 := _t1257 - _t1258 := p.parse_csv_asof() - csv_asof657 := _t1258 + _t1275 := p.parse_csvlocator() + csvlocator664 := _t1275 + _t1276 := p.parse_csv_config() + csv_config665 := _t1276 + _t1277 := p.parse_csv_columns() + csv_columns666 := _t1277 + _t1278 := p.parse_csv_asof() + csv_asof667 := _t1278 p.consumeLiteral(")") - _t1259 := &pb.CSVData{Locator: csvlocator654, Config: csv_config655, Columns: csv_columns656, Asof: csv_asof657} - return _t1259 + _t1279 := &pb.CSVData{Locator: csvlocator664, Config: csv_config665, Columns: csv_columns666, Asof: csv_asof667} + return _t1279 } func (p *Parser) parse_csvlocator() *pb.CSVLocator { p.consumeLiteral("(") p.consumeLiteral("csv_locator") - var _t1260 []string + var _t1280 []string if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("paths", 1)) { - _t1261 := p.parse_csv_locator_paths() - _t1260 = _t1261 + _t1281 := p.parse_csv_locator_paths() + _t1280 = _t1281 } - csv_locator_paths658 := _t1260 - var _t1262 *string + csv_locator_paths668 := _t1280 + var _t1282 *string if p.matchLookaheadLiteral("(", 0) { - _t1263 := p.parse_csv_locator_inline_data() - _t1262 = ptr(_t1263) + _t1283 := p.parse_csv_locator_inline_data() + _t1282 = ptr(_t1283) } - csv_locator_inline_data659 := _t1262 + csv_locator_inline_data669 := _t1282 p.consumeLiteral(")") - _t1264 := csv_locator_paths658 - if csv_locator_paths658 == nil { - _t1264 = []string{} + _t1284 := csv_locator_paths668 + if csv_locator_paths668 == nil { + _t1284 = []string{} } - _t1265 := &pb.CSVLocator{Paths: _t1264, InlineData: []byte(deref(csv_locator_inline_data659, ""))} - return _t1265 + _t1285 := &pb.CSVLocator{Paths: _t1284, InlineData: []byte(deref(csv_locator_inline_data669, ""))} + return _t1285 } func (p *Parser) parse_csv_locator_paths() []string { p.consumeLiteral("(") p.consumeLiteral("paths") - xs660 := []string{} - cond661 := p.matchLookaheadTerminal("STRING", 0) - for cond661 { - item662 := p.consumeTerminal("STRING").Value.str - xs660 = append(xs660, item662) - cond661 = p.matchLookaheadTerminal("STRING", 0) + xs670 := []string{} + cond671 := p.matchLookaheadTerminal("STRING", 0) + for cond671 { + item672 := p.consumeTerminal("STRING").Value.str + xs670 = append(xs670, item672) + cond671 = p.matchLookaheadTerminal("STRING", 0) } - strings663 := xs660 + strings673 := xs670 p.consumeLiteral(")") - return strings663 + return strings673 } func (p *Parser) parse_csv_locator_inline_data() string { p.consumeLiteral("(") p.consumeLiteral("inline_data") - string664 := p.consumeTerminal("STRING").Value.str + string674 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string664 + return string674 } func (p *Parser) parse_csv_config() *pb.CSVConfig { p.consumeLiteral("(") p.consumeLiteral("csv_config") - _t1266 := p.parse_config_dict() - config_dict665 := _t1266 + _t1286 := p.parse_config_dict() + config_dict675 := _t1286 p.consumeLiteral(")") - _t1267 := p.construct_csv_config(config_dict665) - return _t1267 + _t1287 := p.construct_csv_config(config_dict675) + return _t1287 } func (p *Parser) parse_csv_columns() []*pb.CSVColumn { p.consumeLiteral("(") p.consumeLiteral("columns") - xs666 := []*pb.CSVColumn{} - cond667 := p.matchLookaheadLiteral("(", 0) - for cond667 { - _t1268 := p.parse_csv_column() - item668 := _t1268 - xs666 = append(xs666, item668) - cond667 = p.matchLookaheadLiteral("(", 0) + xs676 := []*pb.CSVColumn{} + cond677 := p.matchLookaheadLiteral("(", 0) + for cond677 { + _t1288 := p.parse_csv_column() + item678 := _t1288 + xs676 = append(xs676, item678) + cond677 = p.matchLookaheadLiteral("(", 0) } - csv_columns669 := xs666 + csv_columns679 := xs676 p.consumeLiteral(")") - return csv_columns669 + return csv_columns679 } func (p *Parser) parse_csv_column() *pb.CSVColumn { p.consumeLiteral("(") p.consumeLiteral("column") - string670 := p.consumeTerminal("STRING").Value.str - _t1269 := p.parse_relation_id() - relation_id671 := _t1269 + string680 := p.consumeTerminal("STRING").Value.str + _t1289 := p.parse_relation_id() + relation_id681 := _t1289 p.consumeLiteral("[") - xs672 := []*pb.Type{} - cond673 := ((((((((((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 cond673 { - _t1270 := p.parse_type() - item674 := _t1270 - xs672 = append(xs672, item674) - cond673 = ((((((((((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)) - } - types675 := xs672 + 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 { + _t1290 := p.parse_type() + item684 := _t1290 + 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 p.consumeLiteral("]") p.consumeLiteral(")") - _t1271 := &pb.CSVColumn{ColumnName: string670, TargetId: relation_id671, Types: types675} - return _t1271 + _t1291 := &pb.CSVColumn{ColumnName: string680, TargetId: relation_id681, Types: types685} + return _t1291 } func (p *Parser) parse_csv_asof() string { p.consumeLiteral("(") p.consumeLiteral("asof") - string676 := p.consumeTerminal("STRING").Value.str + string686 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string676 + return string686 } func (p *Parser) parse_undefine() *pb.Undefine { p.consumeLiteral("(") p.consumeLiteral("undefine") - _t1272 := p.parse_fragment_id() - fragment_id677 := _t1272 + _t1292 := p.parse_fragment_id() + fragment_id687 := _t1292 p.consumeLiteral(")") - _t1273 := &pb.Undefine{FragmentId: fragment_id677} - return _t1273 + _t1293 := &pb.Undefine{FragmentId: fragment_id687} + return _t1293 } func (p *Parser) parse_context() *pb.Context { p.consumeLiteral("(") p.consumeLiteral("context") - xs678 := []*pb.RelationId{} - cond679 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - for cond679 { - _t1274 := p.parse_relation_id() - item680 := _t1274 - xs678 = append(xs678, item680) - cond679 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + xs688 := []*pb.RelationId{} + cond689 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + for cond689 { + _t1294 := p.parse_relation_id() + item690 := _t1294 + xs688 = append(xs688, item690) + cond689 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) } - relation_ids681 := xs678 + relation_ids691 := xs688 p.consumeLiteral(")") - _t1275 := &pb.Context{Relations: relation_ids681} - return _t1275 + _t1295 := &pb.Context{Relations: relation_ids691} + return _t1295 } func (p *Parser) parse_snapshot() *pb.Snapshot { p.consumeLiteral("(") p.consumeLiteral("snapshot") - _t1276 := p.parse_rel_edb_path() - rel_edb_path682 := _t1276 - _t1277 := p.parse_relation_id() - relation_id683 := _t1277 + _t1296 := p.parse_rel_edb_path() + rel_edb_path692 := _t1296 + _t1297 := p.parse_relation_id() + relation_id693 := _t1297 p.consumeLiteral(")") - _t1278 := &pb.Snapshot{DestinationPath: rel_edb_path682, SourceRelation: relation_id683} - return _t1278 + _t1298 := &pb.Snapshot{DestinationPath: rel_edb_path692, SourceRelation: relation_id693} + return _t1298 } func (p *Parser) parse_epoch_reads() []*pb.Read { p.consumeLiteral("(") p.consumeLiteral("reads") - xs684 := []*pb.Read{} - cond685 := p.matchLookaheadLiteral("(", 0) - for cond685 { - _t1279 := p.parse_read() - item686 := _t1279 - xs684 = append(xs684, item686) - cond685 = p.matchLookaheadLiteral("(", 0) + xs694 := []*pb.Read{} + cond695 := p.matchLookaheadLiteral("(", 0) + for cond695 { + _t1299 := p.parse_read() + item696 := _t1299 + xs694 = append(xs694, item696) + cond695 = p.matchLookaheadLiteral("(", 0) } - reads687 := xs684 + reads697 := xs694 p.consumeLiteral(")") - return reads687 + return reads697 } func (p *Parser) parse_read() *pb.Read { - var _t1280 int64 + var _t1300 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1281 int64 + var _t1301 int64 if p.matchLookaheadLiteral("what_if", 1) { - _t1281 = 2 + _t1301 = 2 } else { - var _t1282 int64 + var _t1302 int64 if p.matchLookaheadLiteral("output", 1) { - _t1282 = 1 + _t1302 = 1 } else { - var _t1283 int64 + var _t1303 int64 if p.matchLookaheadLiteral("export", 1) { - _t1283 = 4 + _t1303 = 4 } else { - var _t1284 int64 + var _t1304 int64 if p.matchLookaheadLiteral("demand", 1) { - _t1284 = 0 + _t1304 = 0 } else { - var _t1285 int64 + var _t1305 int64 if p.matchLookaheadLiteral("abort", 1) { - _t1285 = 3 + _t1305 = 3 } else { - _t1285 = -1 + _t1305 = -1 } - _t1284 = _t1285 + _t1304 = _t1305 } - _t1283 = _t1284 + _t1303 = _t1304 } - _t1282 = _t1283 + _t1302 = _t1303 } - _t1281 = _t1282 + _t1301 = _t1302 } - _t1280 = _t1281 + _t1300 = _t1301 } else { - _t1280 = -1 - } - prediction688 := _t1280 - var _t1286 *pb.Read - if prediction688 == 4 { - _t1287 := p.parse_export() - export693 := _t1287 - _t1288 := &pb.Read{} - _t1288.ReadType = &pb.Read_Export{Export: export693} - _t1286 = _t1288 + _t1300 = -1 + } + prediction698 := _t1300 + var _t1306 *pb.Read + if prediction698 == 4 { + _t1307 := p.parse_export() + export703 := _t1307 + _t1308 := &pb.Read{} + _t1308.ReadType = &pb.Read_Export{Export: export703} + _t1306 = _t1308 } else { - var _t1289 *pb.Read - if prediction688 == 3 { - _t1290 := p.parse_abort() - abort692 := _t1290 - _t1291 := &pb.Read{} - _t1291.ReadType = &pb.Read_Abort{Abort: abort692} - _t1289 = _t1291 + var _t1309 *pb.Read + if prediction698 == 3 { + _t1310 := p.parse_abort() + abort702 := _t1310 + _t1311 := &pb.Read{} + _t1311.ReadType = &pb.Read_Abort{Abort: abort702} + _t1309 = _t1311 } else { - var _t1292 *pb.Read - if prediction688 == 2 { - _t1293 := p.parse_what_if() - what_if691 := _t1293 - _t1294 := &pb.Read{} - _t1294.ReadType = &pb.Read_WhatIf{WhatIf: what_if691} - _t1292 = _t1294 + var _t1312 *pb.Read + if prediction698 == 2 { + _t1313 := p.parse_what_if() + what_if701 := _t1313 + _t1314 := &pb.Read{} + _t1314.ReadType = &pb.Read_WhatIf{WhatIf: what_if701} + _t1312 = _t1314 } else { - var _t1295 *pb.Read - if prediction688 == 1 { - _t1296 := p.parse_output() - output690 := _t1296 - _t1297 := &pb.Read{} - _t1297.ReadType = &pb.Read_Output{Output: output690} - _t1295 = _t1297 + var _t1315 *pb.Read + if prediction698 == 1 { + _t1316 := p.parse_output() + output700 := _t1316 + _t1317 := &pb.Read{} + _t1317.ReadType = &pb.Read_Output{Output: output700} + _t1315 = _t1317 } else { - var _t1298 *pb.Read - if prediction688 == 0 { - _t1299 := p.parse_demand() - demand689 := _t1299 - _t1300 := &pb.Read{} - _t1300.ReadType = &pb.Read_Demand{Demand: demand689} - _t1298 = _t1300 + var _t1318 *pb.Read + if prediction698 == 0 { + _t1319 := p.parse_demand() + demand699 := _t1319 + _t1320 := &pb.Read{} + _t1320.ReadType = &pb.Read_Demand{Demand: demand699} + _t1318 = _t1320 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in read", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1295 = _t1298 + _t1315 = _t1318 } - _t1292 = _t1295 + _t1312 = _t1315 } - _t1289 = _t1292 + _t1309 = _t1312 } - _t1286 = _t1289 + _t1306 = _t1309 } - return _t1286 + return _t1306 } func (p *Parser) parse_demand() *pb.Demand { p.consumeLiteral("(") p.consumeLiteral("demand") - _t1301 := p.parse_relation_id() - relation_id694 := _t1301 + _t1321 := p.parse_relation_id() + relation_id704 := _t1321 p.consumeLiteral(")") - _t1302 := &pb.Demand{RelationId: relation_id694} - return _t1302 + _t1322 := &pb.Demand{RelationId: relation_id704} + return _t1322 } func (p *Parser) parse_output() *pb.Output { p.consumeLiteral("(") p.consumeLiteral("output") - _t1303 := p.parse_name() - name695 := _t1303 - _t1304 := p.parse_relation_id() - relation_id696 := _t1304 + _t1323 := p.parse_name() + name705 := _t1323 + _t1324 := p.parse_relation_id() + relation_id706 := _t1324 p.consumeLiteral(")") - _t1305 := &pb.Output{Name: name695, RelationId: relation_id696} - return _t1305 + _t1325 := &pb.Output{Name: name705, RelationId: relation_id706} + return _t1325 } func (p *Parser) parse_what_if() *pb.WhatIf { p.consumeLiteral("(") p.consumeLiteral("what_if") - _t1306 := p.parse_name() - name697 := _t1306 - _t1307 := p.parse_epoch() - epoch698 := _t1307 + _t1326 := p.parse_name() + name707 := _t1326 + _t1327 := p.parse_epoch() + epoch708 := _t1327 p.consumeLiteral(")") - _t1308 := &pb.WhatIf{Branch: name697, Epoch: epoch698} - return _t1308 + _t1328 := &pb.WhatIf{Branch: name707, Epoch: epoch708} + return _t1328 } func (p *Parser) parse_abort() *pb.Abort { p.consumeLiteral("(") p.consumeLiteral("abort") - var _t1309 *string + var _t1329 *string if (p.matchLookaheadLiteral(":", 0) && p.matchLookaheadTerminal("SYMBOL", 1)) { - _t1310 := p.parse_name() - _t1309 = ptr(_t1310) + _t1330 := p.parse_name() + _t1329 = ptr(_t1330) } - name699 := _t1309 - _t1311 := p.parse_relation_id() - relation_id700 := _t1311 + name709 := _t1329 + _t1331 := p.parse_relation_id() + relation_id710 := _t1331 p.consumeLiteral(")") - _t1312 := &pb.Abort{Name: deref(name699, "abort"), RelationId: relation_id700} - return _t1312 + _t1332 := &pb.Abort{Name: deref(name709, "abort"), RelationId: relation_id710} + return _t1332 } func (p *Parser) parse_export() *pb.Export { p.consumeLiteral("(") p.consumeLiteral("export") - _t1313 := p.parse_export_csv_config() - export_csv_config701 := _t1313 + _t1333 := p.parse_export_csv_config() + export_csv_config711 := _t1333 p.consumeLiteral(")") - _t1314 := &pb.Export{} - _t1314.ExportConfig = &pb.Export_CsvConfig{CsvConfig: export_csv_config701} - return _t1314 + _t1334 := &pb.Export{} + _t1334.ExportConfig = &pb.Export_CsvConfig{CsvConfig: export_csv_config711} + return _t1334 } func (p *Parser) parse_export_csv_config() *pb.ExportCSVConfig { - p.consumeLiteral("(") - p.consumeLiteral("export_csv_config") - _t1315 := p.parse_export_csv_path() - export_csv_path702 := _t1315 - _t1316 := p.parse_export_csv_columns() - export_csv_columns703 := _t1316 - _t1317 := p.parse_config_dict() - config_dict704 := _t1317 - p.consumeLiteral(")") - _t1318 := p.export_csv_config(export_csv_path702, export_csv_columns703, config_dict704) - return _t1318 + var _t1335 int64 + if p.matchLookaheadLiteral("(", 0) { + var _t1336 int64 + if p.matchLookaheadLiteral("export_csv_config_v2", 1) { + _t1336 = 0 + } else { + var _t1337 int64 + if p.matchLookaheadLiteral("export_csv_config", 1) { + _t1337 = 1 + } else { + _t1337 = -1 + } + _t1336 = _t1337 + } + _t1335 = _t1336 + } else { + _t1335 = -1 + } + prediction712 := _t1335 + var _t1338 *pb.ExportCSVConfig + if prediction712 == 1 { + p.consumeLiteral("(") + p.consumeLiteral("export_csv_config") + _t1339 := p.parse_export_csv_path() + export_csv_path716 := _t1339 + _t1340 := p.parse_export_csv_columns_list() + export_csv_columns_list717 := _t1340 + _t1341 := p.parse_config_dict() + config_dict718 := _t1341 + p.consumeLiteral(")") + _t1342 := p.construct_export_csv_config(export_csv_path716, export_csv_columns_list717, config_dict718) + _t1338 = _t1342 + } else { + var _t1343 *pb.ExportCSVConfig + if prediction712 == 0 { + p.consumeLiteral("(") + p.consumeLiteral("export_csv_config_v2") + _t1344 := p.parse_export_csv_path() + export_csv_path713 := _t1344 + _t1345 := p.parse_export_csv_source() + export_csv_source714 := _t1345 + _t1346 := p.parse_csv_config() + csv_config715 := _t1346 + p.consumeLiteral(")") + _t1347 := p.construct_export_csv_config_with_source(export_csv_path713, export_csv_source714, csv_config715) + _t1343 = _t1347 + } else { + panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export_csv_config", p.lookahead(0).Type, p.lookahead(0).Value)}) + } + _t1338 = _t1343 + } + return _t1338 } func (p *Parser) parse_export_csv_path() string { p.consumeLiteral("(") p.consumeLiteral("path") - string705 := p.consumeTerminal("STRING").Value.str + string719 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string705 + return string719 } -func (p *Parser) parse_export_csv_columns() []*pb.ExportCSVColumn { - p.consumeLiteral("(") - p.consumeLiteral("columns") - xs706 := []*pb.ExportCSVColumn{} - cond707 := p.matchLookaheadLiteral("(", 0) - for cond707 { - _t1319 := p.parse_export_csv_column() - item708 := _t1319 - xs706 = append(xs706, item708) - cond707 = p.matchLookaheadLiteral("(", 0) +func (p *Parser) parse_export_csv_source() *pb.ExportCSVSource { + var _t1348 int64 + if p.matchLookaheadLiteral("(", 0) { + var _t1349 int64 + if p.matchLookaheadLiteral("table_def", 1) { + _t1349 = 1 + } else { + var _t1350 int64 + if p.matchLookaheadLiteral("gnf_columns", 1) { + _t1350 = 0 + } else { + _t1350 = -1 + } + _t1349 = _t1350 + } + _t1348 = _t1349 + } else { + _t1348 = -1 } - export_csv_columns709 := xs706 - p.consumeLiteral(")") - return export_csv_columns709 + prediction720 := _t1348 + var _t1351 *pb.ExportCSVSource + if prediction720 == 1 { + p.consumeLiteral("(") + p.consumeLiteral("table_def") + _t1352 := p.parse_relation_id() + relation_id725 := _t1352 + p.consumeLiteral(")") + _t1353 := &pb.ExportCSVSource{} + _t1353.CsvSource = &pb.ExportCSVSource_TableDef{TableDef: relation_id725} + _t1351 = _t1353 + } else { + var _t1354 *pb.ExportCSVSource + if prediction720 == 0 { + p.consumeLiteral("(") + p.consumeLiteral("gnf_columns") + xs721 := []*pb.ExportCSVColumn{} + cond722 := p.matchLookaheadLiteral("(", 0) + for cond722 { + _t1355 := p.parse_export_csv_column() + item723 := _t1355 + xs721 = append(xs721, item723) + cond722 = p.matchLookaheadLiteral("(", 0) + } + export_csv_columns724 := xs721 + p.consumeLiteral(")") + _t1356 := &pb.ExportCSVColumns{Columns: export_csv_columns724} + _t1357 := &pb.ExportCSVSource{} + _t1357.CsvSource = &pb.ExportCSVSource_GnfColumns{GnfColumns: _t1356} + _t1354 = _t1357 + } else { + panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export_csv_source", p.lookahead(0).Type, p.lookahead(0).Value)}) + } + _t1351 = _t1354 + } + return _t1351 } func (p *Parser) parse_export_csv_column() *pb.ExportCSVColumn { p.consumeLiteral("(") p.consumeLiteral("column") - string710 := p.consumeTerminal("STRING").Value.str - _t1320 := p.parse_relation_id() - relation_id711 := _t1320 + string726 := p.consumeTerminal("STRING").Value.str + _t1358 := p.parse_relation_id() + relation_id727 := _t1358 + p.consumeLiteral(")") + _t1359 := &pb.ExportCSVColumn{ColumnName: string726, ColumnData: relation_id727} + return _t1359 +} + +func (p *Parser) parse_export_csv_columns_list() []*pb.ExportCSVColumn { + p.consumeLiteral("(") + p.consumeLiteral("columns") + xs728 := []*pb.ExportCSVColumn{} + cond729 := p.matchLookaheadLiteral("(", 0) + for cond729 { + _t1360 := p.parse_export_csv_column() + item730 := _t1360 + xs728 = append(xs728, item730) + cond729 = p.matchLookaheadLiteral("(", 0) + } + export_csv_columns731 := xs728 p.consumeLiteral(")") - _t1321 := &pb.ExportCSVColumn{ColumnName: string710, ColumnData: relation_id711} - return _t1321 + return export_csv_columns731 } diff --git a/sdks/go/src/pretty.go b/sdks/go/src/pretty.go index c74c4d97..f4a4474a 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 { - _t1654 := &pb.Value{} - _t1654.Value = &pb.Value_IntValue{IntValue: int64(v)} - return _t1654 + _t1688 := &pb.Value{} + _t1688.Value = &pb.Value_IntValue{IntValue: int64(v)} + return _t1688 } func (p *PrettyPrinter) _make_value_int64(v int64) *pb.Value { - _t1655 := &pb.Value{} - _t1655.Value = &pb.Value_IntValue{IntValue: v} - return _t1655 + _t1689 := &pb.Value{} + _t1689.Value = &pb.Value_IntValue{IntValue: v} + return _t1689 } func (p *PrettyPrinter) _make_value_float64(v float64) *pb.Value { - _t1656 := &pb.Value{} - _t1656.Value = &pb.Value_FloatValue{FloatValue: v} - return _t1656 + _t1690 := &pb.Value{} + _t1690.Value = &pb.Value_FloatValue{FloatValue: v} + return _t1690 } func (p *PrettyPrinter) _make_value_string(v string) *pb.Value { - _t1657 := &pb.Value{} - _t1657.Value = &pb.Value_StringValue{StringValue: v} - return _t1657 + _t1691 := &pb.Value{} + _t1691.Value = &pb.Value_StringValue{StringValue: v} + return _t1691 } func (p *PrettyPrinter) _make_value_boolean(v bool) *pb.Value { - _t1658 := &pb.Value{} - _t1658.Value = &pb.Value_BooleanValue{BooleanValue: v} - return _t1658 + _t1692 := &pb.Value{} + _t1692.Value = &pb.Value_BooleanValue{BooleanValue: v} + return _t1692 } func (p *PrettyPrinter) _make_value_uint128(v *pb.UInt128Value) *pb.Value { - _t1659 := &pb.Value{} - _t1659.Value = &pb.Value_Uint128Value{Uint128Value: v} - return _t1659 + _t1693 := &pb.Value{} + _t1693.Value = &pb.Value_Uint128Value{Uint128Value: v} + return _t1693 } func (p *PrettyPrinter) deconstruct_configure(msg *pb.Configure) [][]interface{} { result := [][]interface{}{} if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_AUTO { - _t1660 := p._make_value_string("auto") - result = append(result, []interface{}{"ivm.maintenance_level", _t1660}) + _t1694 := p._make_value_string("auto") + result = append(result, []interface{}{"ivm.maintenance_level", _t1694}) } else { if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_ALL { - _t1661 := p._make_value_string("all") - result = append(result, []interface{}{"ivm.maintenance_level", _t1661}) + _t1695 := p._make_value_string("all") + result = append(result, []interface{}{"ivm.maintenance_level", _t1695}) } else { if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF { - _t1662 := p._make_value_string("off") - result = append(result, []interface{}{"ivm.maintenance_level", _t1662}) + _t1696 := p._make_value_string("off") + result = append(result, []interface{}{"ivm.maintenance_level", _t1696}) } } } - _t1663 := p._make_value_int64(msg.GetSemanticsVersion()) - result = append(result, []interface{}{"semantics_version", _t1663}) + _t1697 := p._make_value_int64(msg.GetSemanticsVersion()) + result = append(result, []interface{}{"semantics_version", _t1697}) return listSort(result) } func (p *PrettyPrinter) deconstruct_csv_config(msg *pb.CSVConfig) [][]interface{} { result := [][]interface{}{} - _t1664 := p._make_value_int32(msg.GetHeaderRow()) - result = append(result, []interface{}{"csv_header_row", _t1664}) - _t1665 := p._make_value_int64(msg.GetSkip()) - result = append(result, []interface{}{"csv_skip", _t1665}) + _t1698 := p._make_value_int32(msg.GetHeaderRow()) + result = append(result, []interface{}{"csv_header_row", _t1698}) + _t1699 := p._make_value_int64(msg.GetSkip()) + result = append(result, []interface{}{"csv_skip", _t1699}) if msg.GetNewLine() != "" { - _t1666 := p._make_value_string(msg.GetNewLine()) - result = append(result, []interface{}{"csv_new_line", _t1666}) - } - _t1667 := p._make_value_string(msg.GetDelimiter()) - result = append(result, []interface{}{"csv_delimiter", _t1667}) - _t1668 := p._make_value_string(msg.GetQuotechar()) - result = append(result, []interface{}{"csv_quotechar", _t1668}) - _t1669 := p._make_value_string(msg.GetEscapechar()) - result = append(result, []interface{}{"csv_escapechar", _t1669}) + _t1700 := p._make_value_string(msg.GetNewLine()) + result = append(result, []interface{}{"csv_new_line", _t1700}) + } + _t1701 := p._make_value_string(msg.GetDelimiter()) + result = append(result, []interface{}{"csv_delimiter", _t1701}) + _t1702 := p._make_value_string(msg.GetQuotechar()) + result = append(result, []interface{}{"csv_quotechar", _t1702}) + _t1703 := p._make_value_string(msg.GetEscapechar()) + result = append(result, []interface{}{"csv_escapechar", _t1703}) if msg.GetComment() != "" { - _t1670 := p._make_value_string(msg.GetComment()) - result = append(result, []interface{}{"csv_comment", _t1670}) + _t1704 := p._make_value_string(msg.GetComment()) + result = append(result, []interface{}{"csv_comment", _t1704}) } for _, missing_string := range msg.GetMissingStrings() { - _t1671 := p._make_value_string(missing_string) - result = append(result, []interface{}{"csv_missing_strings", _t1671}) - } - _t1672 := p._make_value_string(msg.GetDecimalSeparator()) - result = append(result, []interface{}{"csv_decimal_separator", _t1672}) - _t1673 := p._make_value_string(msg.GetEncoding()) - result = append(result, []interface{}{"csv_encoding", _t1673}) - _t1674 := p._make_value_string(msg.GetCompression()) - result = append(result, []interface{}{"csv_compression", _t1674}) + _t1705 := p._make_value_string(missing_string) + result = append(result, []interface{}{"csv_missing_strings", _t1705}) + } + _t1706 := p._make_value_string(msg.GetDecimalSeparator()) + result = append(result, []interface{}{"csv_decimal_separator", _t1706}) + _t1707 := p._make_value_string(msg.GetEncoding()) + result = append(result, []interface{}{"csv_encoding", _t1707}) + _t1708 := p._make_value_string(msg.GetCompression()) + result = append(result, []interface{}{"csv_compression", _t1708}) + if msg.GetPartitionSizeMb() != 0 { + _t1709 := p._make_value_int64(msg.GetPartitionSizeMb()) + result = append(result, []interface{}{"csv_partition_size_mb", _t1709}) + } return listSort(result) } func (p *PrettyPrinter) deconstruct_betree_info_config(msg *pb.BeTreeInfo) [][]interface{} { result := [][]interface{}{} - _t1675 := p._make_value_float64(msg.GetStorageConfig().GetEpsilon()) - result = append(result, []interface{}{"betree_config_epsilon", _t1675}) - _t1676 := p._make_value_int64(msg.GetStorageConfig().GetMaxPivots()) - result = append(result, []interface{}{"betree_config_max_pivots", _t1676}) - _t1677 := p._make_value_int64(msg.GetStorageConfig().GetMaxDeltas()) - result = append(result, []interface{}{"betree_config_max_deltas", _t1677}) - _t1678 := p._make_value_int64(msg.GetStorageConfig().GetMaxLeaf()) - result = append(result, []interface{}{"betree_config_max_leaf", _t1678}) + _t1710 := p._make_value_float64(msg.GetStorageConfig().GetEpsilon()) + result = append(result, []interface{}{"betree_config_epsilon", _t1710}) + _t1711 := p._make_value_int64(msg.GetStorageConfig().GetMaxPivots()) + result = append(result, []interface{}{"betree_config_max_pivots", _t1711}) + _t1712 := p._make_value_int64(msg.GetStorageConfig().GetMaxDeltas()) + result = append(result, []interface{}{"betree_config_max_deltas", _t1712}) + _t1713 := p._make_value_int64(msg.GetStorageConfig().GetMaxLeaf()) + result = append(result, []interface{}{"betree_config_max_leaf", _t1713}) if hasProtoField(msg.GetRelationLocator(), "root_pageid") { if msg.GetRelationLocator().GetRootPageid() != nil { - _t1679 := p._make_value_uint128(msg.GetRelationLocator().GetRootPageid()) - result = append(result, []interface{}{"betree_locator_root_pageid", _t1679}) + _t1714 := p._make_value_uint128(msg.GetRelationLocator().GetRootPageid()) + result = append(result, []interface{}{"betree_locator_root_pageid", _t1714}) } } if hasProtoField(msg.GetRelationLocator(), "inline_data") { if msg.GetRelationLocator().GetInlineData() != nil { - _t1680 := p._make_value_string(string(msg.GetRelationLocator().GetInlineData())) - result = append(result, []interface{}{"betree_locator_inline_data", _t1680}) + _t1715 := p._make_value_string(string(msg.GetRelationLocator().GetInlineData())) + result = append(result, []interface{}{"betree_locator_inline_data", _t1715}) } } - _t1681 := p._make_value_int64(msg.GetRelationLocator().GetElementCount()) - result = append(result, []interface{}{"betree_locator_element_count", _t1681}) - _t1682 := p._make_value_int64(msg.GetRelationLocator().GetTreeHeight()) - result = append(result, []interface{}{"betree_locator_tree_height", _t1682}) + _t1716 := p._make_value_int64(msg.GetRelationLocator().GetElementCount()) + result = append(result, []interface{}{"betree_locator_element_count", _t1716}) + _t1717 := p._make_value_int64(msg.GetRelationLocator().GetTreeHeight()) + result = append(result, []interface{}{"betree_locator_tree_height", _t1717}) return listSort(result) } func (p *PrettyPrinter) deconstruct_export_csv_config(msg *pb.ExportCSVConfig) [][]interface{} { result := [][]interface{}{} if msg.PartitionSize != nil { - _t1683 := p._make_value_int64(*msg.PartitionSize) - result = append(result, []interface{}{"partition_size", _t1683}) + _t1718 := p._make_value_int64(*msg.PartitionSize) + result = append(result, []interface{}{"partition_size", _t1718}) } if msg.Compression != nil { - _t1684 := p._make_value_string(*msg.Compression) - result = append(result, []interface{}{"compression", _t1684}) + _t1719 := p._make_value_string(*msg.Compression) + result = append(result, []interface{}{"compression", _t1719}) } if msg.SyntaxHeaderRow != nil { - _t1685 := p._make_value_boolean(*msg.SyntaxHeaderRow) - result = append(result, []interface{}{"syntax_header_row", _t1685}) + _t1720 := p._make_value_boolean(*msg.SyntaxHeaderRow) + result = append(result, []interface{}{"syntax_header_row", _t1720}) } if msg.SyntaxMissingString != nil { - _t1686 := p._make_value_string(*msg.SyntaxMissingString) - result = append(result, []interface{}{"syntax_missing_string", _t1686}) + _t1721 := p._make_value_string(*msg.SyntaxMissingString) + result = append(result, []interface{}{"syntax_missing_string", _t1721}) } if msg.SyntaxDelim != nil { - _t1687 := p._make_value_string(*msg.SyntaxDelim) - result = append(result, []interface{}{"syntax_delim", _t1687}) + _t1722 := p._make_value_string(*msg.SyntaxDelim) + result = append(result, []interface{}{"syntax_delim", _t1722}) } if msg.SyntaxQuotechar != nil { - _t1688 := p._make_value_string(*msg.SyntaxQuotechar) - result = append(result, []interface{}{"syntax_quotechar", _t1688}) + _t1723 := p._make_value_string(*msg.SyntaxQuotechar) + result = append(result, []interface{}{"syntax_quotechar", _t1723}) } if msg.SyntaxEscapechar != nil { - _t1689 := p._make_value_string(*msg.SyntaxEscapechar) - result = append(result, []interface{}{"syntax_escapechar", _t1689}) + _t1724 := p._make_value_string(*msg.SyntaxEscapechar) + result = append(result, []interface{}{"syntax_escapechar", _t1724}) } 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 _t1690 interface{} + var _t1725 interface{} if name == nil { return p.relationIdToUint128(msg) } - _ = _t1690 + _ = _t1725 return nil } @@ -491,48 +495,48 @@ func (p *PrettyPrinter) deconstruct_bindings_with_arity(abs *pb.Abstraction, val // --- Pretty-print methods --- func (p *PrettyPrinter) pretty_transaction(msg *pb.Transaction) interface{} { - flat638 := p.tryFlat(msg, func() { p.pretty_transaction(msg) }) - if flat638 != nil { - p.write(*flat638) + flat650 := p.tryFlat(msg, func() { p.pretty_transaction(msg) }) + if flat650 != nil { + p.write(*flat650) return nil } else { - _t1258 := func(_dollar_dollar *pb.Transaction) []interface{} { - var _t1259 *pb.Configure + _t1282 := func(_dollar_dollar *pb.Transaction) []interface{} { + var _t1283 *pb.Configure if hasProtoField(_dollar_dollar, "configure") { - _t1259 = _dollar_dollar.GetConfigure() + _t1283 = _dollar_dollar.GetConfigure() } - var _t1260 *pb.Sync + var _t1284 *pb.Sync if hasProtoField(_dollar_dollar, "sync") { - _t1260 = _dollar_dollar.GetSync() + _t1284 = _dollar_dollar.GetSync() } - return []interface{}{_t1259, _t1260, _dollar_dollar.GetEpochs()} + return []interface{}{_t1283, _t1284, _dollar_dollar.GetEpochs()} } - _t1261 := _t1258(msg) - fields629 := _t1261 - unwrapped_fields630 := fields629 + _t1285 := _t1282(msg) + fields641 := _t1285 + unwrapped_fields642 := fields641 p.write("(") p.write("transaction") p.indentSexp() - field631 := unwrapped_fields630[0].(*pb.Configure) - if field631 != nil { + field643 := unwrapped_fields642[0].(*pb.Configure) + if field643 != nil { p.newline() - opt_val632 := field631 - p.pretty_configure(opt_val632) + opt_val644 := field643 + p.pretty_configure(opt_val644) } - field633 := unwrapped_fields630[1].(*pb.Sync) - if field633 != nil { + field645 := unwrapped_fields642[1].(*pb.Sync) + if field645 != nil { p.newline() - opt_val634 := field633 - p.pretty_sync(opt_val634) + opt_val646 := field645 + p.pretty_sync(opt_val646) } - field635 := unwrapped_fields630[2].([]*pb.Epoch) - if !(len(field635) == 0) { + field647 := unwrapped_fields642[2].([]*pb.Epoch) + if !(len(field647) == 0) { p.newline() - for i637, elem636 := range field635 { - if (i637 > 0) { + for i649, elem648 := range field647 { + if (i649 > 0) { p.newline() } - p.pretty_epoch(elem636) + p.pretty_epoch(elem648) } } p.dedent() @@ -542,23 +546,23 @@ func (p *PrettyPrinter) pretty_transaction(msg *pb.Transaction) interface{} { } func (p *PrettyPrinter) pretty_configure(msg *pb.Configure) interface{} { - flat641 := p.tryFlat(msg, func() { p.pretty_configure(msg) }) - if flat641 != nil { - p.write(*flat641) + flat653 := p.tryFlat(msg, func() { p.pretty_configure(msg) }) + if flat653 != nil { + p.write(*flat653) return nil } else { - _t1262 := func(_dollar_dollar *pb.Configure) [][]interface{} { - _t1263 := p.deconstruct_configure(_dollar_dollar) - return _t1263 + _t1286 := func(_dollar_dollar *pb.Configure) [][]interface{} { + _t1287 := p.deconstruct_configure(_dollar_dollar) + return _t1287 } - _t1264 := _t1262(msg) - fields639 := _t1264 - unwrapped_fields640 := fields639 + _t1288 := _t1286(msg) + fields651 := _t1288 + unwrapped_fields652 := fields651 p.write("(") p.write("configure") p.indentSexp() p.newline() - p.pretty_config_dict(unwrapped_fields640) + p.pretty_config_dict(unwrapped_fields652) p.dedent() p.write(")") } @@ -566,21 +570,21 @@ func (p *PrettyPrinter) pretty_configure(msg *pb.Configure) interface{} { } func (p *PrettyPrinter) pretty_config_dict(msg [][]interface{}) interface{} { - flat645 := p.tryFlat(msg, func() { p.pretty_config_dict(msg) }) - if flat645 != nil { - p.write(*flat645) + flat657 := p.tryFlat(msg, func() { p.pretty_config_dict(msg) }) + if flat657 != nil { + p.write(*flat657) return nil } else { - fields642 := msg + fields654 := msg p.write("{") p.indent() - if !(len(fields642) == 0) { + if !(len(fields654) == 0) { p.newline() - for i644, elem643 := range fields642 { - if (i644 > 0) { + for i656, elem655 := range fields654 { + if (i656 > 0) { p.newline() } - p.pretty_config_key_value(elem643) + p.pretty_config_key_value(elem655) } } p.dedent() @@ -590,152 +594,152 @@ func (p *PrettyPrinter) pretty_config_dict(msg [][]interface{}) interface{} { } func (p *PrettyPrinter) pretty_config_key_value(msg []interface{}) interface{} { - flat650 := p.tryFlat(msg, func() { p.pretty_config_key_value(msg) }) - if flat650 != nil { - p.write(*flat650) + flat662 := p.tryFlat(msg, func() { p.pretty_config_key_value(msg) }) + if flat662 != nil { + p.write(*flat662) return nil } else { - _t1265 := func(_dollar_dollar []interface{}) []interface{} { + _t1289 := func(_dollar_dollar []interface{}) []interface{} { return []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(*pb.Value)} } - _t1266 := _t1265(msg) - fields646 := _t1266 - unwrapped_fields647 := fields646 + _t1290 := _t1289(msg) + fields658 := _t1290 + unwrapped_fields659 := fields658 p.write(":") - field648 := unwrapped_fields647[0].(string) - p.write(field648) + field660 := unwrapped_fields659[0].(string) + p.write(field660) p.write(" ") - field649 := unwrapped_fields647[1].(*pb.Value) - p.pretty_value(field649) + field661 := unwrapped_fields659[1].(*pb.Value) + p.pretty_value(field661) } return nil } func (p *PrettyPrinter) pretty_value(msg *pb.Value) interface{} { - flat670 := p.tryFlat(msg, func() { p.pretty_value(msg) }) - if flat670 != nil { - p.write(*flat670) + flat682 := p.tryFlat(msg, func() { p.pretty_value(msg) }) + if flat682 != nil { + p.write(*flat682) return nil } else { - _t1267 := func(_dollar_dollar *pb.Value) *pb.DateValue { - var _t1268 *pb.DateValue + _t1291 := func(_dollar_dollar *pb.Value) *pb.DateValue { + var _t1292 *pb.DateValue if hasProtoField(_dollar_dollar, "date_value") { - _t1268 = _dollar_dollar.GetDateValue() + _t1292 = _dollar_dollar.GetDateValue() } - return _t1268 + return _t1292 } - _t1269 := _t1267(msg) - deconstruct_result668 := _t1269 - if deconstruct_result668 != nil { - unwrapped669 := deconstruct_result668 - p.pretty_date(unwrapped669) + _t1293 := _t1291(msg) + deconstruct_result680 := _t1293 + if deconstruct_result680 != nil { + unwrapped681 := deconstruct_result680 + p.pretty_date(unwrapped681) } else { - _t1270 := func(_dollar_dollar *pb.Value) *pb.DateTimeValue { - var _t1271 *pb.DateTimeValue + _t1294 := func(_dollar_dollar *pb.Value) *pb.DateTimeValue { + var _t1295 *pb.DateTimeValue if hasProtoField(_dollar_dollar, "datetime_value") { - _t1271 = _dollar_dollar.GetDatetimeValue() + _t1295 = _dollar_dollar.GetDatetimeValue() } - return _t1271 + return _t1295 } - _t1272 := _t1270(msg) - deconstruct_result666 := _t1272 - if deconstruct_result666 != nil { - unwrapped667 := deconstruct_result666 - p.pretty_datetime(unwrapped667) + _t1296 := _t1294(msg) + deconstruct_result678 := _t1296 + if deconstruct_result678 != nil { + unwrapped679 := deconstruct_result678 + p.pretty_datetime(unwrapped679) } else { - _t1273 := func(_dollar_dollar *pb.Value) *string { - var _t1274 *string + _t1297 := func(_dollar_dollar *pb.Value) *string { + var _t1298 *string if hasProtoField(_dollar_dollar, "string_value") { - _t1274 = ptr(_dollar_dollar.GetStringValue()) + _t1298 = ptr(_dollar_dollar.GetStringValue()) } - return _t1274 + return _t1298 } - _t1275 := _t1273(msg) - deconstruct_result664 := _t1275 - if deconstruct_result664 != nil { - unwrapped665 := *deconstruct_result664 - p.write(p.formatStringValue(unwrapped665)) + _t1299 := _t1297(msg) + deconstruct_result676 := _t1299 + if deconstruct_result676 != nil { + unwrapped677 := *deconstruct_result676 + p.write(p.formatStringValue(unwrapped677)) } else { - _t1276 := func(_dollar_dollar *pb.Value) *int64 { - var _t1277 *int64 + _t1300 := func(_dollar_dollar *pb.Value) *int64 { + var _t1301 *int64 if hasProtoField(_dollar_dollar, "int_value") { - _t1277 = ptr(_dollar_dollar.GetIntValue()) + _t1301 = ptr(_dollar_dollar.GetIntValue()) } - return _t1277 + return _t1301 } - _t1278 := _t1276(msg) - deconstruct_result662 := _t1278 - if deconstruct_result662 != nil { - unwrapped663 := *deconstruct_result662 - p.write(fmt.Sprintf("%d", unwrapped663)) + _t1302 := _t1300(msg) + deconstruct_result674 := _t1302 + if deconstruct_result674 != nil { + unwrapped675 := *deconstruct_result674 + p.write(fmt.Sprintf("%d", unwrapped675)) } else { - _t1279 := func(_dollar_dollar *pb.Value) *float64 { - var _t1280 *float64 + _t1303 := func(_dollar_dollar *pb.Value) *float64 { + var _t1304 *float64 if hasProtoField(_dollar_dollar, "float_value") { - _t1280 = ptr(_dollar_dollar.GetFloatValue()) + _t1304 = ptr(_dollar_dollar.GetFloatValue()) } - return _t1280 + return _t1304 } - _t1281 := _t1279(msg) - deconstruct_result660 := _t1281 - if deconstruct_result660 != nil { - unwrapped661 := *deconstruct_result660 - p.write(formatFloat64(unwrapped661)) + _t1305 := _t1303(msg) + deconstruct_result672 := _t1305 + if deconstruct_result672 != nil { + unwrapped673 := *deconstruct_result672 + p.write(formatFloat64(unwrapped673)) } else { - _t1282 := func(_dollar_dollar *pb.Value) *pb.UInt128Value { - var _t1283 *pb.UInt128Value + _t1306 := func(_dollar_dollar *pb.Value) *pb.UInt128Value { + var _t1307 *pb.UInt128Value if hasProtoField(_dollar_dollar, "uint128_value") { - _t1283 = _dollar_dollar.GetUint128Value() + _t1307 = _dollar_dollar.GetUint128Value() } - return _t1283 + return _t1307 } - _t1284 := _t1282(msg) - deconstruct_result658 := _t1284 - if deconstruct_result658 != nil { - unwrapped659 := deconstruct_result658 - p.write(p.formatUint128(unwrapped659)) + _t1308 := _t1306(msg) + deconstruct_result670 := _t1308 + if deconstruct_result670 != nil { + unwrapped671 := deconstruct_result670 + p.write(p.formatUint128(unwrapped671)) } else { - _t1285 := func(_dollar_dollar *pb.Value) *pb.Int128Value { - var _t1286 *pb.Int128Value + _t1309 := func(_dollar_dollar *pb.Value) *pb.Int128Value { + var _t1310 *pb.Int128Value if hasProtoField(_dollar_dollar, "int128_value") { - _t1286 = _dollar_dollar.GetInt128Value() + _t1310 = _dollar_dollar.GetInt128Value() } - return _t1286 + return _t1310 } - _t1287 := _t1285(msg) - deconstruct_result656 := _t1287 - if deconstruct_result656 != nil { - unwrapped657 := deconstruct_result656 - p.write(p.formatInt128(unwrapped657)) + _t1311 := _t1309(msg) + deconstruct_result668 := _t1311 + if deconstruct_result668 != nil { + unwrapped669 := deconstruct_result668 + p.write(p.formatInt128(unwrapped669)) } else { - _t1288 := func(_dollar_dollar *pb.Value) *pb.DecimalValue { - var _t1289 *pb.DecimalValue + _t1312 := func(_dollar_dollar *pb.Value) *pb.DecimalValue { + var _t1313 *pb.DecimalValue if hasProtoField(_dollar_dollar, "decimal_value") { - _t1289 = _dollar_dollar.GetDecimalValue() + _t1313 = _dollar_dollar.GetDecimalValue() } - return _t1289 + return _t1313 } - _t1290 := _t1288(msg) - deconstruct_result654 := _t1290 - if deconstruct_result654 != nil { - unwrapped655 := deconstruct_result654 - p.write(p.formatDecimal(unwrapped655)) + _t1314 := _t1312(msg) + deconstruct_result666 := _t1314 + if deconstruct_result666 != nil { + unwrapped667 := deconstruct_result666 + p.write(p.formatDecimal(unwrapped667)) } else { - _t1291 := func(_dollar_dollar *pb.Value) *bool { - var _t1292 *bool + _t1315 := func(_dollar_dollar *pb.Value) *bool { + var _t1316 *bool if hasProtoField(_dollar_dollar, "boolean_value") { - _t1292 = ptr(_dollar_dollar.GetBooleanValue()) + _t1316 = ptr(_dollar_dollar.GetBooleanValue()) } - return _t1292 + return _t1316 } - _t1293 := _t1291(msg) - deconstruct_result652 := _t1293 - if deconstruct_result652 != nil { - unwrapped653 := *deconstruct_result652 - p.pretty_boolean_value(unwrapped653) + _t1317 := _t1315(msg) + deconstruct_result664 := _t1317 + if deconstruct_result664 != nil { + unwrapped665 := *deconstruct_result664 + p.pretty_boolean_value(unwrapped665) } else { - fields651 := msg - _ = fields651 + fields663 := msg + _ = fields663 p.write("missing") } } @@ -751,29 +755,29 @@ func (p *PrettyPrinter) pretty_value(msg *pb.Value) interface{} { } func (p *PrettyPrinter) pretty_date(msg *pb.DateValue) interface{} { - flat676 := p.tryFlat(msg, func() { p.pretty_date(msg) }) - if flat676 != nil { - p.write(*flat676) + flat688 := p.tryFlat(msg, func() { p.pretty_date(msg) }) + if flat688 != nil { + p.write(*flat688) return nil } else { - _t1294 := func(_dollar_dollar *pb.DateValue) []interface{} { + _t1318 := func(_dollar_dollar *pb.DateValue) []interface{} { return []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} } - _t1295 := _t1294(msg) - fields671 := _t1295 - unwrapped_fields672 := fields671 + _t1319 := _t1318(msg) + fields683 := _t1319 + unwrapped_fields684 := fields683 p.write("(") p.write("date") p.indentSexp() p.newline() - field673 := unwrapped_fields672[0].(int64) - p.write(fmt.Sprintf("%d", field673)) + field685 := unwrapped_fields684[0].(int64) + p.write(fmt.Sprintf("%d", field685)) p.newline() - field674 := unwrapped_fields672[1].(int64) - p.write(fmt.Sprintf("%d", field674)) + field686 := unwrapped_fields684[1].(int64) + p.write(fmt.Sprintf("%d", field686)) p.newline() - field675 := unwrapped_fields672[2].(int64) - p.write(fmt.Sprintf("%d", field675)) + field687 := unwrapped_fields684[2].(int64) + p.write(fmt.Sprintf("%d", field687)) p.dedent() p.write(")") } @@ -781,43 +785,43 @@ func (p *PrettyPrinter) pretty_date(msg *pb.DateValue) interface{} { } func (p *PrettyPrinter) pretty_datetime(msg *pb.DateTimeValue) interface{} { - flat687 := p.tryFlat(msg, func() { p.pretty_datetime(msg) }) - if flat687 != nil { - p.write(*flat687) + flat699 := p.tryFlat(msg, func() { p.pretty_datetime(msg) }) + if flat699 != nil { + p.write(*flat699) return nil } else { - _t1296 := func(_dollar_dollar *pb.DateTimeValue) []interface{} { + _t1320 := func(_dollar_dollar *pb.DateTimeValue) []interface{} { return []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()))} } - _t1297 := _t1296(msg) - fields677 := _t1297 - unwrapped_fields678 := fields677 + _t1321 := _t1320(msg) + fields689 := _t1321 + unwrapped_fields690 := fields689 p.write("(") p.write("datetime") p.indentSexp() p.newline() - field679 := unwrapped_fields678[0].(int64) - p.write(fmt.Sprintf("%d", field679)) + field691 := unwrapped_fields690[0].(int64) + p.write(fmt.Sprintf("%d", field691)) p.newline() - field680 := unwrapped_fields678[1].(int64) - p.write(fmt.Sprintf("%d", field680)) + field692 := unwrapped_fields690[1].(int64) + p.write(fmt.Sprintf("%d", field692)) p.newline() - field681 := unwrapped_fields678[2].(int64) - p.write(fmt.Sprintf("%d", field681)) + field693 := unwrapped_fields690[2].(int64) + p.write(fmt.Sprintf("%d", field693)) p.newline() - field682 := unwrapped_fields678[3].(int64) - p.write(fmt.Sprintf("%d", field682)) + field694 := unwrapped_fields690[3].(int64) + p.write(fmt.Sprintf("%d", field694)) p.newline() - field683 := unwrapped_fields678[4].(int64) - p.write(fmt.Sprintf("%d", field683)) + field695 := unwrapped_fields690[4].(int64) + p.write(fmt.Sprintf("%d", field695)) p.newline() - field684 := unwrapped_fields678[5].(int64) - p.write(fmt.Sprintf("%d", field684)) - field685 := unwrapped_fields678[6].(*int64) - if field685 != nil { + field696 := unwrapped_fields690[5].(int64) + p.write(fmt.Sprintf("%d", field696)) + field697 := unwrapped_fields690[6].(*int64) + if field697 != nil { p.newline() - opt_val686 := *field685 - p.write(fmt.Sprintf("%d", opt_val686)) + opt_val698 := *field697 + p.write(fmt.Sprintf("%d", opt_val698)) } p.dedent() p.write(")") @@ -826,32 +830,32 @@ func (p *PrettyPrinter) pretty_datetime(msg *pb.DateTimeValue) interface{} { } func (p *PrettyPrinter) pretty_boolean_value(msg bool) interface{} { - _t1298 := func(_dollar_dollar bool) []interface{} { - var _t1299 []interface{} + _t1322 := func(_dollar_dollar bool) []interface{} { + var _t1323 []interface{} if _dollar_dollar { - _t1299 = []interface{}{} + _t1323 = []interface{}{} } - return _t1299 + return _t1323 } - _t1300 := _t1298(msg) - deconstruct_result690 := _t1300 - if deconstruct_result690 != nil { - unwrapped691 := deconstruct_result690 - _ = unwrapped691 + _t1324 := _t1322(msg) + deconstruct_result702 := _t1324 + if deconstruct_result702 != nil { + unwrapped703 := deconstruct_result702 + _ = unwrapped703 p.write("true") } else { - _t1301 := func(_dollar_dollar bool) []interface{} { - var _t1302 []interface{} + _t1325 := func(_dollar_dollar bool) []interface{} { + var _t1326 []interface{} if !(_dollar_dollar) { - _t1302 = []interface{}{} + _t1326 = []interface{}{} } - return _t1302 + return _t1326 } - _t1303 := _t1301(msg) - deconstruct_result688 := _t1303 - if deconstruct_result688 != nil { - unwrapped689 := deconstruct_result688 - _ = unwrapped689 + _t1327 := _t1325(msg) + deconstruct_result700 := _t1327 + if deconstruct_result700 != nil { + unwrapped701 := deconstruct_result700 + _ = unwrapped701 p.write("false") } else { panic(ParseError{msg: "No matching rule for boolean_value"}) @@ -861,27 +865,27 @@ func (p *PrettyPrinter) pretty_boolean_value(msg bool) interface{} { } func (p *PrettyPrinter) pretty_sync(msg *pb.Sync) interface{} { - flat696 := p.tryFlat(msg, func() { p.pretty_sync(msg) }) - if flat696 != nil { - p.write(*flat696) + flat708 := p.tryFlat(msg, func() { p.pretty_sync(msg) }) + if flat708 != nil { + p.write(*flat708) return nil } else { - _t1304 := func(_dollar_dollar *pb.Sync) []*pb.FragmentId { + _t1328 := func(_dollar_dollar *pb.Sync) []*pb.FragmentId { return _dollar_dollar.GetFragments() } - _t1305 := _t1304(msg) - fields692 := _t1305 - unwrapped_fields693 := fields692 + _t1329 := _t1328(msg) + fields704 := _t1329 + unwrapped_fields705 := fields704 p.write("(") p.write("sync") p.indentSexp() - if !(len(unwrapped_fields693) == 0) { + if !(len(unwrapped_fields705) == 0) { p.newline() - for i695, elem694 := range unwrapped_fields693 { - if (i695 > 0) { + for i707, elem706 := range unwrapped_fields705 { + if (i707 > 0) { p.newline() } - p.pretty_fragment_id(elem694) + p.pretty_fragment_id(elem706) } } p.dedent() @@ -891,57 +895,57 @@ func (p *PrettyPrinter) pretty_sync(msg *pb.Sync) interface{} { } func (p *PrettyPrinter) pretty_fragment_id(msg *pb.FragmentId) interface{} { - flat699 := p.tryFlat(msg, func() { p.pretty_fragment_id(msg) }) - if flat699 != nil { - p.write(*flat699) + flat711 := p.tryFlat(msg, func() { p.pretty_fragment_id(msg) }) + if flat711 != nil { + p.write(*flat711) return nil } else { - _t1306 := func(_dollar_dollar *pb.FragmentId) string { + _t1330 := func(_dollar_dollar *pb.FragmentId) string { return p.fragmentIdToString(_dollar_dollar) } - _t1307 := _t1306(msg) - fields697 := _t1307 - unwrapped_fields698 := fields697 + _t1331 := _t1330(msg) + fields709 := _t1331 + unwrapped_fields710 := fields709 p.write(":") - p.write(unwrapped_fields698) + p.write(unwrapped_fields710) } return nil } func (p *PrettyPrinter) pretty_epoch(msg *pb.Epoch) interface{} { - flat706 := p.tryFlat(msg, func() { p.pretty_epoch(msg) }) - if flat706 != nil { - p.write(*flat706) + flat718 := p.tryFlat(msg, func() { p.pretty_epoch(msg) }) + if flat718 != nil { + p.write(*flat718) return nil } else { - _t1308 := func(_dollar_dollar *pb.Epoch) []interface{} { - var _t1309 []*pb.Write + _t1332 := func(_dollar_dollar *pb.Epoch) []interface{} { + var _t1333 []*pb.Write if !(len(_dollar_dollar.GetWrites()) == 0) { - _t1309 = _dollar_dollar.GetWrites() + _t1333 = _dollar_dollar.GetWrites() } - var _t1310 []*pb.Read + var _t1334 []*pb.Read if !(len(_dollar_dollar.GetReads()) == 0) { - _t1310 = _dollar_dollar.GetReads() + _t1334 = _dollar_dollar.GetReads() } - return []interface{}{_t1309, _t1310} + return []interface{}{_t1333, _t1334} } - _t1311 := _t1308(msg) - fields700 := _t1311 - unwrapped_fields701 := fields700 + _t1335 := _t1332(msg) + fields712 := _t1335 + unwrapped_fields713 := fields712 p.write("(") p.write("epoch") p.indentSexp() - field702 := unwrapped_fields701[0].([]*pb.Write) - if field702 != nil { + field714 := unwrapped_fields713[0].([]*pb.Write) + if field714 != nil { p.newline() - opt_val703 := field702 - p.pretty_epoch_writes(opt_val703) + opt_val715 := field714 + p.pretty_epoch_writes(opt_val715) } - field704 := unwrapped_fields701[1].([]*pb.Read) - if field704 != nil { + field716 := unwrapped_fields713[1].([]*pb.Read) + if field716 != nil { p.newline() - opt_val705 := field704 - p.pretty_epoch_reads(opt_val705) + opt_val717 := field716 + p.pretty_epoch_reads(opt_val717) } p.dedent() p.write(")") @@ -950,22 +954,22 @@ func (p *PrettyPrinter) pretty_epoch(msg *pb.Epoch) interface{} { } func (p *PrettyPrinter) pretty_epoch_writes(msg []*pb.Write) interface{} { - flat710 := p.tryFlat(msg, func() { p.pretty_epoch_writes(msg) }) - if flat710 != nil { - p.write(*flat710) + flat722 := p.tryFlat(msg, func() { p.pretty_epoch_writes(msg) }) + if flat722 != nil { + p.write(*flat722) return nil } else { - fields707 := msg + fields719 := msg p.write("(") p.write("writes") p.indentSexp() - if !(len(fields707) == 0) { + if !(len(fields719) == 0) { p.newline() - for i709, elem708 := range fields707 { - if (i709 > 0) { + for i721, elem720 := range fields719 { + if (i721 > 0) { p.newline() } - p.pretty_write(elem708) + p.pretty_write(elem720) } } p.dedent() @@ -975,62 +979,62 @@ func (p *PrettyPrinter) pretty_epoch_writes(msg []*pb.Write) interface{} { } func (p *PrettyPrinter) pretty_write(msg *pb.Write) interface{} { - flat719 := p.tryFlat(msg, func() { p.pretty_write(msg) }) - if flat719 != nil { - p.write(*flat719) + flat731 := p.tryFlat(msg, func() { p.pretty_write(msg) }) + if flat731 != nil { + p.write(*flat731) return nil } else { - _t1312 := func(_dollar_dollar *pb.Write) *pb.Define { - var _t1313 *pb.Define + _t1336 := func(_dollar_dollar *pb.Write) *pb.Define { + var _t1337 *pb.Define if hasProtoField(_dollar_dollar, "define") { - _t1313 = _dollar_dollar.GetDefine() + _t1337 = _dollar_dollar.GetDefine() } - return _t1313 + return _t1337 } - _t1314 := _t1312(msg) - deconstruct_result717 := _t1314 - if deconstruct_result717 != nil { - unwrapped718 := deconstruct_result717 - p.pretty_define(unwrapped718) + _t1338 := _t1336(msg) + deconstruct_result729 := _t1338 + if deconstruct_result729 != nil { + unwrapped730 := deconstruct_result729 + p.pretty_define(unwrapped730) } else { - _t1315 := func(_dollar_dollar *pb.Write) *pb.Undefine { - var _t1316 *pb.Undefine + _t1339 := func(_dollar_dollar *pb.Write) *pb.Undefine { + var _t1340 *pb.Undefine if hasProtoField(_dollar_dollar, "undefine") { - _t1316 = _dollar_dollar.GetUndefine() + _t1340 = _dollar_dollar.GetUndefine() } - return _t1316 + return _t1340 } - _t1317 := _t1315(msg) - deconstruct_result715 := _t1317 - if deconstruct_result715 != nil { - unwrapped716 := deconstruct_result715 - p.pretty_undefine(unwrapped716) + _t1341 := _t1339(msg) + deconstruct_result727 := _t1341 + if deconstruct_result727 != nil { + unwrapped728 := deconstruct_result727 + p.pretty_undefine(unwrapped728) } else { - _t1318 := func(_dollar_dollar *pb.Write) *pb.Context { - var _t1319 *pb.Context + _t1342 := func(_dollar_dollar *pb.Write) *pb.Context { + var _t1343 *pb.Context if hasProtoField(_dollar_dollar, "context") { - _t1319 = _dollar_dollar.GetContext() + _t1343 = _dollar_dollar.GetContext() } - return _t1319 + return _t1343 } - _t1320 := _t1318(msg) - deconstruct_result713 := _t1320 - if deconstruct_result713 != nil { - unwrapped714 := deconstruct_result713 - p.pretty_context(unwrapped714) + _t1344 := _t1342(msg) + deconstruct_result725 := _t1344 + if deconstruct_result725 != nil { + unwrapped726 := deconstruct_result725 + p.pretty_context(unwrapped726) } else { - _t1321 := func(_dollar_dollar *pb.Write) *pb.Snapshot { - var _t1322 *pb.Snapshot + _t1345 := func(_dollar_dollar *pb.Write) *pb.Snapshot { + var _t1346 *pb.Snapshot if hasProtoField(_dollar_dollar, "snapshot") { - _t1322 = _dollar_dollar.GetSnapshot() + _t1346 = _dollar_dollar.GetSnapshot() } - return _t1322 + return _t1346 } - _t1323 := _t1321(msg) - deconstruct_result711 := _t1323 - if deconstruct_result711 != nil { - unwrapped712 := deconstruct_result711 - p.pretty_snapshot(unwrapped712) + _t1347 := _t1345(msg) + deconstruct_result723 := _t1347 + if deconstruct_result723 != nil { + unwrapped724 := deconstruct_result723 + p.pretty_snapshot(unwrapped724) } else { panic(ParseError{msg: "No matching rule for write"}) } @@ -1042,22 +1046,22 @@ func (p *PrettyPrinter) pretty_write(msg *pb.Write) interface{} { } func (p *PrettyPrinter) pretty_define(msg *pb.Define) interface{} { - flat722 := p.tryFlat(msg, func() { p.pretty_define(msg) }) - if flat722 != nil { - p.write(*flat722) + flat734 := p.tryFlat(msg, func() { p.pretty_define(msg) }) + if flat734 != nil { + p.write(*flat734) return nil } else { - _t1324 := func(_dollar_dollar *pb.Define) *pb.Fragment { + _t1348 := func(_dollar_dollar *pb.Define) *pb.Fragment { return _dollar_dollar.GetFragment() } - _t1325 := _t1324(msg) - fields720 := _t1325 - unwrapped_fields721 := fields720 + _t1349 := _t1348(msg) + fields732 := _t1349 + unwrapped_fields733 := fields732 p.write("(") p.write("define") p.indentSexp() p.newline() - p.pretty_fragment(unwrapped_fields721) + p.pretty_fragment(unwrapped_fields733) p.dedent() p.write(")") } @@ -1065,32 +1069,32 @@ func (p *PrettyPrinter) pretty_define(msg *pb.Define) interface{} { } func (p *PrettyPrinter) pretty_fragment(msg *pb.Fragment) interface{} { - flat729 := p.tryFlat(msg, func() { p.pretty_fragment(msg) }) - if flat729 != nil { - p.write(*flat729) + flat741 := p.tryFlat(msg, func() { p.pretty_fragment(msg) }) + if flat741 != nil { + p.write(*flat741) return nil } else { - _t1326 := func(_dollar_dollar *pb.Fragment) []interface{} { + _t1350 := func(_dollar_dollar *pb.Fragment) []interface{} { p.startPrettyFragment(_dollar_dollar) return []interface{}{_dollar_dollar.GetId(), _dollar_dollar.GetDeclarations()} } - _t1327 := _t1326(msg) - fields723 := _t1327 - unwrapped_fields724 := fields723 + _t1351 := _t1350(msg) + fields735 := _t1351 + unwrapped_fields736 := fields735 p.write("(") p.write("fragment") p.indentSexp() p.newline() - field725 := unwrapped_fields724[0].(*pb.FragmentId) - p.pretty_new_fragment_id(field725) - field726 := unwrapped_fields724[1].([]*pb.Declaration) - if !(len(field726) == 0) { + field737 := unwrapped_fields736[0].(*pb.FragmentId) + p.pretty_new_fragment_id(field737) + field738 := unwrapped_fields736[1].([]*pb.Declaration) + if !(len(field738) == 0) { p.newline() - for i728, elem727 := range field726 { - if (i728 > 0) { + for i740, elem739 := range field738 { + if (i740 > 0) { p.newline() } - p.pretty_declaration(elem727) + p.pretty_declaration(elem739) } } p.dedent() @@ -1100,74 +1104,74 @@ func (p *PrettyPrinter) pretty_fragment(msg *pb.Fragment) interface{} { } func (p *PrettyPrinter) pretty_new_fragment_id(msg *pb.FragmentId) interface{} { - flat731 := p.tryFlat(msg, func() { p.pretty_new_fragment_id(msg) }) - if flat731 != nil { - p.write(*flat731) + flat743 := p.tryFlat(msg, func() { p.pretty_new_fragment_id(msg) }) + if flat743 != nil { + p.write(*flat743) return nil } else { - fields730 := msg - p.pretty_fragment_id(fields730) + fields742 := msg + p.pretty_fragment_id(fields742) } return nil } func (p *PrettyPrinter) pretty_declaration(msg *pb.Declaration) interface{} { - flat740 := p.tryFlat(msg, func() { p.pretty_declaration(msg) }) - if flat740 != nil { - p.write(*flat740) + flat752 := p.tryFlat(msg, func() { p.pretty_declaration(msg) }) + if flat752 != nil { + p.write(*flat752) return nil } else { - _t1328 := func(_dollar_dollar *pb.Declaration) *pb.Def { - var _t1329 *pb.Def + _t1352 := func(_dollar_dollar *pb.Declaration) *pb.Def { + var _t1353 *pb.Def if hasProtoField(_dollar_dollar, "def") { - _t1329 = _dollar_dollar.GetDef() + _t1353 = _dollar_dollar.GetDef() } - return _t1329 + return _t1353 } - _t1330 := _t1328(msg) - deconstruct_result738 := _t1330 - if deconstruct_result738 != nil { - unwrapped739 := deconstruct_result738 - p.pretty_def(unwrapped739) + _t1354 := _t1352(msg) + deconstruct_result750 := _t1354 + if deconstruct_result750 != nil { + unwrapped751 := deconstruct_result750 + p.pretty_def(unwrapped751) } else { - _t1331 := func(_dollar_dollar *pb.Declaration) *pb.Algorithm { - var _t1332 *pb.Algorithm + _t1355 := func(_dollar_dollar *pb.Declaration) *pb.Algorithm { + var _t1356 *pb.Algorithm if hasProtoField(_dollar_dollar, "algorithm") { - _t1332 = _dollar_dollar.GetAlgorithm() + _t1356 = _dollar_dollar.GetAlgorithm() } - return _t1332 + return _t1356 } - _t1333 := _t1331(msg) - deconstruct_result736 := _t1333 - if deconstruct_result736 != nil { - unwrapped737 := deconstruct_result736 - p.pretty_algorithm(unwrapped737) + _t1357 := _t1355(msg) + deconstruct_result748 := _t1357 + if deconstruct_result748 != nil { + unwrapped749 := deconstruct_result748 + p.pretty_algorithm(unwrapped749) } else { - _t1334 := func(_dollar_dollar *pb.Declaration) *pb.Constraint { - var _t1335 *pb.Constraint + _t1358 := func(_dollar_dollar *pb.Declaration) *pb.Constraint { + var _t1359 *pb.Constraint if hasProtoField(_dollar_dollar, "constraint") { - _t1335 = _dollar_dollar.GetConstraint() + _t1359 = _dollar_dollar.GetConstraint() } - return _t1335 + return _t1359 } - _t1336 := _t1334(msg) - deconstruct_result734 := _t1336 - if deconstruct_result734 != nil { - unwrapped735 := deconstruct_result734 - p.pretty_constraint(unwrapped735) + _t1360 := _t1358(msg) + deconstruct_result746 := _t1360 + if deconstruct_result746 != nil { + unwrapped747 := deconstruct_result746 + p.pretty_constraint(unwrapped747) } else { - _t1337 := func(_dollar_dollar *pb.Declaration) *pb.Data { - var _t1338 *pb.Data + _t1361 := func(_dollar_dollar *pb.Declaration) *pb.Data { + var _t1362 *pb.Data if hasProtoField(_dollar_dollar, "data") { - _t1338 = _dollar_dollar.GetData() + _t1362 = _dollar_dollar.GetData() } - return _t1338 + return _t1362 } - _t1339 := _t1337(msg) - deconstruct_result732 := _t1339 - if deconstruct_result732 != nil { - unwrapped733 := deconstruct_result732 - p.pretty_data(unwrapped733) + _t1363 := _t1361(msg) + deconstruct_result744 := _t1363 + if deconstruct_result744 != nil { + unwrapped745 := deconstruct_result744 + p.pretty_data(unwrapped745) } else { panic(ParseError{msg: "No matching rule for declaration"}) } @@ -1179,35 +1183,35 @@ func (p *PrettyPrinter) pretty_declaration(msg *pb.Declaration) interface{} { } func (p *PrettyPrinter) pretty_def(msg *pb.Def) interface{} { - flat747 := p.tryFlat(msg, func() { p.pretty_def(msg) }) - if flat747 != nil { - p.write(*flat747) + flat759 := p.tryFlat(msg, func() { p.pretty_def(msg) }) + if flat759 != nil { + p.write(*flat759) return nil } else { - _t1340 := func(_dollar_dollar *pb.Def) []interface{} { - var _t1341 []*pb.Attribute + _t1364 := func(_dollar_dollar *pb.Def) []interface{} { + var _t1365 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1341 = _dollar_dollar.GetAttrs() + _t1365 = _dollar_dollar.GetAttrs() } - return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1341} + return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1365} } - _t1342 := _t1340(msg) - fields741 := _t1342 - unwrapped_fields742 := fields741 + _t1366 := _t1364(msg) + fields753 := _t1366 + unwrapped_fields754 := fields753 p.write("(") p.write("def") p.indentSexp() p.newline() - field743 := unwrapped_fields742[0].(*pb.RelationId) - p.pretty_relation_id(field743) + field755 := unwrapped_fields754[0].(*pb.RelationId) + p.pretty_relation_id(field755) p.newline() - field744 := unwrapped_fields742[1].(*pb.Abstraction) - p.pretty_abstraction(field744) - field745 := unwrapped_fields742[2].([]*pb.Attribute) - if field745 != nil { + field756 := unwrapped_fields754[1].(*pb.Abstraction) + p.pretty_abstraction(field756) + field757 := unwrapped_fields754[2].([]*pb.Attribute) + if field757 != nil { p.newline() - opt_val746 := field745 - p.pretty_attrs(opt_val746) + opt_val758 := field757 + p.pretty_attrs(opt_val758) } p.dedent() p.write(")") @@ -1216,35 +1220,35 @@ func (p *PrettyPrinter) pretty_def(msg *pb.Def) interface{} { } func (p *PrettyPrinter) pretty_relation_id(msg *pb.RelationId) interface{} { - flat752 := p.tryFlat(msg, func() { p.pretty_relation_id(msg) }) - if flat752 != nil { - p.write(*flat752) + flat764 := p.tryFlat(msg, func() { p.pretty_relation_id(msg) }) + if flat764 != nil { + p.write(*flat764) return nil } else { - _t1343 := func(_dollar_dollar *pb.RelationId) *string { - var _t1344 *string + _t1367 := func(_dollar_dollar *pb.RelationId) *string { + var _t1368 *string if p.relationIdToString(_dollar_dollar) != nil { - _t1345 := p.deconstruct_relation_id_string(_dollar_dollar) - _t1344 = ptr(_t1345) + _t1369 := p.deconstruct_relation_id_string(_dollar_dollar) + _t1368 = ptr(_t1369) } - return _t1344 + return _t1368 } - _t1346 := _t1343(msg) - deconstruct_result750 := _t1346 - if deconstruct_result750 != nil { - unwrapped751 := *deconstruct_result750 + _t1370 := _t1367(msg) + deconstruct_result762 := _t1370 + if deconstruct_result762 != nil { + unwrapped763 := *deconstruct_result762 p.write(":") - p.write(unwrapped751) + p.write(unwrapped763) } else { - _t1347 := func(_dollar_dollar *pb.RelationId) *pb.UInt128Value { - _t1348 := p.deconstruct_relation_id_uint128(_dollar_dollar) - return _t1348 + _t1371 := func(_dollar_dollar *pb.RelationId) *pb.UInt128Value { + _t1372 := p.deconstruct_relation_id_uint128(_dollar_dollar) + return _t1372 } - _t1349 := _t1347(msg) - deconstruct_result748 := _t1349 - if deconstruct_result748 != nil { - unwrapped749 := deconstruct_result748 - p.write(p.formatUint128(unwrapped749)) + _t1373 := _t1371(msg) + deconstruct_result760 := _t1373 + if deconstruct_result760 != nil { + unwrapped761 := deconstruct_result760 + p.write(p.formatUint128(unwrapped761)) } else { panic(ParseError{msg: "No matching rule for relation_id"}) } @@ -1254,25 +1258,25 @@ func (p *PrettyPrinter) pretty_relation_id(msg *pb.RelationId) interface{} { } func (p *PrettyPrinter) pretty_abstraction(msg *pb.Abstraction) interface{} { - flat757 := p.tryFlat(msg, func() { p.pretty_abstraction(msg) }) - if flat757 != nil { - p.write(*flat757) + flat769 := p.tryFlat(msg, func() { p.pretty_abstraction(msg) }) + if flat769 != nil { + p.write(*flat769) return nil } else { - _t1350 := func(_dollar_dollar *pb.Abstraction) []interface{} { - _t1351 := p.deconstruct_bindings(_dollar_dollar) - return []interface{}{_t1351, _dollar_dollar.GetValue()} + _t1374 := func(_dollar_dollar *pb.Abstraction) []interface{} { + _t1375 := p.deconstruct_bindings(_dollar_dollar) + return []interface{}{_t1375, _dollar_dollar.GetValue()} } - _t1352 := _t1350(msg) - fields753 := _t1352 - unwrapped_fields754 := fields753 + _t1376 := _t1374(msg) + fields765 := _t1376 + unwrapped_fields766 := fields765 p.write("(") p.indent() - field755 := unwrapped_fields754[0].([]interface{}) - p.pretty_bindings(field755) + field767 := unwrapped_fields766[0].([]interface{}) + p.pretty_bindings(field767) p.newline() - field756 := unwrapped_fields754[1].(*pb.Formula) - p.pretty_formula(field756) + field768 := unwrapped_fields766[1].(*pb.Formula) + p.pretty_formula(field768) p.dedent() p.write(")") } @@ -1280,35 +1284,35 @@ func (p *PrettyPrinter) pretty_abstraction(msg *pb.Abstraction) interface{} { } func (p *PrettyPrinter) pretty_bindings(msg []interface{}) interface{} { - flat765 := p.tryFlat(msg, func() { p.pretty_bindings(msg) }) - if flat765 != nil { - p.write(*flat765) + flat777 := p.tryFlat(msg, func() { p.pretty_bindings(msg) }) + if flat777 != nil { + p.write(*flat777) return nil } else { - _t1353 := func(_dollar_dollar []interface{}) []interface{} { - var _t1354 []*pb.Binding + _t1377 := func(_dollar_dollar []interface{}) []interface{} { + var _t1378 []*pb.Binding if !(len(_dollar_dollar[1].([]*pb.Binding)) == 0) { - _t1354 = _dollar_dollar[1].([]*pb.Binding) + _t1378 = _dollar_dollar[1].([]*pb.Binding) } - return []interface{}{_dollar_dollar[0].([]*pb.Binding), _t1354} + return []interface{}{_dollar_dollar[0].([]*pb.Binding), _t1378} } - _t1355 := _t1353(msg) - fields758 := _t1355 - unwrapped_fields759 := fields758 + _t1379 := _t1377(msg) + fields770 := _t1379 + unwrapped_fields771 := fields770 p.write("[") p.indent() - field760 := unwrapped_fields759[0].([]*pb.Binding) - for i762, elem761 := range field760 { - if (i762 > 0) { + field772 := unwrapped_fields771[0].([]*pb.Binding) + for i774, elem773 := range field772 { + if (i774 > 0) { p.newline() } - p.pretty_binding(elem761) + p.pretty_binding(elem773) } - field763 := unwrapped_fields759[1].([]*pb.Binding) - if field763 != nil { + field775 := unwrapped_fields771[1].([]*pb.Binding) + if field775 != nil { p.newline() - opt_val764 := field763 - p.pretty_value_bindings(opt_val764) + opt_val776 := field775 + p.pretty_value_bindings(opt_val776) } p.dedent() p.write("]") @@ -1317,174 +1321,174 @@ func (p *PrettyPrinter) pretty_bindings(msg []interface{}) interface{} { } func (p *PrettyPrinter) pretty_binding(msg *pb.Binding) interface{} { - flat770 := p.tryFlat(msg, func() { p.pretty_binding(msg) }) - if flat770 != nil { - p.write(*flat770) + flat782 := p.tryFlat(msg, func() { p.pretty_binding(msg) }) + if flat782 != nil { + p.write(*flat782) return nil } else { - _t1356 := func(_dollar_dollar *pb.Binding) []interface{} { + _t1380 := func(_dollar_dollar *pb.Binding) []interface{} { return []interface{}{_dollar_dollar.GetVar().GetName(), _dollar_dollar.GetType()} } - _t1357 := _t1356(msg) - fields766 := _t1357 - unwrapped_fields767 := fields766 - field768 := unwrapped_fields767[0].(string) - p.write(field768) + _t1381 := _t1380(msg) + fields778 := _t1381 + unwrapped_fields779 := fields778 + field780 := unwrapped_fields779[0].(string) + p.write(field780) p.write("::") - field769 := unwrapped_fields767[1].(*pb.Type) - p.pretty_type(field769) + field781 := unwrapped_fields779[1].(*pb.Type) + p.pretty_type(field781) } return nil } func (p *PrettyPrinter) pretty_type(msg *pb.Type) interface{} { - flat793 := p.tryFlat(msg, func() { p.pretty_type(msg) }) - if flat793 != nil { - p.write(*flat793) + flat805 := p.tryFlat(msg, func() { p.pretty_type(msg) }) + if flat805 != nil { + p.write(*flat805) return nil } else { - _t1358 := func(_dollar_dollar *pb.Type) *pb.UnspecifiedType { - var _t1359 *pb.UnspecifiedType + _t1382 := func(_dollar_dollar *pb.Type) *pb.UnspecifiedType { + var _t1383 *pb.UnspecifiedType if hasProtoField(_dollar_dollar, "unspecified_type") { - _t1359 = _dollar_dollar.GetUnspecifiedType() + _t1383 = _dollar_dollar.GetUnspecifiedType() } - return _t1359 + return _t1383 } - _t1360 := _t1358(msg) - deconstruct_result791 := _t1360 - if deconstruct_result791 != nil { - unwrapped792 := deconstruct_result791 - p.pretty_unspecified_type(unwrapped792) + _t1384 := _t1382(msg) + deconstruct_result803 := _t1384 + if deconstruct_result803 != nil { + unwrapped804 := deconstruct_result803 + p.pretty_unspecified_type(unwrapped804) } else { - _t1361 := func(_dollar_dollar *pb.Type) *pb.StringType { - var _t1362 *pb.StringType + _t1385 := func(_dollar_dollar *pb.Type) *pb.StringType { + var _t1386 *pb.StringType if hasProtoField(_dollar_dollar, "string_type") { - _t1362 = _dollar_dollar.GetStringType() + _t1386 = _dollar_dollar.GetStringType() } - return _t1362 + return _t1386 } - _t1363 := _t1361(msg) - deconstruct_result789 := _t1363 - if deconstruct_result789 != nil { - unwrapped790 := deconstruct_result789 - p.pretty_string_type(unwrapped790) + _t1387 := _t1385(msg) + deconstruct_result801 := _t1387 + if deconstruct_result801 != nil { + unwrapped802 := deconstruct_result801 + p.pretty_string_type(unwrapped802) } else { - _t1364 := func(_dollar_dollar *pb.Type) *pb.IntType { - var _t1365 *pb.IntType + _t1388 := func(_dollar_dollar *pb.Type) *pb.IntType { + var _t1389 *pb.IntType if hasProtoField(_dollar_dollar, "int_type") { - _t1365 = _dollar_dollar.GetIntType() + _t1389 = _dollar_dollar.GetIntType() } - return _t1365 + return _t1389 } - _t1366 := _t1364(msg) - deconstruct_result787 := _t1366 - if deconstruct_result787 != nil { - unwrapped788 := deconstruct_result787 - p.pretty_int_type(unwrapped788) + _t1390 := _t1388(msg) + deconstruct_result799 := _t1390 + if deconstruct_result799 != nil { + unwrapped800 := deconstruct_result799 + p.pretty_int_type(unwrapped800) } else { - _t1367 := func(_dollar_dollar *pb.Type) *pb.FloatType { - var _t1368 *pb.FloatType + _t1391 := func(_dollar_dollar *pb.Type) *pb.FloatType { + var _t1392 *pb.FloatType if hasProtoField(_dollar_dollar, "float_type") { - _t1368 = _dollar_dollar.GetFloatType() + _t1392 = _dollar_dollar.GetFloatType() } - return _t1368 + return _t1392 } - _t1369 := _t1367(msg) - deconstruct_result785 := _t1369 - if deconstruct_result785 != nil { - unwrapped786 := deconstruct_result785 - p.pretty_float_type(unwrapped786) + _t1393 := _t1391(msg) + deconstruct_result797 := _t1393 + if deconstruct_result797 != nil { + unwrapped798 := deconstruct_result797 + p.pretty_float_type(unwrapped798) } else { - _t1370 := func(_dollar_dollar *pb.Type) *pb.UInt128Type { - var _t1371 *pb.UInt128Type + _t1394 := func(_dollar_dollar *pb.Type) *pb.UInt128Type { + var _t1395 *pb.UInt128Type if hasProtoField(_dollar_dollar, "uint128_type") { - _t1371 = _dollar_dollar.GetUint128Type() + _t1395 = _dollar_dollar.GetUint128Type() } - return _t1371 + return _t1395 } - _t1372 := _t1370(msg) - deconstruct_result783 := _t1372 - if deconstruct_result783 != nil { - unwrapped784 := deconstruct_result783 - p.pretty_uint128_type(unwrapped784) + _t1396 := _t1394(msg) + deconstruct_result795 := _t1396 + if deconstruct_result795 != nil { + unwrapped796 := deconstruct_result795 + p.pretty_uint128_type(unwrapped796) } else { - _t1373 := func(_dollar_dollar *pb.Type) *pb.Int128Type { - var _t1374 *pb.Int128Type + _t1397 := func(_dollar_dollar *pb.Type) *pb.Int128Type { + var _t1398 *pb.Int128Type if hasProtoField(_dollar_dollar, "int128_type") { - _t1374 = _dollar_dollar.GetInt128Type() + _t1398 = _dollar_dollar.GetInt128Type() } - return _t1374 + return _t1398 } - _t1375 := _t1373(msg) - deconstruct_result781 := _t1375 - if deconstruct_result781 != nil { - unwrapped782 := deconstruct_result781 - p.pretty_int128_type(unwrapped782) + _t1399 := _t1397(msg) + deconstruct_result793 := _t1399 + if deconstruct_result793 != nil { + unwrapped794 := deconstruct_result793 + p.pretty_int128_type(unwrapped794) } else { - _t1376 := func(_dollar_dollar *pb.Type) *pb.DateType { - var _t1377 *pb.DateType + _t1400 := func(_dollar_dollar *pb.Type) *pb.DateType { + var _t1401 *pb.DateType if hasProtoField(_dollar_dollar, "date_type") { - _t1377 = _dollar_dollar.GetDateType() + _t1401 = _dollar_dollar.GetDateType() } - return _t1377 + return _t1401 } - _t1378 := _t1376(msg) - deconstruct_result779 := _t1378 - if deconstruct_result779 != nil { - unwrapped780 := deconstruct_result779 - p.pretty_date_type(unwrapped780) + _t1402 := _t1400(msg) + deconstruct_result791 := _t1402 + if deconstruct_result791 != nil { + unwrapped792 := deconstruct_result791 + p.pretty_date_type(unwrapped792) } else { - _t1379 := func(_dollar_dollar *pb.Type) *pb.DateTimeType { - var _t1380 *pb.DateTimeType + _t1403 := func(_dollar_dollar *pb.Type) *pb.DateTimeType { + var _t1404 *pb.DateTimeType if hasProtoField(_dollar_dollar, "datetime_type") { - _t1380 = _dollar_dollar.GetDatetimeType() + _t1404 = _dollar_dollar.GetDatetimeType() } - return _t1380 + return _t1404 } - _t1381 := _t1379(msg) - deconstruct_result777 := _t1381 - if deconstruct_result777 != nil { - unwrapped778 := deconstruct_result777 - p.pretty_datetime_type(unwrapped778) + _t1405 := _t1403(msg) + deconstruct_result789 := _t1405 + if deconstruct_result789 != nil { + unwrapped790 := deconstruct_result789 + p.pretty_datetime_type(unwrapped790) } else { - _t1382 := func(_dollar_dollar *pb.Type) *pb.MissingType { - var _t1383 *pb.MissingType + _t1406 := func(_dollar_dollar *pb.Type) *pb.MissingType { + var _t1407 *pb.MissingType if hasProtoField(_dollar_dollar, "missing_type") { - _t1383 = _dollar_dollar.GetMissingType() + _t1407 = _dollar_dollar.GetMissingType() } - return _t1383 + return _t1407 } - _t1384 := _t1382(msg) - deconstruct_result775 := _t1384 - if deconstruct_result775 != nil { - unwrapped776 := deconstruct_result775 - p.pretty_missing_type(unwrapped776) + _t1408 := _t1406(msg) + deconstruct_result787 := _t1408 + if deconstruct_result787 != nil { + unwrapped788 := deconstruct_result787 + p.pretty_missing_type(unwrapped788) } else { - _t1385 := func(_dollar_dollar *pb.Type) *pb.DecimalType { - var _t1386 *pb.DecimalType + _t1409 := func(_dollar_dollar *pb.Type) *pb.DecimalType { + var _t1410 *pb.DecimalType if hasProtoField(_dollar_dollar, "decimal_type") { - _t1386 = _dollar_dollar.GetDecimalType() + _t1410 = _dollar_dollar.GetDecimalType() } - return _t1386 + return _t1410 } - _t1387 := _t1385(msg) - deconstruct_result773 := _t1387 - if deconstruct_result773 != nil { - unwrapped774 := deconstruct_result773 - p.pretty_decimal_type(unwrapped774) + _t1411 := _t1409(msg) + deconstruct_result785 := _t1411 + if deconstruct_result785 != nil { + unwrapped786 := deconstruct_result785 + p.pretty_decimal_type(unwrapped786) } else { - _t1388 := func(_dollar_dollar *pb.Type) *pb.BooleanType { - var _t1389 *pb.BooleanType + _t1412 := func(_dollar_dollar *pb.Type) *pb.BooleanType { + var _t1413 *pb.BooleanType if hasProtoField(_dollar_dollar, "boolean_type") { - _t1389 = _dollar_dollar.GetBooleanType() + _t1413 = _dollar_dollar.GetBooleanType() } - return _t1389 + return _t1413 } - _t1390 := _t1388(msg) - deconstruct_result771 := _t1390 - if deconstruct_result771 != nil { - unwrapped772 := deconstruct_result771 - p.pretty_boolean_type(unwrapped772) + _t1414 := _t1412(msg) + deconstruct_result783 := _t1414 + if deconstruct_result783 != nil { + unwrapped784 := deconstruct_result783 + p.pretty_boolean_type(unwrapped784) } else { panic(ParseError{msg: "No matching rule for type"}) } @@ -1503,89 +1507,89 @@ func (p *PrettyPrinter) pretty_type(msg *pb.Type) interface{} { } func (p *PrettyPrinter) pretty_unspecified_type(msg *pb.UnspecifiedType) interface{} { - fields794 := msg - _ = fields794 + fields806 := msg + _ = fields806 p.write("UNKNOWN") return nil } func (p *PrettyPrinter) pretty_string_type(msg *pb.StringType) interface{} { - fields795 := msg - _ = fields795 + fields807 := msg + _ = fields807 p.write("STRING") return nil } func (p *PrettyPrinter) pretty_int_type(msg *pb.IntType) interface{} { - fields796 := msg - _ = fields796 + fields808 := msg + _ = fields808 p.write("INT") return nil } func (p *PrettyPrinter) pretty_float_type(msg *pb.FloatType) interface{} { - fields797 := msg - _ = fields797 + fields809 := msg + _ = fields809 p.write("FLOAT") return nil } func (p *PrettyPrinter) pretty_uint128_type(msg *pb.UInt128Type) interface{} { - fields798 := msg - _ = fields798 + fields810 := msg + _ = fields810 p.write("UINT128") return nil } func (p *PrettyPrinter) pretty_int128_type(msg *pb.Int128Type) interface{} { - fields799 := msg - _ = fields799 + fields811 := msg + _ = fields811 p.write("INT128") return nil } func (p *PrettyPrinter) pretty_date_type(msg *pb.DateType) interface{} { - fields800 := msg - _ = fields800 + fields812 := msg + _ = fields812 p.write("DATE") return nil } func (p *PrettyPrinter) pretty_datetime_type(msg *pb.DateTimeType) interface{} { - fields801 := msg - _ = fields801 + fields813 := msg + _ = fields813 p.write("DATETIME") return nil } func (p *PrettyPrinter) pretty_missing_type(msg *pb.MissingType) interface{} { - fields802 := msg - _ = fields802 + fields814 := msg + _ = fields814 p.write("MISSING") return nil } func (p *PrettyPrinter) pretty_decimal_type(msg *pb.DecimalType) interface{} { - flat807 := p.tryFlat(msg, func() { p.pretty_decimal_type(msg) }) - if flat807 != nil { - p.write(*flat807) + flat819 := p.tryFlat(msg, func() { p.pretty_decimal_type(msg) }) + if flat819 != nil { + p.write(*flat819) return nil } else { - _t1391 := func(_dollar_dollar *pb.DecimalType) []interface{} { + _t1415 := func(_dollar_dollar *pb.DecimalType) []interface{} { return []interface{}{int64(_dollar_dollar.GetPrecision()), int64(_dollar_dollar.GetScale())} } - _t1392 := _t1391(msg) - fields803 := _t1392 - unwrapped_fields804 := fields803 + _t1416 := _t1415(msg) + fields815 := _t1416 + unwrapped_fields816 := fields815 p.write("(") p.write("DECIMAL") p.indentSexp() p.newline() - field805 := unwrapped_fields804[0].(int64) - p.write(fmt.Sprintf("%d", field805)) + field817 := unwrapped_fields816[0].(int64) + p.write(fmt.Sprintf("%d", field817)) p.newline() - field806 := unwrapped_fields804[1].(int64) - p.write(fmt.Sprintf("%d", field806)) + field818 := unwrapped_fields816[1].(int64) + p.write(fmt.Sprintf("%d", field818)) p.dedent() p.write(")") } @@ -1593,27 +1597,27 @@ func (p *PrettyPrinter) pretty_decimal_type(msg *pb.DecimalType) interface{} { } func (p *PrettyPrinter) pretty_boolean_type(msg *pb.BooleanType) interface{} { - fields808 := msg - _ = fields808 + fields820 := msg + _ = fields820 p.write("BOOLEAN") return nil } func (p *PrettyPrinter) pretty_value_bindings(msg []*pb.Binding) interface{} { - flat812 := p.tryFlat(msg, func() { p.pretty_value_bindings(msg) }) - if flat812 != nil { - p.write(*flat812) + flat824 := p.tryFlat(msg, func() { p.pretty_value_bindings(msg) }) + if flat824 != nil { + p.write(*flat824) return nil } else { - fields809 := msg + fields821 := msg p.write("|") - if !(len(fields809) == 0) { + if !(len(fields821) == 0) { p.write(" ") - for i811, elem810 := range fields809 { - if (i811 > 0) { + for i823, elem822 := range fields821 { + if (i823 > 0) { p.newline() } - p.pretty_binding(elem810) + p.pretty_binding(elem822) } } } @@ -1621,179 +1625,179 @@ func (p *PrettyPrinter) pretty_value_bindings(msg []*pb.Binding) interface{} { } func (p *PrettyPrinter) pretty_formula(msg *pb.Formula) interface{} { - flat839 := p.tryFlat(msg, func() { p.pretty_formula(msg) }) - if flat839 != nil { - p.write(*flat839) + flat851 := p.tryFlat(msg, func() { p.pretty_formula(msg) }) + if flat851 != nil { + p.write(*flat851) return nil } else { - _t1393 := func(_dollar_dollar *pb.Formula) *pb.Conjunction { - var _t1394 *pb.Conjunction + _t1417 := func(_dollar_dollar *pb.Formula) *pb.Conjunction { + var _t1418 *pb.Conjunction if (hasProtoField(_dollar_dollar, "conjunction") && len(_dollar_dollar.GetConjunction().GetArgs()) == 0) { - _t1394 = _dollar_dollar.GetConjunction() + _t1418 = _dollar_dollar.GetConjunction() } - return _t1394 + return _t1418 } - _t1395 := _t1393(msg) - deconstruct_result837 := _t1395 - if deconstruct_result837 != nil { - unwrapped838 := deconstruct_result837 - p.pretty_true(unwrapped838) + _t1419 := _t1417(msg) + deconstruct_result849 := _t1419 + if deconstruct_result849 != nil { + unwrapped850 := deconstruct_result849 + p.pretty_true(unwrapped850) } else { - _t1396 := func(_dollar_dollar *pb.Formula) *pb.Disjunction { - var _t1397 *pb.Disjunction + _t1420 := func(_dollar_dollar *pb.Formula) *pb.Disjunction { + var _t1421 *pb.Disjunction if (hasProtoField(_dollar_dollar, "disjunction") && len(_dollar_dollar.GetDisjunction().GetArgs()) == 0) { - _t1397 = _dollar_dollar.GetDisjunction() + _t1421 = _dollar_dollar.GetDisjunction() } - return _t1397 + return _t1421 } - _t1398 := _t1396(msg) - deconstruct_result835 := _t1398 - if deconstruct_result835 != nil { - unwrapped836 := deconstruct_result835 - p.pretty_false(unwrapped836) + _t1422 := _t1420(msg) + deconstruct_result847 := _t1422 + if deconstruct_result847 != nil { + unwrapped848 := deconstruct_result847 + p.pretty_false(unwrapped848) } else { - _t1399 := func(_dollar_dollar *pb.Formula) *pb.Exists { - var _t1400 *pb.Exists + _t1423 := func(_dollar_dollar *pb.Formula) *pb.Exists { + var _t1424 *pb.Exists if hasProtoField(_dollar_dollar, "exists") { - _t1400 = _dollar_dollar.GetExists() + _t1424 = _dollar_dollar.GetExists() } - return _t1400 + return _t1424 } - _t1401 := _t1399(msg) - deconstruct_result833 := _t1401 - if deconstruct_result833 != nil { - unwrapped834 := deconstruct_result833 - p.pretty_exists(unwrapped834) + _t1425 := _t1423(msg) + deconstruct_result845 := _t1425 + if deconstruct_result845 != nil { + unwrapped846 := deconstruct_result845 + p.pretty_exists(unwrapped846) } else { - _t1402 := func(_dollar_dollar *pb.Formula) *pb.Reduce { - var _t1403 *pb.Reduce + _t1426 := func(_dollar_dollar *pb.Formula) *pb.Reduce { + var _t1427 *pb.Reduce if hasProtoField(_dollar_dollar, "reduce") { - _t1403 = _dollar_dollar.GetReduce() + _t1427 = _dollar_dollar.GetReduce() } - return _t1403 + return _t1427 } - _t1404 := _t1402(msg) - deconstruct_result831 := _t1404 - if deconstruct_result831 != nil { - unwrapped832 := deconstruct_result831 - p.pretty_reduce(unwrapped832) + _t1428 := _t1426(msg) + deconstruct_result843 := _t1428 + if deconstruct_result843 != nil { + unwrapped844 := deconstruct_result843 + p.pretty_reduce(unwrapped844) } else { - _t1405 := func(_dollar_dollar *pb.Formula) *pb.Conjunction { - var _t1406 *pb.Conjunction + _t1429 := func(_dollar_dollar *pb.Formula) *pb.Conjunction { + var _t1430 *pb.Conjunction if (hasProtoField(_dollar_dollar, "conjunction") && !(len(_dollar_dollar.GetConjunction().GetArgs()) == 0)) { - _t1406 = _dollar_dollar.GetConjunction() + _t1430 = _dollar_dollar.GetConjunction() } - return _t1406 + return _t1430 } - _t1407 := _t1405(msg) - deconstruct_result829 := _t1407 - if deconstruct_result829 != nil { - unwrapped830 := deconstruct_result829 - p.pretty_conjunction(unwrapped830) + _t1431 := _t1429(msg) + deconstruct_result841 := _t1431 + if deconstruct_result841 != nil { + unwrapped842 := deconstruct_result841 + p.pretty_conjunction(unwrapped842) } else { - _t1408 := func(_dollar_dollar *pb.Formula) *pb.Disjunction { - var _t1409 *pb.Disjunction + _t1432 := func(_dollar_dollar *pb.Formula) *pb.Disjunction { + var _t1433 *pb.Disjunction if (hasProtoField(_dollar_dollar, "disjunction") && !(len(_dollar_dollar.GetDisjunction().GetArgs()) == 0)) { - _t1409 = _dollar_dollar.GetDisjunction() + _t1433 = _dollar_dollar.GetDisjunction() } - return _t1409 + return _t1433 } - _t1410 := _t1408(msg) - deconstruct_result827 := _t1410 - if deconstruct_result827 != nil { - unwrapped828 := deconstruct_result827 - p.pretty_disjunction(unwrapped828) + _t1434 := _t1432(msg) + deconstruct_result839 := _t1434 + if deconstruct_result839 != nil { + unwrapped840 := deconstruct_result839 + p.pretty_disjunction(unwrapped840) } else { - _t1411 := func(_dollar_dollar *pb.Formula) *pb.Not { - var _t1412 *pb.Not + _t1435 := func(_dollar_dollar *pb.Formula) *pb.Not { + var _t1436 *pb.Not if hasProtoField(_dollar_dollar, "not") { - _t1412 = _dollar_dollar.GetNot() + _t1436 = _dollar_dollar.GetNot() } - return _t1412 + return _t1436 } - _t1413 := _t1411(msg) - deconstruct_result825 := _t1413 - if deconstruct_result825 != nil { - unwrapped826 := deconstruct_result825 - p.pretty_not(unwrapped826) + _t1437 := _t1435(msg) + deconstruct_result837 := _t1437 + if deconstruct_result837 != nil { + unwrapped838 := deconstruct_result837 + p.pretty_not(unwrapped838) } else { - _t1414 := func(_dollar_dollar *pb.Formula) *pb.FFI { - var _t1415 *pb.FFI + _t1438 := func(_dollar_dollar *pb.Formula) *pb.FFI { + var _t1439 *pb.FFI if hasProtoField(_dollar_dollar, "ffi") { - _t1415 = _dollar_dollar.GetFfi() + _t1439 = _dollar_dollar.GetFfi() } - return _t1415 + return _t1439 } - _t1416 := _t1414(msg) - deconstruct_result823 := _t1416 - if deconstruct_result823 != nil { - unwrapped824 := deconstruct_result823 - p.pretty_ffi(unwrapped824) + _t1440 := _t1438(msg) + deconstruct_result835 := _t1440 + if deconstruct_result835 != nil { + unwrapped836 := deconstruct_result835 + p.pretty_ffi(unwrapped836) } else { - _t1417 := func(_dollar_dollar *pb.Formula) *pb.Atom { - var _t1418 *pb.Atom + _t1441 := func(_dollar_dollar *pb.Formula) *pb.Atom { + var _t1442 *pb.Atom if hasProtoField(_dollar_dollar, "atom") { - _t1418 = _dollar_dollar.GetAtom() + _t1442 = _dollar_dollar.GetAtom() } - return _t1418 + return _t1442 } - _t1419 := _t1417(msg) - deconstruct_result821 := _t1419 - if deconstruct_result821 != nil { - unwrapped822 := deconstruct_result821 - p.pretty_atom(unwrapped822) + _t1443 := _t1441(msg) + deconstruct_result833 := _t1443 + if deconstruct_result833 != nil { + unwrapped834 := deconstruct_result833 + p.pretty_atom(unwrapped834) } else { - _t1420 := func(_dollar_dollar *pb.Formula) *pb.Pragma { - var _t1421 *pb.Pragma + _t1444 := func(_dollar_dollar *pb.Formula) *pb.Pragma { + var _t1445 *pb.Pragma if hasProtoField(_dollar_dollar, "pragma") { - _t1421 = _dollar_dollar.GetPragma() + _t1445 = _dollar_dollar.GetPragma() } - return _t1421 + return _t1445 } - _t1422 := _t1420(msg) - deconstruct_result819 := _t1422 - if deconstruct_result819 != nil { - unwrapped820 := deconstruct_result819 - p.pretty_pragma(unwrapped820) + _t1446 := _t1444(msg) + deconstruct_result831 := _t1446 + if deconstruct_result831 != nil { + unwrapped832 := deconstruct_result831 + p.pretty_pragma(unwrapped832) } else { - _t1423 := func(_dollar_dollar *pb.Formula) *pb.Primitive { - var _t1424 *pb.Primitive + _t1447 := func(_dollar_dollar *pb.Formula) *pb.Primitive { + var _t1448 *pb.Primitive if hasProtoField(_dollar_dollar, "primitive") { - _t1424 = _dollar_dollar.GetPrimitive() + _t1448 = _dollar_dollar.GetPrimitive() } - return _t1424 + return _t1448 } - _t1425 := _t1423(msg) - deconstruct_result817 := _t1425 - if deconstruct_result817 != nil { - unwrapped818 := deconstruct_result817 - p.pretty_primitive(unwrapped818) + _t1449 := _t1447(msg) + deconstruct_result829 := _t1449 + if deconstruct_result829 != nil { + unwrapped830 := deconstruct_result829 + p.pretty_primitive(unwrapped830) } else { - _t1426 := func(_dollar_dollar *pb.Formula) *pb.RelAtom { - var _t1427 *pb.RelAtom + _t1450 := func(_dollar_dollar *pb.Formula) *pb.RelAtom { + var _t1451 *pb.RelAtom if hasProtoField(_dollar_dollar, "rel_atom") { - _t1427 = _dollar_dollar.GetRelAtom() + _t1451 = _dollar_dollar.GetRelAtom() } - return _t1427 + return _t1451 } - _t1428 := _t1426(msg) - deconstruct_result815 := _t1428 - if deconstruct_result815 != nil { - unwrapped816 := deconstruct_result815 - p.pretty_rel_atom(unwrapped816) + _t1452 := _t1450(msg) + deconstruct_result827 := _t1452 + if deconstruct_result827 != nil { + unwrapped828 := deconstruct_result827 + p.pretty_rel_atom(unwrapped828) } else { - _t1429 := func(_dollar_dollar *pb.Formula) *pb.Cast { - var _t1430 *pb.Cast + _t1453 := func(_dollar_dollar *pb.Formula) *pb.Cast { + var _t1454 *pb.Cast if hasProtoField(_dollar_dollar, "cast") { - _t1430 = _dollar_dollar.GetCast() + _t1454 = _dollar_dollar.GetCast() } - return _t1430 + return _t1454 } - _t1431 := _t1429(msg) - deconstruct_result813 := _t1431 - if deconstruct_result813 != nil { - unwrapped814 := deconstruct_result813 - p.pretty_cast(unwrapped814) + _t1455 := _t1453(msg) + deconstruct_result825 := _t1455 + if deconstruct_result825 != nil { + unwrapped826 := deconstruct_result825 + p.pretty_cast(unwrapped826) } else { panic(ParseError{msg: "No matching rule for formula"}) } @@ -1814,8 +1818,8 @@ func (p *PrettyPrinter) pretty_formula(msg *pb.Formula) interface{} { } func (p *PrettyPrinter) pretty_true(msg *pb.Conjunction) interface{} { - fields840 := msg - _ = fields840 + fields852 := msg + _ = fields852 p.write("(") p.write("true") p.write(")") @@ -1823,8 +1827,8 @@ func (p *PrettyPrinter) pretty_true(msg *pb.Conjunction) interface{} { } func (p *PrettyPrinter) pretty_false(msg *pb.Disjunction) interface{} { - fields841 := msg - _ = fields841 + fields853 := msg + _ = fields853 p.write("(") p.write("false") p.write(")") @@ -1832,27 +1836,27 @@ func (p *PrettyPrinter) pretty_false(msg *pb.Disjunction) interface{} { } func (p *PrettyPrinter) pretty_exists(msg *pb.Exists) interface{} { - flat846 := p.tryFlat(msg, func() { p.pretty_exists(msg) }) - if flat846 != nil { - p.write(*flat846) + flat858 := p.tryFlat(msg, func() { p.pretty_exists(msg) }) + if flat858 != nil { + p.write(*flat858) return nil } else { - _t1432 := func(_dollar_dollar *pb.Exists) []interface{} { - _t1433 := p.deconstruct_bindings(_dollar_dollar.GetBody()) - return []interface{}{_t1433, _dollar_dollar.GetBody().GetValue()} + _t1456 := func(_dollar_dollar *pb.Exists) []interface{} { + _t1457 := p.deconstruct_bindings(_dollar_dollar.GetBody()) + return []interface{}{_t1457, _dollar_dollar.GetBody().GetValue()} } - _t1434 := _t1432(msg) - fields842 := _t1434 - unwrapped_fields843 := fields842 + _t1458 := _t1456(msg) + fields854 := _t1458 + unwrapped_fields855 := fields854 p.write("(") p.write("exists") p.indentSexp() p.newline() - field844 := unwrapped_fields843[0].([]interface{}) - p.pretty_bindings(field844) + field856 := unwrapped_fields855[0].([]interface{}) + p.pretty_bindings(field856) p.newline() - field845 := unwrapped_fields843[1].(*pb.Formula) - p.pretty_formula(field845) + field857 := unwrapped_fields855[1].(*pb.Formula) + p.pretty_formula(field857) p.dedent() p.write(")") } @@ -1860,29 +1864,29 @@ func (p *PrettyPrinter) pretty_exists(msg *pb.Exists) interface{} { } func (p *PrettyPrinter) pretty_reduce(msg *pb.Reduce) interface{} { - flat852 := p.tryFlat(msg, func() { p.pretty_reduce(msg) }) - if flat852 != nil { - p.write(*flat852) + flat864 := p.tryFlat(msg, func() { p.pretty_reduce(msg) }) + if flat864 != nil { + p.write(*flat864) return nil } else { - _t1435 := func(_dollar_dollar *pb.Reduce) []interface{} { + _t1459 := func(_dollar_dollar *pb.Reduce) []interface{} { return []interface{}{_dollar_dollar.GetOp(), _dollar_dollar.GetBody(), _dollar_dollar.GetTerms()} } - _t1436 := _t1435(msg) - fields847 := _t1436 - unwrapped_fields848 := fields847 + _t1460 := _t1459(msg) + fields859 := _t1460 + unwrapped_fields860 := fields859 p.write("(") p.write("reduce") p.indentSexp() p.newline() - field849 := unwrapped_fields848[0].(*pb.Abstraction) - p.pretty_abstraction(field849) + field861 := unwrapped_fields860[0].(*pb.Abstraction) + p.pretty_abstraction(field861) p.newline() - field850 := unwrapped_fields848[1].(*pb.Abstraction) - p.pretty_abstraction(field850) + field862 := unwrapped_fields860[1].(*pb.Abstraction) + p.pretty_abstraction(field862) p.newline() - field851 := unwrapped_fields848[2].([]*pb.Term) - p.pretty_terms(field851) + field863 := unwrapped_fields860[2].([]*pb.Term) + p.pretty_terms(field863) p.dedent() p.write(")") } @@ -1890,22 +1894,22 @@ func (p *PrettyPrinter) pretty_reduce(msg *pb.Reduce) interface{} { } func (p *PrettyPrinter) pretty_terms(msg []*pb.Term) interface{} { - flat856 := p.tryFlat(msg, func() { p.pretty_terms(msg) }) - if flat856 != nil { - p.write(*flat856) + flat868 := p.tryFlat(msg, func() { p.pretty_terms(msg) }) + if flat868 != nil { + p.write(*flat868) return nil } else { - fields853 := msg + fields865 := msg p.write("(") p.write("terms") p.indentSexp() - if !(len(fields853) == 0) { + if !(len(fields865) == 0) { p.newline() - for i855, elem854 := range fields853 { - if (i855 > 0) { + for i867, elem866 := range fields865 { + if (i867 > 0) { p.newline() } - p.pretty_term(elem854) + p.pretty_term(elem866) } } p.dedent() @@ -1915,36 +1919,36 @@ func (p *PrettyPrinter) pretty_terms(msg []*pb.Term) interface{} { } func (p *PrettyPrinter) pretty_term(msg *pb.Term) interface{} { - flat861 := p.tryFlat(msg, func() { p.pretty_term(msg) }) - if flat861 != nil { - p.write(*flat861) + flat873 := p.tryFlat(msg, func() { p.pretty_term(msg) }) + if flat873 != nil { + p.write(*flat873) return nil } else { - _t1437 := func(_dollar_dollar *pb.Term) *pb.Var { - var _t1438 *pb.Var + _t1461 := func(_dollar_dollar *pb.Term) *pb.Var { + var _t1462 *pb.Var if hasProtoField(_dollar_dollar, "var") { - _t1438 = _dollar_dollar.GetVar() + _t1462 = _dollar_dollar.GetVar() } - return _t1438 + return _t1462 } - _t1439 := _t1437(msg) - deconstruct_result859 := _t1439 - if deconstruct_result859 != nil { - unwrapped860 := deconstruct_result859 - p.pretty_var(unwrapped860) + _t1463 := _t1461(msg) + deconstruct_result871 := _t1463 + if deconstruct_result871 != nil { + unwrapped872 := deconstruct_result871 + p.pretty_var(unwrapped872) } else { - _t1440 := func(_dollar_dollar *pb.Term) *pb.Value { - var _t1441 *pb.Value + _t1464 := func(_dollar_dollar *pb.Term) *pb.Value { + var _t1465 *pb.Value if hasProtoField(_dollar_dollar, "constant") { - _t1441 = _dollar_dollar.GetConstant() + _t1465 = _dollar_dollar.GetConstant() } - return _t1441 + return _t1465 } - _t1442 := _t1440(msg) - deconstruct_result857 := _t1442 - if deconstruct_result857 != nil { - unwrapped858 := deconstruct_result857 - p.pretty_constant(unwrapped858) + _t1466 := _t1464(msg) + deconstruct_result869 := _t1466 + if deconstruct_result869 != nil { + unwrapped870 := deconstruct_result869 + p.pretty_constant(unwrapped870) } else { panic(ParseError{msg: "No matching rule for term"}) } @@ -1954,56 +1958,56 @@ func (p *PrettyPrinter) pretty_term(msg *pb.Term) interface{} { } func (p *PrettyPrinter) pretty_var(msg *pb.Var) interface{} { - flat864 := p.tryFlat(msg, func() { p.pretty_var(msg) }) - if flat864 != nil { - p.write(*flat864) + flat876 := p.tryFlat(msg, func() { p.pretty_var(msg) }) + if flat876 != nil { + p.write(*flat876) return nil } else { - _t1443 := func(_dollar_dollar *pb.Var) string { + _t1467 := func(_dollar_dollar *pb.Var) string { return _dollar_dollar.GetName() } - _t1444 := _t1443(msg) - fields862 := _t1444 - unwrapped_fields863 := fields862 - p.write(unwrapped_fields863) + _t1468 := _t1467(msg) + fields874 := _t1468 + unwrapped_fields875 := fields874 + p.write(unwrapped_fields875) } return nil } func (p *PrettyPrinter) pretty_constant(msg *pb.Value) interface{} { - flat866 := p.tryFlat(msg, func() { p.pretty_constant(msg) }) - if flat866 != nil { - p.write(*flat866) + flat878 := p.tryFlat(msg, func() { p.pretty_constant(msg) }) + if flat878 != nil { + p.write(*flat878) return nil } else { - fields865 := msg - p.pretty_value(fields865) + fields877 := msg + p.pretty_value(fields877) } return nil } func (p *PrettyPrinter) pretty_conjunction(msg *pb.Conjunction) interface{} { - flat871 := p.tryFlat(msg, func() { p.pretty_conjunction(msg) }) - if flat871 != nil { - p.write(*flat871) + flat883 := p.tryFlat(msg, func() { p.pretty_conjunction(msg) }) + if flat883 != nil { + p.write(*flat883) return nil } else { - _t1445 := func(_dollar_dollar *pb.Conjunction) []*pb.Formula { + _t1469 := func(_dollar_dollar *pb.Conjunction) []*pb.Formula { return _dollar_dollar.GetArgs() } - _t1446 := _t1445(msg) - fields867 := _t1446 - unwrapped_fields868 := fields867 + _t1470 := _t1469(msg) + fields879 := _t1470 + unwrapped_fields880 := fields879 p.write("(") p.write("and") p.indentSexp() - if !(len(unwrapped_fields868) == 0) { + if !(len(unwrapped_fields880) == 0) { p.newline() - for i870, elem869 := range unwrapped_fields868 { - if (i870 > 0) { + for i882, elem881 := range unwrapped_fields880 { + if (i882 > 0) { p.newline() } - p.pretty_formula(elem869) + p.pretty_formula(elem881) } } p.dedent() @@ -2013,27 +2017,27 @@ func (p *PrettyPrinter) pretty_conjunction(msg *pb.Conjunction) interface{} { } func (p *PrettyPrinter) pretty_disjunction(msg *pb.Disjunction) interface{} { - flat876 := p.tryFlat(msg, func() { p.pretty_disjunction(msg) }) - if flat876 != nil { - p.write(*flat876) + flat888 := p.tryFlat(msg, func() { p.pretty_disjunction(msg) }) + if flat888 != nil { + p.write(*flat888) return nil } else { - _t1447 := func(_dollar_dollar *pb.Disjunction) []*pb.Formula { + _t1471 := func(_dollar_dollar *pb.Disjunction) []*pb.Formula { return _dollar_dollar.GetArgs() } - _t1448 := _t1447(msg) - fields872 := _t1448 - unwrapped_fields873 := fields872 + _t1472 := _t1471(msg) + fields884 := _t1472 + unwrapped_fields885 := fields884 p.write("(") p.write("or") p.indentSexp() - if !(len(unwrapped_fields873) == 0) { + if !(len(unwrapped_fields885) == 0) { p.newline() - for i875, elem874 := range unwrapped_fields873 { - if (i875 > 0) { + for i887, elem886 := range unwrapped_fields885 { + if (i887 > 0) { p.newline() } - p.pretty_formula(elem874) + p.pretty_formula(elem886) } } p.dedent() @@ -2043,22 +2047,22 @@ func (p *PrettyPrinter) pretty_disjunction(msg *pb.Disjunction) interface{} { } func (p *PrettyPrinter) pretty_not(msg *pb.Not) interface{} { - flat879 := p.tryFlat(msg, func() { p.pretty_not(msg) }) - if flat879 != nil { - p.write(*flat879) + flat891 := p.tryFlat(msg, func() { p.pretty_not(msg) }) + if flat891 != nil { + p.write(*flat891) return nil } else { - _t1449 := func(_dollar_dollar *pb.Not) *pb.Formula { + _t1473 := func(_dollar_dollar *pb.Not) *pb.Formula { return _dollar_dollar.GetArg() } - _t1450 := _t1449(msg) - fields877 := _t1450 - unwrapped_fields878 := fields877 + _t1474 := _t1473(msg) + fields889 := _t1474 + unwrapped_fields890 := fields889 p.write("(") p.write("not") p.indentSexp() p.newline() - p.pretty_formula(unwrapped_fields878) + p.pretty_formula(unwrapped_fields890) p.dedent() p.write(")") } @@ -2066,29 +2070,29 @@ func (p *PrettyPrinter) pretty_not(msg *pb.Not) interface{} { } func (p *PrettyPrinter) pretty_ffi(msg *pb.FFI) interface{} { - flat885 := p.tryFlat(msg, func() { p.pretty_ffi(msg) }) - if flat885 != nil { - p.write(*flat885) + flat897 := p.tryFlat(msg, func() { p.pretty_ffi(msg) }) + if flat897 != nil { + p.write(*flat897) return nil } else { - _t1451 := func(_dollar_dollar *pb.FFI) []interface{} { + _t1475 := func(_dollar_dollar *pb.FFI) []interface{} { return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs(), _dollar_dollar.GetTerms()} } - _t1452 := _t1451(msg) - fields880 := _t1452 - unwrapped_fields881 := fields880 + _t1476 := _t1475(msg) + fields892 := _t1476 + unwrapped_fields893 := fields892 p.write("(") p.write("ffi") p.indentSexp() p.newline() - field882 := unwrapped_fields881[0].(string) - p.pretty_name(field882) + field894 := unwrapped_fields893[0].(string) + p.pretty_name(field894) p.newline() - field883 := unwrapped_fields881[1].([]*pb.Abstraction) - p.pretty_ffi_args(field883) + field895 := unwrapped_fields893[1].([]*pb.Abstraction) + p.pretty_ffi_args(field895) p.newline() - field884 := unwrapped_fields881[2].([]*pb.Term) - p.pretty_terms(field884) + field896 := unwrapped_fields893[2].([]*pb.Term) + p.pretty_terms(field896) p.dedent() p.write(")") } @@ -2096,35 +2100,35 @@ func (p *PrettyPrinter) pretty_ffi(msg *pb.FFI) interface{} { } func (p *PrettyPrinter) pretty_name(msg string) interface{} { - flat887 := p.tryFlat(msg, func() { p.pretty_name(msg) }) - if flat887 != nil { - p.write(*flat887) + flat899 := p.tryFlat(msg, func() { p.pretty_name(msg) }) + if flat899 != nil { + p.write(*flat899) return nil } else { - fields886 := msg + fields898 := msg p.write(":") - p.write(fields886) + p.write(fields898) } return nil } func (p *PrettyPrinter) pretty_ffi_args(msg []*pb.Abstraction) interface{} { - flat891 := p.tryFlat(msg, func() { p.pretty_ffi_args(msg) }) - if flat891 != nil { - p.write(*flat891) + flat903 := p.tryFlat(msg, func() { p.pretty_ffi_args(msg) }) + if flat903 != nil { + p.write(*flat903) return nil } else { - fields888 := msg + fields900 := msg p.write("(") p.write("args") p.indentSexp() - if !(len(fields888) == 0) { + if !(len(fields900) == 0) { p.newline() - for i890, elem889 := range fields888 { - if (i890 > 0) { + for i902, elem901 := range fields900 { + if (i902 > 0) { p.newline() } - p.pretty_abstraction(elem889) + p.pretty_abstraction(elem901) } } p.dedent() @@ -2134,31 +2138,31 @@ func (p *PrettyPrinter) pretty_ffi_args(msg []*pb.Abstraction) interface{} { } func (p *PrettyPrinter) pretty_atom(msg *pb.Atom) interface{} { - flat898 := p.tryFlat(msg, func() { p.pretty_atom(msg) }) - if flat898 != nil { - p.write(*flat898) + flat910 := p.tryFlat(msg, func() { p.pretty_atom(msg) }) + if flat910 != nil { + p.write(*flat910) return nil } else { - _t1453 := func(_dollar_dollar *pb.Atom) []interface{} { + _t1477 := func(_dollar_dollar *pb.Atom) []interface{} { return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} } - _t1454 := _t1453(msg) - fields892 := _t1454 - unwrapped_fields893 := fields892 + _t1478 := _t1477(msg) + fields904 := _t1478 + unwrapped_fields905 := fields904 p.write("(") p.write("atom") p.indentSexp() p.newline() - field894 := unwrapped_fields893[0].(*pb.RelationId) - p.pretty_relation_id(field894) - field895 := unwrapped_fields893[1].([]*pb.Term) - if !(len(field895) == 0) { + field906 := unwrapped_fields905[0].(*pb.RelationId) + p.pretty_relation_id(field906) + field907 := unwrapped_fields905[1].([]*pb.Term) + if !(len(field907) == 0) { p.newline() - for i897, elem896 := range field895 { - if (i897 > 0) { + for i909, elem908 := range field907 { + if (i909 > 0) { p.newline() } - p.pretty_term(elem896) + p.pretty_term(elem908) } } p.dedent() @@ -2168,31 +2172,31 @@ func (p *PrettyPrinter) pretty_atom(msg *pb.Atom) interface{} { } func (p *PrettyPrinter) pretty_pragma(msg *pb.Pragma) interface{} { - flat905 := p.tryFlat(msg, func() { p.pretty_pragma(msg) }) - if flat905 != nil { - p.write(*flat905) + flat917 := p.tryFlat(msg, func() { p.pretty_pragma(msg) }) + if flat917 != nil { + p.write(*flat917) return nil } else { - _t1455 := func(_dollar_dollar *pb.Pragma) []interface{} { + _t1479 := func(_dollar_dollar *pb.Pragma) []interface{} { return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} } - _t1456 := _t1455(msg) - fields899 := _t1456 - unwrapped_fields900 := fields899 + _t1480 := _t1479(msg) + fields911 := _t1480 + unwrapped_fields912 := fields911 p.write("(") p.write("pragma") p.indentSexp() p.newline() - field901 := unwrapped_fields900[0].(string) - p.pretty_name(field901) - field902 := unwrapped_fields900[1].([]*pb.Term) - if !(len(field902) == 0) { + field913 := unwrapped_fields912[0].(string) + p.pretty_name(field913) + field914 := unwrapped_fields912[1].([]*pb.Term) + if !(len(field914) == 0) { p.newline() - for i904, elem903 := range field902 { - if (i904 > 0) { + for i916, elem915 := range field914 { + if (i916 > 0) { p.newline() } - p.pretty_term(elem903) + p.pretty_term(elem915) } } p.dedent() @@ -2202,139 +2206,139 @@ func (p *PrettyPrinter) pretty_pragma(msg *pb.Pragma) interface{} { } func (p *PrettyPrinter) pretty_primitive(msg *pb.Primitive) interface{} { - flat921 := p.tryFlat(msg, func() { p.pretty_primitive(msg) }) - if flat921 != nil { - p.write(*flat921) + flat933 := p.tryFlat(msg, func() { p.pretty_primitive(msg) }) + if flat933 != nil { + p.write(*flat933) return nil } else { - _t1457 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1458 []interface{} + _t1481 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1482 []interface{} if _dollar_dollar.GetName() == "rel_primitive_eq" { - _t1458 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1482 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - return _t1458 + return _t1482 } - _t1459 := _t1457(msg) - guard_result920 := _t1459 - if guard_result920 != nil { + _t1483 := _t1481(msg) + guard_result932 := _t1483 + if guard_result932 != nil { p.pretty_eq(msg) } else { - _t1460 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1461 []interface{} + _t1484 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1485 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_monotype" { - _t1461 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1485 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - return _t1461 + return _t1485 } - _t1462 := _t1460(msg) - guard_result919 := _t1462 - if guard_result919 != nil { + _t1486 := _t1484(msg) + guard_result931 := _t1486 + if guard_result931 != nil { p.pretty_lt(msg) } else { - _t1463 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1464 []interface{} + _t1487 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1488 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_eq_monotype" { - _t1464 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1488 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - return _t1464 + return _t1488 } - _t1465 := _t1463(msg) - guard_result918 := _t1465 - if guard_result918 != nil { + _t1489 := _t1487(msg) + guard_result930 := _t1489 + if guard_result930 != nil { p.pretty_lt_eq(msg) } else { - _t1466 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1467 []interface{} + _t1490 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1491 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_monotype" { - _t1467 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1491 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - return _t1467 + return _t1491 } - _t1468 := _t1466(msg) - guard_result917 := _t1468 - if guard_result917 != nil { + _t1492 := _t1490(msg) + guard_result929 := _t1492 + if guard_result929 != nil { p.pretty_gt(msg) } else { - _t1469 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1470 []interface{} + _t1493 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1494 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_eq_monotype" { - _t1470 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1494 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - return _t1470 + return _t1494 } - _t1471 := _t1469(msg) - guard_result916 := _t1471 - if guard_result916 != nil { + _t1495 := _t1493(msg) + guard_result928 := _t1495 + if guard_result928 != nil { p.pretty_gt_eq(msg) } else { - _t1472 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1473 []interface{} + _t1496 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1497 []interface{} if _dollar_dollar.GetName() == "rel_primitive_add_monotype" { - _t1473 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1497 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - return _t1473 + return _t1497 } - _t1474 := _t1472(msg) - guard_result915 := _t1474 - if guard_result915 != nil { + _t1498 := _t1496(msg) + guard_result927 := _t1498 + if guard_result927 != nil { p.pretty_add(msg) } else { - _t1475 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1476 []interface{} + _t1499 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1500 []interface{} if _dollar_dollar.GetName() == "rel_primitive_subtract_monotype" { - _t1476 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1500 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - return _t1476 + return _t1500 } - _t1477 := _t1475(msg) - guard_result914 := _t1477 - if guard_result914 != nil { + _t1501 := _t1499(msg) + guard_result926 := _t1501 + if guard_result926 != nil { p.pretty_minus(msg) } else { - _t1478 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1479 []interface{} + _t1502 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1503 []interface{} if _dollar_dollar.GetName() == "rel_primitive_multiply_monotype" { - _t1479 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1503 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - return _t1479 + return _t1503 } - _t1480 := _t1478(msg) - guard_result913 := _t1480 - if guard_result913 != nil { + _t1504 := _t1502(msg) + guard_result925 := _t1504 + if guard_result925 != nil { p.pretty_multiply(msg) } else { - _t1481 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1482 []interface{} + _t1505 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1506 []interface{} if _dollar_dollar.GetName() == "rel_primitive_divide_monotype" { - _t1482 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1506 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - return _t1482 + return _t1506 } - _t1483 := _t1481(msg) - guard_result912 := _t1483 - if guard_result912 != nil { + _t1507 := _t1505(msg) + guard_result924 := _t1507 + if guard_result924 != nil { p.pretty_divide(msg) } else { - _t1484 := func(_dollar_dollar *pb.Primitive) []interface{} { + _t1508 := func(_dollar_dollar *pb.Primitive) []interface{} { return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} } - _t1485 := _t1484(msg) - fields906 := _t1485 - unwrapped_fields907 := fields906 + _t1509 := _t1508(msg) + fields918 := _t1509 + unwrapped_fields919 := fields918 p.write("(") p.write("primitive") p.indentSexp() p.newline() - field908 := unwrapped_fields907[0].(string) - p.pretty_name(field908) - field909 := unwrapped_fields907[1].([]*pb.RelTerm) - if !(len(field909) == 0) { + field920 := unwrapped_fields919[0].(string) + p.pretty_name(field920) + field921 := unwrapped_fields919[1].([]*pb.RelTerm) + if !(len(field921) == 0) { p.newline() - for i911, elem910 := range field909 { - if (i911 > 0) { + for i923, elem922 := range field921 { + if (i923 > 0) { p.newline() } - p.pretty_rel_term(elem910) + p.pretty_rel_term(elem922) } } p.dedent() @@ -2353,30 +2357,30 @@ func (p *PrettyPrinter) pretty_primitive(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_eq(msg *pb.Primitive) interface{} { - flat926 := p.tryFlat(msg, func() { p.pretty_eq(msg) }) - if flat926 != nil { - p.write(*flat926) + flat938 := p.tryFlat(msg, func() { p.pretty_eq(msg) }) + if flat938 != nil { + p.write(*flat938) return nil } else { - _t1486 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1487 []interface{} + _t1510 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1511 []interface{} if _dollar_dollar.GetName() == "rel_primitive_eq" { - _t1487 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1511 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - return _t1487 + return _t1511 } - _t1488 := _t1486(msg) - fields922 := _t1488 - unwrapped_fields923 := fields922 + _t1512 := _t1510(msg) + fields934 := _t1512 + unwrapped_fields935 := fields934 p.write("(") p.write("=") p.indentSexp() p.newline() - field924 := unwrapped_fields923[0].(*pb.Term) - p.pretty_term(field924) + field936 := unwrapped_fields935[0].(*pb.Term) + p.pretty_term(field936) p.newline() - field925 := unwrapped_fields923[1].(*pb.Term) - p.pretty_term(field925) + field937 := unwrapped_fields935[1].(*pb.Term) + p.pretty_term(field937) p.dedent() p.write(")") } @@ -2384,30 +2388,30 @@ func (p *PrettyPrinter) pretty_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_lt(msg *pb.Primitive) interface{} { - flat931 := p.tryFlat(msg, func() { p.pretty_lt(msg) }) - if flat931 != nil { - p.write(*flat931) + flat943 := p.tryFlat(msg, func() { p.pretty_lt(msg) }) + if flat943 != nil { + p.write(*flat943) return nil } else { - _t1489 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1490 []interface{} + _t1513 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1514 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_monotype" { - _t1490 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1514 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - return _t1490 + return _t1514 } - _t1491 := _t1489(msg) - fields927 := _t1491 - unwrapped_fields928 := fields927 + _t1515 := _t1513(msg) + fields939 := _t1515 + unwrapped_fields940 := fields939 p.write("(") p.write("<") p.indentSexp() p.newline() - field929 := unwrapped_fields928[0].(*pb.Term) - p.pretty_term(field929) + field941 := unwrapped_fields940[0].(*pb.Term) + p.pretty_term(field941) p.newline() - field930 := unwrapped_fields928[1].(*pb.Term) - p.pretty_term(field930) + field942 := unwrapped_fields940[1].(*pb.Term) + p.pretty_term(field942) p.dedent() p.write(")") } @@ -2415,30 +2419,30 @@ func (p *PrettyPrinter) pretty_lt(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_lt_eq(msg *pb.Primitive) interface{} { - flat936 := p.tryFlat(msg, func() { p.pretty_lt_eq(msg) }) - if flat936 != nil { - p.write(*flat936) + flat948 := p.tryFlat(msg, func() { p.pretty_lt_eq(msg) }) + if flat948 != nil { + p.write(*flat948) return nil } else { - _t1492 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1493 []interface{} + _t1516 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1517 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_eq_monotype" { - _t1493 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1517 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - return _t1493 + return _t1517 } - _t1494 := _t1492(msg) - fields932 := _t1494 - unwrapped_fields933 := fields932 + _t1518 := _t1516(msg) + fields944 := _t1518 + unwrapped_fields945 := fields944 p.write("(") p.write("<=") p.indentSexp() p.newline() - field934 := unwrapped_fields933[0].(*pb.Term) - p.pretty_term(field934) + field946 := unwrapped_fields945[0].(*pb.Term) + p.pretty_term(field946) p.newline() - field935 := unwrapped_fields933[1].(*pb.Term) - p.pretty_term(field935) + field947 := unwrapped_fields945[1].(*pb.Term) + p.pretty_term(field947) p.dedent() p.write(")") } @@ -2446,30 +2450,30 @@ func (p *PrettyPrinter) pretty_lt_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_gt(msg *pb.Primitive) interface{} { - flat941 := p.tryFlat(msg, func() { p.pretty_gt(msg) }) - if flat941 != nil { - p.write(*flat941) + flat953 := p.tryFlat(msg, func() { p.pretty_gt(msg) }) + if flat953 != nil { + p.write(*flat953) return nil } else { - _t1495 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1496 []interface{} + _t1519 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1520 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_monotype" { - _t1496 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1520 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - return _t1496 + return _t1520 } - _t1497 := _t1495(msg) - fields937 := _t1497 - unwrapped_fields938 := fields937 + _t1521 := _t1519(msg) + fields949 := _t1521 + unwrapped_fields950 := fields949 p.write("(") p.write(">") p.indentSexp() p.newline() - field939 := unwrapped_fields938[0].(*pb.Term) - p.pretty_term(field939) + field951 := unwrapped_fields950[0].(*pb.Term) + p.pretty_term(field951) p.newline() - field940 := unwrapped_fields938[1].(*pb.Term) - p.pretty_term(field940) + field952 := unwrapped_fields950[1].(*pb.Term) + p.pretty_term(field952) p.dedent() p.write(")") } @@ -2477,30 +2481,30 @@ func (p *PrettyPrinter) pretty_gt(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_gt_eq(msg *pb.Primitive) interface{} { - flat946 := p.tryFlat(msg, func() { p.pretty_gt_eq(msg) }) - if flat946 != nil { - p.write(*flat946) + flat958 := p.tryFlat(msg, func() { p.pretty_gt_eq(msg) }) + if flat958 != nil { + p.write(*flat958) return nil } else { - _t1498 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1499 []interface{} + _t1522 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1523 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_eq_monotype" { - _t1499 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1523 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - return _t1499 + return _t1523 } - _t1500 := _t1498(msg) - fields942 := _t1500 - unwrapped_fields943 := fields942 + _t1524 := _t1522(msg) + fields954 := _t1524 + unwrapped_fields955 := fields954 p.write("(") p.write(">=") p.indentSexp() p.newline() - field944 := unwrapped_fields943[0].(*pb.Term) - p.pretty_term(field944) + field956 := unwrapped_fields955[0].(*pb.Term) + p.pretty_term(field956) p.newline() - field945 := unwrapped_fields943[1].(*pb.Term) - p.pretty_term(field945) + field957 := unwrapped_fields955[1].(*pb.Term) + p.pretty_term(field957) p.dedent() p.write(")") } @@ -2508,33 +2512,33 @@ func (p *PrettyPrinter) pretty_gt_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_add(msg *pb.Primitive) interface{} { - flat952 := p.tryFlat(msg, func() { p.pretty_add(msg) }) - if flat952 != nil { - p.write(*flat952) + flat964 := p.tryFlat(msg, func() { p.pretty_add(msg) }) + if flat964 != nil { + p.write(*flat964) return nil } else { - _t1501 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1502 []interface{} + _t1525 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1526 []interface{} if _dollar_dollar.GetName() == "rel_primitive_add_monotype" { - _t1502 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1526 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - return _t1502 + return _t1526 } - _t1503 := _t1501(msg) - fields947 := _t1503 - unwrapped_fields948 := fields947 + _t1527 := _t1525(msg) + fields959 := _t1527 + unwrapped_fields960 := fields959 p.write("(") p.write("+") p.indentSexp() p.newline() - field949 := unwrapped_fields948[0].(*pb.Term) - p.pretty_term(field949) + field961 := unwrapped_fields960[0].(*pb.Term) + p.pretty_term(field961) p.newline() - field950 := unwrapped_fields948[1].(*pb.Term) - p.pretty_term(field950) + field962 := unwrapped_fields960[1].(*pb.Term) + p.pretty_term(field962) p.newline() - field951 := unwrapped_fields948[2].(*pb.Term) - p.pretty_term(field951) + field963 := unwrapped_fields960[2].(*pb.Term) + p.pretty_term(field963) p.dedent() p.write(")") } @@ -2542,33 +2546,33 @@ func (p *PrettyPrinter) pretty_add(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_minus(msg *pb.Primitive) interface{} { - flat958 := p.tryFlat(msg, func() { p.pretty_minus(msg) }) - if flat958 != nil { - p.write(*flat958) + flat970 := p.tryFlat(msg, func() { p.pretty_minus(msg) }) + if flat970 != nil { + p.write(*flat970) return nil } else { - _t1504 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1505 []interface{} + _t1528 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1529 []interface{} if _dollar_dollar.GetName() == "rel_primitive_subtract_monotype" { - _t1505 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1529 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - return _t1505 + return _t1529 } - _t1506 := _t1504(msg) - fields953 := _t1506 - unwrapped_fields954 := fields953 + _t1530 := _t1528(msg) + fields965 := _t1530 + unwrapped_fields966 := fields965 p.write("(") p.write("-") p.indentSexp() p.newline() - field955 := unwrapped_fields954[0].(*pb.Term) - p.pretty_term(field955) + field967 := unwrapped_fields966[0].(*pb.Term) + p.pretty_term(field967) p.newline() - field956 := unwrapped_fields954[1].(*pb.Term) - p.pretty_term(field956) + field968 := unwrapped_fields966[1].(*pb.Term) + p.pretty_term(field968) p.newline() - field957 := unwrapped_fields954[2].(*pb.Term) - p.pretty_term(field957) + field969 := unwrapped_fields966[2].(*pb.Term) + p.pretty_term(field969) p.dedent() p.write(")") } @@ -2576,33 +2580,33 @@ func (p *PrettyPrinter) pretty_minus(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_multiply(msg *pb.Primitive) interface{} { - flat964 := p.tryFlat(msg, func() { p.pretty_multiply(msg) }) - if flat964 != nil { - p.write(*flat964) + flat976 := p.tryFlat(msg, func() { p.pretty_multiply(msg) }) + if flat976 != nil { + p.write(*flat976) return nil } else { - _t1507 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1508 []interface{} + _t1531 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1532 []interface{} if _dollar_dollar.GetName() == "rel_primitive_multiply_monotype" { - _t1508 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1532 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - return _t1508 + return _t1532 } - _t1509 := _t1507(msg) - fields959 := _t1509 - unwrapped_fields960 := fields959 + _t1533 := _t1531(msg) + fields971 := _t1533 + unwrapped_fields972 := fields971 p.write("(") p.write("*") p.indentSexp() p.newline() - field961 := unwrapped_fields960[0].(*pb.Term) - p.pretty_term(field961) + field973 := unwrapped_fields972[0].(*pb.Term) + p.pretty_term(field973) p.newline() - field962 := unwrapped_fields960[1].(*pb.Term) - p.pretty_term(field962) + field974 := unwrapped_fields972[1].(*pb.Term) + p.pretty_term(field974) p.newline() - field963 := unwrapped_fields960[2].(*pb.Term) - p.pretty_term(field963) + field975 := unwrapped_fields972[2].(*pb.Term) + p.pretty_term(field975) p.dedent() p.write(")") } @@ -2610,33 +2614,33 @@ func (p *PrettyPrinter) pretty_multiply(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_divide(msg *pb.Primitive) interface{} { - flat970 := p.tryFlat(msg, func() { p.pretty_divide(msg) }) - if flat970 != nil { - p.write(*flat970) + flat982 := p.tryFlat(msg, func() { p.pretty_divide(msg) }) + if flat982 != nil { + p.write(*flat982) return nil } else { - _t1510 := func(_dollar_dollar *pb.Primitive) []interface{} { - var _t1511 []interface{} + _t1534 := func(_dollar_dollar *pb.Primitive) []interface{} { + var _t1535 []interface{} if _dollar_dollar.GetName() == "rel_primitive_divide_monotype" { - _t1511 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1535 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - return _t1511 + return _t1535 } - _t1512 := _t1510(msg) - fields965 := _t1512 - unwrapped_fields966 := fields965 + _t1536 := _t1534(msg) + fields977 := _t1536 + unwrapped_fields978 := fields977 p.write("(") p.write("/") p.indentSexp() p.newline() - field967 := unwrapped_fields966[0].(*pb.Term) - p.pretty_term(field967) + field979 := unwrapped_fields978[0].(*pb.Term) + p.pretty_term(field979) p.newline() - field968 := unwrapped_fields966[1].(*pb.Term) - p.pretty_term(field968) + field980 := unwrapped_fields978[1].(*pb.Term) + p.pretty_term(field980) p.newline() - field969 := unwrapped_fields966[2].(*pb.Term) - p.pretty_term(field969) + field981 := unwrapped_fields978[2].(*pb.Term) + p.pretty_term(field981) p.dedent() p.write(")") } @@ -2644,36 +2648,36 @@ func (p *PrettyPrinter) pretty_divide(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_rel_term(msg *pb.RelTerm) interface{} { - flat975 := p.tryFlat(msg, func() { p.pretty_rel_term(msg) }) - if flat975 != nil { - p.write(*flat975) + flat987 := p.tryFlat(msg, func() { p.pretty_rel_term(msg) }) + if flat987 != nil { + p.write(*flat987) return nil } else { - _t1513 := func(_dollar_dollar *pb.RelTerm) *pb.Value { - var _t1514 *pb.Value + _t1537 := func(_dollar_dollar *pb.RelTerm) *pb.Value { + var _t1538 *pb.Value if hasProtoField(_dollar_dollar, "specialized_value") { - _t1514 = _dollar_dollar.GetSpecializedValue() + _t1538 = _dollar_dollar.GetSpecializedValue() } - return _t1514 + return _t1538 } - _t1515 := _t1513(msg) - deconstruct_result973 := _t1515 - if deconstruct_result973 != nil { - unwrapped974 := deconstruct_result973 - p.pretty_specialized_value(unwrapped974) + _t1539 := _t1537(msg) + deconstruct_result985 := _t1539 + if deconstruct_result985 != nil { + unwrapped986 := deconstruct_result985 + p.pretty_specialized_value(unwrapped986) } else { - _t1516 := func(_dollar_dollar *pb.RelTerm) *pb.Term { - var _t1517 *pb.Term + _t1540 := func(_dollar_dollar *pb.RelTerm) *pb.Term { + var _t1541 *pb.Term if hasProtoField(_dollar_dollar, "term") { - _t1517 = _dollar_dollar.GetTerm() + _t1541 = _dollar_dollar.GetTerm() } - return _t1517 + return _t1541 } - _t1518 := _t1516(msg) - deconstruct_result971 := _t1518 - if deconstruct_result971 != nil { - unwrapped972 := deconstruct_result971 - p.pretty_term(unwrapped972) + _t1542 := _t1540(msg) + deconstruct_result983 := _t1542 + if deconstruct_result983 != nil { + unwrapped984 := deconstruct_result983 + p.pretty_term(unwrapped984) } else { panic(ParseError{msg: "No matching rule for rel_term"}) } @@ -2683,44 +2687,44 @@ func (p *PrettyPrinter) pretty_rel_term(msg *pb.RelTerm) interface{} { } func (p *PrettyPrinter) pretty_specialized_value(msg *pb.Value) interface{} { - flat977 := p.tryFlat(msg, func() { p.pretty_specialized_value(msg) }) - if flat977 != nil { - p.write(*flat977) + flat989 := p.tryFlat(msg, func() { p.pretty_specialized_value(msg) }) + if flat989 != nil { + p.write(*flat989) return nil } else { - fields976 := msg + fields988 := msg p.write("#") - p.pretty_value(fields976) + p.pretty_value(fields988) } return nil } func (p *PrettyPrinter) pretty_rel_atom(msg *pb.RelAtom) interface{} { - flat984 := p.tryFlat(msg, func() { p.pretty_rel_atom(msg) }) - if flat984 != nil { - p.write(*flat984) + flat996 := p.tryFlat(msg, func() { p.pretty_rel_atom(msg) }) + if flat996 != nil { + p.write(*flat996) return nil } else { - _t1519 := func(_dollar_dollar *pb.RelAtom) []interface{} { + _t1543 := func(_dollar_dollar *pb.RelAtom) []interface{} { return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} } - _t1520 := _t1519(msg) - fields978 := _t1520 - unwrapped_fields979 := fields978 + _t1544 := _t1543(msg) + fields990 := _t1544 + unwrapped_fields991 := fields990 p.write("(") p.write("relatom") p.indentSexp() p.newline() - field980 := unwrapped_fields979[0].(string) - p.pretty_name(field980) - field981 := unwrapped_fields979[1].([]*pb.RelTerm) - if !(len(field981) == 0) { + field992 := unwrapped_fields991[0].(string) + p.pretty_name(field992) + field993 := unwrapped_fields991[1].([]*pb.RelTerm) + if !(len(field993) == 0) { p.newline() - for i983, elem982 := range field981 { - if (i983 > 0) { + for i995, elem994 := range field993 { + if (i995 > 0) { p.newline() } - p.pretty_rel_term(elem982) + p.pretty_rel_term(elem994) } } p.dedent() @@ -2730,26 +2734,26 @@ func (p *PrettyPrinter) pretty_rel_atom(msg *pb.RelAtom) interface{} { } func (p *PrettyPrinter) pretty_cast(msg *pb.Cast) interface{} { - flat989 := p.tryFlat(msg, func() { p.pretty_cast(msg) }) - if flat989 != nil { - p.write(*flat989) + flat1001 := p.tryFlat(msg, func() { p.pretty_cast(msg) }) + if flat1001 != nil { + p.write(*flat1001) return nil } else { - _t1521 := func(_dollar_dollar *pb.Cast) []interface{} { + _t1545 := func(_dollar_dollar *pb.Cast) []interface{} { return []interface{}{_dollar_dollar.GetInput(), _dollar_dollar.GetResult()} } - _t1522 := _t1521(msg) - fields985 := _t1522 - unwrapped_fields986 := fields985 + _t1546 := _t1545(msg) + fields997 := _t1546 + unwrapped_fields998 := fields997 p.write("(") p.write("cast") p.indentSexp() p.newline() - field987 := unwrapped_fields986[0].(*pb.Term) - p.pretty_term(field987) + field999 := unwrapped_fields998[0].(*pb.Term) + p.pretty_term(field999) p.newline() - field988 := unwrapped_fields986[1].(*pb.Term) - p.pretty_term(field988) + field1000 := unwrapped_fields998[1].(*pb.Term) + p.pretty_term(field1000) p.dedent() p.write(")") } @@ -2757,22 +2761,22 @@ func (p *PrettyPrinter) pretty_cast(msg *pb.Cast) interface{} { } func (p *PrettyPrinter) pretty_attrs(msg []*pb.Attribute) interface{} { - flat993 := p.tryFlat(msg, func() { p.pretty_attrs(msg) }) - if flat993 != nil { - p.write(*flat993) + flat1005 := p.tryFlat(msg, func() { p.pretty_attrs(msg) }) + if flat1005 != nil { + p.write(*flat1005) return nil } else { - fields990 := msg + fields1002 := msg p.write("(") p.write("attrs") p.indentSexp() - if !(len(fields990) == 0) { + if !(len(fields1002) == 0) { p.newline() - for i992, elem991 := range fields990 { - if (i992 > 0) { + for i1004, elem1003 := range fields1002 { + if (i1004 > 0) { p.newline() } - p.pretty_attribute(elem991) + p.pretty_attribute(elem1003) } } p.dedent() @@ -2782,31 +2786,31 @@ func (p *PrettyPrinter) pretty_attrs(msg []*pb.Attribute) interface{} { } func (p *PrettyPrinter) pretty_attribute(msg *pb.Attribute) interface{} { - flat1000 := p.tryFlat(msg, func() { p.pretty_attribute(msg) }) - if flat1000 != nil { - p.write(*flat1000) + flat1012 := p.tryFlat(msg, func() { p.pretty_attribute(msg) }) + if flat1012 != nil { + p.write(*flat1012) return nil } else { - _t1523 := func(_dollar_dollar *pb.Attribute) []interface{} { + _t1547 := func(_dollar_dollar *pb.Attribute) []interface{} { return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs()} } - _t1524 := _t1523(msg) - fields994 := _t1524 - unwrapped_fields995 := fields994 + _t1548 := _t1547(msg) + fields1006 := _t1548 + unwrapped_fields1007 := fields1006 p.write("(") p.write("attribute") p.indentSexp() p.newline() - field996 := unwrapped_fields995[0].(string) - p.pretty_name(field996) - field997 := unwrapped_fields995[1].([]*pb.Value) - if !(len(field997) == 0) { + field1008 := unwrapped_fields1007[0].(string) + p.pretty_name(field1008) + field1009 := unwrapped_fields1007[1].([]*pb.Value) + if !(len(field1009) == 0) { p.newline() - for i999, elem998 := range field997 { - if (i999 > 0) { + for i1011, elem1010 := range field1009 { + if (i1011 > 0) { p.newline() } - p.pretty_value(elem998) + p.pretty_value(elem1010) } } p.dedent() @@ -2816,33 +2820,33 @@ func (p *PrettyPrinter) pretty_attribute(msg *pb.Attribute) interface{} { } func (p *PrettyPrinter) pretty_algorithm(msg *pb.Algorithm) interface{} { - flat1007 := p.tryFlat(msg, func() { p.pretty_algorithm(msg) }) - if flat1007 != nil { - p.write(*flat1007) + flat1019 := p.tryFlat(msg, func() { p.pretty_algorithm(msg) }) + if flat1019 != nil { + p.write(*flat1019) return nil } else { - _t1525 := func(_dollar_dollar *pb.Algorithm) []interface{} { + _t1549 := func(_dollar_dollar *pb.Algorithm) []interface{} { return []interface{}{_dollar_dollar.GetGlobal(), _dollar_dollar.GetBody()} } - _t1526 := _t1525(msg) - fields1001 := _t1526 - unwrapped_fields1002 := fields1001 + _t1550 := _t1549(msg) + fields1013 := _t1550 + unwrapped_fields1014 := fields1013 p.write("(") p.write("algorithm") p.indentSexp() - field1003 := unwrapped_fields1002[0].([]*pb.RelationId) - if !(len(field1003) == 0) { + field1015 := unwrapped_fields1014[0].([]*pb.RelationId) + if !(len(field1015) == 0) { p.newline() - for i1005, elem1004 := range field1003 { - if (i1005 > 0) { + for i1017, elem1016 := range field1015 { + if (i1017 > 0) { p.newline() } - p.pretty_relation_id(elem1004) + p.pretty_relation_id(elem1016) } } p.newline() - field1006 := unwrapped_fields1002[1].(*pb.Script) - p.pretty_script(field1006) + field1018 := unwrapped_fields1014[1].(*pb.Script) + p.pretty_script(field1018) p.dedent() p.write(")") } @@ -2850,27 +2854,27 @@ func (p *PrettyPrinter) pretty_algorithm(msg *pb.Algorithm) interface{} { } func (p *PrettyPrinter) pretty_script(msg *pb.Script) interface{} { - flat1012 := p.tryFlat(msg, func() { p.pretty_script(msg) }) - if flat1012 != nil { - p.write(*flat1012) + flat1024 := p.tryFlat(msg, func() { p.pretty_script(msg) }) + if flat1024 != nil { + p.write(*flat1024) return nil } else { - _t1527 := func(_dollar_dollar *pb.Script) []*pb.Construct { + _t1551 := func(_dollar_dollar *pb.Script) []*pb.Construct { return _dollar_dollar.GetConstructs() } - _t1528 := _t1527(msg) - fields1008 := _t1528 - unwrapped_fields1009 := fields1008 + _t1552 := _t1551(msg) + fields1020 := _t1552 + unwrapped_fields1021 := fields1020 p.write("(") p.write("script") p.indentSexp() - if !(len(unwrapped_fields1009) == 0) { + if !(len(unwrapped_fields1021) == 0) { p.newline() - for i1011, elem1010 := range unwrapped_fields1009 { - if (i1011 > 0) { + for i1023, elem1022 := range unwrapped_fields1021 { + if (i1023 > 0) { p.newline() } - p.pretty_construct(elem1010) + p.pretty_construct(elem1022) } } p.dedent() @@ -2880,36 +2884,36 @@ func (p *PrettyPrinter) pretty_script(msg *pb.Script) interface{} { } func (p *PrettyPrinter) pretty_construct(msg *pb.Construct) interface{} { - flat1017 := p.tryFlat(msg, func() { p.pretty_construct(msg) }) - if flat1017 != nil { - p.write(*flat1017) + flat1029 := p.tryFlat(msg, func() { p.pretty_construct(msg) }) + if flat1029 != nil { + p.write(*flat1029) return nil } else { - _t1529 := func(_dollar_dollar *pb.Construct) *pb.Loop { - var _t1530 *pb.Loop + _t1553 := func(_dollar_dollar *pb.Construct) *pb.Loop { + var _t1554 *pb.Loop if hasProtoField(_dollar_dollar, "loop") { - _t1530 = _dollar_dollar.GetLoop() + _t1554 = _dollar_dollar.GetLoop() } - return _t1530 + return _t1554 } - _t1531 := _t1529(msg) - deconstruct_result1015 := _t1531 - if deconstruct_result1015 != nil { - unwrapped1016 := deconstruct_result1015 - p.pretty_loop(unwrapped1016) + _t1555 := _t1553(msg) + deconstruct_result1027 := _t1555 + if deconstruct_result1027 != nil { + unwrapped1028 := deconstruct_result1027 + p.pretty_loop(unwrapped1028) } else { - _t1532 := func(_dollar_dollar *pb.Construct) *pb.Instruction { - var _t1533 *pb.Instruction + _t1556 := func(_dollar_dollar *pb.Construct) *pb.Instruction { + var _t1557 *pb.Instruction if hasProtoField(_dollar_dollar, "instruction") { - _t1533 = _dollar_dollar.GetInstruction() + _t1557 = _dollar_dollar.GetInstruction() } - return _t1533 + return _t1557 } - _t1534 := _t1532(msg) - deconstruct_result1013 := _t1534 - if deconstruct_result1013 != nil { - unwrapped1014 := deconstruct_result1013 - p.pretty_instruction(unwrapped1014) + _t1558 := _t1556(msg) + deconstruct_result1025 := _t1558 + if deconstruct_result1025 != nil { + unwrapped1026 := deconstruct_result1025 + p.pretty_instruction(unwrapped1026) } else { panic(ParseError{msg: "No matching rule for construct"}) } @@ -2919,26 +2923,26 @@ func (p *PrettyPrinter) pretty_construct(msg *pb.Construct) interface{} { } func (p *PrettyPrinter) pretty_loop(msg *pb.Loop) interface{} { - flat1022 := p.tryFlat(msg, func() { p.pretty_loop(msg) }) - if flat1022 != nil { - p.write(*flat1022) + flat1034 := p.tryFlat(msg, func() { p.pretty_loop(msg) }) + if flat1034 != nil { + p.write(*flat1034) return nil } else { - _t1535 := func(_dollar_dollar *pb.Loop) []interface{} { + _t1559 := func(_dollar_dollar *pb.Loop) []interface{} { return []interface{}{_dollar_dollar.GetInit(), _dollar_dollar.GetBody()} } - _t1536 := _t1535(msg) - fields1018 := _t1536 - unwrapped_fields1019 := fields1018 + _t1560 := _t1559(msg) + fields1030 := _t1560 + unwrapped_fields1031 := fields1030 p.write("(") p.write("loop") p.indentSexp() p.newline() - field1020 := unwrapped_fields1019[0].([]*pb.Instruction) - p.pretty_init(field1020) + field1032 := unwrapped_fields1031[0].([]*pb.Instruction) + p.pretty_init(field1032) p.newline() - field1021 := unwrapped_fields1019[1].(*pb.Script) - p.pretty_script(field1021) + field1033 := unwrapped_fields1031[1].(*pb.Script) + p.pretty_script(field1033) p.dedent() p.write(")") } @@ -2946,22 +2950,22 @@ func (p *PrettyPrinter) pretty_loop(msg *pb.Loop) interface{} { } func (p *PrettyPrinter) pretty_init(msg []*pb.Instruction) interface{} { - flat1026 := p.tryFlat(msg, func() { p.pretty_init(msg) }) - if flat1026 != nil { - p.write(*flat1026) + flat1038 := p.tryFlat(msg, func() { p.pretty_init(msg) }) + if flat1038 != nil { + p.write(*flat1038) return nil } else { - fields1023 := msg + fields1035 := msg p.write("(") p.write("init") p.indentSexp() - if !(len(fields1023) == 0) { + if !(len(fields1035) == 0) { p.newline() - for i1025, elem1024 := range fields1023 { - if (i1025 > 0) { + for i1037, elem1036 := range fields1035 { + if (i1037 > 0) { p.newline() } - p.pretty_instruction(elem1024) + p.pretty_instruction(elem1036) } } p.dedent() @@ -2971,75 +2975,75 @@ func (p *PrettyPrinter) pretty_init(msg []*pb.Instruction) interface{} { } func (p *PrettyPrinter) pretty_instruction(msg *pb.Instruction) interface{} { - flat1037 := p.tryFlat(msg, func() { p.pretty_instruction(msg) }) - if flat1037 != nil { - p.write(*flat1037) + flat1049 := p.tryFlat(msg, func() { p.pretty_instruction(msg) }) + if flat1049 != nil { + p.write(*flat1049) return nil } else { - _t1537 := func(_dollar_dollar *pb.Instruction) *pb.Assign { - var _t1538 *pb.Assign + _t1561 := func(_dollar_dollar *pb.Instruction) *pb.Assign { + var _t1562 *pb.Assign if hasProtoField(_dollar_dollar, "assign") { - _t1538 = _dollar_dollar.GetAssign() + _t1562 = _dollar_dollar.GetAssign() } - return _t1538 + return _t1562 } - _t1539 := _t1537(msg) - deconstruct_result1035 := _t1539 - if deconstruct_result1035 != nil { - unwrapped1036 := deconstruct_result1035 - p.pretty_assign(unwrapped1036) + _t1563 := _t1561(msg) + deconstruct_result1047 := _t1563 + if deconstruct_result1047 != nil { + unwrapped1048 := deconstruct_result1047 + p.pretty_assign(unwrapped1048) } else { - _t1540 := func(_dollar_dollar *pb.Instruction) *pb.Upsert { - var _t1541 *pb.Upsert + _t1564 := func(_dollar_dollar *pb.Instruction) *pb.Upsert { + var _t1565 *pb.Upsert if hasProtoField(_dollar_dollar, "upsert") { - _t1541 = _dollar_dollar.GetUpsert() + _t1565 = _dollar_dollar.GetUpsert() } - return _t1541 + return _t1565 } - _t1542 := _t1540(msg) - deconstruct_result1033 := _t1542 - if deconstruct_result1033 != nil { - unwrapped1034 := deconstruct_result1033 - p.pretty_upsert(unwrapped1034) + _t1566 := _t1564(msg) + deconstruct_result1045 := _t1566 + if deconstruct_result1045 != nil { + unwrapped1046 := deconstruct_result1045 + p.pretty_upsert(unwrapped1046) } else { - _t1543 := func(_dollar_dollar *pb.Instruction) *pb.Break { - var _t1544 *pb.Break + _t1567 := func(_dollar_dollar *pb.Instruction) *pb.Break { + var _t1568 *pb.Break if hasProtoField(_dollar_dollar, "break") { - _t1544 = _dollar_dollar.GetBreak() + _t1568 = _dollar_dollar.GetBreak() } - return _t1544 + return _t1568 } - _t1545 := _t1543(msg) - deconstruct_result1031 := _t1545 - if deconstruct_result1031 != nil { - unwrapped1032 := deconstruct_result1031 - p.pretty_break(unwrapped1032) + _t1569 := _t1567(msg) + deconstruct_result1043 := _t1569 + if deconstruct_result1043 != nil { + unwrapped1044 := deconstruct_result1043 + p.pretty_break(unwrapped1044) } else { - _t1546 := func(_dollar_dollar *pb.Instruction) *pb.MonoidDef { - var _t1547 *pb.MonoidDef + _t1570 := func(_dollar_dollar *pb.Instruction) *pb.MonoidDef { + var _t1571 *pb.MonoidDef if hasProtoField(_dollar_dollar, "monoid_def") { - _t1547 = _dollar_dollar.GetMonoidDef() + _t1571 = _dollar_dollar.GetMonoidDef() } - return _t1547 + return _t1571 } - _t1548 := _t1546(msg) - deconstruct_result1029 := _t1548 - if deconstruct_result1029 != nil { - unwrapped1030 := deconstruct_result1029 - p.pretty_monoid_def(unwrapped1030) + _t1572 := _t1570(msg) + deconstruct_result1041 := _t1572 + if deconstruct_result1041 != nil { + unwrapped1042 := deconstruct_result1041 + p.pretty_monoid_def(unwrapped1042) } else { - _t1549 := func(_dollar_dollar *pb.Instruction) *pb.MonusDef { - var _t1550 *pb.MonusDef + _t1573 := func(_dollar_dollar *pb.Instruction) *pb.MonusDef { + var _t1574 *pb.MonusDef if hasProtoField(_dollar_dollar, "monus_def") { - _t1550 = _dollar_dollar.GetMonusDef() + _t1574 = _dollar_dollar.GetMonusDef() } - return _t1550 + return _t1574 } - _t1551 := _t1549(msg) - deconstruct_result1027 := _t1551 - if deconstruct_result1027 != nil { - unwrapped1028 := deconstruct_result1027 - p.pretty_monus_def(unwrapped1028) + _t1575 := _t1573(msg) + deconstruct_result1039 := _t1575 + if deconstruct_result1039 != nil { + unwrapped1040 := deconstruct_result1039 + p.pretty_monus_def(unwrapped1040) } else { panic(ParseError{msg: "No matching rule for instruction"}) } @@ -3052,35 +3056,35 @@ func (p *PrettyPrinter) pretty_instruction(msg *pb.Instruction) interface{} { } func (p *PrettyPrinter) pretty_assign(msg *pb.Assign) interface{} { - flat1044 := p.tryFlat(msg, func() { p.pretty_assign(msg) }) - if flat1044 != nil { - p.write(*flat1044) + flat1056 := p.tryFlat(msg, func() { p.pretty_assign(msg) }) + if flat1056 != nil { + p.write(*flat1056) return nil } else { - _t1552 := func(_dollar_dollar *pb.Assign) []interface{} { - var _t1553 []*pb.Attribute + _t1576 := func(_dollar_dollar *pb.Assign) []interface{} { + var _t1577 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1553 = _dollar_dollar.GetAttrs() + _t1577 = _dollar_dollar.GetAttrs() } - return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1553} + return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1577} } - _t1554 := _t1552(msg) - fields1038 := _t1554 - unwrapped_fields1039 := fields1038 + _t1578 := _t1576(msg) + fields1050 := _t1578 + unwrapped_fields1051 := fields1050 p.write("(") p.write("assign") p.indentSexp() p.newline() - field1040 := unwrapped_fields1039[0].(*pb.RelationId) - p.pretty_relation_id(field1040) + field1052 := unwrapped_fields1051[0].(*pb.RelationId) + p.pretty_relation_id(field1052) p.newline() - field1041 := unwrapped_fields1039[1].(*pb.Abstraction) - p.pretty_abstraction(field1041) - field1042 := unwrapped_fields1039[2].([]*pb.Attribute) - if field1042 != nil { + field1053 := unwrapped_fields1051[1].(*pb.Abstraction) + p.pretty_abstraction(field1053) + field1054 := unwrapped_fields1051[2].([]*pb.Attribute) + if field1054 != nil { p.newline() - opt_val1043 := field1042 - p.pretty_attrs(opt_val1043) + opt_val1055 := field1054 + p.pretty_attrs(opt_val1055) } p.dedent() p.write(")") @@ -3089,35 +3093,35 @@ func (p *PrettyPrinter) pretty_assign(msg *pb.Assign) interface{} { } func (p *PrettyPrinter) pretty_upsert(msg *pb.Upsert) interface{} { - flat1051 := p.tryFlat(msg, func() { p.pretty_upsert(msg) }) - if flat1051 != nil { - p.write(*flat1051) + flat1063 := p.tryFlat(msg, func() { p.pretty_upsert(msg) }) + if flat1063 != nil { + p.write(*flat1063) return nil } else { - _t1555 := func(_dollar_dollar *pb.Upsert) []interface{} { - var _t1556 []*pb.Attribute + _t1579 := func(_dollar_dollar *pb.Upsert) []interface{} { + var _t1580 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1556 = _dollar_dollar.GetAttrs() + _t1580 = _dollar_dollar.GetAttrs() } - return []interface{}{_dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1556} + return []interface{}{_dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1580} } - _t1557 := _t1555(msg) - fields1045 := _t1557 - unwrapped_fields1046 := fields1045 + _t1581 := _t1579(msg) + fields1057 := _t1581 + unwrapped_fields1058 := fields1057 p.write("(") p.write("upsert") p.indentSexp() p.newline() - field1047 := unwrapped_fields1046[0].(*pb.RelationId) - p.pretty_relation_id(field1047) + field1059 := unwrapped_fields1058[0].(*pb.RelationId) + p.pretty_relation_id(field1059) p.newline() - field1048 := unwrapped_fields1046[1].([]interface{}) - p.pretty_abstraction_with_arity(field1048) - field1049 := unwrapped_fields1046[2].([]*pb.Attribute) - if field1049 != nil { + field1060 := unwrapped_fields1058[1].([]interface{}) + p.pretty_abstraction_with_arity(field1060) + field1061 := unwrapped_fields1058[2].([]*pb.Attribute) + if field1061 != nil { p.newline() - opt_val1050 := field1049 - p.pretty_attrs(opt_val1050) + opt_val1062 := field1061 + p.pretty_attrs(opt_val1062) } p.dedent() p.write(")") @@ -3126,25 +3130,25 @@ func (p *PrettyPrinter) pretty_upsert(msg *pb.Upsert) interface{} { } func (p *PrettyPrinter) pretty_abstraction_with_arity(msg []interface{}) interface{} { - flat1056 := p.tryFlat(msg, func() { p.pretty_abstraction_with_arity(msg) }) - if flat1056 != nil { - p.write(*flat1056) + flat1068 := p.tryFlat(msg, func() { p.pretty_abstraction_with_arity(msg) }) + if flat1068 != nil { + p.write(*flat1068) return nil } else { - _t1558 := func(_dollar_dollar []interface{}) []interface{} { - _t1559 := p.deconstruct_bindings_with_arity(_dollar_dollar[0].(*pb.Abstraction), _dollar_dollar[1].(int64)) - return []interface{}{_t1559, _dollar_dollar[0].(*pb.Abstraction).GetValue()} + _t1582 := func(_dollar_dollar []interface{}) []interface{} { + _t1583 := p.deconstruct_bindings_with_arity(_dollar_dollar[0].(*pb.Abstraction), _dollar_dollar[1].(int64)) + return []interface{}{_t1583, _dollar_dollar[0].(*pb.Abstraction).GetValue()} } - _t1560 := _t1558(msg) - fields1052 := _t1560 - unwrapped_fields1053 := fields1052 + _t1584 := _t1582(msg) + fields1064 := _t1584 + unwrapped_fields1065 := fields1064 p.write("(") p.indent() - field1054 := unwrapped_fields1053[0].([]interface{}) - p.pretty_bindings(field1054) + field1066 := unwrapped_fields1065[0].([]interface{}) + p.pretty_bindings(field1066) p.newline() - field1055 := unwrapped_fields1053[1].(*pb.Formula) - p.pretty_formula(field1055) + field1067 := unwrapped_fields1065[1].(*pb.Formula) + p.pretty_formula(field1067) p.dedent() p.write(")") } @@ -3152,35 +3156,35 @@ func (p *PrettyPrinter) pretty_abstraction_with_arity(msg []interface{}) interfa } func (p *PrettyPrinter) pretty_break(msg *pb.Break) interface{} { - flat1063 := p.tryFlat(msg, func() { p.pretty_break(msg) }) - if flat1063 != nil { - p.write(*flat1063) + flat1075 := p.tryFlat(msg, func() { p.pretty_break(msg) }) + if flat1075 != nil { + p.write(*flat1075) return nil } else { - _t1561 := func(_dollar_dollar *pb.Break) []interface{} { - var _t1562 []*pb.Attribute + _t1585 := func(_dollar_dollar *pb.Break) []interface{} { + var _t1586 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1562 = _dollar_dollar.GetAttrs() + _t1586 = _dollar_dollar.GetAttrs() } - return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1562} + return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1586} } - _t1563 := _t1561(msg) - fields1057 := _t1563 - unwrapped_fields1058 := fields1057 + _t1587 := _t1585(msg) + fields1069 := _t1587 + unwrapped_fields1070 := fields1069 p.write("(") p.write("break") p.indentSexp() p.newline() - field1059 := unwrapped_fields1058[0].(*pb.RelationId) - p.pretty_relation_id(field1059) + field1071 := unwrapped_fields1070[0].(*pb.RelationId) + p.pretty_relation_id(field1071) p.newline() - field1060 := unwrapped_fields1058[1].(*pb.Abstraction) - p.pretty_abstraction(field1060) - field1061 := unwrapped_fields1058[2].([]*pb.Attribute) - if field1061 != nil { + field1072 := unwrapped_fields1070[1].(*pb.Abstraction) + p.pretty_abstraction(field1072) + field1073 := unwrapped_fields1070[2].([]*pb.Attribute) + if field1073 != nil { p.newline() - opt_val1062 := field1061 - p.pretty_attrs(opt_val1062) + opt_val1074 := field1073 + p.pretty_attrs(opt_val1074) } p.dedent() p.write(")") @@ -3189,38 +3193,38 @@ func (p *PrettyPrinter) pretty_break(msg *pb.Break) interface{} { } func (p *PrettyPrinter) pretty_monoid_def(msg *pb.MonoidDef) interface{} { - flat1071 := p.tryFlat(msg, func() { p.pretty_monoid_def(msg) }) - if flat1071 != nil { - p.write(*flat1071) + flat1083 := p.tryFlat(msg, func() { p.pretty_monoid_def(msg) }) + if flat1083 != nil { + p.write(*flat1083) return nil } else { - _t1564 := func(_dollar_dollar *pb.MonoidDef) []interface{} { - var _t1565 []*pb.Attribute + _t1588 := func(_dollar_dollar *pb.MonoidDef) []interface{} { + var _t1589 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1565 = _dollar_dollar.GetAttrs() + _t1589 = _dollar_dollar.GetAttrs() } - return []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1565} + return []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1589} } - _t1566 := _t1564(msg) - fields1064 := _t1566 - unwrapped_fields1065 := fields1064 + _t1590 := _t1588(msg) + fields1076 := _t1590 + unwrapped_fields1077 := fields1076 p.write("(") p.write("monoid") p.indentSexp() p.newline() - field1066 := unwrapped_fields1065[0].(*pb.Monoid) - p.pretty_monoid(field1066) + field1078 := unwrapped_fields1077[0].(*pb.Monoid) + p.pretty_monoid(field1078) p.newline() - field1067 := unwrapped_fields1065[1].(*pb.RelationId) - p.pretty_relation_id(field1067) + field1079 := unwrapped_fields1077[1].(*pb.RelationId) + p.pretty_relation_id(field1079) p.newline() - field1068 := unwrapped_fields1065[2].([]interface{}) - p.pretty_abstraction_with_arity(field1068) - field1069 := unwrapped_fields1065[3].([]*pb.Attribute) - if field1069 != nil { + field1080 := unwrapped_fields1077[2].([]interface{}) + p.pretty_abstraction_with_arity(field1080) + field1081 := unwrapped_fields1077[3].([]*pb.Attribute) + if field1081 != nil { p.newline() - opt_val1070 := field1069 - p.pretty_attrs(opt_val1070) + opt_val1082 := field1081 + p.pretty_attrs(opt_val1082) } p.dedent() p.write(")") @@ -3229,62 +3233,62 @@ func (p *PrettyPrinter) pretty_monoid_def(msg *pb.MonoidDef) interface{} { } func (p *PrettyPrinter) pretty_monoid(msg *pb.Monoid) interface{} { - flat1080 := p.tryFlat(msg, func() { p.pretty_monoid(msg) }) - if flat1080 != nil { - p.write(*flat1080) + flat1092 := p.tryFlat(msg, func() { p.pretty_monoid(msg) }) + if flat1092 != nil { + p.write(*flat1092) return nil } else { - _t1567 := func(_dollar_dollar *pb.Monoid) *pb.OrMonoid { - var _t1568 *pb.OrMonoid + _t1591 := func(_dollar_dollar *pb.Monoid) *pb.OrMonoid { + var _t1592 *pb.OrMonoid if hasProtoField(_dollar_dollar, "or_monoid") { - _t1568 = _dollar_dollar.GetOrMonoid() + _t1592 = _dollar_dollar.GetOrMonoid() } - return _t1568 + return _t1592 } - _t1569 := _t1567(msg) - deconstruct_result1078 := _t1569 - if deconstruct_result1078 != nil { - unwrapped1079 := deconstruct_result1078 - p.pretty_or_monoid(unwrapped1079) + _t1593 := _t1591(msg) + deconstruct_result1090 := _t1593 + if deconstruct_result1090 != nil { + unwrapped1091 := deconstruct_result1090 + p.pretty_or_monoid(unwrapped1091) } else { - _t1570 := func(_dollar_dollar *pb.Monoid) *pb.MinMonoid { - var _t1571 *pb.MinMonoid + _t1594 := func(_dollar_dollar *pb.Monoid) *pb.MinMonoid { + var _t1595 *pb.MinMonoid if hasProtoField(_dollar_dollar, "min_monoid") { - _t1571 = _dollar_dollar.GetMinMonoid() + _t1595 = _dollar_dollar.GetMinMonoid() } - return _t1571 + return _t1595 } - _t1572 := _t1570(msg) - deconstruct_result1076 := _t1572 - if deconstruct_result1076 != nil { - unwrapped1077 := deconstruct_result1076 - p.pretty_min_monoid(unwrapped1077) + _t1596 := _t1594(msg) + deconstruct_result1088 := _t1596 + if deconstruct_result1088 != nil { + unwrapped1089 := deconstruct_result1088 + p.pretty_min_monoid(unwrapped1089) } else { - _t1573 := func(_dollar_dollar *pb.Monoid) *pb.MaxMonoid { - var _t1574 *pb.MaxMonoid + _t1597 := func(_dollar_dollar *pb.Monoid) *pb.MaxMonoid { + var _t1598 *pb.MaxMonoid if hasProtoField(_dollar_dollar, "max_monoid") { - _t1574 = _dollar_dollar.GetMaxMonoid() + _t1598 = _dollar_dollar.GetMaxMonoid() } - return _t1574 + return _t1598 } - _t1575 := _t1573(msg) - deconstruct_result1074 := _t1575 - if deconstruct_result1074 != nil { - unwrapped1075 := deconstruct_result1074 - p.pretty_max_monoid(unwrapped1075) + _t1599 := _t1597(msg) + deconstruct_result1086 := _t1599 + if deconstruct_result1086 != nil { + unwrapped1087 := deconstruct_result1086 + p.pretty_max_monoid(unwrapped1087) } else { - _t1576 := func(_dollar_dollar *pb.Monoid) *pb.SumMonoid { - var _t1577 *pb.SumMonoid + _t1600 := func(_dollar_dollar *pb.Monoid) *pb.SumMonoid { + var _t1601 *pb.SumMonoid if hasProtoField(_dollar_dollar, "sum_monoid") { - _t1577 = _dollar_dollar.GetSumMonoid() + _t1601 = _dollar_dollar.GetSumMonoid() } - return _t1577 + return _t1601 } - _t1578 := _t1576(msg) - deconstruct_result1072 := _t1578 - if deconstruct_result1072 != nil { - unwrapped1073 := deconstruct_result1072 - p.pretty_sum_monoid(unwrapped1073) + _t1602 := _t1600(msg) + deconstruct_result1084 := _t1602 + if deconstruct_result1084 != nil { + unwrapped1085 := deconstruct_result1084 + p.pretty_sum_monoid(unwrapped1085) } else { panic(ParseError{msg: "No matching rule for monoid"}) } @@ -3296,8 +3300,8 @@ func (p *PrettyPrinter) pretty_monoid(msg *pb.Monoid) interface{} { } func (p *PrettyPrinter) pretty_or_monoid(msg *pb.OrMonoid) interface{} { - fields1081 := msg - _ = fields1081 + fields1093 := msg + _ = fields1093 p.write("(") p.write("or") p.write(")") @@ -3305,22 +3309,22 @@ func (p *PrettyPrinter) pretty_or_monoid(msg *pb.OrMonoid) interface{} { } func (p *PrettyPrinter) pretty_min_monoid(msg *pb.MinMonoid) interface{} { - flat1084 := p.tryFlat(msg, func() { p.pretty_min_monoid(msg) }) - if flat1084 != nil { - p.write(*flat1084) + flat1096 := p.tryFlat(msg, func() { p.pretty_min_monoid(msg) }) + if flat1096 != nil { + p.write(*flat1096) return nil } else { - _t1579 := func(_dollar_dollar *pb.MinMonoid) *pb.Type { + _t1603 := func(_dollar_dollar *pb.MinMonoid) *pb.Type { return _dollar_dollar.GetType() } - _t1580 := _t1579(msg) - fields1082 := _t1580 - unwrapped_fields1083 := fields1082 + _t1604 := _t1603(msg) + fields1094 := _t1604 + unwrapped_fields1095 := fields1094 p.write("(") p.write("min") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1083) + p.pretty_type(unwrapped_fields1095) p.dedent() p.write(")") } @@ -3328,22 +3332,22 @@ func (p *PrettyPrinter) pretty_min_monoid(msg *pb.MinMonoid) interface{} { } func (p *PrettyPrinter) pretty_max_monoid(msg *pb.MaxMonoid) interface{} { - flat1087 := p.tryFlat(msg, func() { p.pretty_max_monoid(msg) }) - if flat1087 != nil { - p.write(*flat1087) + flat1099 := p.tryFlat(msg, func() { p.pretty_max_monoid(msg) }) + if flat1099 != nil { + p.write(*flat1099) return nil } else { - _t1581 := func(_dollar_dollar *pb.MaxMonoid) *pb.Type { + _t1605 := func(_dollar_dollar *pb.MaxMonoid) *pb.Type { return _dollar_dollar.GetType() } - _t1582 := _t1581(msg) - fields1085 := _t1582 - unwrapped_fields1086 := fields1085 + _t1606 := _t1605(msg) + fields1097 := _t1606 + unwrapped_fields1098 := fields1097 p.write("(") p.write("max") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1086) + p.pretty_type(unwrapped_fields1098) p.dedent() p.write(")") } @@ -3351,22 +3355,22 @@ func (p *PrettyPrinter) pretty_max_monoid(msg *pb.MaxMonoid) interface{} { } func (p *PrettyPrinter) pretty_sum_monoid(msg *pb.SumMonoid) interface{} { - flat1090 := p.tryFlat(msg, func() { p.pretty_sum_monoid(msg) }) - if flat1090 != nil { - p.write(*flat1090) + flat1102 := p.tryFlat(msg, func() { p.pretty_sum_monoid(msg) }) + if flat1102 != nil { + p.write(*flat1102) return nil } else { - _t1583 := func(_dollar_dollar *pb.SumMonoid) *pb.Type { + _t1607 := func(_dollar_dollar *pb.SumMonoid) *pb.Type { return _dollar_dollar.GetType() } - _t1584 := _t1583(msg) - fields1088 := _t1584 - unwrapped_fields1089 := fields1088 + _t1608 := _t1607(msg) + fields1100 := _t1608 + unwrapped_fields1101 := fields1100 p.write("(") p.write("sum") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1089) + p.pretty_type(unwrapped_fields1101) p.dedent() p.write(")") } @@ -3374,38 +3378,38 @@ func (p *PrettyPrinter) pretty_sum_monoid(msg *pb.SumMonoid) interface{} { } func (p *PrettyPrinter) pretty_monus_def(msg *pb.MonusDef) interface{} { - flat1098 := p.tryFlat(msg, func() { p.pretty_monus_def(msg) }) - if flat1098 != nil { - p.write(*flat1098) + flat1110 := p.tryFlat(msg, func() { p.pretty_monus_def(msg) }) + if flat1110 != nil { + p.write(*flat1110) return nil } else { - _t1585 := func(_dollar_dollar *pb.MonusDef) []interface{} { - var _t1586 []*pb.Attribute + _t1609 := func(_dollar_dollar *pb.MonusDef) []interface{} { + var _t1610 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1586 = _dollar_dollar.GetAttrs() + _t1610 = _dollar_dollar.GetAttrs() } - return []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1586} + return []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1610} } - _t1587 := _t1585(msg) - fields1091 := _t1587 - unwrapped_fields1092 := fields1091 + _t1611 := _t1609(msg) + fields1103 := _t1611 + unwrapped_fields1104 := fields1103 p.write("(") p.write("monus") p.indentSexp() p.newline() - field1093 := unwrapped_fields1092[0].(*pb.Monoid) - p.pretty_monoid(field1093) + field1105 := unwrapped_fields1104[0].(*pb.Monoid) + p.pretty_monoid(field1105) p.newline() - field1094 := unwrapped_fields1092[1].(*pb.RelationId) - p.pretty_relation_id(field1094) + field1106 := unwrapped_fields1104[1].(*pb.RelationId) + p.pretty_relation_id(field1106) p.newline() - field1095 := unwrapped_fields1092[2].([]interface{}) - p.pretty_abstraction_with_arity(field1095) - field1096 := unwrapped_fields1092[3].([]*pb.Attribute) - if field1096 != nil { + field1107 := unwrapped_fields1104[2].([]interface{}) + p.pretty_abstraction_with_arity(field1107) + field1108 := unwrapped_fields1104[3].([]*pb.Attribute) + if field1108 != nil { p.newline() - opt_val1097 := field1096 - p.pretty_attrs(opt_val1097) + opt_val1109 := field1108 + p.pretty_attrs(opt_val1109) } p.dedent() p.write(")") @@ -3414,32 +3418,32 @@ func (p *PrettyPrinter) pretty_monus_def(msg *pb.MonusDef) interface{} { } func (p *PrettyPrinter) pretty_constraint(msg *pb.Constraint) interface{} { - flat1105 := p.tryFlat(msg, func() { p.pretty_constraint(msg) }) - if flat1105 != nil { - p.write(*flat1105) + flat1117 := p.tryFlat(msg, func() { p.pretty_constraint(msg) }) + if flat1117 != nil { + p.write(*flat1117) return nil } else { - _t1588 := func(_dollar_dollar *pb.Constraint) []interface{} { + _t1612 := func(_dollar_dollar *pb.Constraint) []interface{} { return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetFunctionalDependency().GetGuard(), _dollar_dollar.GetFunctionalDependency().GetKeys(), _dollar_dollar.GetFunctionalDependency().GetValues()} } - _t1589 := _t1588(msg) - fields1099 := _t1589 - unwrapped_fields1100 := fields1099 + _t1613 := _t1612(msg) + fields1111 := _t1613 + unwrapped_fields1112 := fields1111 p.write("(") p.write("functional_dependency") p.indentSexp() p.newline() - field1101 := unwrapped_fields1100[0].(*pb.RelationId) - p.pretty_relation_id(field1101) + field1113 := unwrapped_fields1112[0].(*pb.RelationId) + p.pretty_relation_id(field1113) p.newline() - field1102 := unwrapped_fields1100[1].(*pb.Abstraction) - p.pretty_abstraction(field1102) + field1114 := unwrapped_fields1112[1].(*pb.Abstraction) + p.pretty_abstraction(field1114) p.newline() - field1103 := unwrapped_fields1100[2].([]*pb.Var) - p.pretty_functional_dependency_keys(field1103) + field1115 := unwrapped_fields1112[2].([]*pb.Var) + p.pretty_functional_dependency_keys(field1115) p.newline() - field1104 := unwrapped_fields1100[3].([]*pb.Var) - p.pretty_functional_dependency_values(field1104) + field1116 := unwrapped_fields1112[3].([]*pb.Var) + p.pretty_functional_dependency_values(field1116) p.dedent() p.write(")") } @@ -3447,22 +3451,22 @@ func (p *PrettyPrinter) pretty_constraint(msg *pb.Constraint) interface{} { } func (p *PrettyPrinter) pretty_functional_dependency_keys(msg []*pb.Var) interface{} { - flat1109 := p.tryFlat(msg, func() { p.pretty_functional_dependency_keys(msg) }) - if flat1109 != nil { - p.write(*flat1109) + flat1121 := p.tryFlat(msg, func() { p.pretty_functional_dependency_keys(msg) }) + if flat1121 != nil { + p.write(*flat1121) return nil } else { - fields1106 := msg + fields1118 := msg p.write("(") p.write("keys") p.indentSexp() - if !(len(fields1106) == 0) { + if !(len(fields1118) == 0) { p.newline() - for i1108, elem1107 := range fields1106 { - if (i1108 > 0) { + for i1120, elem1119 := range fields1118 { + if (i1120 > 0) { p.newline() } - p.pretty_var(elem1107) + p.pretty_var(elem1119) } } p.dedent() @@ -3472,22 +3476,22 @@ func (p *PrettyPrinter) pretty_functional_dependency_keys(msg []*pb.Var) interfa } func (p *PrettyPrinter) pretty_functional_dependency_values(msg []*pb.Var) interface{} { - flat1113 := p.tryFlat(msg, func() { p.pretty_functional_dependency_values(msg) }) - if flat1113 != nil { - p.write(*flat1113) + flat1125 := p.tryFlat(msg, func() { p.pretty_functional_dependency_values(msg) }) + if flat1125 != nil { + p.write(*flat1125) return nil } else { - fields1110 := msg + fields1122 := msg p.write("(") p.write("values") p.indentSexp() - if !(len(fields1110) == 0) { + if !(len(fields1122) == 0) { p.newline() - for i1112, elem1111 := range fields1110 { - if (i1112 > 0) { + for i1124, elem1123 := range fields1122 { + if (i1124 > 0) { p.newline() } - p.pretty_var(elem1111) + p.pretty_var(elem1123) } } p.dedent() @@ -3497,49 +3501,49 @@ func (p *PrettyPrinter) pretty_functional_dependency_values(msg []*pb.Var) inter } func (p *PrettyPrinter) pretty_data(msg *pb.Data) interface{} { - flat1120 := p.tryFlat(msg, func() { p.pretty_data(msg) }) - if flat1120 != nil { - p.write(*flat1120) + flat1132 := p.tryFlat(msg, func() { p.pretty_data(msg) }) + if flat1132 != nil { + p.write(*flat1132) return nil } else { - _t1590 := func(_dollar_dollar *pb.Data) *pb.RelEDB { - var _t1591 *pb.RelEDB + _t1614 := func(_dollar_dollar *pb.Data) *pb.RelEDB { + var _t1615 *pb.RelEDB if hasProtoField(_dollar_dollar, "rel_edb") { - _t1591 = _dollar_dollar.GetRelEdb() + _t1615 = _dollar_dollar.GetRelEdb() } - return _t1591 + return _t1615 } - _t1592 := _t1590(msg) - deconstruct_result1118 := _t1592 - if deconstruct_result1118 != nil { - unwrapped1119 := deconstruct_result1118 - p.pretty_rel_edb(unwrapped1119) + _t1616 := _t1614(msg) + deconstruct_result1130 := _t1616 + if deconstruct_result1130 != nil { + unwrapped1131 := deconstruct_result1130 + p.pretty_rel_edb(unwrapped1131) } else { - _t1593 := func(_dollar_dollar *pb.Data) *pb.BeTreeRelation { - var _t1594 *pb.BeTreeRelation + _t1617 := func(_dollar_dollar *pb.Data) *pb.BeTreeRelation { + var _t1618 *pb.BeTreeRelation if hasProtoField(_dollar_dollar, "betree_relation") { - _t1594 = _dollar_dollar.GetBetreeRelation() + _t1618 = _dollar_dollar.GetBetreeRelation() } - return _t1594 + return _t1618 } - _t1595 := _t1593(msg) - deconstruct_result1116 := _t1595 - if deconstruct_result1116 != nil { - unwrapped1117 := deconstruct_result1116 - p.pretty_betree_relation(unwrapped1117) + _t1619 := _t1617(msg) + deconstruct_result1128 := _t1619 + if deconstruct_result1128 != nil { + unwrapped1129 := deconstruct_result1128 + p.pretty_betree_relation(unwrapped1129) } else { - _t1596 := func(_dollar_dollar *pb.Data) *pb.CSVData { - var _t1597 *pb.CSVData + _t1620 := func(_dollar_dollar *pb.Data) *pb.CSVData { + var _t1621 *pb.CSVData if hasProtoField(_dollar_dollar, "csv_data") { - _t1597 = _dollar_dollar.GetCsvData() + _t1621 = _dollar_dollar.GetCsvData() } - return _t1597 + return _t1621 } - _t1598 := _t1596(msg) - deconstruct_result1114 := _t1598 - if deconstruct_result1114 != nil { - unwrapped1115 := deconstruct_result1114 - p.pretty_csv_data(unwrapped1115) + _t1622 := _t1620(msg) + deconstruct_result1126 := _t1622 + if deconstruct_result1126 != nil { + unwrapped1127 := deconstruct_result1126 + p.pretty_csv_data(unwrapped1127) } else { panic(ParseError{msg: "No matching rule for data"}) } @@ -3550,29 +3554,29 @@ func (p *PrettyPrinter) pretty_data(msg *pb.Data) interface{} { } func (p *PrettyPrinter) pretty_rel_edb(msg *pb.RelEDB) interface{} { - flat1126 := p.tryFlat(msg, func() { p.pretty_rel_edb(msg) }) - if flat1126 != nil { - p.write(*flat1126) + flat1138 := p.tryFlat(msg, func() { p.pretty_rel_edb(msg) }) + if flat1138 != nil { + p.write(*flat1138) return nil } else { - _t1599 := func(_dollar_dollar *pb.RelEDB) []interface{} { + _t1623 := func(_dollar_dollar *pb.RelEDB) []interface{} { return []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetPath(), _dollar_dollar.GetTypes()} } - _t1600 := _t1599(msg) - fields1121 := _t1600 - unwrapped_fields1122 := fields1121 + _t1624 := _t1623(msg) + fields1133 := _t1624 + unwrapped_fields1134 := fields1133 p.write("(") p.write("rel_edb") p.indentSexp() p.newline() - field1123 := unwrapped_fields1122[0].(*pb.RelationId) - p.pretty_relation_id(field1123) + field1135 := unwrapped_fields1134[0].(*pb.RelationId) + p.pretty_relation_id(field1135) p.newline() - field1124 := unwrapped_fields1122[1].([]string) - p.pretty_rel_edb_path(field1124) + field1136 := unwrapped_fields1134[1].([]string) + p.pretty_rel_edb_path(field1136) p.newline() - field1125 := unwrapped_fields1122[2].([]*pb.Type) - p.pretty_rel_edb_types(field1125) + field1137 := unwrapped_fields1134[2].([]*pb.Type) + p.pretty_rel_edb_types(field1137) p.dedent() p.write(")") } @@ -3580,19 +3584,19 @@ func (p *PrettyPrinter) pretty_rel_edb(msg *pb.RelEDB) interface{} { } func (p *PrettyPrinter) pretty_rel_edb_path(msg []string) interface{} { - flat1130 := p.tryFlat(msg, func() { p.pretty_rel_edb_path(msg) }) - if flat1130 != nil { - p.write(*flat1130) + flat1142 := p.tryFlat(msg, func() { p.pretty_rel_edb_path(msg) }) + if flat1142 != nil { + p.write(*flat1142) return nil } else { - fields1127 := msg + fields1139 := msg p.write("[") p.indent() - for i1129, elem1128 := range fields1127 { - if (i1129 > 0) { + for i1141, elem1140 := range fields1139 { + if (i1141 > 0) { p.newline() } - p.write(p.formatStringValue(elem1128)) + p.write(p.formatStringValue(elem1140)) } p.dedent() p.write("]") @@ -3601,19 +3605,19 @@ func (p *PrettyPrinter) pretty_rel_edb_path(msg []string) interface{} { } func (p *PrettyPrinter) pretty_rel_edb_types(msg []*pb.Type) interface{} { - flat1134 := p.tryFlat(msg, func() { p.pretty_rel_edb_types(msg) }) - if flat1134 != nil { - p.write(*flat1134) + flat1146 := p.tryFlat(msg, func() { p.pretty_rel_edb_types(msg) }) + if flat1146 != nil { + p.write(*flat1146) return nil } else { - fields1131 := msg + fields1143 := msg p.write("[") p.indent() - for i1133, elem1132 := range fields1131 { - if (i1133 > 0) { + for i1145, elem1144 := range fields1143 { + if (i1145 > 0) { p.newline() } - p.pretty_type(elem1132) + p.pretty_type(elem1144) } p.dedent() p.write("]") @@ -3622,26 +3626,26 @@ func (p *PrettyPrinter) pretty_rel_edb_types(msg []*pb.Type) interface{} { } func (p *PrettyPrinter) pretty_betree_relation(msg *pb.BeTreeRelation) interface{} { - flat1139 := p.tryFlat(msg, func() { p.pretty_betree_relation(msg) }) - if flat1139 != nil { - p.write(*flat1139) + flat1151 := p.tryFlat(msg, func() { p.pretty_betree_relation(msg) }) + if flat1151 != nil { + p.write(*flat1151) return nil } else { - _t1601 := func(_dollar_dollar *pb.BeTreeRelation) []interface{} { + _t1625 := func(_dollar_dollar *pb.BeTreeRelation) []interface{} { return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationInfo()} } - _t1602 := _t1601(msg) - fields1135 := _t1602 - unwrapped_fields1136 := fields1135 + _t1626 := _t1625(msg) + fields1147 := _t1626 + unwrapped_fields1148 := fields1147 p.write("(") p.write("betree_relation") p.indentSexp() p.newline() - field1137 := unwrapped_fields1136[0].(*pb.RelationId) - p.pretty_relation_id(field1137) + field1149 := unwrapped_fields1148[0].(*pb.RelationId) + p.pretty_relation_id(field1149) p.newline() - field1138 := unwrapped_fields1136[1].(*pb.BeTreeInfo) - p.pretty_betree_info(field1138) + field1150 := unwrapped_fields1148[1].(*pb.BeTreeInfo) + p.pretty_betree_info(field1150) p.dedent() p.write(")") } @@ -3649,30 +3653,30 @@ func (p *PrettyPrinter) pretty_betree_relation(msg *pb.BeTreeRelation) interface } func (p *PrettyPrinter) pretty_betree_info(msg *pb.BeTreeInfo) interface{} { - flat1145 := p.tryFlat(msg, func() { p.pretty_betree_info(msg) }) - if flat1145 != nil { - p.write(*flat1145) + flat1157 := p.tryFlat(msg, func() { p.pretty_betree_info(msg) }) + if flat1157 != nil { + p.write(*flat1157) return nil } else { - _t1603 := func(_dollar_dollar *pb.BeTreeInfo) []interface{} { - _t1604 := p.deconstruct_betree_info_config(_dollar_dollar) - return []interface{}{_dollar_dollar.GetKeyTypes(), _dollar_dollar.GetValueTypes(), _t1604} + _t1627 := func(_dollar_dollar *pb.BeTreeInfo) []interface{} { + _t1628 := p.deconstruct_betree_info_config(_dollar_dollar) + return []interface{}{_dollar_dollar.GetKeyTypes(), _dollar_dollar.GetValueTypes(), _t1628} } - _t1605 := _t1603(msg) - fields1140 := _t1605 - unwrapped_fields1141 := fields1140 + _t1629 := _t1627(msg) + fields1152 := _t1629 + unwrapped_fields1153 := fields1152 p.write("(") p.write("betree_info") p.indentSexp() p.newline() - field1142 := unwrapped_fields1141[0].([]*pb.Type) - p.pretty_betree_info_key_types(field1142) + field1154 := unwrapped_fields1153[0].([]*pb.Type) + p.pretty_betree_info_key_types(field1154) p.newline() - field1143 := unwrapped_fields1141[1].([]*pb.Type) - p.pretty_betree_info_value_types(field1143) + field1155 := unwrapped_fields1153[1].([]*pb.Type) + p.pretty_betree_info_value_types(field1155) p.newline() - field1144 := unwrapped_fields1141[2].([][]interface{}) - p.pretty_config_dict(field1144) + field1156 := unwrapped_fields1153[2].([][]interface{}) + p.pretty_config_dict(field1156) p.dedent() p.write(")") } @@ -3680,22 +3684,22 @@ func (p *PrettyPrinter) pretty_betree_info(msg *pb.BeTreeInfo) interface{} { } func (p *PrettyPrinter) pretty_betree_info_key_types(msg []*pb.Type) interface{} { - flat1149 := p.tryFlat(msg, func() { p.pretty_betree_info_key_types(msg) }) - if flat1149 != nil { - p.write(*flat1149) + flat1161 := p.tryFlat(msg, func() { p.pretty_betree_info_key_types(msg) }) + if flat1161 != nil { + p.write(*flat1161) return nil } else { - fields1146 := msg + fields1158 := msg p.write("(") p.write("key_types") p.indentSexp() - if !(len(fields1146) == 0) { + if !(len(fields1158) == 0) { p.newline() - for i1148, elem1147 := range fields1146 { - if (i1148 > 0) { + for i1160, elem1159 := range fields1158 { + if (i1160 > 0) { p.newline() } - p.pretty_type(elem1147) + p.pretty_type(elem1159) } } p.dedent() @@ -3705,22 +3709,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{} { - flat1153 := p.tryFlat(msg, func() { p.pretty_betree_info_value_types(msg) }) - if flat1153 != nil { - p.write(*flat1153) + flat1165 := p.tryFlat(msg, func() { p.pretty_betree_info_value_types(msg) }) + if flat1165 != nil { + p.write(*flat1165) return nil } else { - fields1150 := msg + fields1162 := msg p.write("(") p.write("value_types") p.indentSexp() - if !(len(fields1150) == 0) { + if !(len(fields1162) == 0) { p.newline() - for i1152, elem1151 := range fields1150 { - if (i1152 > 0) { + for i1164, elem1163 := range fields1162 { + if (i1164 > 0) { p.newline() } - p.pretty_type(elem1151) + p.pretty_type(elem1163) } } p.dedent() @@ -3730,32 +3734,32 @@ func (p *PrettyPrinter) pretty_betree_info_value_types(msg []*pb.Type) interface } func (p *PrettyPrinter) pretty_csv_data(msg *pb.CSVData) interface{} { - flat1160 := p.tryFlat(msg, func() { p.pretty_csv_data(msg) }) - if flat1160 != nil { - p.write(*flat1160) + flat1172 := p.tryFlat(msg, func() { p.pretty_csv_data(msg) }) + if flat1172 != nil { + p.write(*flat1172) return nil } else { - _t1606 := func(_dollar_dollar *pb.CSVData) []interface{} { + _t1630 := func(_dollar_dollar *pb.CSVData) []interface{} { return []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetColumns(), _dollar_dollar.GetAsof()} } - _t1607 := _t1606(msg) - fields1154 := _t1607 - unwrapped_fields1155 := fields1154 + _t1631 := _t1630(msg) + fields1166 := _t1631 + unwrapped_fields1167 := fields1166 p.write("(") p.write("csv_data") p.indentSexp() p.newline() - field1156 := unwrapped_fields1155[0].(*pb.CSVLocator) - p.pretty_csvlocator(field1156) + field1168 := unwrapped_fields1167[0].(*pb.CSVLocator) + p.pretty_csvlocator(field1168) p.newline() - field1157 := unwrapped_fields1155[1].(*pb.CSVConfig) - p.pretty_csv_config(field1157) + field1169 := unwrapped_fields1167[1].(*pb.CSVConfig) + p.pretty_csv_config(field1169) p.newline() - field1158 := unwrapped_fields1155[2].([]*pb.CSVColumn) - p.pretty_csv_columns(field1158) + field1170 := unwrapped_fields1167[2].([]*pb.CSVColumn) + p.pretty_csv_columns(field1170) p.newline() - field1159 := unwrapped_fields1155[3].(string) - p.pretty_csv_asof(field1159) + field1171 := unwrapped_fields1167[3].(string) + p.pretty_csv_asof(field1171) p.dedent() p.write(")") } @@ -3763,39 +3767,39 @@ func (p *PrettyPrinter) pretty_csv_data(msg *pb.CSVData) interface{} { } func (p *PrettyPrinter) pretty_csvlocator(msg *pb.CSVLocator) interface{} { - flat1167 := p.tryFlat(msg, func() { p.pretty_csvlocator(msg) }) - if flat1167 != nil { - p.write(*flat1167) + flat1179 := p.tryFlat(msg, func() { p.pretty_csvlocator(msg) }) + if flat1179 != nil { + p.write(*flat1179) return nil } else { - _t1608 := func(_dollar_dollar *pb.CSVLocator) []interface{} { - var _t1609 []string + _t1632 := func(_dollar_dollar *pb.CSVLocator) []interface{} { + var _t1633 []string if !(len(_dollar_dollar.GetPaths()) == 0) { - _t1609 = _dollar_dollar.GetPaths() + _t1633 = _dollar_dollar.GetPaths() } - var _t1610 *string + var _t1634 *string if string(_dollar_dollar.GetInlineData()) != "" { - _t1610 = ptr(string(_dollar_dollar.GetInlineData())) + _t1634 = ptr(string(_dollar_dollar.GetInlineData())) } - return []interface{}{_t1609, _t1610} + return []interface{}{_t1633, _t1634} } - _t1611 := _t1608(msg) - fields1161 := _t1611 - unwrapped_fields1162 := fields1161 + _t1635 := _t1632(msg) + fields1173 := _t1635 + unwrapped_fields1174 := fields1173 p.write("(") p.write("csv_locator") p.indentSexp() - field1163 := unwrapped_fields1162[0].([]string) - if field1163 != nil { + field1175 := unwrapped_fields1174[0].([]string) + if field1175 != nil { p.newline() - opt_val1164 := field1163 - p.pretty_csv_locator_paths(opt_val1164) + opt_val1176 := field1175 + p.pretty_csv_locator_paths(opt_val1176) } - field1165 := unwrapped_fields1162[1].(*string) - if field1165 != nil { + field1177 := unwrapped_fields1174[1].(*string) + if field1177 != nil { p.newline() - opt_val1166 := *field1165 - p.pretty_csv_locator_inline_data(opt_val1166) + opt_val1178 := *field1177 + p.pretty_csv_locator_inline_data(opt_val1178) } p.dedent() p.write(")") @@ -3804,22 +3808,22 @@ func (p *PrettyPrinter) pretty_csvlocator(msg *pb.CSVLocator) interface{} { } func (p *PrettyPrinter) pretty_csv_locator_paths(msg []string) interface{} { - flat1171 := p.tryFlat(msg, func() { p.pretty_csv_locator_paths(msg) }) - if flat1171 != nil { - p.write(*flat1171) + flat1183 := p.tryFlat(msg, func() { p.pretty_csv_locator_paths(msg) }) + if flat1183 != nil { + p.write(*flat1183) return nil } else { - fields1168 := msg + fields1180 := msg p.write("(") p.write("paths") p.indentSexp() - if !(len(fields1168) == 0) { + if !(len(fields1180) == 0) { p.newline() - for i1170, elem1169 := range fields1168 { - if (i1170 > 0) { + for i1182, elem1181 := range fields1180 { + if (i1182 > 0) { p.newline() } - p.write(p.formatStringValue(elem1169)) + p.write(p.formatStringValue(elem1181)) } } p.dedent() @@ -3829,17 +3833,17 @@ func (p *PrettyPrinter) pretty_csv_locator_paths(msg []string) interface{} { } func (p *PrettyPrinter) pretty_csv_locator_inline_data(msg string) interface{} { - flat1173 := p.tryFlat(msg, func() { p.pretty_csv_locator_inline_data(msg) }) - if flat1173 != nil { - p.write(*flat1173) + flat1185 := p.tryFlat(msg, func() { p.pretty_csv_locator_inline_data(msg) }) + if flat1185 != nil { + p.write(*flat1185) return nil } else { - fields1172 := msg + fields1184 := msg p.write("(") p.write("inline_data") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1172)) + p.write(p.formatStringValue(fields1184)) p.dedent() p.write(")") } @@ -3847,23 +3851,23 @@ func (p *PrettyPrinter) pretty_csv_locator_inline_data(msg string) interface{} { } func (p *PrettyPrinter) pretty_csv_config(msg *pb.CSVConfig) interface{} { - flat1176 := p.tryFlat(msg, func() { p.pretty_csv_config(msg) }) - if flat1176 != nil { - p.write(*flat1176) + flat1188 := p.tryFlat(msg, func() { p.pretty_csv_config(msg) }) + if flat1188 != nil { + p.write(*flat1188) return nil } else { - _t1612 := func(_dollar_dollar *pb.CSVConfig) [][]interface{} { - _t1613 := p.deconstruct_csv_config(_dollar_dollar) - return _t1613 + _t1636 := func(_dollar_dollar *pb.CSVConfig) [][]interface{} { + _t1637 := p.deconstruct_csv_config(_dollar_dollar) + return _t1637 } - _t1614 := _t1612(msg) - fields1174 := _t1614 - unwrapped_fields1175 := fields1174 + _t1638 := _t1636(msg) + fields1186 := _t1638 + unwrapped_fields1187 := fields1186 p.write("(") p.write("csv_config") p.indentSexp() p.newline() - p.pretty_config_dict(unwrapped_fields1175) + p.pretty_config_dict(unwrapped_fields1187) p.dedent() p.write(")") } @@ -3871,22 +3875,22 @@ func (p *PrettyPrinter) pretty_csv_config(msg *pb.CSVConfig) interface{} { } func (p *PrettyPrinter) pretty_csv_columns(msg []*pb.CSVColumn) interface{} { - flat1180 := p.tryFlat(msg, func() { p.pretty_csv_columns(msg) }) - if flat1180 != nil { - p.write(*flat1180) + flat1192 := p.tryFlat(msg, func() { p.pretty_csv_columns(msg) }) + if flat1192 != nil { + p.write(*flat1192) return nil } else { - fields1177 := msg + fields1189 := msg p.write("(") p.write("columns") p.indentSexp() - if !(len(fields1177) == 0) { + if !(len(fields1189) == 0) { p.newline() - for i1179, elem1178 := range fields1177 { - if (i1179 > 0) { + for i1191, elem1190 := range fields1189 { + if (i1191 > 0) { p.newline() } - p.pretty_csv_column(elem1178) + p.pretty_csv_column(elem1190) } } p.dedent() @@ -3896,34 +3900,34 @@ func (p *PrettyPrinter) pretty_csv_columns(msg []*pb.CSVColumn) interface{} { } func (p *PrettyPrinter) pretty_csv_column(msg *pb.CSVColumn) interface{} { - flat1188 := p.tryFlat(msg, func() { p.pretty_csv_column(msg) }) - if flat1188 != nil { - p.write(*flat1188) + flat1200 := p.tryFlat(msg, func() { p.pretty_csv_column(msg) }) + if flat1200 != nil { + p.write(*flat1200) return nil } else { - _t1615 := func(_dollar_dollar *pb.CSVColumn) []interface{} { + _t1639 := func(_dollar_dollar *pb.CSVColumn) []interface{} { return []interface{}{_dollar_dollar.GetColumnName(), _dollar_dollar.GetTargetId(), _dollar_dollar.GetTypes()} } - _t1616 := _t1615(msg) - fields1181 := _t1616 - unwrapped_fields1182 := fields1181 + _t1640 := _t1639(msg) + fields1193 := _t1640 + unwrapped_fields1194 := fields1193 p.write("(") p.write("column") p.indentSexp() p.newline() - field1183 := unwrapped_fields1182[0].(string) - p.write(p.formatStringValue(field1183)) + field1195 := unwrapped_fields1194[0].(string) + p.write(p.formatStringValue(field1195)) p.newline() - field1184 := unwrapped_fields1182[1].(*pb.RelationId) - p.pretty_relation_id(field1184) + field1196 := unwrapped_fields1194[1].(*pb.RelationId) + p.pretty_relation_id(field1196) p.newline() p.write("[") - field1185 := unwrapped_fields1182[2].([]*pb.Type) - for i1187, elem1186 := range field1185 { - if (i1187 > 0) { + field1197 := unwrapped_fields1194[2].([]*pb.Type) + for i1199, elem1198 := range field1197 { + if (i1199 > 0) { p.newline() } - p.pretty_type(elem1186) + p.pretty_type(elem1198) } p.write("]") p.dedent() @@ -3933,17 +3937,17 @@ func (p *PrettyPrinter) pretty_csv_column(msg *pb.CSVColumn) interface{} { } func (p *PrettyPrinter) pretty_csv_asof(msg string) interface{} { - flat1190 := p.tryFlat(msg, func() { p.pretty_csv_asof(msg) }) - if flat1190 != nil { - p.write(*flat1190) + flat1202 := p.tryFlat(msg, func() { p.pretty_csv_asof(msg) }) + if flat1202 != nil { + p.write(*flat1202) return nil } else { - fields1189 := msg + fields1201 := msg p.write("(") p.write("asof") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1189)) + p.write(p.formatStringValue(fields1201)) p.dedent() p.write(")") } @@ -3951,22 +3955,22 @@ func (p *PrettyPrinter) pretty_csv_asof(msg string) interface{} { } func (p *PrettyPrinter) pretty_undefine(msg *pb.Undefine) interface{} { - flat1193 := p.tryFlat(msg, func() { p.pretty_undefine(msg) }) - if flat1193 != nil { - p.write(*flat1193) + flat1205 := p.tryFlat(msg, func() { p.pretty_undefine(msg) }) + if flat1205 != nil { + p.write(*flat1205) return nil } else { - _t1617 := func(_dollar_dollar *pb.Undefine) *pb.FragmentId { + _t1641 := func(_dollar_dollar *pb.Undefine) *pb.FragmentId { return _dollar_dollar.GetFragmentId() } - _t1618 := _t1617(msg) - fields1191 := _t1618 - unwrapped_fields1192 := fields1191 + _t1642 := _t1641(msg) + fields1203 := _t1642 + unwrapped_fields1204 := fields1203 p.write("(") p.write("undefine") p.indentSexp() p.newline() - p.pretty_fragment_id(unwrapped_fields1192) + p.pretty_fragment_id(unwrapped_fields1204) p.dedent() p.write(")") } @@ -3974,27 +3978,27 @@ func (p *PrettyPrinter) pretty_undefine(msg *pb.Undefine) interface{} { } func (p *PrettyPrinter) pretty_context(msg *pb.Context) interface{} { - flat1198 := p.tryFlat(msg, func() { p.pretty_context(msg) }) - if flat1198 != nil { - p.write(*flat1198) + flat1210 := p.tryFlat(msg, func() { p.pretty_context(msg) }) + if flat1210 != nil { + p.write(*flat1210) return nil } else { - _t1619 := func(_dollar_dollar *pb.Context) []*pb.RelationId { + _t1643 := func(_dollar_dollar *pb.Context) []*pb.RelationId { return _dollar_dollar.GetRelations() } - _t1620 := _t1619(msg) - fields1194 := _t1620 - unwrapped_fields1195 := fields1194 + _t1644 := _t1643(msg) + fields1206 := _t1644 + unwrapped_fields1207 := fields1206 p.write("(") p.write("context") p.indentSexp() - if !(len(unwrapped_fields1195) == 0) { + if !(len(unwrapped_fields1207) == 0) { p.newline() - for i1197, elem1196 := range unwrapped_fields1195 { - if (i1197 > 0) { + for i1209, elem1208 := range unwrapped_fields1207 { + if (i1209 > 0) { p.newline() } - p.pretty_relation_id(elem1196) + p.pretty_relation_id(elem1208) } } p.dedent() @@ -4004,26 +4008,26 @@ func (p *PrettyPrinter) pretty_context(msg *pb.Context) interface{} { } func (p *PrettyPrinter) pretty_snapshot(msg *pb.Snapshot) interface{} { - flat1203 := p.tryFlat(msg, func() { p.pretty_snapshot(msg) }) - if flat1203 != nil { - p.write(*flat1203) + flat1215 := p.tryFlat(msg, func() { p.pretty_snapshot(msg) }) + if flat1215 != nil { + p.write(*flat1215) return nil } else { - _t1621 := func(_dollar_dollar *pb.Snapshot) []interface{} { + _t1645 := func(_dollar_dollar *pb.Snapshot) []interface{} { return []interface{}{_dollar_dollar.GetDestinationPath(), _dollar_dollar.GetSourceRelation()} } - _t1622 := _t1621(msg) - fields1199 := _t1622 - unwrapped_fields1200 := fields1199 + _t1646 := _t1645(msg) + fields1211 := _t1646 + unwrapped_fields1212 := fields1211 p.write("(") p.write("snapshot") p.indentSexp() p.newline() - field1201 := unwrapped_fields1200[0].([]string) - p.pretty_rel_edb_path(field1201) + field1213 := unwrapped_fields1212[0].([]string) + p.pretty_rel_edb_path(field1213) p.newline() - field1202 := unwrapped_fields1200[1].(*pb.RelationId) - p.pretty_relation_id(field1202) + field1214 := unwrapped_fields1212[1].(*pb.RelationId) + p.pretty_relation_id(field1214) p.dedent() p.write(")") } @@ -4031,22 +4035,22 @@ func (p *PrettyPrinter) pretty_snapshot(msg *pb.Snapshot) interface{} { } func (p *PrettyPrinter) pretty_epoch_reads(msg []*pb.Read) interface{} { - flat1207 := p.tryFlat(msg, func() { p.pretty_epoch_reads(msg) }) - if flat1207 != nil { - p.write(*flat1207) + flat1219 := p.tryFlat(msg, func() { p.pretty_epoch_reads(msg) }) + if flat1219 != nil { + p.write(*flat1219) return nil } else { - fields1204 := msg + fields1216 := msg p.write("(") p.write("reads") p.indentSexp() - if !(len(fields1204) == 0) { + if !(len(fields1216) == 0) { p.newline() - for i1206, elem1205 := range fields1204 { - if (i1206 > 0) { + for i1218, elem1217 := range fields1216 { + if (i1218 > 0) { p.newline() } - p.pretty_read(elem1205) + p.pretty_read(elem1217) } } p.dedent() @@ -4056,75 +4060,75 @@ func (p *PrettyPrinter) pretty_epoch_reads(msg []*pb.Read) interface{} { } func (p *PrettyPrinter) pretty_read(msg *pb.Read) interface{} { - flat1218 := p.tryFlat(msg, func() { p.pretty_read(msg) }) - if flat1218 != nil { - p.write(*flat1218) + flat1230 := p.tryFlat(msg, func() { p.pretty_read(msg) }) + if flat1230 != nil { + p.write(*flat1230) return nil } else { - _t1623 := func(_dollar_dollar *pb.Read) *pb.Demand { - var _t1624 *pb.Demand + _t1647 := func(_dollar_dollar *pb.Read) *pb.Demand { + var _t1648 *pb.Demand if hasProtoField(_dollar_dollar, "demand") { - _t1624 = _dollar_dollar.GetDemand() + _t1648 = _dollar_dollar.GetDemand() } - return _t1624 + return _t1648 } - _t1625 := _t1623(msg) - deconstruct_result1216 := _t1625 - if deconstruct_result1216 != nil { - unwrapped1217 := deconstruct_result1216 - p.pretty_demand(unwrapped1217) + _t1649 := _t1647(msg) + deconstruct_result1228 := _t1649 + if deconstruct_result1228 != nil { + unwrapped1229 := deconstruct_result1228 + p.pretty_demand(unwrapped1229) } else { - _t1626 := func(_dollar_dollar *pb.Read) *pb.Output { - var _t1627 *pb.Output + _t1650 := func(_dollar_dollar *pb.Read) *pb.Output { + var _t1651 *pb.Output if hasProtoField(_dollar_dollar, "output") { - _t1627 = _dollar_dollar.GetOutput() + _t1651 = _dollar_dollar.GetOutput() } - return _t1627 + return _t1651 } - _t1628 := _t1626(msg) - deconstruct_result1214 := _t1628 - if deconstruct_result1214 != nil { - unwrapped1215 := deconstruct_result1214 - p.pretty_output(unwrapped1215) + _t1652 := _t1650(msg) + deconstruct_result1226 := _t1652 + if deconstruct_result1226 != nil { + unwrapped1227 := deconstruct_result1226 + p.pretty_output(unwrapped1227) } else { - _t1629 := func(_dollar_dollar *pb.Read) *pb.WhatIf { - var _t1630 *pb.WhatIf + _t1653 := func(_dollar_dollar *pb.Read) *pb.WhatIf { + var _t1654 *pb.WhatIf if hasProtoField(_dollar_dollar, "what_if") { - _t1630 = _dollar_dollar.GetWhatIf() + _t1654 = _dollar_dollar.GetWhatIf() } - return _t1630 + return _t1654 } - _t1631 := _t1629(msg) - deconstruct_result1212 := _t1631 - if deconstruct_result1212 != nil { - unwrapped1213 := deconstruct_result1212 - p.pretty_what_if(unwrapped1213) + _t1655 := _t1653(msg) + deconstruct_result1224 := _t1655 + if deconstruct_result1224 != nil { + unwrapped1225 := deconstruct_result1224 + p.pretty_what_if(unwrapped1225) } else { - _t1632 := func(_dollar_dollar *pb.Read) *pb.Abort { - var _t1633 *pb.Abort + _t1656 := func(_dollar_dollar *pb.Read) *pb.Abort { + var _t1657 *pb.Abort if hasProtoField(_dollar_dollar, "abort") { - _t1633 = _dollar_dollar.GetAbort() + _t1657 = _dollar_dollar.GetAbort() } - return _t1633 + return _t1657 } - _t1634 := _t1632(msg) - deconstruct_result1210 := _t1634 - if deconstruct_result1210 != nil { - unwrapped1211 := deconstruct_result1210 - p.pretty_abort(unwrapped1211) + _t1658 := _t1656(msg) + deconstruct_result1222 := _t1658 + if deconstruct_result1222 != nil { + unwrapped1223 := deconstruct_result1222 + p.pretty_abort(unwrapped1223) } else { - _t1635 := func(_dollar_dollar *pb.Read) *pb.Export { - var _t1636 *pb.Export + _t1659 := func(_dollar_dollar *pb.Read) *pb.Export { + var _t1660 *pb.Export if hasProtoField(_dollar_dollar, "export") { - _t1636 = _dollar_dollar.GetExport() + _t1660 = _dollar_dollar.GetExport() } - return _t1636 + return _t1660 } - _t1637 := _t1635(msg) - deconstruct_result1208 := _t1637 - if deconstruct_result1208 != nil { - unwrapped1209 := deconstruct_result1208 - p.pretty_export(unwrapped1209) + _t1661 := _t1659(msg) + deconstruct_result1220 := _t1661 + if deconstruct_result1220 != nil { + unwrapped1221 := deconstruct_result1220 + p.pretty_export(unwrapped1221) } else { panic(ParseError{msg: "No matching rule for read"}) } @@ -4137,22 +4141,22 @@ func (p *PrettyPrinter) pretty_read(msg *pb.Read) interface{} { } func (p *PrettyPrinter) pretty_demand(msg *pb.Demand) interface{} { - flat1221 := p.tryFlat(msg, func() { p.pretty_demand(msg) }) - if flat1221 != nil { - p.write(*flat1221) + flat1233 := p.tryFlat(msg, func() { p.pretty_demand(msg) }) + if flat1233 != nil { + p.write(*flat1233) return nil } else { - _t1638 := func(_dollar_dollar *pb.Demand) *pb.RelationId { + _t1662 := func(_dollar_dollar *pb.Demand) *pb.RelationId { return _dollar_dollar.GetRelationId() } - _t1639 := _t1638(msg) - fields1219 := _t1639 - unwrapped_fields1220 := fields1219 + _t1663 := _t1662(msg) + fields1231 := _t1663 + unwrapped_fields1232 := fields1231 p.write("(") p.write("demand") p.indentSexp() p.newline() - p.pretty_relation_id(unwrapped_fields1220) + p.pretty_relation_id(unwrapped_fields1232) p.dedent() p.write(")") } @@ -4160,26 +4164,26 @@ func (p *PrettyPrinter) pretty_demand(msg *pb.Demand) interface{} { } func (p *PrettyPrinter) pretty_output(msg *pb.Output) interface{} { - flat1226 := p.tryFlat(msg, func() { p.pretty_output(msg) }) - if flat1226 != nil { - p.write(*flat1226) + flat1238 := p.tryFlat(msg, func() { p.pretty_output(msg) }) + if flat1238 != nil { + p.write(*flat1238) return nil } else { - _t1640 := func(_dollar_dollar *pb.Output) []interface{} { + _t1664 := func(_dollar_dollar *pb.Output) []interface{} { return []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationId()} } - _t1641 := _t1640(msg) - fields1222 := _t1641 - unwrapped_fields1223 := fields1222 + _t1665 := _t1664(msg) + fields1234 := _t1665 + unwrapped_fields1235 := fields1234 p.write("(") p.write("output") p.indentSexp() p.newline() - field1224 := unwrapped_fields1223[0].(string) - p.pretty_name(field1224) + field1236 := unwrapped_fields1235[0].(string) + p.pretty_name(field1236) p.newline() - field1225 := unwrapped_fields1223[1].(*pb.RelationId) - p.pretty_relation_id(field1225) + field1237 := unwrapped_fields1235[1].(*pb.RelationId) + p.pretty_relation_id(field1237) p.dedent() p.write(")") } @@ -4187,26 +4191,26 @@ func (p *PrettyPrinter) pretty_output(msg *pb.Output) interface{} { } func (p *PrettyPrinter) pretty_what_if(msg *pb.WhatIf) interface{} { - flat1231 := p.tryFlat(msg, func() { p.pretty_what_if(msg) }) - if flat1231 != nil { - p.write(*flat1231) + flat1243 := p.tryFlat(msg, func() { p.pretty_what_if(msg) }) + if flat1243 != nil { + p.write(*flat1243) return nil } else { - _t1642 := func(_dollar_dollar *pb.WhatIf) []interface{} { + _t1666 := func(_dollar_dollar *pb.WhatIf) []interface{} { return []interface{}{_dollar_dollar.GetBranch(), _dollar_dollar.GetEpoch()} } - _t1643 := _t1642(msg) - fields1227 := _t1643 - unwrapped_fields1228 := fields1227 + _t1667 := _t1666(msg) + fields1239 := _t1667 + unwrapped_fields1240 := fields1239 p.write("(") p.write("what_if") p.indentSexp() p.newline() - field1229 := unwrapped_fields1228[0].(string) - p.pretty_name(field1229) + field1241 := unwrapped_fields1240[0].(string) + p.pretty_name(field1241) p.newline() - field1230 := unwrapped_fields1228[1].(*pb.Epoch) - p.pretty_epoch(field1230) + field1242 := unwrapped_fields1240[1].(*pb.Epoch) + p.pretty_epoch(field1242) p.dedent() p.write(")") } @@ -4214,33 +4218,33 @@ func (p *PrettyPrinter) pretty_what_if(msg *pb.WhatIf) interface{} { } func (p *PrettyPrinter) pretty_abort(msg *pb.Abort) interface{} { - flat1237 := p.tryFlat(msg, func() { p.pretty_abort(msg) }) - if flat1237 != nil { - p.write(*flat1237) + flat1249 := p.tryFlat(msg, func() { p.pretty_abort(msg) }) + if flat1249 != nil { + p.write(*flat1249) return nil } else { - _t1644 := func(_dollar_dollar *pb.Abort) []interface{} { - var _t1645 *string + _t1668 := func(_dollar_dollar *pb.Abort) []interface{} { + var _t1669 *string if _dollar_dollar.GetName() != "abort" { - _t1645 = ptr(_dollar_dollar.GetName()) + _t1669 = ptr(_dollar_dollar.GetName()) } - return []interface{}{_t1645, _dollar_dollar.GetRelationId()} + return []interface{}{_t1669, _dollar_dollar.GetRelationId()} } - _t1646 := _t1644(msg) - fields1232 := _t1646 - unwrapped_fields1233 := fields1232 + _t1670 := _t1668(msg) + fields1244 := _t1670 + unwrapped_fields1245 := fields1244 p.write("(") p.write("abort") p.indentSexp() - field1234 := unwrapped_fields1233[0].(*string) - if field1234 != nil { + field1246 := unwrapped_fields1245[0].(*string) + if field1246 != nil { p.newline() - opt_val1235 := *field1234 - p.pretty_name(opt_val1235) + opt_val1247 := *field1246 + p.pretty_name(opt_val1247) } p.newline() - field1236 := unwrapped_fields1233[1].(*pb.RelationId) - p.pretty_relation_id(field1236) + field1248 := unwrapped_fields1245[1].(*pb.RelationId) + p.pretty_relation_id(field1248) p.dedent() p.write(")") } @@ -4248,22 +4252,22 @@ func (p *PrettyPrinter) pretty_abort(msg *pb.Abort) interface{} { } func (p *PrettyPrinter) pretty_export(msg *pb.Export) interface{} { - flat1240 := p.tryFlat(msg, func() { p.pretty_export(msg) }) - if flat1240 != nil { - p.write(*flat1240) + flat1252 := p.tryFlat(msg, func() { p.pretty_export(msg) }) + if flat1252 != nil { + p.write(*flat1252) return nil } else { - _t1647 := func(_dollar_dollar *pb.Export) *pb.ExportCSVConfig { + _t1671 := func(_dollar_dollar *pb.Export) *pb.ExportCSVConfig { return _dollar_dollar.GetCsvConfig() } - _t1648 := _t1647(msg) - fields1238 := _t1648 - unwrapped_fields1239 := fields1238 + _t1672 := _t1671(msg) + fields1250 := _t1672 + unwrapped_fields1251 := fields1250 p.write("(") p.write("export") p.indentSexp() p.newline() - p.pretty_export_csv_config(unwrapped_fields1239) + p.pretty_export_csv_config(unwrapped_fields1251) p.dedent() p.write(")") } @@ -4271,100 +4275,193 @@ func (p *PrettyPrinter) pretty_export(msg *pb.Export) interface{} { } func (p *PrettyPrinter) pretty_export_csv_config(msg *pb.ExportCSVConfig) interface{} { - flat1246 := p.tryFlat(msg, func() { p.pretty_export_csv_config(msg) }) - if flat1246 != nil { - p.write(*flat1246) + flat1263 := p.tryFlat(msg, func() { p.pretty_export_csv_config(msg) }) + if flat1263 != nil { + p.write(*flat1263) return nil } else { - _t1649 := func(_dollar_dollar *pb.ExportCSVConfig) []interface{} { - _t1650 := p.deconstruct_export_csv_config(_dollar_dollar) - return []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetDataColumns(), _t1650} + _t1673 := func(_dollar_dollar *pb.ExportCSVConfig) []interface{} { + var _t1674 []interface{} + if int64(len(_dollar_dollar.GetDataColumns())) == 0 { + _t1674 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetCsvSource(), _dollar_dollar.GetCsvConfig()} + } + return _t1674 + } + _t1675 := _t1673(msg) + deconstruct_result1258 := _t1675 + if deconstruct_result1258 != nil { + unwrapped1259 := deconstruct_result1258 + p.write("(") + p.write("export_csv_config_v2") + p.indentSexp() + p.newline() + field1260 := unwrapped1259[0].(string) + p.pretty_export_csv_path(field1260) + p.newline() + field1261 := unwrapped1259[1].(*pb.ExportCSVSource) + p.pretty_export_csv_source(field1261) + p.newline() + field1262 := unwrapped1259[2].(*pb.CSVConfig) + p.pretty_csv_config(field1262) + p.dedent() + p.write(")") + } else { + _t1676 := func(_dollar_dollar *pb.ExportCSVConfig) []interface{} { + var _t1677 []interface{} + if int64(len(_dollar_dollar.GetDataColumns())) != 0 { + _t1678 := p.deconstruct_export_csv_config(_dollar_dollar) + _t1677 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetDataColumns(), _t1678} + } + return _t1677 + } + _t1679 := _t1676(msg) + deconstruct_result1253 := _t1679 + if deconstruct_result1253 != nil { + unwrapped1254 := deconstruct_result1253 + p.write("(") + p.write("export_csv_config") + p.indentSexp() + p.newline() + field1255 := unwrapped1254[0].(string) + p.pretty_export_csv_path(field1255) + p.newline() + field1256 := unwrapped1254[1].([]*pb.ExportCSVColumn) + p.pretty_export_csv_columns_list(field1256) + p.newline() + field1257 := unwrapped1254[2].([][]interface{}) + p.pretty_config_dict(field1257) + p.dedent() + p.write(")") + } else { + panic(ParseError{msg: "No matching rule for export_csv_config"}) + } } - _t1651 := _t1649(msg) - fields1241 := _t1651 - unwrapped_fields1242 := fields1241 - p.write("(") - p.write("export_csv_config") - p.indentSexp() - p.newline() - field1243 := unwrapped_fields1242[0].(string) - p.pretty_export_csv_path(field1243) - p.newline() - field1244 := unwrapped_fields1242[1].([]*pb.ExportCSVColumn) - p.pretty_export_csv_columns(field1244) - p.newline() - field1245 := unwrapped_fields1242[2].([][]interface{}) - p.pretty_config_dict(field1245) - p.dedent() - p.write(")") } return nil } func (p *PrettyPrinter) pretty_export_csv_path(msg string) interface{} { - flat1248 := p.tryFlat(msg, func() { p.pretty_export_csv_path(msg) }) - if flat1248 != nil { - p.write(*flat1248) + flat1265 := p.tryFlat(msg, func() { p.pretty_export_csv_path(msg) }) + if flat1265 != nil { + p.write(*flat1265) return nil } else { - fields1247 := msg + fields1264 := msg p.write("(") p.write("path") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1247)) + p.write(p.formatStringValue(fields1264)) p.dedent() p.write(")") } return nil } -func (p *PrettyPrinter) pretty_export_csv_columns(msg []*pb.ExportCSVColumn) interface{} { - flat1252 := p.tryFlat(msg, func() { p.pretty_export_csv_columns(msg) }) - if flat1252 != nil { - p.write(*flat1252) +func (p *PrettyPrinter) pretty_export_csv_source(msg *pb.ExportCSVSource) interface{} { + flat1272 := p.tryFlat(msg, func() { p.pretty_export_csv_source(msg) }) + if flat1272 != nil { + p.write(*flat1272) return nil } else { - fields1249 := msg - p.write("(") - p.write("columns") - p.indentSexp() - if !(len(fields1249) == 0) { - p.newline() - for i1251, elem1250 := range fields1249 { - if (i1251 > 0) { - p.newline() + _t1680 := func(_dollar_dollar *pb.ExportCSVSource) []*pb.ExportCSVColumn { + var _t1681 []*pb.ExportCSVColumn + if hasProtoField(_dollar_dollar, "gnf_columns") { + _t1681 = _dollar_dollar.GetGnfColumns().GetColumns() + } + return _t1681 + } + _t1682 := _t1680(msg) + deconstruct_result1268 := _t1682 + if deconstruct_result1268 != nil { + unwrapped1269 := deconstruct_result1268 + p.write("(") + p.write("gnf_columns") + p.indentSexp() + if !(len(unwrapped1269) == 0) { + p.newline() + for i1271, elem1270 := range unwrapped1269 { + if (i1271 > 0) { + p.newline() + } + p.pretty_export_csv_column(elem1270) + } + } + p.dedent() + p.write(")") + } else { + _t1683 := func(_dollar_dollar *pb.ExportCSVSource) *pb.RelationId { + var _t1684 *pb.RelationId + if hasProtoField(_dollar_dollar, "table_def") { + _t1684 = _dollar_dollar.GetTableDef() } - p.pretty_export_csv_column(elem1250) + return _t1684 + } + _t1685 := _t1683(msg) + deconstruct_result1266 := _t1685 + if deconstruct_result1266 != nil { + unwrapped1267 := deconstruct_result1266 + p.write("(") + p.write("table_def") + p.indentSexp() + p.newline() + p.pretty_relation_id(unwrapped1267) + 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{} { - flat1257 := p.tryFlat(msg, func() { p.pretty_export_csv_column(msg) }) - if flat1257 != nil { - p.write(*flat1257) + flat1277 := p.tryFlat(msg, func() { p.pretty_export_csv_column(msg) }) + if flat1277 != nil { + p.write(*flat1277) return nil } else { - _t1652 := func(_dollar_dollar *pb.ExportCSVColumn) []interface{} { + _t1686 := func(_dollar_dollar *pb.ExportCSVColumn) []interface{} { return []interface{}{_dollar_dollar.GetColumnName(), _dollar_dollar.GetColumnData()} } - _t1653 := _t1652(msg) - fields1253 := _t1653 - unwrapped_fields1254 := fields1253 + _t1687 := _t1686(msg) + fields1273 := _t1687 + unwrapped_fields1274 := fields1273 p.write("(") p.write("column") p.indentSexp() p.newline() - field1255 := unwrapped_fields1254[0].(string) - p.write(p.formatStringValue(field1255)) + field1275 := unwrapped_fields1274[0].(string) + p.write(p.formatStringValue(field1275)) p.newline() - field1256 := unwrapped_fields1254[1].(*pb.RelationId) - p.pretty_relation_id(field1256) + field1276 := unwrapped_fields1274[1].(*pb.RelationId) + p.pretty_relation_id(field1276) + p.dedent() + p.write(")") + } + return nil +} + +func (p *PrettyPrinter) pretty_export_csv_columns_list(msg []*pb.ExportCSVColumn) interface{} { + flat1281 := p.tryFlat(msg, func() { p.pretty_export_csv_columns_list(msg) }) + if flat1281 != nil { + p.write(*flat1281) + return nil + } else { + fields1278 := msg + p.write("(") + p.write("columns") + p.indentSexp() + if !(len(fields1278) == 0) { + p.newline() + for i1280, elem1279 := range fields1278 { + if (i1280 > 0) { + p.newline() + } + p.pretty_export_csv_column(elem1279) + } + } p.dedent() p.write(")") } @@ -4380,8 +4477,8 @@ func (p *PrettyPrinter) pretty_debug_info(msg *pb.DebugInfo) interface{} { for _idx, _rid := range msg.GetIds() { p.newline() p.write("(") - _t1691 := &pb.UInt128Value{Low: _rid.GetIdLow(), High: _rid.GetIdHigh()} - p.pprintDispatch(_t1691) + _t1726 := &pb.UInt128Value{Low: _rid.GetIdLow(), High: _rid.GetIdHigh()} + p.pprintDispatch(_t1726) p.write(" ") p.write(p.formatStringValue(msg.GetOrigNames()[_idx])) p.write(")") @@ -4491,6 +4588,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() @@ -4710,10 +4825,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: @@ -4730,6 +4847,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/fragments_pb.jl b/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/fragments_pb.jl index 268f4944..097777f1 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/fragments_pb.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/gen/relationalai/lqp/v1/fragments_pb.jl @@ -1,5 +1,5 @@ -# Autogenerated using ProtoBuf.jl v1.2.0 on 2026-02-18T23:42:15.080 -# original file: /Users/niko/Projects/logical-query-protocol/proto/relationalai/lqp/v1/fragments.proto (proto3 syntax) +# Autogenerated using ProtoBuf.jl v1.2.0 on 2026-02-23T07:41:46.267 +# original file: /Users/dzhao/Documents/logical-query-protocol/proto/relationalai/lqp/v1/fragments.proto (proto3 syntax) import ProtoBuf as PB using ProtoBuf: OneOf 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 f5429eab..1cae67b5 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 @@ -1,5 +1,5 @@ -# Autogenerated using ProtoBuf.jl v1.2.0 on 2026-02-18T23:42:14.655 -# original file: /Users/niko/Projects/logical-query-protocol/proto/relationalai/lqp/v1/logic.proto (proto3 syntax) +# Autogenerated using ProtoBuf.jl v1.2.0 on 2026-02-23T07:41:45.814 +# original file: /Users/dzhao/Documents/logical-query-protocol/proto/relationalai/lqp/v1/logic.proto (proto3 syntax) import ProtoBuf as PB using ProtoBuf: OneOf @@ -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 28028128..6f9cbedc 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 @@ -1,13 +1,13 @@ -# Autogenerated using ProtoBuf.jl v1.2.0 on 2026-02-18T23:42:15.080 -# original file: /Users/niko/Projects/logical-query-protocol/proto/relationalai/lqp/v1/transactions.proto (proto3 syntax) +# Autogenerated using ProtoBuf.jl v1.2.0 on 2026-02-23T07:41:46.267 +# original file: /Users/dzhao/Documents/logical-query-protocol/proto/relationalai/lqp/v1/transactions.proto (proto3 syntax) import ProtoBuf as PB using ProtoBuf: OneOf using ProtoBuf.EnumX: @enumx export ExportCSVColumn, Demand, Undefine, MaintenanceLevel, Snapshot, Define, Context, Sync -export Abort, Output, ExportCSVConfig, IVMConfig, Write, Export, Configure, Epoch, Read -export Transaction, WhatIf +export Abort, Output, ExportCSVColumns, IVMConfig, Write, ExportCSVSource, Configure +export ExportCSVConfig, Export, Epoch, Read, Transaction, WhatIf abstract type var"##Abstract#Transaction" end abstract type var"##Abstract#Epoch" end abstract type var"##Abstract#Read" end @@ -319,82 +319,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 @@ -488,42 +440,48 @@ function PB._encoded_size(x::Write) 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 @@ -565,6 +523,137 @@ function PB._encoded_size(x::Configure) return encoded_size end +struct ExportCSVConfig + path::String + data_columns::Vector{ExportCSVColumn} + csv_source::Union{Nothing,ExportCSVSource} + csv_config::Union{Nothing,CSVConfig} + 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 = "", data_columns = Vector{ExportCSVColumn}(), csv_source = nothing, csv_config = nothing, partition_size = zero(Int64), compression = "", syntax_header_row = false, syntax_missing_string = "", syntax_delim = "", syntax_quotechar = "", syntax_escapechar = "") = ExportCSVConfig(path, data_columns, csv_source, csv_config, 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}(), csv_source = nothing, csv_config = nothing, 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, csv_source = 10, csv_config = 11, 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 = "" + data_columns = PB.BufferedVector{ExportCSVColumn}() + csv_source = Ref{Union{Nothing,ExportCSVSource}}(nothing) + csv_config = Ref{Union{Nothing,CSVConfig}}(nothing) + 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 == 2 + PB.decode!(d, data_columns) + elseif field_number == 10 + PB.decode!(d, csv_source) + elseif field_number == 11 + PB.decode!(d, csv_config) + 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, data_columns[], csv_source[], csv_config[], 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) + !isempty(x.data_columns) && PB.encode(e, 2, x.data_columns) + !isnothing(x.csv_source) && PB.encode(e, 10, x.csv_source) + !isnothing(x.csv_config) && PB.encode(e, 11, x.csv_config) + 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)) + !isempty(x.data_columns) && (encoded_size += PB._encoded_size(x.data_columns, 2)) + !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)) + 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 361e1130..eb879357 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 - _t1311 = nothing + _t1350 = 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 - _t1312 = nothing + _t1351 = 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 - _t1313 = nothing + _t1352 = 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 - _t1314 = nothing + _t1353 = 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 - _t1315 = nothing + _t1354 = 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 - _t1316 = nothing + _t1355 = 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 - _t1317 = nothing + _t1356 = 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 - _t1318 = nothing + _t1357 = 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 - _t1319 = nothing + _t1358 = nothing end return nothing end function construct_csv_config(parser::ParserState, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.CSVConfig config = Dict(config_dict) - _t1320 = _extract_value_int32(parser, get(config, "csv_header_row", nothing), 1) - header_row = _t1320 - _t1321 = _extract_value_int64(parser, get(config, "csv_skip", nothing), 0) - skip = _t1321 - _t1322 = _extract_value_string(parser, get(config, "csv_new_line", nothing), "") - new_line = _t1322 - _t1323 = _extract_value_string(parser, get(config, "csv_delimiter", nothing), ",") - delimiter = _t1323 - _t1324 = _extract_value_string(parser, get(config, "csv_quotechar", nothing), "\"") - quotechar = _t1324 - _t1325 = _extract_value_string(parser, get(config, "csv_escapechar", nothing), "\"") - escapechar = _t1325 - _t1326 = _extract_value_string(parser, get(config, "csv_comment", nothing), "") - comment = _t1326 - _t1327 = _extract_value_string_list(parser, get(config, "csv_missing_strings", nothing), String[]) - missing_strings = _t1327 - _t1328 = _extract_value_string(parser, get(config, "csv_decimal_separator", nothing), ".") - decimal_separator = _t1328 - _t1329 = _extract_value_string(parser, get(config, "csv_encoding", nothing), "utf-8") - encoding = _t1329 - _t1330 = _extract_value_string(parser, get(config, "csv_compression", nothing), "auto") - compression = _t1330 - _t1331 = 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 _t1331 + _t1359 = _extract_value_int32(parser, get(config, "csv_header_row", nothing), 1) + header_row = _t1359 + _t1360 = _extract_value_int64(parser, get(config, "csv_skip", nothing), 0) + skip = _t1360 + _t1361 = _extract_value_string(parser, get(config, "csv_new_line", nothing), "") + new_line = _t1361 + _t1362 = _extract_value_string(parser, get(config, "csv_delimiter", nothing), ",") + delimiter = _t1362 + _t1363 = _extract_value_string(parser, get(config, "csv_quotechar", nothing), "\"") + quotechar = _t1363 + _t1364 = _extract_value_string(parser, get(config, "csv_escapechar", nothing), "\"") + escapechar = _t1364 + _t1365 = _extract_value_string(parser, get(config, "csv_comment", nothing), "") + comment = _t1365 + _t1366 = _extract_value_string_list(parser, get(config, "csv_missing_strings", nothing), String[]) + missing_strings = _t1366 + _t1367 = _extract_value_string(parser, get(config, "csv_decimal_separator", nothing), ".") + decimal_separator = _t1367 + _t1368 = _extract_value_string(parser, get(config, "csv_encoding", nothing), "utf-8") + encoding = _t1368 + _t1369 = _extract_value_string(parser, get(config, "csv_compression", nothing), "auto") + compression = _t1369 + _t1370 = _extract_value_int64(parser, get(config, "csv_partition_size_mb", nothing), 0) + partition_size_mb = _t1370 + _t1371 = 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 _t1371 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) - _t1332 = _try_extract_value_float64(parser, get(config, "betree_config_epsilon", nothing)) - epsilon = _t1332 - _t1333 = _try_extract_value_int64(parser, get(config, "betree_config_max_pivots", nothing)) - max_pivots = _t1333 - _t1334 = _try_extract_value_int64(parser, get(config, "betree_config_max_deltas", nothing)) - max_deltas = _t1334 - _t1335 = _try_extract_value_int64(parser, get(config, "betree_config_max_leaf", nothing)) - max_leaf = _t1335 - _t1336 = Proto.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) - storage_config = _t1336 - _t1337 = _try_extract_value_uint128(parser, get(config, "betree_locator_root_pageid", nothing)) - root_pageid = _t1337 - _t1338 = _try_extract_value_bytes(parser, get(config, "betree_locator_inline_data", nothing)) - inline_data = _t1338 - _t1339 = _try_extract_value_int64(parser, get(config, "betree_locator_element_count", nothing)) - element_count = _t1339 - _t1340 = _try_extract_value_int64(parser, get(config, "betree_locator_tree_height", nothing)) - tree_height = _t1340 - _t1341 = 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 = _t1341 - _t1342 = Proto.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) - return _t1342 + _t1372 = _try_extract_value_float64(parser, get(config, "betree_config_epsilon", nothing)) + epsilon = _t1372 + _t1373 = _try_extract_value_int64(parser, get(config, "betree_config_max_pivots", nothing)) + max_pivots = _t1373 + _t1374 = _try_extract_value_int64(parser, get(config, "betree_config_max_deltas", nothing)) + max_deltas = _t1374 + _t1375 = _try_extract_value_int64(parser, get(config, "betree_config_max_leaf", nothing)) + max_leaf = _t1375 + _t1376 = Proto.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) + storage_config = _t1376 + _t1377 = _try_extract_value_uint128(parser, get(config, "betree_locator_root_pageid", nothing)) + root_pageid = _t1377 + _t1378 = _try_extract_value_bytes(parser, get(config, "betree_locator_inline_data", nothing)) + inline_data = _t1378 + _t1379 = _try_extract_value_int64(parser, get(config, "betree_locator_element_count", nothing)) + element_count = _t1379 + _t1380 = _try_extract_value_int64(parser, get(config, "betree_locator_tree_height", nothing)) + tree_height = _t1380 + _t1381 = 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 = _t1381 + _t1382 = Proto.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) + return _t1382 end function default_configure(parser::ParserState)::Proto.Configure - _t1343 = Proto.IVMConfig(level=Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) - ivm_config = _t1343 - _t1344 = Proto.Configure(semantics_version=0, ivm_config=ivm_config) - return _t1344 + _t1383 = Proto.IVMConfig(level=Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) + ivm_config = _t1383 + _t1384 = Proto.Configure(semantics_version=0, ivm_config=ivm_config) + return _t1384 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 - _t1345 = Proto.IVMConfig(level=maintenance_level) - ivm_config = _t1345 - _t1346 = _extract_value_int64(parser, get(config, "semantics_version", nothing), 0) - semantics_version = _t1346 - _t1347 = Proto.Configure(semantics_version=semantics_version, ivm_config=ivm_config) - return _t1347 + _t1385 = Proto.IVMConfig(level=maintenance_level) + ivm_config = _t1385 + _t1386 = _extract_value_int64(parser, get(config, "semantics_version", nothing), 0) + semantics_version = _t1386 + _t1387 = Proto.Configure(semantics_version=semantics_version, ivm_config=ivm_config) + return _t1387 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) - _t1348 = _extract_value_int64(parser, get(config, "partition_size", nothing), 0) - partition_size = _t1348 - _t1349 = _extract_value_string(parser, get(config, "compression", nothing), "") - compression = _t1349 - _t1350 = _extract_value_boolean(parser, get(config, "syntax_header_row", nothing), true) - syntax_header_row = _t1350 - _t1351 = _extract_value_string(parser, get(config, "syntax_missing_string", nothing), "") - syntax_missing_string = _t1351 - _t1352 = _extract_value_string(parser, get(config, "syntax_delim", nothing), ",") - syntax_delim = _t1352 - _t1353 = _extract_value_string(parser, get(config, "syntax_quotechar", nothing), "\"") - syntax_quotechar = _t1353 - _t1354 = _extract_value_string(parser, get(config, "syntax_escapechar", nothing), "\\") - syntax_escapechar = _t1354 - _t1355 = 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 _t1355 + _t1388 = _extract_value_int64(parser, get(config, "partition_size", nothing), 0) + partition_size = _t1388 + _t1389 = _extract_value_string(parser, get(config, "compression", nothing), "") + compression = _t1389 + _t1390 = _extract_value_boolean(parser, get(config, "syntax_header_row", nothing), true) + syntax_header_row = _t1390 + _t1391 = _extract_value_string(parser, get(config, "syntax_missing_string", nothing), "") + syntax_missing_string = _t1391 + _t1392 = _extract_value_string(parser, get(config, "syntax_delim", nothing), ",") + syntax_delim = _t1392 + _t1393 = _extract_value_string(parser, get(config, "syntax_quotechar", nothing), "\"") + syntax_quotechar = _t1393 + _t1394 = _extract_value_string(parser, get(config, "syntax_escapechar", nothing), "\\") + syntax_escapechar = _t1394 + _t1395 = 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 _t1395 +end + +function construct_export_csv_config_with_source(parser::ParserState, path::String, csv_source::Proto.ExportCSVSource, csv_config::Proto.CSVConfig)::Proto.ExportCSVConfig + _t1396 = Proto.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) + return _t1396 end # --- Parse functions --- @@ -496,2699 +503,2785 @@ 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)) - _t713 = parse_configure(parser) - _t712 = _t713 + _t733 = parse_configure(parser) + _t732 = _t733 else - _t712 = nothing + _t732 = nothing end - configure356 = _t712 + configure366 = _t732 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "sync", 1)) - _t715 = parse_sync(parser) - _t714 = _t715 + _t735 = parse_sync(parser) + _t734 = _t735 else - _t714 = nothing + _t734 = nothing end - sync357 = _t714 - xs358 = Proto.Epoch[] - cond359 = match_lookahead_literal(parser, "(", 0) - while cond359 - _t716 = parse_epoch(parser) - item360 = _t716 - push!(xs358, item360) - cond359 = match_lookahead_literal(parser, "(", 0) + 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) end - epochs361 = xs358 + epochs371 = xs368 consume_literal!(parser, ")") - _t717 = default_configure(parser) - _t718 = Proto.Transaction(epochs=epochs361, configure=(!isnothing(configure356) ? configure356 : _t717), sync=sync357) - return _t718 + _t737 = default_configure(parser) + _t738 = Proto.Transaction(epochs=epochs371, configure=(!isnothing(configure366) ? configure366 : _t737), sync=sync367) + return _t738 end function parse_configure(parser::ParserState)::Proto.Configure consume_literal!(parser, "(") consume_literal!(parser, "configure") - _t719 = parse_config_dict(parser) - config_dict362 = _t719 + _t739 = parse_config_dict(parser) + config_dict372 = _t739 consume_literal!(parser, ")") - _t720 = construct_configure(parser, config_dict362) - return _t720 + _t740 = construct_configure(parser, config_dict372) + return _t740 end function parse_config_dict(parser::ParserState)::Vector{Tuple{String, Proto.Value}} consume_literal!(parser, "{") - xs363 = Tuple{String, Proto.Value}[] - cond364 = match_lookahead_literal(parser, ":", 0) - while cond364 - _t721 = parse_config_key_value(parser) - item365 = _t721 - push!(xs363, item365) - cond364 = match_lookahead_literal(parser, ":", 0) - end - config_key_values366 = xs363 + 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 consume_literal!(parser, "}") - return config_key_values366 + return config_key_values376 end function parse_config_key_value(parser::ParserState)::Tuple{String, Proto.Value} consume_literal!(parser, ":") - symbol367 = consume_terminal!(parser, "SYMBOL") - _t722 = parse_value(parser) - value368 = _t722 - return (symbol367, value368,) + symbol377 = consume_terminal!(parser, "SYMBOL") + _t742 = parse_value(parser) + value378 = _t742 + return (symbol377, value378,) end function parse_value(parser::ParserState)::Proto.Value if match_lookahead_literal(parser, "true", 0) - _t723 = 9 + _t743 = 9 else if match_lookahead_literal(parser, "missing", 0) - _t724 = 8 + _t744 = 8 else if match_lookahead_literal(parser, "false", 0) - _t725 = 9 + _t745 = 9 else if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "datetime", 1) - _t727 = 1 + _t747 = 1 else if match_lookahead_literal(parser, "date", 1) - _t728 = 0 + _t748 = 0 else - _t728 = -1 + _t748 = -1 end - _t727 = _t728 + _t747 = _t748 end - _t726 = _t727 + _t746 = _t747 else if match_lookahead_terminal(parser, "UINT128", 0) - _t729 = 5 + _t749 = 5 else if match_lookahead_terminal(parser, "STRING", 0) - _t730 = 2 + _t750 = 2 else if match_lookahead_terminal(parser, "INT128", 0) - _t731 = 6 + _t751 = 6 else if match_lookahead_terminal(parser, "INT", 0) - _t732 = 3 + _t752 = 3 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t733 = 4 + _t753 = 4 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t734 = 7 + _t754 = 7 else - _t734 = -1 + _t754 = -1 end - _t733 = _t734 + _t753 = _t754 end - _t732 = _t733 + _t752 = _t753 end - _t731 = _t732 + _t751 = _t752 end - _t730 = _t731 + _t750 = _t751 end - _t729 = _t730 + _t749 = _t750 end - _t726 = _t729 + _t746 = _t749 end - _t725 = _t726 + _t745 = _t746 end - _t724 = _t725 + _t744 = _t745 end - _t723 = _t724 - end - prediction369 = _t723 - if prediction369 == 9 - _t736 = parse_boolean_value(parser) - boolean_value378 = _t736 - _t737 = Proto.Value(value=OneOf(:boolean_value, boolean_value378)) - _t735 = _t737 + _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 else - if prediction369 == 8 + if prediction379 == 8 consume_literal!(parser, "missing") - _t739 = Proto.MissingValue() - _t740 = Proto.Value(value=OneOf(:missing_value, _t739)) - _t738 = _t740 + _t759 = Proto.MissingValue() + _t760 = Proto.Value(value=OneOf(:missing_value, _t759)) + _t758 = _t760 else - if prediction369 == 7 - decimal377 = consume_terminal!(parser, "DECIMAL") - _t742 = Proto.Value(value=OneOf(:decimal_value, decimal377)) - _t741 = _t742 + if prediction379 == 7 + decimal387 = consume_terminal!(parser, "DECIMAL") + _t762 = Proto.Value(value=OneOf(:decimal_value, decimal387)) + _t761 = _t762 else - if prediction369 == 6 - int128376 = consume_terminal!(parser, "INT128") - _t744 = Proto.Value(value=OneOf(:int128_value, int128376)) - _t743 = _t744 + if prediction379 == 6 + int128386 = consume_terminal!(parser, "INT128") + _t764 = Proto.Value(value=OneOf(:int128_value, int128386)) + _t763 = _t764 else - if prediction369 == 5 - uint128375 = consume_terminal!(parser, "UINT128") - _t746 = Proto.Value(value=OneOf(:uint128_value, uint128375)) - _t745 = _t746 + if prediction379 == 5 + uint128385 = consume_terminal!(parser, "UINT128") + _t766 = Proto.Value(value=OneOf(:uint128_value, uint128385)) + _t765 = _t766 else - if prediction369 == 4 - float374 = consume_terminal!(parser, "FLOAT") - _t748 = Proto.Value(value=OneOf(:float_value, float374)) - _t747 = _t748 + if prediction379 == 4 + float384 = consume_terminal!(parser, "FLOAT") + _t768 = Proto.Value(value=OneOf(:float_value, float384)) + _t767 = _t768 else - if prediction369 == 3 - int373 = consume_terminal!(parser, "INT") - _t750 = Proto.Value(value=OneOf(:int_value, int373)) - _t749 = _t750 + if prediction379 == 3 + int383 = consume_terminal!(parser, "INT") + _t770 = Proto.Value(value=OneOf(:int_value, int383)) + _t769 = _t770 else - if prediction369 == 2 - string372 = consume_terminal!(parser, "STRING") - _t752 = Proto.Value(value=OneOf(:string_value, string372)) - _t751 = _t752 + if prediction379 == 2 + string382 = consume_terminal!(parser, "STRING") + _t772 = Proto.Value(value=OneOf(:string_value, string382)) + _t771 = _t772 else - if prediction369 == 1 - _t754 = parse_datetime(parser) - datetime371 = _t754 - _t755 = Proto.Value(value=OneOf(:datetime_value, datetime371)) - _t753 = _t755 + if prediction379 == 1 + _t774 = parse_datetime(parser) + datetime381 = _t774 + _t775 = Proto.Value(value=OneOf(:datetime_value, datetime381)) + _t773 = _t775 else - if prediction369 == 0 - _t757 = parse_date(parser) - date370 = _t757 - _t758 = Proto.Value(value=OneOf(:date_value, date370)) - _t756 = _t758 + if prediction379 == 0 + _t777 = parse_date(parser) + date380 = _t777 + _t778 = Proto.Value(value=OneOf(:date_value, date380)) + _t776 = _t778 else throw(ParseError("Unexpected token in value" * ": " * string(lookahead(parser, 0)))) end - _t753 = _t756 + _t773 = _t776 end - _t751 = _t753 + _t771 = _t773 end - _t749 = _t751 + _t769 = _t771 end - _t747 = _t749 + _t767 = _t769 end - _t745 = _t747 + _t765 = _t767 end - _t743 = _t745 + _t763 = _t765 end - _t741 = _t743 + _t761 = _t763 end - _t738 = _t741 + _t758 = _t761 end - _t735 = _t738 + _t755 = _t758 end - return _t735 + return _t755 end function parse_date(parser::ParserState)::Proto.DateValue consume_literal!(parser, "(") consume_literal!(parser, "date") - int379 = consume_terminal!(parser, "INT") - int_3380 = consume_terminal!(parser, "INT") - int_4381 = consume_terminal!(parser, "INT") + int389 = consume_terminal!(parser, "INT") + int_3390 = consume_terminal!(parser, "INT") + int_4391 = consume_terminal!(parser, "INT") consume_literal!(parser, ")") - _t759 = Proto.DateValue(year=Int32(int379), month=Int32(int_3380), day=Int32(int_4381)) - return _t759 + _t779 = Proto.DateValue(year=Int32(int389), month=Int32(int_3390), day=Int32(int_4391)) + return _t779 end function parse_datetime(parser::ParserState)::Proto.DateTimeValue consume_literal!(parser, "(") consume_literal!(parser, "datetime") - int382 = consume_terminal!(parser, "INT") - int_3383 = consume_terminal!(parser, "INT") - int_4384 = consume_terminal!(parser, "INT") - int_5385 = consume_terminal!(parser, "INT") - int_6386 = consume_terminal!(parser, "INT") - int_7387 = consume_terminal!(parser, "INT") + 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") if match_lookahead_terminal(parser, "INT", 0) - _t760 = consume_terminal!(parser, "INT") + _t780 = consume_terminal!(parser, "INT") else - _t760 = nothing + _t780 = nothing end - int_8388 = _t760 + int_8398 = _t780 consume_literal!(parser, ")") - _t761 = Proto.DateTimeValue(year=Int32(int382), month=Int32(int_3383), day=Int32(int_4384), hour=Int32(int_5385), minute=Int32(int_6386), second=Int32(int_7387), microsecond=Int32((!isnothing(int_8388) ? int_8388 : 0))) - return _t761 + _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 end function parse_boolean_value(parser::ParserState)::Bool if match_lookahead_literal(parser, "true", 0) - _t762 = 0 + _t782 = 0 else if match_lookahead_literal(parser, "false", 0) - _t763 = 1 + _t783 = 1 else - _t763 = -1 + _t783 = -1 end - _t762 = _t763 + _t782 = _t783 end - prediction389 = _t762 - if prediction389 == 1 + prediction399 = _t782 + if prediction399 == 1 consume_literal!(parser, "false") - _t764 = false + _t784 = false else - if prediction389 == 0 + if prediction399 == 0 consume_literal!(parser, "true") - _t765 = true + _t785 = true else throw(ParseError("Unexpected token in boolean_value" * ": " * string(lookahead(parser, 0)))) end - _t764 = _t765 + _t784 = _t785 end - return _t764 + return _t784 end function parse_sync(parser::ParserState)::Proto.Sync consume_literal!(parser, "(") consume_literal!(parser, "sync") - xs390 = Proto.FragmentId[] - cond391 = match_lookahead_literal(parser, ":", 0) - while cond391 - _t766 = parse_fragment_id(parser) - item392 = _t766 - push!(xs390, item392) - cond391 = match_lookahead_literal(parser, ":", 0) + 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) end - fragment_ids393 = xs390 + fragment_ids403 = xs400 consume_literal!(parser, ")") - _t767 = Proto.Sync(fragments=fragment_ids393) - return _t767 + _t787 = Proto.Sync(fragments=fragment_ids403) + return _t787 end function parse_fragment_id(parser::ParserState)::Proto.FragmentId consume_literal!(parser, ":") - symbol394 = consume_terminal!(parser, "SYMBOL") - return Proto.FragmentId(Vector{UInt8}(symbol394)) + symbol404 = consume_terminal!(parser, "SYMBOL") + return Proto.FragmentId(Vector{UInt8}(symbol404)) 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)) - _t769 = parse_epoch_writes(parser) - _t768 = _t769 + _t789 = parse_epoch_writes(parser) + _t788 = _t789 else - _t768 = nothing + _t788 = nothing end - epoch_writes395 = _t768 + epoch_writes405 = _t788 if match_lookahead_literal(parser, "(", 0) - _t771 = parse_epoch_reads(parser) - _t770 = _t771 + _t791 = parse_epoch_reads(parser) + _t790 = _t791 else - _t770 = nothing + _t790 = nothing end - epoch_reads396 = _t770 + epoch_reads406 = _t790 consume_literal!(parser, ")") - _t772 = Proto.Epoch(writes=(!isnothing(epoch_writes395) ? epoch_writes395 : Proto.Write[]), reads=(!isnothing(epoch_reads396) ? epoch_reads396 : Proto.Read[])) - return _t772 + _t792 = Proto.Epoch(writes=(!isnothing(epoch_writes405) ? epoch_writes405 : Proto.Write[]), reads=(!isnothing(epoch_reads406) ? epoch_reads406 : Proto.Read[])) + return _t792 end function parse_epoch_writes(parser::ParserState)::Vector{Proto.Write} consume_literal!(parser, "(") consume_literal!(parser, "writes") - xs397 = Proto.Write[] - cond398 = match_lookahead_literal(parser, "(", 0) - while cond398 - _t773 = parse_write(parser) - item399 = _t773 - push!(xs397, item399) - cond398 = match_lookahead_literal(parser, "(", 0) + 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) end - writes400 = xs397 + writes410 = xs407 consume_literal!(parser, ")") - return writes400 + return writes410 end function parse_write(parser::ParserState)::Proto.Write if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "undefine", 1) - _t775 = 1 + _t795 = 1 else if match_lookahead_literal(parser, "snapshot", 1) - _t776 = 3 + _t796 = 3 else if match_lookahead_literal(parser, "define", 1) - _t777 = 0 + _t797 = 0 else if match_lookahead_literal(parser, "context", 1) - _t778 = 2 + _t798 = 2 else - _t778 = -1 + _t798 = -1 end - _t777 = _t778 + _t797 = _t798 end - _t776 = _t777 + _t796 = _t797 end - _t775 = _t776 + _t795 = _t796 end - _t774 = _t775 + _t794 = _t795 else - _t774 = -1 - end - prediction401 = _t774 - if prediction401 == 3 - _t780 = parse_snapshot(parser) - snapshot405 = _t780 - _t781 = Proto.Write(write_type=OneOf(:snapshot, snapshot405)) - _t779 = _t781 + _t794 = -1 + end + prediction411 = _t794 + if prediction411 == 3 + _t800 = parse_snapshot(parser) + snapshot415 = _t800 + _t801 = Proto.Write(write_type=OneOf(:snapshot, snapshot415)) + _t799 = _t801 else - if prediction401 == 2 - _t783 = parse_context(parser) - context404 = _t783 - _t784 = Proto.Write(write_type=OneOf(:context, context404)) - _t782 = _t784 + if prediction411 == 2 + _t803 = parse_context(parser) + context414 = _t803 + _t804 = Proto.Write(write_type=OneOf(:context, context414)) + _t802 = _t804 else - if prediction401 == 1 - _t786 = parse_undefine(parser) - undefine403 = _t786 - _t787 = Proto.Write(write_type=OneOf(:undefine, undefine403)) - _t785 = _t787 + if prediction411 == 1 + _t806 = parse_undefine(parser) + undefine413 = _t806 + _t807 = Proto.Write(write_type=OneOf(:undefine, undefine413)) + _t805 = _t807 else - if prediction401 == 0 - _t789 = parse_define(parser) - define402 = _t789 - _t790 = Proto.Write(write_type=OneOf(:define, define402)) - _t788 = _t790 + if prediction411 == 0 + _t809 = parse_define(parser) + define412 = _t809 + _t810 = Proto.Write(write_type=OneOf(:define, define412)) + _t808 = _t810 else throw(ParseError("Unexpected token in write" * ": " * string(lookahead(parser, 0)))) end - _t785 = _t788 + _t805 = _t808 end - _t782 = _t785 + _t802 = _t805 end - _t779 = _t782 + _t799 = _t802 end - return _t779 + return _t799 end function parse_define(parser::ParserState)::Proto.Define consume_literal!(parser, "(") consume_literal!(parser, "define") - _t791 = parse_fragment(parser) - fragment406 = _t791 + _t811 = parse_fragment(parser) + fragment416 = _t811 consume_literal!(parser, ")") - _t792 = Proto.Define(fragment=fragment406) - return _t792 + _t812 = Proto.Define(fragment=fragment416) + return _t812 end function parse_fragment(parser::ParserState)::Proto.Fragment consume_literal!(parser, "(") consume_literal!(parser, "fragment") - _t793 = parse_new_fragment_id(parser) - new_fragment_id407 = _t793 - xs408 = Proto.Declaration[] - cond409 = match_lookahead_literal(parser, "(", 0) - while cond409 - _t794 = parse_declaration(parser) - item410 = _t794 - push!(xs408, item410) - cond409 = match_lookahead_literal(parser, "(", 0) + _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) end - declarations411 = xs408 + declarations421 = xs418 consume_literal!(parser, ")") - return construct_fragment(parser, new_fragment_id407, declarations411) + return construct_fragment(parser, new_fragment_id417, declarations421) end function parse_new_fragment_id(parser::ParserState)::Proto.FragmentId - _t795 = parse_fragment_id(parser) - fragment_id412 = _t795 - start_fragment!(parser, fragment_id412) - return fragment_id412 + _t815 = parse_fragment_id(parser) + fragment_id422 = _t815 + start_fragment!(parser, fragment_id422) + return fragment_id422 end function parse_declaration(parser::ParserState)::Proto.Declaration if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "rel_edb", 1) - _t797 = 3 + _t817 = 3 else if match_lookahead_literal(parser, "functional_dependency", 1) - _t798 = 2 + _t818 = 2 else if match_lookahead_literal(parser, "def", 1) - _t799 = 0 + _t819 = 0 else if match_lookahead_literal(parser, "csv_data", 1) - _t800 = 3 + _t820 = 3 else if match_lookahead_literal(parser, "betree_relation", 1) - _t801 = 3 + _t821 = 3 else if match_lookahead_literal(parser, "algorithm", 1) - _t802 = 1 + _t822 = 1 else - _t802 = -1 + _t822 = -1 end - _t801 = _t802 + _t821 = _t822 end - _t800 = _t801 + _t820 = _t821 end - _t799 = _t800 + _t819 = _t820 end - _t798 = _t799 + _t818 = _t819 end - _t797 = _t798 + _t817 = _t818 end - _t796 = _t797 + _t816 = _t817 else - _t796 = -1 - end - prediction413 = _t796 - if prediction413 == 3 - _t804 = parse_data(parser) - data417 = _t804 - _t805 = Proto.Declaration(declaration_type=OneOf(:data, data417)) - _t803 = _t805 + _t816 = -1 + end + prediction423 = _t816 + if prediction423 == 3 + _t824 = parse_data(parser) + data427 = _t824 + _t825 = Proto.Declaration(declaration_type=OneOf(:data, data427)) + _t823 = _t825 else - if prediction413 == 2 - _t807 = parse_constraint(parser) - constraint416 = _t807 - _t808 = Proto.Declaration(declaration_type=OneOf(:constraint, constraint416)) - _t806 = _t808 + if prediction423 == 2 + _t827 = parse_constraint(parser) + constraint426 = _t827 + _t828 = Proto.Declaration(declaration_type=OneOf(:constraint, constraint426)) + _t826 = _t828 else - if prediction413 == 1 - _t810 = parse_algorithm(parser) - algorithm415 = _t810 - _t811 = Proto.Declaration(declaration_type=OneOf(:algorithm, algorithm415)) - _t809 = _t811 + if prediction423 == 1 + _t830 = parse_algorithm(parser) + algorithm425 = _t830 + _t831 = Proto.Declaration(declaration_type=OneOf(:algorithm, algorithm425)) + _t829 = _t831 else - if prediction413 == 0 - _t813 = parse_def(parser) - def414 = _t813 - _t814 = Proto.Declaration(declaration_type=OneOf(:def, def414)) - _t812 = _t814 + if prediction423 == 0 + _t833 = parse_def(parser) + def424 = _t833 + _t834 = Proto.Declaration(declaration_type=OneOf(:def, def424)) + _t832 = _t834 else throw(ParseError("Unexpected token in declaration" * ": " * string(lookahead(parser, 0)))) end - _t809 = _t812 + _t829 = _t832 end - _t806 = _t809 + _t826 = _t829 end - _t803 = _t806 + _t823 = _t826 end - return _t803 + return _t823 end function parse_def(parser::ParserState)::Proto.Def consume_literal!(parser, "(") consume_literal!(parser, "def") - _t815 = parse_relation_id(parser) - relation_id418 = _t815 - _t816 = parse_abstraction(parser) - abstraction419 = _t816 + _t835 = parse_relation_id(parser) + relation_id428 = _t835 + _t836 = parse_abstraction(parser) + abstraction429 = _t836 if match_lookahead_literal(parser, "(", 0) - _t818 = parse_attrs(parser) - _t817 = _t818 + _t838 = parse_attrs(parser) + _t837 = _t838 else - _t817 = nothing + _t837 = nothing end - attrs420 = _t817 + attrs430 = _t837 consume_literal!(parser, ")") - _t819 = Proto.Def(name=relation_id418, body=abstraction419, attrs=(!isnothing(attrs420) ? attrs420 : Proto.Attribute[])) - return _t819 + _t839 = Proto.Def(name=relation_id428, body=abstraction429, attrs=(!isnothing(attrs430) ? attrs430 : Proto.Attribute[])) + return _t839 end function parse_relation_id(parser::ParserState)::Proto.RelationId if match_lookahead_literal(parser, ":", 0) - _t820 = 0 + _t840 = 0 else if match_lookahead_terminal(parser, "UINT128", 0) - _t821 = 1 + _t841 = 1 else - _t821 = -1 + _t841 = -1 end - _t820 = _t821 + _t840 = _t841 end - prediction421 = _t820 - if prediction421 == 1 - uint128423 = consume_terminal!(parser, "UINT128") - _t822 = Proto.RelationId(uint128423.low, uint128423.high) + prediction431 = _t840 + if prediction431 == 1 + uint128433 = consume_terminal!(parser, "UINT128") + _t842 = Proto.RelationId(uint128433.low, uint128433.high) else - if prediction421 == 0 + if prediction431 == 0 consume_literal!(parser, ":") - symbol422 = consume_terminal!(parser, "SYMBOL") - _t823 = relation_id_from_string(parser, symbol422) + symbol432 = consume_terminal!(parser, "SYMBOL") + _t843 = relation_id_from_string(parser, symbol432) else throw(ParseError("Unexpected token in relation_id" * ": " * string(lookahead(parser, 0)))) end - _t822 = _t823 + _t842 = _t843 end - return _t822 + return _t842 end function parse_abstraction(parser::ParserState)::Proto.Abstraction consume_literal!(parser, "(") - _t824 = parse_bindings(parser) - bindings424 = _t824 - _t825 = parse_formula(parser) - formula425 = _t825 + _t844 = parse_bindings(parser) + bindings434 = _t844 + _t845 = parse_formula(parser) + formula435 = _t845 consume_literal!(parser, ")") - _t826 = Proto.Abstraction(vars=vcat(bindings424[1], !isnothing(bindings424[2]) ? bindings424[2] : []), value=formula425) - return _t826 + _t846 = Proto.Abstraction(vars=vcat(bindings434[1], !isnothing(bindings434[2]) ? bindings434[2] : []), value=formula435) + return _t846 end function parse_bindings(parser::ParserState)::Tuple{Vector{Proto.Binding}, Vector{Proto.Binding}} consume_literal!(parser, "[") - xs426 = Proto.Binding[] - cond427 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond427 - _t827 = parse_binding(parser) - item428 = _t827 - push!(xs426, item428) - cond427 = match_lookahead_terminal(parser, "SYMBOL", 0) - end - bindings429 = xs426 + 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 if match_lookahead_literal(parser, "|", 0) - _t829 = parse_value_bindings(parser) - _t828 = _t829 + _t849 = parse_value_bindings(parser) + _t848 = _t849 else - _t828 = nothing + _t848 = nothing end - value_bindings430 = _t828 + value_bindings440 = _t848 consume_literal!(parser, "]") - return (bindings429, (!isnothing(value_bindings430) ? value_bindings430 : Proto.Binding[]),) + return (bindings439, (!isnothing(value_bindings440) ? value_bindings440 : Proto.Binding[]),) end function parse_binding(parser::ParserState)::Proto.Binding - symbol431 = consume_terminal!(parser, "SYMBOL") + symbol441 = consume_terminal!(parser, "SYMBOL") consume_literal!(parser, "::") - _t830 = parse_type(parser) - type432 = _t830 - _t831 = Proto.Var(name=symbol431) - _t832 = Proto.Binding(var=_t831, var"#type"=type432) - return _t832 + _t850 = parse_type(parser) + type442 = _t850 + _t851 = Proto.Var(name=symbol441) + _t852 = Proto.Binding(var=_t851, var"#type"=type442) + return _t852 end function parse_type(parser::ParserState)::Proto.var"#Type" if match_lookahead_literal(parser, "UNKNOWN", 0) - _t833 = 0 + _t853 = 0 else if match_lookahead_literal(parser, "UINT128", 0) - _t834 = 4 + _t854 = 4 else if match_lookahead_literal(parser, "STRING", 0) - _t835 = 1 + _t855 = 1 else if match_lookahead_literal(parser, "MISSING", 0) - _t836 = 8 + _t856 = 8 else if match_lookahead_literal(parser, "INT128", 0) - _t837 = 5 + _t857 = 5 else if match_lookahead_literal(parser, "INT", 0) - _t838 = 2 + _t858 = 2 else if match_lookahead_literal(parser, "FLOAT", 0) - _t839 = 3 + _t859 = 3 else if match_lookahead_literal(parser, "DATETIME", 0) - _t840 = 7 + _t860 = 7 else if match_lookahead_literal(parser, "DATE", 0) - _t841 = 6 + _t861 = 6 else if match_lookahead_literal(parser, "BOOLEAN", 0) - _t842 = 10 + _t862 = 10 else if match_lookahead_literal(parser, "(", 0) - _t843 = 9 + _t863 = 9 else - _t843 = -1 + _t863 = -1 end - _t842 = _t843 + _t862 = _t863 end - _t841 = _t842 + _t861 = _t862 end - _t840 = _t841 + _t860 = _t861 end - _t839 = _t840 + _t859 = _t860 end - _t838 = _t839 + _t858 = _t859 end - _t837 = _t838 + _t857 = _t858 end - _t836 = _t837 + _t856 = _t857 end - _t835 = _t836 + _t855 = _t856 end - _t834 = _t835 + _t854 = _t855 end - _t833 = _t834 - end - prediction433 = _t833 - if prediction433 == 10 - _t845 = parse_boolean_type(parser) - boolean_type444 = _t845 - _t846 = Proto.var"#Type"(var"#type"=OneOf(:boolean_type, boolean_type444)) - _t844 = _t846 + _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 else - if prediction433 == 9 - _t848 = parse_decimal_type(parser) - decimal_type443 = _t848 - _t849 = Proto.var"#Type"(var"#type"=OneOf(:decimal_type, decimal_type443)) - _t847 = _t849 + if prediction443 == 9 + _t868 = parse_decimal_type(parser) + decimal_type453 = _t868 + _t869 = Proto.var"#Type"(var"#type"=OneOf(:decimal_type, decimal_type453)) + _t867 = _t869 else - if prediction433 == 8 - _t851 = parse_missing_type(parser) - missing_type442 = _t851 - _t852 = Proto.var"#Type"(var"#type"=OneOf(:missing_type, missing_type442)) - _t850 = _t852 + if prediction443 == 8 + _t871 = parse_missing_type(parser) + missing_type452 = _t871 + _t872 = Proto.var"#Type"(var"#type"=OneOf(:missing_type, missing_type452)) + _t870 = _t872 else - if prediction433 == 7 - _t854 = parse_datetime_type(parser) - datetime_type441 = _t854 - _t855 = Proto.var"#Type"(var"#type"=OneOf(:datetime_type, datetime_type441)) - _t853 = _t855 + if prediction443 == 7 + _t874 = parse_datetime_type(parser) + datetime_type451 = _t874 + _t875 = Proto.var"#Type"(var"#type"=OneOf(:datetime_type, datetime_type451)) + _t873 = _t875 else - if prediction433 == 6 - _t857 = parse_date_type(parser) - date_type440 = _t857 - _t858 = Proto.var"#Type"(var"#type"=OneOf(:date_type, date_type440)) - _t856 = _t858 + if prediction443 == 6 + _t877 = parse_date_type(parser) + date_type450 = _t877 + _t878 = Proto.var"#Type"(var"#type"=OneOf(:date_type, date_type450)) + _t876 = _t878 else - if prediction433 == 5 - _t860 = parse_int128_type(parser) - int128_type439 = _t860 - _t861 = Proto.var"#Type"(var"#type"=OneOf(:int128_type, int128_type439)) - _t859 = _t861 + if prediction443 == 5 + _t880 = parse_int128_type(parser) + int128_type449 = _t880 + _t881 = Proto.var"#Type"(var"#type"=OneOf(:int128_type, int128_type449)) + _t879 = _t881 else - if prediction433 == 4 - _t863 = parse_uint128_type(parser) - uint128_type438 = _t863 - _t864 = Proto.var"#Type"(var"#type"=OneOf(:uint128_type, uint128_type438)) - _t862 = _t864 + if prediction443 == 4 + _t883 = parse_uint128_type(parser) + uint128_type448 = _t883 + _t884 = Proto.var"#Type"(var"#type"=OneOf(:uint128_type, uint128_type448)) + _t882 = _t884 else - if prediction433 == 3 - _t866 = parse_float_type(parser) - float_type437 = _t866 - _t867 = Proto.var"#Type"(var"#type"=OneOf(:float_type, float_type437)) - _t865 = _t867 + if prediction443 == 3 + _t886 = parse_float_type(parser) + float_type447 = _t886 + _t887 = Proto.var"#Type"(var"#type"=OneOf(:float_type, float_type447)) + _t885 = _t887 else - if prediction433 == 2 - _t869 = parse_int_type(parser) - int_type436 = _t869 - _t870 = Proto.var"#Type"(var"#type"=OneOf(:int_type, int_type436)) - _t868 = _t870 + if prediction443 == 2 + _t889 = parse_int_type(parser) + int_type446 = _t889 + _t890 = Proto.var"#Type"(var"#type"=OneOf(:int_type, int_type446)) + _t888 = _t890 else - if prediction433 == 1 - _t872 = parse_string_type(parser) - string_type435 = _t872 - _t873 = Proto.var"#Type"(var"#type"=OneOf(:string_type, string_type435)) - _t871 = _t873 + if prediction443 == 1 + _t892 = parse_string_type(parser) + string_type445 = _t892 + _t893 = Proto.var"#Type"(var"#type"=OneOf(:string_type, string_type445)) + _t891 = _t893 else - if prediction433 == 0 - _t875 = parse_unspecified_type(parser) - unspecified_type434 = _t875 - _t876 = Proto.var"#Type"(var"#type"=OneOf(:unspecified_type, unspecified_type434)) - _t874 = _t876 + if prediction443 == 0 + _t895 = parse_unspecified_type(parser) + unspecified_type444 = _t895 + _t896 = Proto.var"#Type"(var"#type"=OneOf(:unspecified_type, unspecified_type444)) + _t894 = _t896 else throw(ParseError("Unexpected token in type" * ": " * string(lookahead(parser, 0)))) end - _t871 = _t874 + _t891 = _t894 end - _t868 = _t871 + _t888 = _t891 end - _t865 = _t868 + _t885 = _t888 end - _t862 = _t865 + _t882 = _t885 end - _t859 = _t862 + _t879 = _t882 end - _t856 = _t859 + _t876 = _t879 end - _t853 = _t856 + _t873 = _t876 end - _t850 = _t853 + _t870 = _t873 end - _t847 = _t850 + _t867 = _t870 end - _t844 = _t847 + _t864 = _t867 end - return _t844 + return _t864 end function parse_unspecified_type(parser::ParserState)::Proto.UnspecifiedType consume_literal!(parser, "UNKNOWN") - _t877 = Proto.UnspecifiedType() - return _t877 + _t897 = Proto.UnspecifiedType() + return _t897 end function parse_string_type(parser::ParserState)::Proto.StringType consume_literal!(parser, "STRING") - _t878 = Proto.StringType() - return _t878 + _t898 = Proto.StringType() + return _t898 end function parse_int_type(parser::ParserState)::Proto.IntType consume_literal!(parser, "INT") - _t879 = Proto.IntType() - return _t879 + _t899 = Proto.IntType() + return _t899 end function parse_float_type(parser::ParserState)::Proto.FloatType consume_literal!(parser, "FLOAT") - _t880 = Proto.FloatType() - return _t880 + _t900 = Proto.FloatType() + return _t900 end function parse_uint128_type(parser::ParserState)::Proto.UInt128Type consume_literal!(parser, "UINT128") - _t881 = Proto.UInt128Type() - return _t881 + _t901 = Proto.UInt128Type() + return _t901 end function parse_int128_type(parser::ParserState)::Proto.Int128Type consume_literal!(parser, "INT128") - _t882 = Proto.Int128Type() - return _t882 + _t902 = Proto.Int128Type() + return _t902 end function parse_date_type(parser::ParserState)::Proto.DateType consume_literal!(parser, "DATE") - _t883 = Proto.DateType() - return _t883 + _t903 = Proto.DateType() + return _t903 end function parse_datetime_type(parser::ParserState)::Proto.DateTimeType consume_literal!(parser, "DATETIME") - _t884 = Proto.DateTimeType() - return _t884 + _t904 = Proto.DateTimeType() + return _t904 end function parse_missing_type(parser::ParserState)::Proto.MissingType consume_literal!(parser, "MISSING") - _t885 = Proto.MissingType() - return _t885 + _t905 = Proto.MissingType() + return _t905 end function parse_decimal_type(parser::ParserState)::Proto.DecimalType consume_literal!(parser, "(") consume_literal!(parser, "DECIMAL") - int445 = consume_terminal!(parser, "INT") - int_3446 = consume_terminal!(parser, "INT") + int455 = consume_terminal!(parser, "INT") + int_3456 = consume_terminal!(parser, "INT") consume_literal!(parser, ")") - _t886 = Proto.DecimalType(precision=Int32(int445), scale=Int32(int_3446)) - return _t886 + _t906 = Proto.DecimalType(precision=Int32(int455), scale=Int32(int_3456)) + return _t906 end function parse_boolean_type(parser::ParserState)::Proto.BooleanType consume_literal!(parser, "BOOLEAN") - _t887 = Proto.BooleanType() - return _t887 + _t907 = Proto.BooleanType() + return _t907 end function parse_value_bindings(parser::ParserState)::Vector{Proto.Binding} consume_literal!(parser, "|") - xs447 = Proto.Binding[] - cond448 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond448 - _t888 = parse_binding(parser) - item449 = _t888 - push!(xs447, item449) - cond448 = match_lookahead_terminal(parser, "SYMBOL", 0) + 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) end - bindings450 = xs447 - return bindings450 + bindings460 = xs457 + return bindings460 end function parse_formula(parser::ParserState)::Proto.Formula if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "true", 1) - _t890 = 0 + _t910 = 0 else if match_lookahead_literal(parser, "relatom", 1) - _t891 = 11 + _t911 = 11 else if match_lookahead_literal(parser, "reduce", 1) - _t892 = 3 + _t912 = 3 else if match_lookahead_literal(parser, "primitive", 1) - _t893 = 10 + _t913 = 10 else if match_lookahead_literal(parser, "pragma", 1) - _t894 = 9 + _t914 = 9 else if match_lookahead_literal(parser, "or", 1) - _t895 = 5 + _t915 = 5 else if match_lookahead_literal(parser, "not", 1) - _t896 = 6 + _t916 = 6 else if match_lookahead_literal(parser, "ffi", 1) - _t897 = 7 + _t917 = 7 else if match_lookahead_literal(parser, "false", 1) - _t898 = 1 + _t918 = 1 else if match_lookahead_literal(parser, "exists", 1) - _t899 = 2 + _t919 = 2 else if match_lookahead_literal(parser, "cast", 1) - _t900 = 12 + _t920 = 12 else if match_lookahead_literal(parser, "atom", 1) - _t901 = 8 + _t921 = 8 else if match_lookahead_literal(parser, "and", 1) - _t902 = 4 + _t922 = 4 else if match_lookahead_literal(parser, ">=", 1) - _t903 = 10 + _t923 = 10 else if match_lookahead_literal(parser, ">", 1) - _t904 = 10 + _t924 = 10 else if match_lookahead_literal(parser, "=", 1) - _t905 = 10 + _t925 = 10 else if match_lookahead_literal(parser, "<=", 1) - _t906 = 10 + _t926 = 10 else if match_lookahead_literal(parser, "<", 1) - _t907 = 10 + _t927 = 10 else if match_lookahead_literal(parser, "/", 1) - _t908 = 10 + _t928 = 10 else if match_lookahead_literal(parser, "-", 1) - _t909 = 10 + _t929 = 10 else if match_lookahead_literal(parser, "+", 1) - _t910 = 10 + _t930 = 10 else if match_lookahead_literal(parser, "*", 1) - _t911 = 10 + _t931 = 10 else - _t911 = -1 + _t931 = -1 end - _t910 = _t911 + _t930 = _t931 end - _t909 = _t910 + _t929 = _t930 end - _t908 = _t909 + _t928 = _t929 end - _t907 = _t908 + _t927 = _t928 end - _t906 = _t907 + _t926 = _t927 end - _t905 = _t906 + _t925 = _t926 end - _t904 = _t905 + _t924 = _t925 end - _t903 = _t904 + _t923 = _t924 end - _t902 = _t903 + _t922 = _t923 end - _t901 = _t902 + _t921 = _t922 end - _t900 = _t901 + _t920 = _t921 end - _t899 = _t900 + _t919 = _t920 end - _t898 = _t899 + _t918 = _t919 end - _t897 = _t898 + _t917 = _t918 end - _t896 = _t897 + _t916 = _t917 end - _t895 = _t896 + _t915 = _t916 end - _t894 = _t895 + _t914 = _t915 end - _t893 = _t894 + _t913 = _t914 end - _t892 = _t893 + _t912 = _t913 end - _t891 = _t892 + _t911 = _t912 end - _t890 = _t891 + _t910 = _t911 end - _t889 = _t890 + _t909 = _t910 else - _t889 = -1 - end - prediction451 = _t889 - if prediction451 == 12 - _t913 = parse_cast(parser) - cast464 = _t913 - _t914 = Proto.Formula(formula_type=OneOf(:cast, cast464)) - _t912 = _t914 + _t909 = -1 + end + prediction461 = _t909 + if prediction461 == 12 + _t933 = parse_cast(parser) + cast474 = _t933 + _t934 = Proto.Formula(formula_type=OneOf(:cast, cast474)) + _t932 = _t934 else - if prediction451 == 11 - _t916 = parse_rel_atom(parser) - rel_atom463 = _t916 - _t917 = Proto.Formula(formula_type=OneOf(:rel_atom, rel_atom463)) - _t915 = _t917 + if prediction461 == 11 + _t936 = parse_rel_atom(parser) + rel_atom473 = _t936 + _t937 = Proto.Formula(formula_type=OneOf(:rel_atom, rel_atom473)) + _t935 = _t937 else - if prediction451 == 10 - _t919 = parse_primitive(parser) - primitive462 = _t919 - _t920 = Proto.Formula(formula_type=OneOf(:primitive, primitive462)) - _t918 = _t920 + if prediction461 == 10 + _t939 = parse_primitive(parser) + primitive472 = _t939 + _t940 = Proto.Formula(formula_type=OneOf(:primitive, primitive472)) + _t938 = _t940 else - if prediction451 == 9 - _t922 = parse_pragma(parser) - pragma461 = _t922 - _t923 = Proto.Formula(formula_type=OneOf(:pragma, pragma461)) - _t921 = _t923 + if prediction461 == 9 + _t942 = parse_pragma(parser) + pragma471 = _t942 + _t943 = Proto.Formula(formula_type=OneOf(:pragma, pragma471)) + _t941 = _t943 else - if prediction451 == 8 - _t925 = parse_atom(parser) - atom460 = _t925 - _t926 = Proto.Formula(formula_type=OneOf(:atom, atom460)) - _t924 = _t926 + if prediction461 == 8 + _t945 = parse_atom(parser) + atom470 = _t945 + _t946 = Proto.Formula(formula_type=OneOf(:atom, atom470)) + _t944 = _t946 else - if prediction451 == 7 - _t928 = parse_ffi(parser) - ffi459 = _t928 - _t929 = Proto.Formula(formula_type=OneOf(:ffi, ffi459)) - _t927 = _t929 + if prediction461 == 7 + _t948 = parse_ffi(parser) + ffi469 = _t948 + _t949 = Proto.Formula(formula_type=OneOf(:ffi, ffi469)) + _t947 = _t949 else - if prediction451 == 6 - _t931 = parse_not(parser) - not458 = _t931 - _t932 = Proto.Formula(formula_type=OneOf(:not, not458)) - _t930 = _t932 + if prediction461 == 6 + _t951 = parse_not(parser) + not468 = _t951 + _t952 = Proto.Formula(formula_type=OneOf(:not, not468)) + _t950 = _t952 else - if prediction451 == 5 - _t934 = parse_disjunction(parser) - disjunction457 = _t934 - _t935 = Proto.Formula(formula_type=OneOf(:disjunction, disjunction457)) - _t933 = _t935 + if prediction461 == 5 + _t954 = parse_disjunction(parser) + disjunction467 = _t954 + _t955 = Proto.Formula(formula_type=OneOf(:disjunction, disjunction467)) + _t953 = _t955 else - if prediction451 == 4 - _t937 = parse_conjunction(parser) - conjunction456 = _t937 - _t938 = Proto.Formula(formula_type=OneOf(:conjunction, conjunction456)) - _t936 = _t938 + if prediction461 == 4 + _t957 = parse_conjunction(parser) + conjunction466 = _t957 + _t958 = Proto.Formula(formula_type=OneOf(:conjunction, conjunction466)) + _t956 = _t958 else - if prediction451 == 3 - _t940 = parse_reduce(parser) - reduce455 = _t940 - _t941 = Proto.Formula(formula_type=OneOf(:reduce, reduce455)) - _t939 = _t941 + if prediction461 == 3 + _t960 = parse_reduce(parser) + reduce465 = _t960 + _t961 = Proto.Formula(formula_type=OneOf(:reduce, reduce465)) + _t959 = _t961 else - if prediction451 == 2 - _t943 = parse_exists(parser) - exists454 = _t943 - _t944 = Proto.Formula(formula_type=OneOf(:exists, exists454)) - _t942 = _t944 + if prediction461 == 2 + _t963 = parse_exists(parser) + exists464 = _t963 + _t964 = Proto.Formula(formula_type=OneOf(:exists, exists464)) + _t962 = _t964 else - if prediction451 == 1 - _t946 = parse_false(parser) - false453 = _t946 - _t947 = Proto.Formula(formula_type=OneOf(:disjunction, false453)) - _t945 = _t947 + if prediction461 == 1 + _t966 = parse_false(parser) + false463 = _t966 + _t967 = Proto.Formula(formula_type=OneOf(:disjunction, false463)) + _t965 = _t967 else - if prediction451 == 0 - _t949 = parse_true(parser) - true452 = _t949 - _t950 = Proto.Formula(formula_type=OneOf(:conjunction, true452)) - _t948 = _t950 + if prediction461 == 0 + _t969 = parse_true(parser) + true462 = _t969 + _t970 = Proto.Formula(formula_type=OneOf(:conjunction, true462)) + _t968 = _t970 else throw(ParseError("Unexpected token in formula" * ": " * string(lookahead(parser, 0)))) end - _t945 = _t948 + _t965 = _t968 end - _t942 = _t945 + _t962 = _t965 end - _t939 = _t942 + _t959 = _t962 end - _t936 = _t939 + _t956 = _t959 end - _t933 = _t936 + _t953 = _t956 end - _t930 = _t933 + _t950 = _t953 end - _t927 = _t930 + _t947 = _t950 end - _t924 = _t927 + _t944 = _t947 end - _t921 = _t924 + _t941 = _t944 end - _t918 = _t921 + _t938 = _t941 end - _t915 = _t918 + _t935 = _t938 end - _t912 = _t915 + _t932 = _t935 end - return _t912 + return _t932 end function parse_true(parser::ParserState)::Proto.Conjunction consume_literal!(parser, "(") consume_literal!(parser, "true") consume_literal!(parser, ")") - _t951 = Proto.Conjunction(args=Proto.Formula[]) - return _t951 + _t971 = Proto.Conjunction(args=Proto.Formula[]) + return _t971 end function parse_false(parser::ParserState)::Proto.Disjunction consume_literal!(parser, "(") consume_literal!(parser, "false") consume_literal!(parser, ")") - _t952 = Proto.Disjunction(args=Proto.Formula[]) - return _t952 + _t972 = Proto.Disjunction(args=Proto.Formula[]) + return _t972 end function parse_exists(parser::ParserState)::Proto.Exists consume_literal!(parser, "(") consume_literal!(parser, "exists") - _t953 = parse_bindings(parser) - bindings465 = _t953 - _t954 = parse_formula(parser) - formula466 = _t954 + _t973 = parse_bindings(parser) + bindings475 = _t973 + _t974 = parse_formula(parser) + formula476 = _t974 consume_literal!(parser, ")") - _t955 = Proto.Abstraction(vars=vcat(bindings465[1], !isnothing(bindings465[2]) ? bindings465[2] : []), value=formula466) - _t956 = Proto.Exists(body=_t955) - return _t956 + _t975 = Proto.Abstraction(vars=vcat(bindings475[1], !isnothing(bindings475[2]) ? bindings475[2] : []), value=formula476) + _t976 = Proto.Exists(body=_t975) + return _t976 end function parse_reduce(parser::ParserState)::Proto.Reduce consume_literal!(parser, "(") consume_literal!(parser, "reduce") - _t957 = parse_abstraction(parser) - abstraction467 = _t957 - _t958 = parse_abstraction(parser) - abstraction_3468 = _t958 - _t959 = parse_terms(parser) - terms469 = _t959 + _t977 = parse_abstraction(parser) + abstraction477 = _t977 + _t978 = parse_abstraction(parser) + abstraction_3478 = _t978 + _t979 = parse_terms(parser) + terms479 = _t979 consume_literal!(parser, ")") - _t960 = Proto.Reduce(op=abstraction467, body=abstraction_3468, terms=terms469) - return _t960 + _t980 = Proto.Reduce(op=abstraction477, body=abstraction_3478, terms=terms479) + return _t980 end function parse_terms(parser::ParserState)::Vector{Proto.Term} consume_literal!(parser, "(") consume_literal!(parser, "terms") - xs470 = Proto.Term[] - cond471 = ((((((((((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 cond471 - _t961 = parse_term(parser) - item472 = _t961 - push!(xs470, item472) - cond471 = ((((((((((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)) + 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)) end - terms473 = xs470 + terms483 = xs480 consume_literal!(parser, ")") - return terms473 + return terms483 end function parse_term(parser::ParserState)::Proto.Term if match_lookahead_literal(parser, "true", 0) - _t962 = 1 + _t982 = 1 else if match_lookahead_literal(parser, "missing", 0) - _t963 = 1 + _t983 = 1 else if match_lookahead_literal(parser, "false", 0) - _t964 = 1 + _t984 = 1 else if match_lookahead_literal(parser, "(", 0) - _t965 = 1 + _t985 = 1 else if match_lookahead_terminal(parser, "UINT128", 0) - _t966 = 1 + _t986 = 1 else if match_lookahead_terminal(parser, "SYMBOL", 0) - _t967 = 0 + _t987 = 0 else if match_lookahead_terminal(parser, "STRING", 0) - _t968 = 1 + _t988 = 1 else if match_lookahead_terminal(parser, "INT128", 0) - _t969 = 1 + _t989 = 1 else if match_lookahead_terminal(parser, "INT", 0) - _t970 = 1 + _t990 = 1 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t971 = 1 + _t991 = 1 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t972 = 1 + _t992 = 1 else - _t972 = -1 + _t992 = -1 end - _t971 = _t972 + _t991 = _t992 end - _t970 = _t971 + _t990 = _t991 end - _t969 = _t970 + _t989 = _t990 end - _t968 = _t969 + _t988 = _t989 end - _t967 = _t968 + _t987 = _t988 end - _t966 = _t967 + _t986 = _t987 end - _t965 = _t966 + _t985 = _t986 end - _t964 = _t965 + _t984 = _t985 end - _t963 = _t964 + _t983 = _t984 end - _t962 = _t963 - end - prediction474 = _t962 - if prediction474 == 1 - _t974 = parse_constant(parser) - constant476 = _t974 - _t975 = Proto.Term(term_type=OneOf(:constant, constant476)) - _t973 = _t975 + _t982 = _t983 + end + prediction484 = _t982 + if prediction484 == 1 + _t994 = parse_constant(parser) + constant486 = _t994 + _t995 = Proto.Term(term_type=OneOf(:constant, constant486)) + _t993 = _t995 else - if prediction474 == 0 - _t977 = parse_var(parser) - var475 = _t977 - _t978 = Proto.Term(term_type=OneOf(:var, var475)) - _t976 = _t978 + if prediction484 == 0 + _t997 = parse_var(parser) + var485 = _t997 + _t998 = Proto.Term(term_type=OneOf(:var, var485)) + _t996 = _t998 else throw(ParseError("Unexpected token in term" * ": " * string(lookahead(parser, 0)))) end - _t973 = _t976 + _t993 = _t996 end - return _t973 + return _t993 end function parse_var(parser::ParserState)::Proto.Var - symbol477 = consume_terminal!(parser, "SYMBOL") - _t979 = Proto.Var(name=symbol477) - return _t979 + symbol487 = consume_terminal!(parser, "SYMBOL") + _t999 = Proto.Var(name=symbol487) + return _t999 end function parse_constant(parser::ParserState)::Proto.Value - _t980 = parse_value(parser) - value478 = _t980 - return value478 + _t1000 = parse_value(parser) + value488 = _t1000 + return value488 end function parse_conjunction(parser::ParserState)::Proto.Conjunction consume_literal!(parser, "(") consume_literal!(parser, "and") - xs479 = Proto.Formula[] - cond480 = match_lookahead_literal(parser, "(", 0) - while cond480 - _t981 = parse_formula(parser) - item481 = _t981 - push!(xs479, item481) - cond480 = match_lookahead_literal(parser, "(", 0) + 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) end - formulas482 = xs479 + formulas492 = xs489 consume_literal!(parser, ")") - _t982 = Proto.Conjunction(args=formulas482) - return _t982 + _t1002 = Proto.Conjunction(args=formulas492) + return _t1002 end function parse_disjunction(parser::ParserState)::Proto.Disjunction consume_literal!(parser, "(") consume_literal!(parser, "or") - xs483 = Proto.Formula[] - cond484 = match_lookahead_literal(parser, "(", 0) - while cond484 - _t983 = parse_formula(parser) - item485 = _t983 - push!(xs483, item485) - cond484 = match_lookahead_literal(parser, "(", 0) + 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) end - formulas486 = xs483 + formulas496 = xs493 consume_literal!(parser, ")") - _t984 = Proto.Disjunction(args=formulas486) - return _t984 + _t1004 = Proto.Disjunction(args=formulas496) + return _t1004 end function parse_not(parser::ParserState)::Proto.Not consume_literal!(parser, "(") consume_literal!(parser, "not") - _t985 = parse_formula(parser) - formula487 = _t985 + _t1005 = parse_formula(parser) + formula497 = _t1005 consume_literal!(parser, ")") - _t986 = Proto.Not(arg=formula487) - return _t986 + _t1006 = Proto.Not(arg=formula497) + return _t1006 end function parse_ffi(parser::ParserState)::Proto.FFI consume_literal!(parser, "(") consume_literal!(parser, "ffi") - _t987 = parse_name(parser) - name488 = _t987 - _t988 = parse_ffi_args(parser) - ffi_args489 = _t988 - _t989 = parse_terms(parser) - terms490 = _t989 + _t1007 = parse_name(parser) + name498 = _t1007 + _t1008 = parse_ffi_args(parser) + ffi_args499 = _t1008 + _t1009 = parse_terms(parser) + terms500 = _t1009 consume_literal!(parser, ")") - _t990 = Proto.FFI(name=name488, args=ffi_args489, terms=terms490) - return _t990 + _t1010 = Proto.FFI(name=name498, args=ffi_args499, terms=terms500) + return _t1010 end function parse_name(parser::ParserState)::String consume_literal!(parser, ":") - symbol491 = consume_terminal!(parser, "SYMBOL") - return symbol491 + symbol501 = consume_terminal!(parser, "SYMBOL") + return symbol501 end function parse_ffi_args(parser::ParserState)::Vector{Proto.Abstraction} consume_literal!(parser, "(") consume_literal!(parser, "args") - xs492 = Proto.Abstraction[] - cond493 = match_lookahead_literal(parser, "(", 0) - while cond493 - _t991 = parse_abstraction(parser) - item494 = _t991 - push!(xs492, item494) - cond493 = match_lookahead_literal(parser, "(", 0) + 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) end - abstractions495 = xs492 + abstractions505 = xs502 consume_literal!(parser, ")") - return abstractions495 + return abstractions505 end function parse_atom(parser::ParserState)::Proto.Atom consume_literal!(parser, "(") consume_literal!(parser, "atom") - _t992 = parse_relation_id(parser) - relation_id496 = _t992 - xs497 = Proto.Term[] - cond498 = ((((((((((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 cond498 - _t993 = parse_term(parser) - item499 = _t993 - push!(xs497, item499) - cond498 = ((((((((((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)) + _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)) end - terms500 = xs497 + terms510 = xs507 consume_literal!(parser, ")") - _t994 = Proto.Atom(name=relation_id496, terms=terms500) - return _t994 + _t1014 = Proto.Atom(name=relation_id506, terms=terms510) + return _t1014 end function parse_pragma(parser::ParserState)::Proto.Pragma consume_literal!(parser, "(") consume_literal!(parser, "pragma") - _t995 = parse_name(parser) - name501 = _t995 - xs502 = Proto.Term[] - cond503 = ((((((((((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 cond503 - _t996 = parse_term(parser) - item504 = _t996 - push!(xs502, item504) - cond503 = ((((((((((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)) + _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)) end - terms505 = xs502 + terms515 = xs512 consume_literal!(parser, ")") - _t997 = Proto.Pragma(name=name501, terms=terms505) - return _t997 + _t1017 = Proto.Pragma(name=name511, terms=terms515) + return _t1017 end function parse_primitive(parser::ParserState)::Proto.Primitive if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "primitive", 1) - _t999 = 9 + _t1019 = 9 else if match_lookahead_literal(parser, ">=", 1) - _t1000 = 4 + _t1020 = 4 else if match_lookahead_literal(parser, ">", 1) - _t1001 = 3 + _t1021 = 3 else if match_lookahead_literal(parser, "=", 1) - _t1002 = 0 + _t1022 = 0 else if match_lookahead_literal(parser, "<=", 1) - _t1003 = 2 + _t1023 = 2 else if match_lookahead_literal(parser, "<", 1) - _t1004 = 1 + _t1024 = 1 else if match_lookahead_literal(parser, "/", 1) - _t1005 = 8 + _t1025 = 8 else if match_lookahead_literal(parser, "-", 1) - _t1006 = 6 + _t1026 = 6 else if match_lookahead_literal(parser, "+", 1) - _t1007 = 5 + _t1027 = 5 else if match_lookahead_literal(parser, "*", 1) - _t1008 = 7 + _t1028 = 7 else - _t1008 = -1 + _t1028 = -1 end - _t1007 = _t1008 + _t1027 = _t1028 end - _t1006 = _t1007 + _t1026 = _t1027 end - _t1005 = _t1006 + _t1025 = _t1026 end - _t1004 = _t1005 + _t1024 = _t1025 end - _t1003 = _t1004 + _t1023 = _t1024 end - _t1002 = _t1003 + _t1022 = _t1023 end - _t1001 = _t1002 + _t1021 = _t1022 end - _t1000 = _t1001 + _t1020 = _t1021 end - _t999 = _t1000 + _t1019 = _t1020 end - _t998 = _t999 + _t1018 = _t1019 else - _t998 = -1 + _t1018 = -1 end - prediction506 = _t998 - if prediction506 == 9 + prediction516 = _t1018 + if prediction516 == 9 consume_literal!(parser, "(") consume_literal!(parser, "primitive") - _t1010 = parse_name(parser) - name516 = _t1010 - xs517 = Proto.RelTerm[] - cond518 = (((((((((((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 cond518 - _t1011 = parse_rel_term(parser) - item519 = _t1011 - push!(xs517, item519) - cond518 = (((((((((((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)) + _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)) end - rel_terms520 = xs517 + rel_terms530 = xs527 consume_literal!(parser, ")") - _t1012 = Proto.Primitive(name=name516, terms=rel_terms520) - _t1009 = _t1012 + _t1032 = Proto.Primitive(name=name526, terms=rel_terms530) + _t1029 = _t1032 else - if prediction506 == 8 - _t1014 = parse_divide(parser) - divide515 = _t1014 - _t1013 = divide515 + if prediction516 == 8 + _t1034 = parse_divide(parser) + divide525 = _t1034 + _t1033 = divide525 else - if prediction506 == 7 - _t1016 = parse_multiply(parser) - multiply514 = _t1016 - _t1015 = multiply514 + if prediction516 == 7 + _t1036 = parse_multiply(parser) + multiply524 = _t1036 + _t1035 = multiply524 else - if prediction506 == 6 - _t1018 = parse_minus(parser) - minus513 = _t1018 - _t1017 = minus513 + if prediction516 == 6 + _t1038 = parse_minus(parser) + minus523 = _t1038 + _t1037 = minus523 else - if prediction506 == 5 - _t1020 = parse_add(parser) - add512 = _t1020 - _t1019 = add512 + if prediction516 == 5 + _t1040 = parse_add(parser) + add522 = _t1040 + _t1039 = add522 else - if prediction506 == 4 - _t1022 = parse_gt_eq(parser) - gt_eq511 = _t1022 - _t1021 = gt_eq511 + if prediction516 == 4 + _t1042 = parse_gt_eq(parser) + gt_eq521 = _t1042 + _t1041 = gt_eq521 else - if prediction506 == 3 - _t1024 = parse_gt(parser) - gt510 = _t1024 - _t1023 = gt510 + if prediction516 == 3 + _t1044 = parse_gt(parser) + gt520 = _t1044 + _t1043 = gt520 else - if prediction506 == 2 - _t1026 = parse_lt_eq(parser) - lt_eq509 = _t1026 - _t1025 = lt_eq509 + if prediction516 == 2 + _t1046 = parse_lt_eq(parser) + lt_eq519 = _t1046 + _t1045 = lt_eq519 else - if prediction506 == 1 - _t1028 = parse_lt(parser) - lt508 = _t1028 - _t1027 = lt508 + if prediction516 == 1 + _t1048 = parse_lt(parser) + lt518 = _t1048 + _t1047 = lt518 else - if prediction506 == 0 - _t1030 = parse_eq(parser) - eq507 = _t1030 - _t1029 = eq507 + if prediction516 == 0 + _t1050 = parse_eq(parser) + eq517 = _t1050 + _t1049 = eq517 else throw(ParseError("Unexpected token in primitive" * ": " * string(lookahead(parser, 0)))) end - _t1027 = _t1029 + _t1047 = _t1049 end - _t1025 = _t1027 + _t1045 = _t1047 end - _t1023 = _t1025 + _t1043 = _t1045 end - _t1021 = _t1023 + _t1041 = _t1043 end - _t1019 = _t1021 + _t1039 = _t1041 end - _t1017 = _t1019 + _t1037 = _t1039 end - _t1015 = _t1017 + _t1035 = _t1037 end - _t1013 = _t1015 + _t1033 = _t1035 end - _t1009 = _t1013 + _t1029 = _t1033 end - return _t1009 + return _t1029 end function parse_eq(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "=") - _t1031 = parse_term(parser) - term521 = _t1031 - _t1032 = parse_term(parser) - term_3522 = _t1032 + _t1051 = parse_term(parser) + term531 = _t1051 + _t1052 = parse_term(parser) + term_3532 = _t1052 consume_literal!(parser, ")") - _t1033 = Proto.RelTerm(rel_term_type=OneOf(:term, term521)) - _t1034 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3522)) - _t1035 = Proto.Primitive(name="rel_primitive_eq", terms=Proto.RelTerm[_t1033, _t1034]) - return _t1035 + _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 end function parse_lt(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "<") - _t1036 = parse_term(parser) - term523 = _t1036 - _t1037 = parse_term(parser) - term_3524 = _t1037 + _t1056 = parse_term(parser) + term533 = _t1056 + _t1057 = parse_term(parser) + term_3534 = _t1057 consume_literal!(parser, ")") - _t1038 = Proto.RelTerm(rel_term_type=OneOf(:term, term523)) - _t1039 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3524)) - _t1040 = Proto.Primitive(name="rel_primitive_lt_monotype", terms=Proto.RelTerm[_t1038, _t1039]) - return _t1040 + _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 end function parse_lt_eq(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "<=") - _t1041 = parse_term(parser) - term525 = _t1041 - _t1042 = parse_term(parser) - term_3526 = _t1042 + _t1061 = parse_term(parser) + term535 = _t1061 + _t1062 = parse_term(parser) + term_3536 = _t1062 consume_literal!(parser, ")") - _t1043 = Proto.RelTerm(rel_term_type=OneOf(:term, term525)) - _t1044 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3526)) - _t1045 = Proto.Primitive(name="rel_primitive_lt_eq_monotype", terms=Proto.RelTerm[_t1043, _t1044]) - return _t1045 + _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 end function parse_gt(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, ">") - _t1046 = parse_term(parser) - term527 = _t1046 - _t1047 = parse_term(parser) - term_3528 = _t1047 + _t1066 = parse_term(parser) + term537 = _t1066 + _t1067 = parse_term(parser) + term_3538 = _t1067 consume_literal!(parser, ")") - _t1048 = Proto.RelTerm(rel_term_type=OneOf(:term, term527)) - _t1049 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3528)) - _t1050 = Proto.Primitive(name="rel_primitive_gt_monotype", terms=Proto.RelTerm[_t1048, _t1049]) - return _t1050 + _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 end function parse_gt_eq(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, ">=") - _t1051 = parse_term(parser) - term529 = _t1051 - _t1052 = parse_term(parser) - term_3530 = _t1052 + _t1071 = parse_term(parser) + term539 = _t1071 + _t1072 = parse_term(parser) + term_3540 = _t1072 consume_literal!(parser, ")") - _t1053 = Proto.RelTerm(rel_term_type=OneOf(:term, term529)) - _t1054 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3530)) - _t1055 = Proto.Primitive(name="rel_primitive_gt_eq_monotype", terms=Proto.RelTerm[_t1053, _t1054]) - return _t1055 + _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 end function parse_add(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "+") - _t1056 = parse_term(parser) - term531 = _t1056 - _t1057 = parse_term(parser) - term_3532 = _t1057 - _t1058 = parse_term(parser) - term_4533 = _t1058 + _t1076 = parse_term(parser) + term541 = _t1076 + _t1077 = parse_term(parser) + term_3542 = _t1077 + _t1078 = parse_term(parser) + term_4543 = _t1078 consume_literal!(parser, ")") - _t1059 = Proto.RelTerm(rel_term_type=OneOf(:term, term531)) - _t1060 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3532)) - _t1061 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4533)) - _t1062 = Proto.Primitive(name="rel_primitive_add_monotype", terms=Proto.RelTerm[_t1059, _t1060, _t1061]) - return _t1062 + _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 end function parse_minus(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "-") - _t1063 = parse_term(parser) - term534 = _t1063 - _t1064 = parse_term(parser) - term_3535 = _t1064 - _t1065 = parse_term(parser) - term_4536 = _t1065 + _t1083 = parse_term(parser) + term544 = _t1083 + _t1084 = parse_term(parser) + term_3545 = _t1084 + _t1085 = parse_term(parser) + term_4546 = _t1085 consume_literal!(parser, ")") - _t1066 = Proto.RelTerm(rel_term_type=OneOf(:term, term534)) - _t1067 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3535)) - _t1068 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4536)) - _t1069 = Proto.Primitive(name="rel_primitive_subtract_monotype", terms=Proto.RelTerm[_t1066, _t1067, _t1068]) - return _t1069 + _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 end function parse_multiply(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "*") - _t1070 = parse_term(parser) - term537 = _t1070 - _t1071 = parse_term(parser) - term_3538 = _t1071 - _t1072 = parse_term(parser) - term_4539 = _t1072 - consume_literal!(parser, ")") - _t1073 = Proto.RelTerm(rel_term_type=OneOf(:term, term537)) - _t1074 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3538)) - _t1075 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4539)) - _t1076 = Proto.Primitive(name="rel_primitive_multiply_monotype", terms=Proto.RelTerm[_t1073, _t1074, _t1075]) - return _t1076 + _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 end function parse_divide(parser::ParserState)::Proto.Primitive consume_literal!(parser, "(") consume_literal!(parser, "/") - _t1077 = parse_term(parser) - term540 = _t1077 - _t1078 = parse_term(parser) - term_3541 = _t1078 - _t1079 = parse_term(parser) - term_4542 = _t1079 + _t1097 = parse_term(parser) + term550 = _t1097 + _t1098 = parse_term(parser) + term_3551 = _t1098 + _t1099 = parse_term(parser) + term_4552 = _t1099 consume_literal!(parser, ")") - _t1080 = Proto.RelTerm(rel_term_type=OneOf(:term, term540)) - _t1081 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3541)) - _t1082 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4542)) - _t1083 = Proto.Primitive(name="rel_primitive_divide_monotype", terms=Proto.RelTerm[_t1080, _t1081, _t1082]) - return _t1083 + _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 end function parse_rel_term(parser::ParserState)::Proto.RelTerm if match_lookahead_literal(parser, "true", 0) - _t1084 = 1 + _t1104 = 1 else if match_lookahead_literal(parser, "missing", 0) - _t1085 = 1 + _t1105 = 1 else if match_lookahead_literal(parser, "false", 0) - _t1086 = 1 + _t1106 = 1 else if match_lookahead_literal(parser, "(", 0) - _t1087 = 1 + _t1107 = 1 else if match_lookahead_literal(parser, "#", 0) - _t1088 = 0 + _t1108 = 0 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1089 = 1 + _t1109 = 1 else if match_lookahead_terminal(parser, "SYMBOL", 0) - _t1090 = 1 + _t1110 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t1091 = 1 + _t1111 = 1 else if match_lookahead_terminal(parser, "INT128", 0) - _t1092 = 1 + _t1112 = 1 else if match_lookahead_terminal(parser, "INT", 0) - _t1093 = 1 + _t1113 = 1 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1094 = 1 + _t1114 = 1 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1095 = 1 + _t1115 = 1 else - _t1095 = -1 + _t1115 = -1 end - _t1094 = _t1095 + _t1114 = _t1115 end - _t1093 = _t1094 + _t1113 = _t1114 end - _t1092 = _t1093 + _t1112 = _t1113 end - _t1091 = _t1092 + _t1111 = _t1112 end - _t1090 = _t1091 + _t1110 = _t1111 end - _t1089 = _t1090 + _t1109 = _t1110 end - _t1088 = _t1089 + _t1108 = _t1109 end - _t1087 = _t1088 + _t1107 = _t1108 end - _t1086 = _t1087 + _t1106 = _t1107 end - _t1085 = _t1086 + _t1105 = _t1106 end - _t1084 = _t1085 - end - prediction543 = _t1084 - if prediction543 == 1 - _t1097 = parse_term(parser) - term545 = _t1097 - _t1098 = Proto.RelTerm(rel_term_type=OneOf(:term, term545)) - _t1096 = _t1098 + _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 else - if prediction543 == 0 - _t1100 = parse_specialized_value(parser) - specialized_value544 = _t1100 - _t1101 = Proto.RelTerm(rel_term_type=OneOf(:specialized_value, specialized_value544)) - _t1099 = _t1101 + if prediction553 == 0 + _t1120 = parse_specialized_value(parser) + specialized_value554 = _t1120 + _t1121 = Proto.RelTerm(rel_term_type=OneOf(:specialized_value, specialized_value554)) + _t1119 = _t1121 else throw(ParseError("Unexpected token in rel_term" * ": " * string(lookahead(parser, 0)))) end - _t1096 = _t1099 + _t1116 = _t1119 end - return _t1096 + return _t1116 end function parse_specialized_value(parser::ParserState)::Proto.Value consume_literal!(parser, "#") - _t1102 = parse_value(parser) - value546 = _t1102 - return value546 + _t1122 = parse_value(parser) + value556 = _t1122 + return value556 end function parse_rel_atom(parser::ParserState)::Proto.RelAtom consume_literal!(parser, "(") consume_literal!(parser, "relatom") - _t1103 = parse_name(parser) - name547 = _t1103 - xs548 = Proto.RelTerm[] - cond549 = (((((((((((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 cond549 - _t1104 = parse_rel_term(parser) - item550 = _t1104 - push!(xs548, item550) - cond549 = (((((((((((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_terms551 = xs548 - consume_literal!(parser, ")") - _t1105 = Proto.RelAtom(name=name547, terms=rel_terms551) - return _t1105 + _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 end function parse_cast(parser::ParserState)::Proto.Cast consume_literal!(parser, "(") consume_literal!(parser, "cast") - _t1106 = parse_term(parser) - term552 = _t1106 - _t1107 = parse_term(parser) - term_3553 = _t1107 + _t1126 = parse_term(parser) + term562 = _t1126 + _t1127 = parse_term(parser) + term_3563 = _t1127 consume_literal!(parser, ")") - _t1108 = Proto.Cast(input=term552, result=term_3553) - return _t1108 + _t1128 = Proto.Cast(input=term562, result=term_3563) + return _t1128 end function parse_attrs(parser::ParserState)::Vector{Proto.Attribute} consume_literal!(parser, "(") consume_literal!(parser, "attrs") - xs554 = Proto.Attribute[] - cond555 = match_lookahead_literal(parser, "(", 0) - while cond555 - _t1109 = parse_attribute(parser) - item556 = _t1109 - push!(xs554, item556) - cond555 = match_lookahead_literal(parser, "(", 0) + 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) end - attributes557 = xs554 + attributes567 = xs564 consume_literal!(parser, ")") - return attributes557 + return attributes567 end function parse_attribute(parser::ParserState)::Proto.Attribute consume_literal!(parser, "(") consume_literal!(parser, "attribute") - _t1110 = parse_name(parser) - name558 = _t1110 - xs559 = Proto.Value[] - cond560 = (((((((((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 cond560 - _t1111 = parse_value(parser) - item561 = _t1111 - push!(xs559, item561) - cond560 = (((((((((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)) + _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)) end - values562 = xs559 + values572 = xs569 consume_literal!(parser, ")") - _t1112 = Proto.Attribute(name=name558, args=values562) - return _t1112 + _t1132 = Proto.Attribute(name=name568, args=values572) + return _t1132 end function parse_algorithm(parser::ParserState)::Proto.Algorithm consume_literal!(parser, "(") consume_literal!(parser, "algorithm") - xs563 = Proto.RelationId[] - cond564 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond564 - _t1113 = parse_relation_id(parser) - item565 = _t1113 - push!(xs563, item565) - cond564 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + 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)) end - relation_ids566 = xs563 - _t1114 = parse_script(parser) - script567 = _t1114 + relation_ids576 = xs573 + _t1134 = parse_script(parser) + script577 = _t1134 consume_literal!(parser, ")") - _t1115 = Proto.Algorithm(var"#global"=relation_ids566, body=script567) - return _t1115 + _t1135 = Proto.Algorithm(var"#global"=relation_ids576, body=script577) + return _t1135 end function parse_script(parser::ParserState)::Proto.Script consume_literal!(parser, "(") consume_literal!(parser, "script") - xs568 = Proto.Construct[] - cond569 = match_lookahead_literal(parser, "(", 0) - while cond569 - _t1116 = parse_construct(parser) - item570 = _t1116 - push!(xs568, item570) - cond569 = match_lookahead_literal(parser, "(", 0) + 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) end - constructs571 = xs568 + constructs581 = xs578 consume_literal!(parser, ")") - _t1117 = Proto.Script(constructs=constructs571) - return _t1117 + _t1137 = Proto.Script(constructs=constructs581) + return _t1137 end function parse_construct(parser::ParserState)::Proto.Construct if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "upsert", 1) - _t1119 = 1 + _t1139 = 1 else if match_lookahead_literal(parser, "monus", 1) - _t1120 = 1 + _t1140 = 1 else if match_lookahead_literal(parser, "monoid", 1) - _t1121 = 1 + _t1141 = 1 else if match_lookahead_literal(parser, "loop", 1) - _t1122 = 0 + _t1142 = 0 else if match_lookahead_literal(parser, "break", 1) - _t1123 = 1 + _t1143 = 1 else if match_lookahead_literal(parser, "assign", 1) - _t1124 = 1 + _t1144 = 1 else - _t1124 = -1 + _t1144 = -1 end - _t1123 = _t1124 + _t1143 = _t1144 end - _t1122 = _t1123 + _t1142 = _t1143 end - _t1121 = _t1122 + _t1141 = _t1142 end - _t1120 = _t1121 + _t1140 = _t1141 end - _t1119 = _t1120 + _t1139 = _t1140 end - _t1118 = _t1119 + _t1138 = _t1139 else - _t1118 = -1 - end - prediction572 = _t1118 - if prediction572 == 1 - _t1126 = parse_instruction(parser) - instruction574 = _t1126 - _t1127 = Proto.Construct(construct_type=OneOf(:instruction, instruction574)) - _t1125 = _t1127 + _t1138 = -1 + end + prediction582 = _t1138 + if prediction582 == 1 + _t1146 = parse_instruction(parser) + instruction584 = _t1146 + _t1147 = Proto.Construct(construct_type=OneOf(:instruction, instruction584)) + _t1145 = _t1147 else - if prediction572 == 0 - _t1129 = parse_loop(parser) - loop573 = _t1129 - _t1130 = Proto.Construct(construct_type=OneOf(:loop, loop573)) - _t1128 = _t1130 + if prediction582 == 0 + _t1149 = parse_loop(parser) + loop583 = _t1149 + _t1150 = Proto.Construct(construct_type=OneOf(:loop, loop583)) + _t1148 = _t1150 else throw(ParseError("Unexpected token in construct" * ": " * string(lookahead(parser, 0)))) end - _t1125 = _t1128 + _t1145 = _t1148 end - return _t1125 + return _t1145 end function parse_loop(parser::ParserState)::Proto.Loop consume_literal!(parser, "(") consume_literal!(parser, "loop") - _t1131 = parse_init(parser) - init575 = _t1131 - _t1132 = parse_script(parser) - script576 = _t1132 + _t1151 = parse_init(parser) + init585 = _t1151 + _t1152 = parse_script(parser) + script586 = _t1152 consume_literal!(parser, ")") - _t1133 = Proto.Loop(init=init575, body=script576) - return _t1133 + _t1153 = Proto.Loop(init=init585, body=script586) + return _t1153 end function parse_init(parser::ParserState)::Vector{Proto.Instruction} consume_literal!(parser, "(") consume_literal!(parser, "init") - xs577 = Proto.Instruction[] - cond578 = match_lookahead_literal(parser, "(", 0) - while cond578 - _t1134 = parse_instruction(parser) - item579 = _t1134 - push!(xs577, item579) - cond578 = match_lookahead_literal(parser, "(", 0) + 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) end - instructions580 = xs577 + instructions590 = xs587 consume_literal!(parser, ")") - return instructions580 + return instructions590 end function parse_instruction(parser::ParserState)::Proto.Instruction if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "upsert", 1) - _t1136 = 1 + _t1156 = 1 else if match_lookahead_literal(parser, "monus", 1) - _t1137 = 4 + _t1157 = 4 else if match_lookahead_literal(parser, "monoid", 1) - _t1138 = 3 + _t1158 = 3 else if match_lookahead_literal(parser, "break", 1) - _t1139 = 2 + _t1159 = 2 else if match_lookahead_literal(parser, "assign", 1) - _t1140 = 0 + _t1160 = 0 else - _t1140 = -1 + _t1160 = -1 end - _t1139 = _t1140 + _t1159 = _t1160 end - _t1138 = _t1139 + _t1158 = _t1159 end - _t1137 = _t1138 + _t1157 = _t1158 end - _t1136 = _t1137 + _t1156 = _t1157 end - _t1135 = _t1136 + _t1155 = _t1156 else - _t1135 = -1 - end - prediction581 = _t1135 - if prediction581 == 4 - _t1142 = parse_monus_def(parser) - monus_def586 = _t1142 - _t1143 = Proto.Instruction(instr_type=OneOf(:monus_def, monus_def586)) - _t1141 = _t1143 + _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 else - if prediction581 == 3 - _t1145 = parse_monoid_def(parser) - monoid_def585 = _t1145 - _t1146 = Proto.Instruction(instr_type=OneOf(:monoid_def, monoid_def585)) - _t1144 = _t1146 + if prediction591 == 3 + _t1165 = parse_monoid_def(parser) + monoid_def595 = _t1165 + _t1166 = Proto.Instruction(instr_type=OneOf(:monoid_def, monoid_def595)) + _t1164 = _t1166 else - if prediction581 == 2 - _t1148 = parse_break(parser) - break584 = _t1148 - _t1149 = Proto.Instruction(instr_type=OneOf(:var"#break", break584)) - _t1147 = _t1149 + if prediction591 == 2 + _t1168 = parse_break(parser) + break594 = _t1168 + _t1169 = Proto.Instruction(instr_type=OneOf(:var"#break", break594)) + _t1167 = _t1169 else - if prediction581 == 1 - _t1151 = parse_upsert(parser) - upsert583 = _t1151 - _t1152 = Proto.Instruction(instr_type=OneOf(:upsert, upsert583)) - _t1150 = _t1152 + if prediction591 == 1 + _t1171 = parse_upsert(parser) + upsert593 = _t1171 + _t1172 = Proto.Instruction(instr_type=OneOf(:upsert, upsert593)) + _t1170 = _t1172 else - if prediction581 == 0 - _t1154 = parse_assign(parser) - assign582 = _t1154 - _t1155 = Proto.Instruction(instr_type=OneOf(:assign, assign582)) - _t1153 = _t1155 + if prediction591 == 0 + _t1174 = parse_assign(parser) + assign592 = _t1174 + _t1175 = Proto.Instruction(instr_type=OneOf(:assign, assign592)) + _t1173 = _t1175 else throw(ParseError("Unexpected token in instruction" * ": " * string(lookahead(parser, 0)))) end - _t1150 = _t1153 + _t1170 = _t1173 end - _t1147 = _t1150 + _t1167 = _t1170 end - _t1144 = _t1147 + _t1164 = _t1167 end - _t1141 = _t1144 + _t1161 = _t1164 end - return _t1141 + return _t1161 end function parse_assign(parser::ParserState)::Proto.Assign consume_literal!(parser, "(") consume_literal!(parser, "assign") - _t1156 = parse_relation_id(parser) - relation_id587 = _t1156 - _t1157 = parse_abstraction(parser) - abstraction588 = _t1157 + _t1176 = parse_relation_id(parser) + relation_id597 = _t1176 + _t1177 = parse_abstraction(parser) + abstraction598 = _t1177 if match_lookahead_literal(parser, "(", 0) - _t1159 = parse_attrs(parser) - _t1158 = _t1159 + _t1179 = parse_attrs(parser) + _t1178 = _t1179 else - _t1158 = nothing + _t1178 = nothing end - attrs589 = _t1158 + attrs599 = _t1178 consume_literal!(parser, ")") - _t1160 = Proto.Assign(name=relation_id587, body=abstraction588, attrs=(!isnothing(attrs589) ? attrs589 : Proto.Attribute[])) - return _t1160 + _t1180 = Proto.Assign(name=relation_id597, body=abstraction598, attrs=(!isnothing(attrs599) ? attrs599 : Proto.Attribute[])) + return _t1180 end function parse_upsert(parser::ParserState)::Proto.Upsert consume_literal!(parser, "(") consume_literal!(parser, "upsert") - _t1161 = parse_relation_id(parser) - relation_id590 = _t1161 - _t1162 = parse_abstraction_with_arity(parser) - abstraction_with_arity591 = _t1162 + _t1181 = parse_relation_id(parser) + relation_id600 = _t1181 + _t1182 = parse_abstraction_with_arity(parser) + abstraction_with_arity601 = _t1182 if match_lookahead_literal(parser, "(", 0) - _t1164 = parse_attrs(parser) - _t1163 = _t1164 + _t1184 = parse_attrs(parser) + _t1183 = _t1184 else - _t1163 = nothing + _t1183 = nothing end - attrs592 = _t1163 + attrs602 = _t1183 consume_literal!(parser, ")") - _t1165 = Proto.Upsert(name=relation_id590, body=abstraction_with_arity591[1], attrs=(!isnothing(attrs592) ? attrs592 : Proto.Attribute[]), value_arity=abstraction_with_arity591[2]) - return _t1165 + _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 end function parse_abstraction_with_arity(parser::ParserState)::Tuple{Proto.Abstraction, Int64} consume_literal!(parser, "(") - _t1166 = parse_bindings(parser) - bindings593 = _t1166 - _t1167 = parse_formula(parser) - formula594 = _t1167 + _t1186 = parse_bindings(parser) + bindings603 = _t1186 + _t1187 = parse_formula(parser) + formula604 = _t1187 consume_literal!(parser, ")") - _t1168 = Proto.Abstraction(vars=vcat(bindings593[1], !isnothing(bindings593[2]) ? bindings593[2] : []), value=formula594) - return (_t1168, length(bindings593[2]),) + _t1188 = Proto.Abstraction(vars=vcat(bindings603[1], !isnothing(bindings603[2]) ? bindings603[2] : []), value=formula604) + return (_t1188, length(bindings603[2]),) end function parse_break(parser::ParserState)::Proto.Break consume_literal!(parser, "(") consume_literal!(parser, "break") - _t1169 = parse_relation_id(parser) - relation_id595 = _t1169 - _t1170 = parse_abstraction(parser) - abstraction596 = _t1170 + _t1189 = parse_relation_id(parser) + relation_id605 = _t1189 + _t1190 = parse_abstraction(parser) + abstraction606 = _t1190 if match_lookahead_literal(parser, "(", 0) - _t1172 = parse_attrs(parser) - _t1171 = _t1172 + _t1192 = parse_attrs(parser) + _t1191 = _t1192 else - _t1171 = nothing + _t1191 = nothing end - attrs597 = _t1171 + attrs607 = _t1191 consume_literal!(parser, ")") - _t1173 = Proto.Break(name=relation_id595, body=abstraction596, attrs=(!isnothing(attrs597) ? attrs597 : Proto.Attribute[])) - return _t1173 + _t1193 = Proto.Break(name=relation_id605, body=abstraction606, attrs=(!isnothing(attrs607) ? attrs607 : Proto.Attribute[])) + return _t1193 end function parse_monoid_def(parser::ParserState)::Proto.MonoidDef consume_literal!(parser, "(") consume_literal!(parser, "monoid") - _t1174 = parse_monoid(parser) - monoid598 = _t1174 - _t1175 = parse_relation_id(parser) - relation_id599 = _t1175 - _t1176 = parse_abstraction_with_arity(parser) - abstraction_with_arity600 = _t1176 + _t1194 = parse_monoid(parser) + monoid608 = _t1194 + _t1195 = parse_relation_id(parser) + relation_id609 = _t1195 + _t1196 = parse_abstraction_with_arity(parser) + abstraction_with_arity610 = _t1196 if match_lookahead_literal(parser, "(", 0) - _t1178 = parse_attrs(parser) - _t1177 = _t1178 + _t1198 = parse_attrs(parser) + _t1197 = _t1198 else - _t1177 = nothing + _t1197 = nothing end - attrs601 = _t1177 + attrs611 = _t1197 consume_literal!(parser, ")") - _t1179 = Proto.MonoidDef(monoid=monoid598, name=relation_id599, body=abstraction_with_arity600[1], attrs=(!isnothing(attrs601) ? attrs601 : Proto.Attribute[]), value_arity=abstraction_with_arity600[2]) - return _t1179 + _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 end function parse_monoid(parser::ParserState)::Proto.Monoid if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "sum", 1) - _t1181 = 3 + _t1201 = 3 else if match_lookahead_literal(parser, "or", 1) - _t1182 = 0 + _t1202 = 0 else if match_lookahead_literal(parser, "min", 1) - _t1183 = 1 + _t1203 = 1 else if match_lookahead_literal(parser, "max", 1) - _t1184 = 2 + _t1204 = 2 else - _t1184 = -1 + _t1204 = -1 end - _t1183 = _t1184 + _t1203 = _t1204 end - _t1182 = _t1183 + _t1202 = _t1203 end - _t1181 = _t1182 + _t1201 = _t1202 end - _t1180 = _t1181 + _t1200 = _t1201 else - _t1180 = -1 - end - prediction602 = _t1180 - if prediction602 == 3 - _t1186 = parse_sum_monoid(parser) - sum_monoid606 = _t1186 - _t1187 = Proto.Monoid(value=OneOf(:sum_monoid, sum_monoid606)) - _t1185 = _t1187 + _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 else - if prediction602 == 2 - _t1189 = parse_max_monoid(parser) - max_monoid605 = _t1189 - _t1190 = Proto.Monoid(value=OneOf(:max_monoid, max_monoid605)) - _t1188 = _t1190 + if prediction612 == 2 + _t1209 = parse_max_monoid(parser) + max_monoid615 = _t1209 + _t1210 = Proto.Monoid(value=OneOf(:max_monoid, max_monoid615)) + _t1208 = _t1210 else - if prediction602 == 1 - _t1192 = parse_min_monoid(parser) - min_monoid604 = _t1192 - _t1193 = Proto.Monoid(value=OneOf(:min_monoid, min_monoid604)) - _t1191 = _t1193 + if prediction612 == 1 + _t1212 = parse_min_monoid(parser) + min_monoid614 = _t1212 + _t1213 = Proto.Monoid(value=OneOf(:min_monoid, min_monoid614)) + _t1211 = _t1213 else - if prediction602 == 0 - _t1195 = parse_or_monoid(parser) - or_monoid603 = _t1195 - _t1196 = Proto.Monoid(value=OneOf(:or_monoid, or_monoid603)) - _t1194 = _t1196 + if prediction612 == 0 + _t1215 = parse_or_monoid(parser) + or_monoid613 = _t1215 + _t1216 = Proto.Monoid(value=OneOf(:or_monoid, or_monoid613)) + _t1214 = _t1216 else throw(ParseError("Unexpected token in monoid" * ": " * string(lookahead(parser, 0)))) end - _t1191 = _t1194 + _t1211 = _t1214 end - _t1188 = _t1191 + _t1208 = _t1211 end - _t1185 = _t1188 + _t1205 = _t1208 end - return _t1185 + return _t1205 end function parse_or_monoid(parser::ParserState)::Proto.OrMonoid consume_literal!(parser, "(") consume_literal!(parser, "or") consume_literal!(parser, ")") - _t1197 = Proto.OrMonoid() - return _t1197 + _t1217 = Proto.OrMonoid() + return _t1217 end function parse_min_monoid(parser::ParserState)::Proto.MinMonoid consume_literal!(parser, "(") consume_literal!(parser, "min") - _t1198 = parse_type(parser) - type607 = _t1198 + _t1218 = parse_type(parser) + type617 = _t1218 consume_literal!(parser, ")") - _t1199 = Proto.MinMonoid(var"#type"=type607) - return _t1199 + _t1219 = Proto.MinMonoid(var"#type"=type617) + return _t1219 end function parse_max_monoid(parser::ParserState)::Proto.MaxMonoid consume_literal!(parser, "(") consume_literal!(parser, "max") - _t1200 = parse_type(parser) - type608 = _t1200 + _t1220 = parse_type(parser) + type618 = _t1220 consume_literal!(parser, ")") - _t1201 = Proto.MaxMonoid(var"#type"=type608) - return _t1201 + _t1221 = Proto.MaxMonoid(var"#type"=type618) + return _t1221 end function parse_sum_monoid(parser::ParserState)::Proto.SumMonoid consume_literal!(parser, "(") consume_literal!(parser, "sum") - _t1202 = parse_type(parser) - type609 = _t1202 + _t1222 = parse_type(parser) + type619 = _t1222 consume_literal!(parser, ")") - _t1203 = Proto.SumMonoid(var"#type"=type609) - return _t1203 + _t1223 = Proto.SumMonoid(var"#type"=type619) + return _t1223 end function parse_monus_def(parser::ParserState)::Proto.MonusDef consume_literal!(parser, "(") consume_literal!(parser, "monus") - _t1204 = parse_monoid(parser) - monoid610 = _t1204 - _t1205 = parse_relation_id(parser) - relation_id611 = _t1205 - _t1206 = parse_abstraction_with_arity(parser) - abstraction_with_arity612 = _t1206 + _t1224 = parse_monoid(parser) + monoid620 = _t1224 + _t1225 = parse_relation_id(parser) + relation_id621 = _t1225 + _t1226 = parse_abstraction_with_arity(parser) + abstraction_with_arity622 = _t1226 if match_lookahead_literal(parser, "(", 0) - _t1208 = parse_attrs(parser) - _t1207 = _t1208 + _t1228 = parse_attrs(parser) + _t1227 = _t1228 else - _t1207 = nothing + _t1227 = nothing end - attrs613 = _t1207 + attrs623 = _t1227 consume_literal!(parser, ")") - _t1209 = Proto.MonusDef(monoid=monoid610, name=relation_id611, body=abstraction_with_arity612[1], attrs=(!isnothing(attrs613) ? attrs613 : Proto.Attribute[]), value_arity=abstraction_with_arity612[2]) - return _t1209 + _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 end function parse_constraint(parser::ParserState)::Proto.Constraint consume_literal!(parser, "(") consume_literal!(parser, "functional_dependency") - _t1210 = parse_relation_id(parser) - relation_id614 = _t1210 - _t1211 = parse_abstraction(parser) - abstraction615 = _t1211 - _t1212 = parse_functional_dependency_keys(parser) - functional_dependency_keys616 = _t1212 - _t1213 = parse_functional_dependency_values(parser) - functional_dependency_values617 = _t1213 + _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 consume_literal!(parser, ")") - _t1214 = Proto.FunctionalDependency(guard=abstraction615, keys=functional_dependency_keys616, values=functional_dependency_values617) - _t1215 = Proto.Constraint(constraint_type=OneOf(:functional_dependency, _t1214), name=relation_id614) - return _t1215 + _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 end function parse_functional_dependency_keys(parser::ParserState)::Vector{Proto.Var} consume_literal!(parser, "(") consume_literal!(parser, "keys") - xs618 = Proto.Var[] - cond619 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond619 - _t1216 = parse_var(parser) - item620 = _t1216 - push!(xs618, item620) - cond619 = match_lookahead_terminal(parser, "SYMBOL", 0) + 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) end - vars621 = xs618 + vars631 = xs628 consume_literal!(parser, ")") - return vars621 + return vars631 end function parse_functional_dependency_values(parser::ParserState)::Vector{Proto.Var} consume_literal!(parser, "(") consume_literal!(parser, "values") - xs622 = Proto.Var[] - cond623 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond623 - _t1217 = parse_var(parser) - item624 = _t1217 - push!(xs622, item624) - cond623 = match_lookahead_terminal(parser, "SYMBOL", 0) + 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) end - vars625 = xs622 + vars635 = xs632 consume_literal!(parser, ")") - return vars625 + return vars635 end function parse_data(parser::ParserState)::Proto.Data if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "rel_edb", 1) - _t1219 = 0 + _t1239 = 0 else if match_lookahead_literal(parser, "csv_data", 1) - _t1220 = 2 + _t1240 = 2 else if match_lookahead_literal(parser, "betree_relation", 1) - _t1221 = 1 + _t1241 = 1 else - _t1221 = -1 + _t1241 = -1 end - _t1220 = _t1221 + _t1240 = _t1241 end - _t1219 = _t1220 + _t1239 = _t1240 end - _t1218 = _t1219 + _t1238 = _t1239 else - _t1218 = -1 - end - prediction626 = _t1218 - if prediction626 == 2 - _t1223 = parse_csv_data(parser) - csv_data629 = _t1223 - _t1224 = Proto.Data(data_type=OneOf(:csv_data, csv_data629)) - _t1222 = _t1224 + _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 else - if prediction626 == 1 - _t1226 = parse_betree_relation(parser) - betree_relation628 = _t1226 - _t1227 = Proto.Data(data_type=OneOf(:betree_relation, betree_relation628)) - _t1225 = _t1227 + if prediction636 == 1 + _t1246 = parse_betree_relation(parser) + betree_relation638 = _t1246 + _t1247 = Proto.Data(data_type=OneOf(:betree_relation, betree_relation638)) + _t1245 = _t1247 else - if prediction626 == 0 - _t1229 = parse_rel_edb(parser) - rel_edb627 = _t1229 - _t1230 = Proto.Data(data_type=OneOf(:rel_edb, rel_edb627)) - _t1228 = _t1230 + if prediction636 == 0 + _t1249 = parse_rel_edb(parser) + rel_edb637 = _t1249 + _t1250 = Proto.Data(data_type=OneOf(:rel_edb, rel_edb637)) + _t1248 = _t1250 else throw(ParseError("Unexpected token in data" * ": " * string(lookahead(parser, 0)))) end - _t1225 = _t1228 + _t1245 = _t1248 end - _t1222 = _t1225 + _t1242 = _t1245 end - return _t1222 + return _t1242 end function parse_rel_edb(parser::ParserState)::Proto.RelEDB consume_literal!(parser, "(") consume_literal!(parser, "rel_edb") - _t1231 = parse_relation_id(parser) - relation_id630 = _t1231 - _t1232 = parse_rel_edb_path(parser) - rel_edb_path631 = _t1232 - _t1233 = parse_rel_edb_types(parser) - rel_edb_types632 = _t1233 - consume_literal!(parser, ")") - _t1234 = Proto.RelEDB(target_id=relation_id630, path=rel_edb_path631, types=rel_edb_types632) - return _t1234 + _t1251 = parse_relation_id(parser) + relation_id640 = _t1251 + _t1252 = parse_rel_edb_path(parser) + rel_edb_path641 = _t1252 + _t1253 = parse_rel_edb_types(parser) + rel_edb_types642 = _t1253 + consume_literal!(parser, ")") + _t1254 = Proto.RelEDB(target_id=relation_id640, path=rel_edb_path641, types=rel_edb_types642) + return _t1254 end function parse_rel_edb_path(parser::ParserState)::Vector{String} consume_literal!(parser, "[") - xs633 = String[] - cond634 = match_lookahead_terminal(parser, "STRING", 0) - while cond634 - item635 = consume_terminal!(parser, "STRING") - push!(xs633, item635) - cond634 = match_lookahead_terminal(parser, "STRING", 0) - end - strings636 = xs633 + 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 consume_literal!(parser, "]") - return strings636 + return strings646 end function parse_rel_edb_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "[") - xs637 = Proto.var"#Type"[] - cond638 = ((((((((((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 cond638 - _t1235 = parse_type(parser) - item639 = _t1235 - push!(xs637, item639) - cond638 = ((((((((((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 - types640 = xs637 + 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 consume_literal!(parser, "]") - return types640 + return types650 end function parse_betree_relation(parser::ParserState)::Proto.BeTreeRelation consume_literal!(parser, "(") consume_literal!(parser, "betree_relation") - _t1236 = parse_relation_id(parser) - relation_id641 = _t1236 - _t1237 = parse_betree_info(parser) - betree_info642 = _t1237 + _t1256 = parse_relation_id(parser) + relation_id651 = _t1256 + _t1257 = parse_betree_info(parser) + betree_info652 = _t1257 consume_literal!(parser, ")") - _t1238 = Proto.BeTreeRelation(name=relation_id641, relation_info=betree_info642) - return _t1238 + _t1258 = Proto.BeTreeRelation(name=relation_id651, relation_info=betree_info652) + return _t1258 end function parse_betree_info(parser::ParserState)::Proto.BeTreeInfo consume_literal!(parser, "(") consume_literal!(parser, "betree_info") - _t1239 = parse_betree_info_key_types(parser) - betree_info_key_types643 = _t1239 - _t1240 = parse_betree_info_value_types(parser) - betree_info_value_types644 = _t1240 - _t1241 = parse_config_dict(parser) - config_dict645 = _t1241 - consume_literal!(parser, ")") - _t1242 = construct_betree_info(parser, betree_info_key_types643, betree_info_value_types644, config_dict645) - return _t1242 + _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 end function parse_betree_info_key_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "(") consume_literal!(parser, "key_types") - xs646 = Proto.var"#Type"[] - cond647 = ((((((((((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 cond647 - _t1243 = parse_type(parser) - item648 = _t1243 - push!(xs646, item648) - cond647 = ((((((((((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)) + 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)) end - types649 = xs646 + types659 = xs656 consume_literal!(parser, ")") - return types649 + return types659 end function parse_betree_info_value_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "(") consume_literal!(parser, "value_types") - xs650 = Proto.var"#Type"[] - cond651 = ((((((((((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 cond651 - _t1244 = parse_type(parser) - item652 = _t1244 - push!(xs650, item652) - cond651 = ((((((((((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)) + 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)) end - types653 = xs650 + types663 = xs660 consume_literal!(parser, ")") - return types653 + return types663 end function parse_csv_data(parser::ParserState)::Proto.CSVData consume_literal!(parser, "(") consume_literal!(parser, "csv_data") - _t1245 = parse_csvlocator(parser) - csvlocator654 = _t1245 - _t1246 = parse_csv_config(parser) - csv_config655 = _t1246 - _t1247 = parse_csv_columns(parser) - csv_columns656 = _t1247 - _t1248 = parse_csv_asof(parser) - csv_asof657 = _t1248 + _t1265 = parse_csvlocator(parser) + csvlocator664 = _t1265 + _t1266 = parse_csv_config(parser) + csv_config665 = _t1266 + _t1267 = parse_csv_columns(parser) + csv_columns666 = _t1267 + _t1268 = parse_csv_asof(parser) + csv_asof667 = _t1268 consume_literal!(parser, ")") - _t1249 = Proto.CSVData(locator=csvlocator654, config=csv_config655, columns=csv_columns656, asof=csv_asof657) - return _t1249 + _t1269 = Proto.CSVData(locator=csvlocator664, config=csv_config665, columns=csv_columns666, asof=csv_asof667) + return _t1269 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)) - _t1251 = parse_csv_locator_paths(parser) - _t1250 = _t1251 + _t1271 = parse_csv_locator_paths(parser) + _t1270 = _t1271 else - _t1250 = nothing + _t1270 = nothing end - csv_locator_paths658 = _t1250 + csv_locator_paths668 = _t1270 if match_lookahead_literal(parser, "(", 0) - _t1253 = parse_csv_locator_inline_data(parser) - _t1252 = _t1253 + _t1273 = parse_csv_locator_inline_data(parser) + _t1272 = _t1273 else - _t1252 = nothing + _t1272 = nothing end - csv_locator_inline_data659 = _t1252 + csv_locator_inline_data669 = _t1272 consume_literal!(parser, ")") - _t1254 = Proto.CSVLocator(paths=(!isnothing(csv_locator_paths658) ? csv_locator_paths658 : String[]), inline_data=Vector{UInt8}((!isnothing(csv_locator_inline_data659) ? csv_locator_inline_data659 : ""))) - return _t1254 + _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 end function parse_csv_locator_paths(parser::ParserState)::Vector{String} consume_literal!(parser, "(") consume_literal!(parser, "paths") - xs660 = String[] - cond661 = match_lookahead_terminal(parser, "STRING", 0) - while cond661 - item662 = consume_terminal!(parser, "STRING") - push!(xs660, item662) - cond661 = match_lookahead_terminal(parser, "STRING", 0) + 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) end - strings663 = xs660 + strings673 = xs670 consume_literal!(parser, ")") - return strings663 + return strings673 end function parse_csv_locator_inline_data(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "inline_data") - string664 = consume_terminal!(parser, "STRING") + string674 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string664 + return string674 end function parse_csv_config(parser::ParserState)::Proto.CSVConfig consume_literal!(parser, "(") consume_literal!(parser, "csv_config") - _t1255 = parse_config_dict(parser) - config_dict665 = _t1255 + _t1275 = parse_config_dict(parser) + config_dict675 = _t1275 consume_literal!(parser, ")") - _t1256 = construct_csv_config(parser, config_dict665) - return _t1256 + _t1276 = construct_csv_config(parser, config_dict675) + return _t1276 end function parse_csv_columns(parser::ParserState)::Vector{Proto.CSVColumn} consume_literal!(parser, "(") consume_literal!(parser, "columns") - xs666 = Proto.CSVColumn[] - cond667 = match_lookahead_literal(parser, "(", 0) - while cond667 - _t1257 = parse_csv_column(parser) - item668 = _t1257 - push!(xs666, item668) - cond667 = match_lookahead_literal(parser, "(", 0) + xs676 = Proto.CSVColumn[] + cond677 = match_lookahead_literal(parser, "(", 0) + while cond677 + _t1277 = parse_csv_column(parser) + item678 = _t1277 + push!(xs676, item678) + cond677 = match_lookahead_literal(parser, "(", 0) end - csv_columns669 = xs666 + csv_columns679 = xs676 consume_literal!(parser, ")") - return csv_columns669 + return csv_columns679 end function parse_csv_column(parser::ParserState)::Proto.CSVColumn consume_literal!(parser, "(") consume_literal!(parser, "column") - string670 = consume_terminal!(parser, "STRING") - _t1258 = parse_relation_id(parser) - relation_id671 = _t1258 + string680 = consume_terminal!(parser, "STRING") + _t1278 = parse_relation_id(parser) + relation_id681 = _t1278 consume_literal!(parser, "[") - xs672 = Proto.var"#Type"[] - cond673 = ((((((((((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 cond673 - _t1259 = parse_type(parser) - item674 = _t1259 - push!(xs672, item674) - cond673 = ((((((((((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 - types675 = xs672 + 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 + _t1279 = parse_type(parser) + item684 = _t1279 + 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 consume_literal!(parser, "]") consume_literal!(parser, ")") - _t1260 = Proto.CSVColumn(column_name=string670, target_id=relation_id671, types=types675) - return _t1260 + _t1280 = Proto.CSVColumn(column_name=string680, target_id=relation_id681, types=types685) + return _t1280 end function parse_csv_asof(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "asof") - string676 = consume_terminal!(parser, "STRING") + string686 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string676 + return string686 end function parse_undefine(parser::ParserState)::Proto.Undefine consume_literal!(parser, "(") consume_literal!(parser, "undefine") - _t1261 = parse_fragment_id(parser) - fragment_id677 = _t1261 + _t1281 = parse_fragment_id(parser) + fragment_id687 = _t1281 consume_literal!(parser, ")") - _t1262 = Proto.Undefine(fragment_id=fragment_id677) - return _t1262 + _t1282 = Proto.Undefine(fragment_id=fragment_id687) + return _t1282 end function parse_context(parser::ParserState)::Proto.Context consume_literal!(parser, "(") consume_literal!(parser, "context") - xs678 = Proto.RelationId[] - cond679 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond679 - _t1263 = parse_relation_id(parser) - item680 = _t1263 - push!(xs678, item680) - cond679 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + xs688 = Proto.RelationId[] + cond689 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond689 + _t1283 = parse_relation_id(parser) + item690 = _t1283 + push!(xs688, item690) + cond689 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) end - relation_ids681 = xs678 + relation_ids691 = xs688 consume_literal!(parser, ")") - _t1264 = Proto.Context(relations=relation_ids681) - return _t1264 + _t1284 = Proto.Context(relations=relation_ids691) + return _t1284 end function parse_snapshot(parser::ParserState)::Proto.Snapshot consume_literal!(parser, "(") consume_literal!(parser, "snapshot") - _t1265 = parse_rel_edb_path(parser) - rel_edb_path682 = _t1265 - _t1266 = parse_relation_id(parser) - relation_id683 = _t1266 + _t1285 = parse_rel_edb_path(parser) + rel_edb_path692 = _t1285 + _t1286 = parse_relation_id(parser) + relation_id693 = _t1286 consume_literal!(parser, ")") - _t1267 = Proto.Snapshot(destination_path=rel_edb_path682, source_relation=relation_id683) - return _t1267 + _t1287 = Proto.Snapshot(destination_path=rel_edb_path692, source_relation=relation_id693) + return _t1287 end function parse_epoch_reads(parser::ParserState)::Vector{Proto.Read} consume_literal!(parser, "(") consume_literal!(parser, "reads") - xs684 = Proto.Read[] - cond685 = match_lookahead_literal(parser, "(", 0) - while cond685 - _t1268 = parse_read(parser) - item686 = _t1268 - push!(xs684, item686) - cond685 = match_lookahead_literal(parser, "(", 0) + xs694 = Proto.Read[] + cond695 = match_lookahead_literal(parser, "(", 0) + while cond695 + _t1288 = parse_read(parser) + item696 = _t1288 + push!(xs694, item696) + cond695 = match_lookahead_literal(parser, "(", 0) end - reads687 = xs684 + reads697 = xs694 consume_literal!(parser, ")") - return reads687 + return reads697 end function parse_read(parser::ParserState)::Proto.Read if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "what_if", 1) - _t1270 = 2 + _t1290 = 2 else if match_lookahead_literal(parser, "output", 1) - _t1271 = 1 + _t1291 = 1 else if match_lookahead_literal(parser, "export", 1) - _t1272 = 4 + _t1292 = 4 else if match_lookahead_literal(parser, "demand", 1) - _t1273 = 0 + _t1293 = 0 else if match_lookahead_literal(parser, "abort", 1) - _t1274 = 3 + _t1294 = 3 else - _t1274 = -1 + _t1294 = -1 end - _t1273 = _t1274 + _t1293 = _t1294 end - _t1272 = _t1273 + _t1292 = _t1293 end - _t1271 = _t1272 + _t1291 = _t1292 end - _t1270 = _t1271 + _t1290 = _t1291 end - _t1269 = _t1270 + _t1289 = _t1290 else - _t1269 = -1 - end - prediction688 = _t1269 - if prediction688 == 4 - _t1276 = parse_export(parser) - export693 = _t1276 - _t1277 = Proto.Read(read_type=OneOf(:var"#export", export693)) - _t1275 = _t1277 + _t1289 = -1 + end + prediction698 = _t1289 + if prediction698 == 4 + _t1296 = parse_export(parser) + export703 = _t1296 + _t1297 = Proto.Read(read_type=OneOf(:var"#export", export703)) + _t1295 = _t1297 else - if prediction688 == 3 - _t1279 = parse_abort(parser) - abort692 = _t1279 - _t1280 = Proto.Read(read_type=OneOf(:abort, abort692)) - _t1278 = _t1280 + if prediction698 == 3 + _t1299 = parse_abort(parser) + abort702 = _t1299 + _t1300 = Proto.Read(read_type=OneOf(:abort, abort702)) + _t1298 = _t1300 else - if prediction688 == 2 - _t1282 = parse_what_if(parser) - what_if691 = _t1282 - _t1283 = Proto.Read(read_type=OneOf(:what_if, what_if691)) - _t1281 = _t1283 + if prediction698 == 2 + _t1302 = parse_what_if(parser) + what_if701 = _t1302 + _t1303 = Proto.Read(read_type=OneOf(:what_if, what_if701)) + _t1301 = _t1303 else - if prediction688 == 1 - _t1285 = parse_output(parser) - output690 = _t1285 - _t1286 = Proto.Read(read_type=OneOf(:output, output690)) - _t1284 = _t1286 + if prediction698 == 1 + _t1305 = parse_output(parser) + output700 = _t1305 + _t1306 = Proto.Read(read_type=OneOf(:output, output700)) + _t1304 = _t1306 else - if prediction688 == 0 - _t1288 = parse_demand(parser) - demand689 = _t1288 - _t1289 = Proto.Read(read_type=OneOf(:demand, demand689)) - _t1287 = _t1289 + if prediction698 == 0 + _t1308 = parse_demand(parser) + demand699 = _t1308 + _t1309 = Proto.Read(read_type=OneOf(:demand, demand699)) + _t1307 = _t1309 else throw(ParseError("Unexpected token in read" * ": " * string(lookahead(parser, 0)))) end - _t1284 = _t1287 + _t1304 = _t1307 end - _t1281 = _t1284 + _t1301 = _t1304 end - _t1278 = _t1281 + _t1298 = _t1301 end - _t1275 = _t1278 + _t1295 = _t1298 end - return _t1275 + return _t1295 end function parse_demand(parser::ParserState)::Proto.Demand consume_literal!(parser, "(") consume_literal!(parser, "demand") - _t1290 = parse_relation_id(parser) - relation_id694 = _t1290 + _t1310 = parse_relation_id(parser) + relation_id704 = _t1310 consume_literal!(parser, ")") - _t1291 = Proto.Demand(relation_id=relation_id694) - return _t1291 + _t1311 = Proto.Demand(relation_id=relation_id704) + return _t1311 end function parse_output(parser::ParserState)::Proto.Output consume_literal!(parser, "(") consume_literal!(parser, "output") - _t1292 = parse_name(parser) - name695 = _t1292 - _t1293 = parse_relation_id(parser) - relation_id696 = _t1293 + _t1312 = parse_name(parser) + name705 = _t1312 + _t1313 = parse_relation_id(parser) + relation_id706 = _t1313 consume_literal!(parser, ")") - _t1294 = Proto.Output(name=name695, relation_id=relation_id696) - return _t1294 + _t1314 = Proto.Output(name=name705, relation_id=relation_id706) + return _t1314 end function parse_what_if(parser::ParserState)::Proto.WhatIf consume_literal!(parser, "(") consume_literal!(parser, "what_if") - _t1295 = parse_name(parser) - name697 = _t1295 - _t1296 = parse_epoch(parser) - epoch698 = _t1296 + _t1315 = parse_name(parser) + name707 = _t1315 + _t1316 = parse_epoch(parser) + epoch708 = _t1316 consume_literal!(parser, ")") - _t1297 = Proto.WhatIf(branch=name697, epoch=epoch698) - return _t1297 + _t1317 = Proto.WhatIf(branch=name707, epoch=epoch708) + return _t1317 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)) - _t1299 = parse_name(parser) - _t1298 = _t1299 + _t1319 = parse_name(parser) + _t1318 = _t1319 else - _t1298 = nothing + _t1318 = nothing end - name699 = _t1298 - _t1300 = parse_relation_id(parser) - relation_id700 = _t1300 + name709 = _t1318 + _t1320 = parse_relation_id(parser) + relation_id710 = _t1320 consume_literal!(parser, ")") - _t1301 = Proto.Abort(name=(!isnothing(name699) ? name699 : "abort"), relation_id=relation_id700) - return _t1301 + _t1321 = Proto.Abort(name=(!isnothing(name709) ? name709 : "abort"), relation_id=relation_id710) + return _t1321 end function parse_export(parser::ParserState)::Proto.Export consume_literal!(parser, "(") consume_literal!(parser, "export") - _t1302 = parse_export_csv_config(parser) - export_csv_config701 = _t1302 + _t1322 = parse_export_csv_config(parser) + export_csv_config711 = _t1322 consume_literal!(parser, ")") - _t1303 = Proto.Export(export_config=OneOf(:csv_config, export_csv_config701)) - return _t1303 + _t1323 = Proto.Export(export_config=OneOf(:csv_config, export_csv_config711)) + return _t1323 end function parse_export_csv_config(parser::ParserState)::Proto.ExportCSVConfig - consume_literal!(parser, "(") - consume_literal!(parser, "export_csv_config") - _t1304 = parse_export_csv_path(parser) - export_csv_path702 = _t1304 - _t1305 = parse_export_csv_columns(parser) - export_csv_columns703 = _t1305 - _t1306 = parse_config_dict(parser) - config_dict704 = _t1306 - consume_literal!(parser, ")") - _t1307 = export_csv_config(parser, export_csv_path702, export_csv_columns703, config_dict704) - return _t1307 + if match_lookahead_literal(parser, "(", 0) + if match_lookahead_literal(parser, "export_csv_config_v2", 1) + _t1325 = 0 + else + if match_lookahead_literal(parser, "export_csv_config", 1) + _t1326 = 1 + else + _t1326 = -1 + end + _t1325 = _t1326 + end + _t1324 = _t1325 + else + _t1324 = -1 + end + prediction712 = _t1324 + if prediction712 == 1 + consume_literal!(parser, "(") + consume_literal!(parser, "export_csv_config") + _t1328 = parse_export_csv_path(parser) + export_csv_path716 = _t1328 + _t1329 = parse_export_csv_columns_list(parser) + export_csv_columns_list717 = _t1329 + _t1330 = parse_config_dict(parser) + config_dict718 = _t1330 + consume_literal!(parser, ")") + _t1331 = construct_export_csv_config(parser, export_csv_path716, export_csv_columns_list717, config_dict718) + _t1327 = _t1331 + else + if prediction712 == 0 + consume_literal!(parser, "(") + consume_literal!(parser, "export_csv_config_v2") + _t1333 = parse_export_csv_path(parser) + export_csv_path713 = _t1333 + _t1334 = parse_export_csv_source(parser) + export_csv_source714 = _t1334 + _t1335 = parse_csv_config(parser) + csv_config715 = _t1335 + consume_literal!(parser, ")") + _t1336 = construct_export_csv_config_with_source(parser, export_csv_path713, export_csv_source714, csv_config715) + _t1332 = _t1336 + else + throw(ParseError("Unexpected token in export_csv_config" * ": " * string(lookahead(parser, 0)))) + end + _t1327 = _t1332 + end + return _t1327 end function parse_export_csv_path(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "path") - string705 = consume_terminal!(parser, "STRING") + string719 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string705 + return string719 end -function parse_export_csv_columns(parser::ParserState)::Vector{Proto.ExportCSVColumn} - consume_literal!(parser, "(") - consume_literal!(parser, "columns") - xs706 = Proto.ExportCSVColumn[] - cond707 = match_lookahead_literal(parser, "(", 0) - while cond707 - _t1308 = parse_export_csv_column(parser) - item708 = _t1308 - push!(xs706, item708) - cond707 = 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) + _t1338 = 1 + else + if match_lookahead_literal(parser, "gnf_columns", 1) + _t1339 = 0 + else + _t1339 = -1 + end + _t1338 = _t1339 + end + _t1337 = _t1338 + else + _t1337 = -1 end - export_csv_columns709 = xs706 - consume_literal!(parser, ")") - return export_csv_columns709 + prediction720 = _t1337 + if prediction720 == 1 + consume_literal!(parser, "(") + consume_literal!(parser, "table_def") + _t1341 = parse_relation_id(parser) + relation_id725 = _t1341 + consume_literal!(parser, ")") + _t1342 = Proto.ExportCSVSource(csv_source=OneOf(:table_def, relation_id725)) + _t1340 = _t1342 + else + if prediction720 == 0 + consume_literal!(parser, "(") + consume_literal!(parser, "gnf_columns") + xs721 = Proto.ExportCSVColumn[] + cond722 = match_lookahead_literal(parser, "(", 0) + while cond722 + _t1344 = parse_export_csv_column(parser) + item723 = _t1344 + push!(xs721, item723) + cond722 = match_lookahead_literal(parser, "(", 0) + end + export_csv_columns724 = xs721 + consume_literal!(parser, ")") + _t1345 = Proto.ExportCSVColumns(columns=export_csv_columns724) + _t1346 = Proto.ExportCSVSource(csv_source=OneOf(:gnf_columns, _t1345)) + _t1343 = _t1346 + else + throw(ParseError("Unexpected token in export_csv_source" * ": " * string(lookahead(parser, 0)))) + end + _t1340 = _t1343 + end + return _t1340 end function parse_export_csv_column(parser::ParserState)::Proto.ExportCSVColumn consume_literal!(parser, "(") consume_literal!(parser, "column") - string710 = consume_terminal!(parser, "STRING") - _t1309 = parse_relation_id(parser) - relation_id711 = _t1309 + string726 = consume_terminal!(parser, "STRING") + _t1347 = parse_relation_id(parser) + relation_id727 = _t1347 + consume_literal!(parser, ")") + _t1348 = Proto.ExportCSVColumn(column_name=string726, column_data=relation_id727) + return _t1348 +end + +function parse_export_csv_columns_list(parser::ParserState)::Vector{Proto.ExportCSVColumn} + consume_literal!(parser, "(") + consume_literal!(parser, "columns") + xs728 = Proto.ExportCSVColumn[] + cond729 = match_lookahead_literal(parser, "(", 0) + while cond729 + _t1349 = parse_export_csv_column(parser) + item730 = _t1349 + push!(xs728, item730) + cond729 = match_lookahead_literal(parser, "(", 0) + end + export_csv_columns731 = xs728 consume_literal!(parser, ")") - _t1310 = Proto.ExportCSVColumn(column_name=string710, column_data=relation_id711) - return _t1310 + return export_csv_columns731 end diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl b/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl index de46a505..f328f89d 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 - _t1686 = Proto.Value(value=OneOf(:int_value, Int64(v))) - return _t1686 + _t1721 = Proto.Value(value=OneOf(:int_value, Int64(v))) + return _t1721 end function _make_value_int64(pp::PrettyPrinter, v::Int64)::Proto.Value - _t1687 = Proto.Value(value=OneOf(:int_value, v)) - return _t1687 + _t1722 = Proto.Value(value=OneOf(:int_value, v)) + return _t1722 end function _make_value_float64(pp::PrettyPrinter, v::Float64)::Proto.Value - _t1688 = Proto.Value(value=OneOf(:float_value, v)) - return _t1688 + _t1723 = Proto.Value(value=OneOf(:float_value, v)) + return _t1723 end function _make_value_string(pp::PrettyPrinter, v::String)::Proto.Value - _t1689 = Proto.Value(value=OneOf(:string_value, v)) - return _t1689 + _t1724 = Proto.Value(value=OneOf(:string_value, v)) + return _t1724 end function _make_value_boolean(pp::PrettyPrinter, v::Bool)::Proto.Value - _t1690 = Proto.Value(value=OneOf(:boolean_value, v)) - return _t1690 + _t1725 = Proto.Value(value=OneOf(:boolean_value, v)) + return _t1725 end function _make_value_uint128(pp::PrettyPrinter, v::Proto.UInt128Value)::Proto.Value - _t1691 = Proto.Value(value=OneOf(:uint128_value, v)) - return _t1691 + _t1726 = Proto.Value(value=OneOf(:uint128_value, v)) + return _t1726 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 - _t1692 = _make_value_string(pp, "auto") - push!(result, ("ivm.maintenance_level", _t1692,)) + _t1727 = _make_value_string(pp, "auto") + push!(result, ("ivm.maintenance_level", _t1727,)) else if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_ALL - _t1693 = _make_value_string(pp, "all") - push!(result, ("ivm.maintenance_level", _t1693,)) + _t1728 = _make_value_string(pp, "all") + push!(result, ("ivm.maintenance_level", _t1728,)) else if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF - _t1694 = _make_value_string(pp, "off") - push!(result, ("ivm.maintenance_level", _t1694,)) + _t1729 = _make_value_string(pp, "off") + push!(result, ("ivm.maintenance_level", _t1729,)) end end end - _t1695 = _make_value_int64(pp, msg.semantics_version) - push!(result, ("semantics_version", _t1695,)) + _t1730 = _make_value_int64(pp, msg.semantics_version) + push!(result, ("semantics_version", _t1730,)) return sort(result) end function deconstruct_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig)::Vector{Tuple{String, Proto.Value}} result = Tuple{String, Proto.Value}[] - _t1696 = _make_value_int32(pp, msg.header_row) - push!(result, ("csv_header_row", _t1696,)) - _t1697 = _make_value_int64(pp, msg.skip) - push!(result, ("csv_skip", _t1697,)) + _t1731 = _make_value_int32(pp, msg.header_row) + push!(result, ("csv_header_row", _t1731,)) + _t1732 = _make_value_int64(pp, msg.skip) + push!(result, ("csv_skip", _t1732,)) if msg.new_line != "" - _t1698 = _make_value_string(pp, msg.new_line) - push!(result, ("csv_new_line", _t1698,)) - end - _t1699 = _make_value_string(pp, msg.delimiter) - push!(result, ("csv_delimiter", _t1699,)) - _t1700 = _make_value_string(pp, msg.quotechar) - push!(result, ("csv_quotechar", _t1700,)) - _t1701 = _make_value_string(pp, msg.escapechar) - push!(result, ("csv_escapechar", _t1701,)) + _t1733 = _make_value_string(pp, msg.new_line) + push!(result, ("csv_new_line", _t1733,)) + end + _t1734 = _make_value_string(pp, msg.delimiter) + push!(result, ("csv_delimiter", _t1734,)) + _t1735 = _make_value_string(pp, msg.quotechar) + push!(result, ("csv_quotechar", _t1735,)) + _t1736 = _make_value_string(pp, msg.escapechar) + push!(result, ("csv_escapechar", _t1736,)) if msg.comment != "" - _t1702 = _make_value_string(pp, msg.comment) - push!(result, ("csv_comment", _t1702,)) + _t1737 = _make_value_string(pp, msg.comment) + push!(result, ("csv_comment", _t1737,)) end for missing_string in msg.missing_strings - _t1703 = _make_value_string(pp, missing_string) - push!(result, ("csv_missing_strings", _t1703,)) - end - _t1704 = _make_value_string(pp, msg.decimal_separator) - push!(result, ("csv_decimal_separator", _t1704,)) - _t1705 = _make_value_string(pp, msg.encoding) - push!(result, ("csv_encoding", _t1705,)) - _t1706 = _make_value_string(pp, msg.compression) - push!(result, ("csv_compression", _t1706,)) + _t1738 = _make_value_string(pp, missing_string) + push!(result, ("csv_missing_strings", _t1738,)) + end + _t1739 = _make_value_string(pp, msg.decimal_separator) + push!(result, ("csv_decimal_separator", _t1739,)) + _t1740 = _make_value_string(pp, msg.encoding) + push!(result, ("csv_encoding", _t1740,)) + _t1741 = _make_value_string(pp, msg.compression) + push!(result, ("csv_compression", _t1741,)) + if msg.partition_size_mb != 0 + _t1742 = _make_value_int64(pp, msg.partition_size_mb) + push!(result, ("csv_partition_size_mb", _t1742,)) + 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}[] - _t1707 = _make_value_float64(pp, msg.storage_config.epsilon) - push!(result, ("betree_config_epsilon", _t1707,)) - _t1708 = _make_value_int64(pp, msg.storage_config.max_pivots) - push!(result, ("betree_config_max_pivots", _t1708,)) - _t1709 = _make_value_int64(pp, msg.storage_config.max_deltas) - push!(result, ("betree_config_max_deltas", _t1709,)) - _t1710 = _make_value_int64(pp, msg.storage_config.max_leaf) - push!(result, ("betree_config_max_leaf", _t1710,)) + _t1743 = _make_value_float64(pp, msg.storage_config.epsilon) + push!(result, ("betree_config_epsilon", _t1743,)) + _t1744 = _make_value_int64(pp, msg.storage_config.max_pivots) + push!(result, ("betree_config_max_pivots", _t1744,)) + _t1745 = _make_value_int64(pp, msg.storage_config.max_deltas) + push!(result, ("betree_config_max_deltas", _t1745,)) + _t1746 = _make_value_int64(pp, msg.storage_config.max_leaf) + push!(result, ("betree_config_max_leaf", _t1746,)) if _has_proto_field(msg.relation_locator, Symbol("root_pageid")) if !isnothing(_get_oneof_field(msg.relation_locator, :root_pageid)) - _t1711 = _make_value_uint128(pp, _get_oneof_field(msg.relation_locator, :root_pageid)) - push!(result, ("betree_locator_root_pageid", _t1711,)) + _t1747 = _make_value_uint128(pp, _get_oneof_field(msg.relation_locator, :root_pageid)) + push!(result, ("betree_locator_root_pageid", _t1747,)) end end if _has_proto_field(msg.relation_locator, Symbol("inline_data")) if !isnothing(_get_oneof_field(msg.relation_locator, :inline_data)) - _t1712 = _make_value_string(pp, String(copy(_get_oneof_field(msg.relation_locator, :inline_data)))) - push!(result, ("betree_locator_inline_data", _t1712,)) + _t1748 = _make_value_string(pp, String(copy(_get_oneof_field(msg.relation_locator, :inline_data)))) + push!(result, ("betree_locator_inline_data", _t1748,)) end end - _t1713 = _make_value_int64(pp, msg.relation_locator.element_count) - push!(result, ("betree_locator_element_count", _t1713,)) - _t1714 = _make_value_int64(pp, msg.relation_locator.tree_height) - push!(result, ("betree_locator_tree_height", _t1714,)) + _t1749 = _make_value_int64(pp, msg.relation_locator.element_count) + push!(result, ("betree_locator_element_count", _t1749,)) + _t1750 = _make_value_int64(pp, msg.relation_locator.tree_height) + push!(result, ("betree_locator_tree_height", _t1750,)) 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) - _t1715 = _make_value_int64(pp, msg.partition_size) - push!(result, ("partition_size", _t1715,)) + _t1751 = _make_value_int64(pp, msg.partition_size) + push!(result, ("partition_size", _t1751,)) end if !isnothing(msg.compression) - _t1716 = _make_value_string(pp, msg.compression) - push!(result, ("compression", _t1716,)) + _t1752 = _make_value_string(pp, msg.compression) + push!(result, ("compression", _t1752,)) end if !isnothing(msg.syntax_header_row) - _t1717 = _make_value_boolean(pp, msg.syntax_header_row) - push!(result, ("syntax_header_row", _t1717,)) + _t1753 = _make_value_boolean(pp, msg.syntax_header_row) + push!(result, ("syntax_header_row", _t1753,)) end if !isnothing(msg.syntax_missing_string) - _t1718 = _make_value_string(pp, msg.syntax_missing_string) - push!(result, ("syntax_missing_string", _t1718,)) + _t1754 = _make_value_string(pp, msg.syntax_missing_string) + push!(result, ("syntax_missing_string", _t1754,)) end if !isnothing(msg.syntax_delim) - _t1719 = _make_value_string(pp, msg.syntax_delim) - push!(result, ("syntax_delim", _t1719,)) + _t1755 = _make_value_string(pp, msg.syntax_delim) + push!(result, ("syntax_delim", _t1755,)) end if !isnothing(msg.syntax_quotechar) - _t1720 = _make_value_string(pp, msg.syntax_quotechar) - push!(result, ("syntax_quotechar", _t1720,)) + _t1756 = _make_value_string(pp, msg.syntax_quotechar) + push!(result, ("syntax_quotechar", _t1756,)) end if !isnothing(msg.syntax_escapechar) - _t1721 = _make_value_string(pp, msg.syntax_escapechar) - push!(result, ("syntax_escapechar", _t1721,)) + _t1757 = _make_value_string(pp, msg.syntax_escapechar) + push!(result, ("syntax_escapechar", _t1757,)) 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 - _t1722 = nothing + _t1758 = nothing end return nothing end @@ -512,51 +516,51 @@ end # --- Pretty-print functions --- function pretty_transaction(pp::PrettyPrinter, msg::Proto.Transaction) - flat638 = try_flat(pp, msg, pretty_transaction) - if !isnothing(flat638) - write(pp, flat638) + flat650 = try_flat(pp, msg, pretty_transaction) + if !isnothing(flat650) + write(pp, flat650) return nothing else - function _t1258(_dollar_dollar) + function _t1282(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("configure")) - _t1259 = _dollar_dollar.configure + _t1283 = _dollar_dollar.configure else - _t1259 = nothing + _t1283 = nothing end if _has_proto_field(_dollar_dollar, Symbol("sync")) - _t1260 = _dollar_dollar.sync + _t1284 = _dollar_dollar.sync else - _t1260 = nothing + _t1284 = nothing end - return (_t1259, _t1260, _dollar_dollar.epochs,) + return (_t1283, _t1284, _dollar_dollar.epochs,) end - _t1261 = _t1258(msg) - fields629 = _t1261 - unwrapped_fields630 = fields629 + _t1285 = _t1282(msg) + fields641 = _t1285 + unwrapped_fields642 = fields641 write(pp, "(") write(pp, "transaction") indent_sexp!(pp) - field631 = unwrapped_fields630[1] - if !isnothing(field631) + field643 = unwrapped_fields642[1] + if !isnothing(field643) newline(pp) - opt_val632 = field631 - pretty_configure(pp, opt_val632) + opt_val644 = field643 + pretty_configure(pp, opt_val644) end - field633 = unwrapped_fields630[2] - if !isnothing(field633) + field645 = unwrapped_fields642[2] + if !isnothing(field645) newline(pp) - opt_val634 = field633 - pretty_sync(pp, opt_val634) + opt_val646 = field645 + pretty_sync(pp, opt_val646) end - field635 = unwrapped_fields630[3] - if !isempty(field635) + field647 = unwrapped_fields642[3] + if !isempty(field647) newline(pp) - for (i1262, elem636) in enumerate(field635) - i637 = i1262 - 1 - if (i637 > 0) + for (i1286, elem648) in enumerate(field647) + i649 = i1286 - 1 + if (i649 > 0) newline(pp) end - pretty_epoch(pp, elem636) + pretty_epoch(pp, elem648) end end dedent!(pp) @@ -566,23 +570,23 @@ function pretty_transaction(pp::PrettyPrinter, msg::Proto.Transaction) end function pretty_configure(pp::PrettyPrinter, msg::Proto.Configure) - flat641 = try_flat(pp, msg, pretty_configure) - if !isnothing(flat641) - write(pp, flat641) + flat653 = try_flat(pp, msg, pretty_configure) + if !isnothing(flat653) + write(pp, flat653) return nothing else - function _t1263(_dollar_dollar) - _t1264 = deconstruct_configure(pp, _dollar_dollar) - return _t1264 + function _t1287(_dollar_dollar) + _t1288 = deconstruct_configure(pp, _dollar_dollar) + return _t1288 end - _t1265 = _t1263(msg) - fields639 = _t1265 - unwrapped_fields640 = fields639 + _t1289 = _t1287(msg) + fields651 = _t1289 + unwrapped_fields652 = fields651 write(pp, "(") write(pp, "configure") indent_sexp!(pp) newline(pp) - pretty_config_dict(pp, unwrapped_fields640) + pretty_config_dict(pp, unwrapped_fields652) dedent!(pp) write(pp, ")") end @@ -590,22 +594,22 @@ function pretty_configure(pp::PrettyPrinter, msg::Proto.Configure) end function pretty_config_dict(pp::PrettyPrinter, msg::Vector{Tuple{String, Proto.Value}}) - flat645 = try_flat(pp, msg, pretty_config_dict) - if !isnothing(flat645) - write(pp, flat645) + flat657 = try_flat(pp, msg, pretty_config_dict) + if !isnothing(flat657) + write(pp, flat657) return nothing else - fields642 = msg + fields654 = msg write(pp, "{") indent!(pp) - if !isempty(fields642) + if !isempty(fields654) newline(pp) - for (i1266, elem643) in enumerate(fields642) - i644 = i1266 - 1 - if (i644 > 0) + for (i1290, elem655) in enumerate(fields654) + i656 = i1290 - 1 + if (i656 > 0) newline(pp) end - pretty_config_key_value(pp, elem643) + pretty_config_key_value(pp, elem655) end end dedent!(pp) @@ -615,160 +619,160 @@ 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}) - flat650 = try_flat(pp, msg, pretty_config_key_value) - if !isnothing(flat650) - write(pp, flat650) + flat662 = try_flat(pp, msg, pretty_config_key_value) + if !isnothing(flat662) + write(pp, flat662) return nothing else - function _t1267(_dollar_dollar) + function _t1291(_dollar_dollar) return (_dollar_dollar[1], _dollar_dollar[2],) end - _t1268 = _t1267(msg) - fields646 = _t1268 - unwrapped_fields647 = fields646 + _t1292 = _t1291(msg) + fields658 = _t1292 + unwrapped_fields659 = fields658 write(pp, ":") - field648 = unwrapped_fields647[1] - write(pp, field648) + field660 = unwrapped_fields659[1] + write(pp, field660) write(pp, " ") - field649 = unwrapped_fields647[2] - pretty_value(pp, field649) + field661 = unwrapped_fields659[2] + pretty_value(pp, field661) end return nothing end function pretty_value(pp::PrettyPrinter, msg::Proto.Value) - flat670 = try_flat(pp, msg, pretty_value) - if !isnothing(flat670) - write(pp, flat670) + flat682 = try_flat(pp, msg, pretty_value) + if !isnothing(flat682) + write(pp, flat682) return nothing else - function _t1269(_dollar_dollar) + function _t1293(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("date_value")) - _t1270 = _get_oneof_field(_dollar_dollar, :date_value) + _t1294 = _get_oneof_field(_dollar_dollar, :date_value) else - _t1270 = nothing + _t1294 = nothing end - return _t1270 + return _t1294 end - _t1271 = _t1269(msg) - deconstruct_result668 = _t1271 - if !isnothing(deconstruct_result668) - unwrapped669 = deconstruct_result668 - pretty_date(pp, unwrapped669) + _t1295 = _t1293(msg) + deconstruct_result680 = _t1295 + if !isnothing(deconstruct_result680) + unwrapped681 = deconstruct_result680 + pretty_date(pp, unwrapped681) else - function _t1272(_dollar_dollar) + function _t1296(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("datetime_value")) - _t1273 = _get_oneof_field(_dollar_dollar, :datetime_value) + _t1297 = _get_oneof_field(_dollar_dollar, :datetime_value) else - _t1273 = nothing + _t1297 = nothing end - return _t1273 + return _t1297 end - _t1274 = _t1272(msg) - deconstruct_result666 = _t1274 - if !isnothing(deconstruct_result666) - unwrapped667 = deconstruct_result666 - pretty_datetime(pp, unwrapped667) + _t1298 = _t1296(msg) + deconstruct_result678 = _t1298 + if !isnothing(deconstruct_result678) + unwrapped679 = deconstruct_result678 + pretty_datetime(pp, unwrapped679) else - function _t1275(_dollar_dollar) + function _t1299(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("string_value")) - _t1276 = _get_oneof_field(_dollar_dollar, :string_value) + _t1300 = _get_oneof_field(_dollar_dollar, :string_value) else - _t1276 = nothing + _t1300 = nothing end - return _t1276 + return _t1300 end - _t1277 = _t1275(msg) - deconstruct_result664 = _t1277 - if !isnothing(deconstruct_result664) - unwrapped665 = deconstruct_result664 - write(pp, format_string(pp, unwrapped665)) + _t1301 = _t1299(msg) + deconstruct_result676 = _t1301 + if !isnothing(deconstruct_result676) + unwrapped677 = deconstruct_result676 + write(pp, format_string(pp, unwrapped677)) else - function _t1278(_dollar_dollar) + function _t1302(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("int_value")) - _t1279 = _get_oneof_field(_dollar_dollar, :int_value) + _t1303 = _get_oneof_field(_dollar_dollar, :int_value) else - _t1279 = nothing + _t1303 = nothing end - return _t1279 + return _t1303 end - _t1280 = _t1278(msg) - deconstruct_result662 = _t1280 - if !isnothing(deconstruct_result662) - unwrapped663 = deconstruct_result662 - write(pp, format_int(pp, unwrapped663)) + _t1304 = _t1302(msg) + deconstruct_result674 = _t1304 + if !isnothing(deconstruct_result674) + unwrapped675 = deconstruct_result674 + write(pp, format_int(pp, unwrapped675)) else - function _t1281(_dollar_dollar) + function _t1305(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("float_value")) - _t1282 = _get_oneof_field(_dollar_dollar, :float_value) + _t1306 = _get_oneof_field(_dollar_dollar, :float_value) else - _t1282 = nothing + _t1306 = nothing end - return _t1282 + return _t1306 end - _t1283 = _t1281(msg) - deconstruct_result660 = _t1283 - if !isnothing(deconstruct_result660) - unwrapped661 = deconstruct_result660 - write(pp, format_float(pp, unwrapped661)) + _t1307 = _t1305(msg) + deconstruct_result672 = _t1307 + if !isnothing(deconstruct_result672) + unwrapped673 = deconstruct_result672 + write(pp, format_float(pp, unwrapped673)) else - function _t1284(_dollar_dollar) + function _t1308(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("uint128_value")) - _t1285 = _get_oneof_field(_dollar_dollar, :uint128_value) + _t1309 = _get_oneof_field(_dollar_dollar, :uint128_value) else - _t1285 = nothing + _t1309 = nothing end - return _t1285 + return _t1309 end - _t1286 = _t1284(msg) - deconstruct_result658 = _t1286 - if !isnothing(deconstruct_result658) - unwrapped659 = deconstruct_result658 - write(pp, format_uint128(pp, unwrapped659)) + _t1310 = _t1308(msg) + deconstruct_result670 = _t1310 + if !isnothing(deconstruct_result670) + unwrapped671 = deconstruct_result670 + write(pp, format_uint128(pp, unwrapped671)) else - function _t1287(_dollar_dollar) + function _t1311(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("int128_value")) - _t1288 = _get_oneof_field(_dollar_dollar, :int128_value) + _t1312 = _get_oneof_field(_dollar_dollar, :int128_value) else - _t1288 = nothing + _t1312 = nothing end - return _t1288 + return _t1312 end - _t1289 = _t1287(msg) - deconstruct_result656 = _t1289 - if !isnothing(deconstruct_result656) - unwrapped657 = deconstruct_result656 - write(pp, format_int128(pp, unwrapped657)) + _t1313 = _t1311(msg) + deconstruct_result668 = _t1313 + if !isnothing(deconstruct_result668) + unwrapped669 = deconstruct_result668 + write(pp, format_int128(pp, unwrapped669)) else - function _t1290(_dollar_dollar) + function _t1314(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("decimal_value")) - _t1291 = _get_oneof_field(_dollar_dollar, :decimal_value) + _t1315 = _get_oneof_field(_dollar_dollar, :decimal_value) else - _t1291 = nothing + _t1315 = nothing end - return _t1291 + return _t1315 end - _t1292 = _t1290(msg) - deconstruct_result654 = _t1292 - if !isnothing(deconstruct_result654) - unwrapped655 = deconstruct_result654 - write(pp, format_decimal(pp, unwrapped655)) + _t1316 = _t1314(msg) + deconstruct_result666 = _t1316 + if !isnothing(deconstruct_result666) + unwrapped667 = deconstruct_result666 + write(pp, format_decimal(pp, unwrapped667)) else - function _t1293(_dollar_dollar) + function _t1317(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("boolean_value")) - _t1294 = _get_oneof_field(_dollar_dollar, :boolean_value) + _t1318 = _get_oneof_field(_dollar_dollar, :boolean_value) else - _t1294 = nothing + _t1318 = nothing end - return _t1294 + return _t1318 end - _t1295 = _t1293(msg) - deconstruct_result652 = _t1295 - if !isnothing(deconstruct_result652) - unwrapped653 = deconstruct_result652 - pretty_boolean_value(pp, unwrapped653) + _t1319 = _t1317(msg) + deconstruct_result664 = _t1319 + if !isnothing(deconstruct_result664) + unwrapped665 = deconstruct_result664 + pretty_boolean_value(pp, unwrapped665) else - fields651 = msg + fields663 = msg write(pp, "missing") end end @@ -784,29 +788,29 @@ function pretty_value(pp::PrettyPrinter, msg::Proto.Value) end function pretty_date(pp::PrettyPrinter, msg::Proto.DateValue) - flat676 = try_flat(pp, msg, pretty_date) - if !isnothing(flat676) - write(pp, flat676) + flat688 = try_flat(pp, msg, pretty_date) + if !isnothing(flat688) + write(pp, flat688) return nothing else - function _t1296(_dollar_dollar) + function _t1320(_dollar_dollar) return (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) end - _t1297 = _t1296(msg) - fields671 = _t1297 - unwrapped_fields672 = fields671 + _t1321 = _t1320(msg) + fields683 = _t1321 + unwrapped_fields684 = fields683 write(pp, "(") write(pp, "date") indent_sexp!(pp) newline(pp) - field673 = unwrapped_fields672[1] - write(pp, format_int(pp, field673)) + field685 = unwrapped_fields684[1] + write(pp, format_int(pp, field685)) newline(pp) - field674 = unwrapped_fields672[2] - write(pp, format_int(pp, field674)) + field686 = unwrapped_fields684[2] + write(pp, format_int(pp, field686)) newline(pp) - field675 = unwrapped_fields672[3] - write(pp, format_int(pp, field675)) + field687 = unwrapped_fields684[3] + write(pp, format_int(pp, field687)) dedent!(pp) write(pp, ")") end @@ -814,43 +818,43 @@ function pretty_date(pp::PrettyPrinter, msg::Proto.DateValue) end function pretty_datetime(pp::PrettyPrinter, msg::Proto.DateTimeValue) - flat687 = try_flat(pp, msg, pretty_datetime) - if !isnothing(flat687) - write(pp, flat687) + flat699 = try_flat(pp, msg, pretty_datetime) + if !isnothing(flat699) + write(pp, flat699) return nothing else - function _t1298(_dollar_dollar) + function _t1322(_dollar_dollar) return (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),) end - _t1299 = _t1298(msg) - fields677 = _t1299 - unwrapped_fields678 = fields677 + _t1323 = _t1322(msg) + fields689 = _t1323 + unwrapped_fields690 = fields689 write(pp, "(") write(pp, "datetime") indent_sexp!(pp) newline(pp) - field679 = unwrapped_fields678[1] - write(pp, format_int(pp, field679)) + field691 = unwrapped_fields690[1] + write(pp, format_int(pp, field691)) newline(pp) - field680 = unwrapped_fields678[2] - write(pp, format_int(pp, field680)) + field692 = unwrapped_fields690[2] + write(pp, format_int(pp, field692)) newline(pp) - field681 = unwrapped_fields678[3] - write(pp, format_int(pp, field681)) + field693 = unwrapped_fields690[3] + write(pp, format_int(pp, field693)) newline(pp) - field682 = unwrapped_fields678[4] - write(pp, format_int(pp, field682)) + field694 = unwrapped_fields690[4] + write(pp, format_int(pp, field694)) newline(pp) - field683 = unwrapped_fields678[5] - write(pp, format_int(pp, field683)) + field695 = unwrapped_fields690[5] + write(pp, format_int(pp, field695)) newline(pp) - field684 = unwrapped_fields678[6] - write(pp, format_int(pp, field684)) - field685 = unwrapped_fields678[7] - if !isnothing(field685) + field696 = unwrapped_fields690[6] + write(pp, format_int(pp, field696)) + field697 = unwrapped_fields690[7] + if !isnothing(field697) newline(pp) - opt_val686 = field685 - write(pp, format_int(pp, opt_val686)) + opt_val698 = field697 + write(pp, format_int(pp, opt_val698)) end dedent!(pp) write(pp, ")") @@ -859,32 +863,32 @@ function pretty_datetime(pp::PrettyPrinter, msg::Proto.DateTimeValue) end function pretty_boolean_value(pp::PrettyPrinter, msg::Bool) - function _t1300(_dollar_dollar) + function _t1324(_dollar_dollar) if _dollar_dollar - _t1301 = () + _t1325 = () else - _t1301 = nothing + _t1325 = nothing end - return _t1301 + return _t1325 end - _t1302 = _t1300(msg) - deconstruct_result690 = _t1302 - if !isnothing(deconstruct_result690) - unwrapped691 = deconstruct_result690 + _t1326 = _t1324(msg) + deconstruct_result702 = _t1326 + if !isnothing(deconstruct_result702) + unwrapped703 = deconstruct_result702 write(pp, "true") else - function _t1303(_dollar_dollar) + function _t1327(_dollar_dollar) if !_dollar_dollar - _t1304 = () + _t1328 = () else - _t1304 = nothing + _t1328 = nothing end - return _t1304 + return _t1328 end - _t1305 = _t1303(msg) - deconstruct_result688 = _t1305 - if !isnothing(deconstruct_result688) - unwrapped689 = deconstruct_result688 + _t1329 = _t1327(msg) + deconstruct_result700 = _t1329 + if !isnothing(deconstruct_result700) + unwrapped701 = deconstruct_result700 write(pp, "false") else throw(ParseError("No matching rule for boolean_value")) @@ -894,28 +898,28 @@ function pretty_boolean_value(pp::PrettyPrinter, msg::Bool) end function pretty_sync(pp::PrettyPrinter, msg::Proto.Sync) - flat696 = try_flat(pp, msg, pretty_sync) - if !isnothing(flat696) - write(pp, flat696) + flat708 = try_flat(pp, msg, pretty_sync) + if !isnothing(flat708) + write(pp, flat708) return nothing else - function _t1306(_dollar_dollar) + function _t1330(_dollar_dollar) return _dollar_dollar.fragments end - _t1307 = _t1306(msg) - fields692 = _t1307 - unwrapped_fields693 = fields692 + _t1331 = _t1330(msg) + fields704 = _t1331 + unwrapped_fields705 = fields704 write(pp, "(") write(pp, "sync") indent_sexp!(pp) - if !isempty(unwrapped_fields693) + if !isempty(unwrapped_fields705) newline(pp) - for (i1308, elem694) in enumerate(unwrapped_fields693) - i695 = i1308 - 1 - if (i695 > 0) + for (i1332, elem706) in enumerate(unwrapped_fields705) + i707 = i1332 - 1 + if (i707 > 0) newline(pp) end - pretty_fragment_id(pp, elem694) + pretty_fragment_id(pp, elem706) end end dedent!(pp) @@ -925,59 +929,59 @@ function pretty_sync(pp::PrettyPrinter, msg::Proto.Sync) end function pretty_fragment_id(pp::PrettyPrinter, msg::Proto.FragmentId) - flat699 = try_flat(pp, msg, pretty_fragment_id) - if !isnothing(flat699) - write(pp, flat699) + flat711 = try_flat(pp, msg, pretty_fragment_id) + if !isnothing(flat711) + write(pp, flat711) return nothing else - function _t1309(_dollar_dollar) + function _t1333(_dollar_dollar) return fragment_id_to_string(pp, _dollar_dollar) end - _t1310 = _t1309(msg) - fields697 = _t1310 - unwrapped_fields698 = fields697 + _t1334 = _t1333(msg) + fields709 = _t1334 + unwrapped_fields710 = fields709 write(pp, ":") - write(pp, unwrapped_fields698) + write(pp, unwrapped_fields710) end return nothing end function pretty_epoch(pp::PrettyPrinter, msg::Proto.Epoch) - flat706 = try_flat(pp, msg, pretty_epoch) - if !isnothing(flat706) - write(pp, flat706) + flat718 = try_flat(pp, msg, pretty_epoch) + if !isnothing(flat718) + write(pp, flat718) return nothing else - function _t1311(_dollar_dollar) + function _t1335(_dollar_dollar) if !isempty(_dollar_dollar.writes) - _t1312 = _dollar_dollar.writes + _t1336 = _dollar_dollar.writes else - _t1312 = nothing + _t1336 = nothing end if !isempty(_dollar_dollar.reads) - _t1313 = _dollar_dollar.reads + _t1337 = _dollar_dollar.reads else - _t1313 = nothing + _t1337 = nothing end - return (_t1312, _t1313,) + return (_t1336, _t1337,) end - _t1314 = _t1311(msg) - fields700 = _t1314 - unwrapped_fields701 = fields700 + _t1338 = _t1335(msg) + fields712 = _t1338 + unwrapped_fields713 = fields712 write(pp, "(") write(pp, "epoch") indent_sexp!(pp) - field702 = unwrapped_fields701[1] - if !isnothing(field702) + field714 = unwrapped_fields713[1] + if !isnothing(field714) newline(pp) - opt_val703 = field702 - pretty_epoch_writes(pp, opt_val703) + opt_val715 = field714 + pretty_epoch_writes(pp, opt_val715) end - field704 = unwrapped_fields701[2] - if !isnothing(field704) + field716 = unwrapped_fields713[2] + if !isnothing(field716) newline(pp) - opt_val705 = field704 - pretty_epoch_reads(pp, opt_val705) + opt_val717 = field716 + pretty_epoch_reads(pp, opt_val717) end dedent!(pp) write(pp, ")") @@ -986,23 +990,23 @@ function pretty_epoch(pp::PrettyPrinter, msg::Proto.Epoch) end function pretty_epoch_writes(pp::PrettyPrinter, msg::Vector{Proto.Write}) - flat710 = try_flat(pp, msg, pretty_epoch_writes) - if !isnothing(flat710) - write(pp, flat710) + flat722 = try_flat(pp, msg, pretty_epoch_writes) + if !isnothing(flat722) + write(pp, flat722) return nothing else - fields707 = msg + fields719 = msg write(pp, "(") write(pp, "writes") indent_sexp!(pp) - if !isempty(fields707) + if !isempty(fields719) newline(pp) - for (i1315, elem708) in enumerate(fields707) - i709 = i1315 - 1 - if (i709 > 0) + for (i1339, elem720) in enumerate(fields719) + i721 = i1339 - 1 + if (i721 > 0) newline(pp) end - pretty_write(pp, elem708) + pretty_write(pp, elem720) end end dedent!(pp) @@ -1012,66 +1016,66 @@ function pretty_epoch_writes(pp::PrettyPrinter, msg::Vector{Proto.Write}) end function pretty_write(pp::PrettyPrinter, msg::Proto.Write) - flat719 = try_flat(pp, msg, pretty_write) - if !isnothing(flat719) - write(pp, flat719) + flat731 = try_flat(pp, msg, pretty_write) + if !isnothing(flat731) + write(pp, flat731) return nothing else - function _t1316(_dollar_dollar) + function _t1340(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("define")) - _t1317 = _get_oneof_field(_dollar_dollar, :define) + _t1341 = _get_oneof_field(_dollar_dollar, :define) else - _t1317 = nothing + _t1341 = nothing end - return _t1317 + return _t1341 end - _t1318 = _t1316(msg) - deconstruct_result717 = _t1318 - if !isnothing(deconstruct_result717) - unwrapped718 = deconstruct_result717 - pretty_define(pp, unwrapped718) + _t1342 = _t1340(msg) + deconstruct_result729 = _t1342 + if !isnothing(deconstruct_result729) + unwrapped730 = deconstruct_result729 + pretty_define(pp, unwrapped730) else - function _t1319(_dollar_dollar) + function _t1343(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("undefine")) - _t1320 = _get_oneof_field(_dollar_dollar, :undefine) + _t1344 = _get_oneof_field(_dollar_dollar, :undefine) else - _t1320 = nothing + _t1344 = nothing end - return _t1320 + return _t1344 end - _t1321 = _t1319(msg) - deconstruct_result715 = _t1321 - if !isnothing(deconstruct_result715) - unwrapped716 = deconstruct_result715 - pretty_undefine(pp, unwrapped716) + _t1345 = _t1343(msg) + deconstruct_result727 = _t1345 + if !isnothing(deconstruct_result727) + unwrapped728 = deconstruct_result727 + pretty_undefine(pp, unwrapped728) else - function _t1322(_dollar_dollar) + function _t1346(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("context")) - _t1323 = _get_oneof_field(_dollar_dollar, :context) + _t1347 = _get_oneof_field(_dollar_dollar, :context) else - _t1323 = nothing + _t1347 = nothing end - return _t1323 + return _t1347 end - _t1324 = _t1322(msg) - deconstruct_result713 = _t1324 - if !isnothing(deconstruct_result713) - unwrapped714 = deconstruct_result713 - pretty_context(pp, unwrapped714) + _t1348 = _t1346(msg) + deconstruct_result725 = _t1348 + if !isnothing(deconstruct_result725) + unwrapped726 = deconstruct_result725 + pretty_context(pp, unwrapped726) else - function _t1325(_dollar_dollar) + function _t1349(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("snapshot")) - _t1326 = _get_oneof_field(_dollar_dollar, :snapshot) + _t1350 = _get_oneof_field(_dollar_dollar, :snapshot) else - _t1326 = nothing + _t1350 = nothing end - return _t1326 + return _t1350 end - _t1327 = _t1325(msg) - deconstruct_result711 = _t1327 - if !isnothing(deconstruct_result711) - unwrapped712 = deconstruct_result711 - pretty_snapshot(pp, unwrapped712) + _t1351 = _t1349(msg) + deconstruct_result723 = _t1351 + if !isnothing(deconstruct_result723) + unwrapped724 = deconstruct_result723 + pretty_snapshot(pp, unwrapped724) else throw(ParseError("No matching rule for write")) end @@ -1083,22 +1087,22 @@ function pretty_write(pp::PrettyPrinter, msg::Proto.Write) end function pretty_define(pp::PrettyPrinter, msg::Proto.Define) - flat722 = try_flat(pp, msg, pretty_define) - if !isnothing(flat722) - write(pp, flat722) + flat734 = try_flat(pp, msg, pretty_define) + if !isnothing(flat734) + write(pp, flat734) return nothing else - function _t1328(_dollar_dollar) + function _t1352(_dollar_dollar) return _dollar_dollar.fragment end - _t1329 = _t1328(msg) - fields720 = _t1329 - unwrapped_fields721 = fields720 + _t1353 = _t1352(msg) + fields732 = _t1353 + unwrapped_fields733 = fields732 write(pp, "(") write(pp, "define") indent_sexp!(pp) newline(pp) - pretty_fragment(pp, unwrapped_fields721) + pretty_fragment(pp, unwrapped_fields733) dedent!(pp) write(pp, ")") end @@ -1106,33 +1110,33 @@ function pretty_define(pp::PrettyPrinter, msg::Proto.Define) end function pretty_fragment(pp::PrettyPrinter, msg::Proto.Fragment) - flat729 = try_flat(pp, msg, pretty_fragment) - if !isnothing(flat729) - write(pp, flat729) + flat741 = try_flat(pp, msg, pretty_fragment) + if !isnothing(flat741) + write(pp, flat741) return nothing else - function _t1330(_dollar_dollar) + function _t1354(_dollar_dollar) start_pretty_fragment(pp, _dollar_dollar) return (_dollar_dollar.id, _dollar_dollar.declarations,) end - _t1331 = _t1330(msg) - fields723 = _t1331 - unwrapped_fields724 = fields723 + _t1355 = _t1354(msg) + fields735 = _t1355 + unwrapped_fields736 = fields735 write(pp, "(") write(pp, "fragment") indent_sexp!(pp) newline(pp) - field725 = unwrapped_fields724[1] - pretty_new_fragment_id(pp, field725) - field726 = unwrapped_fields724[2] - if !isempty(field726) + field737 = unwrapped_fields736[1] + pretty_new_fragment_id(pp, field737) + field738 = unwrapped_fields736[2] + if !isempty(field738) newline(pp) - for (i1332, elem727) in enumerate(field726) - i728 = i1332 - 1 - if (i728 > 0) + for (i1356, elem739) in enumerate(field738) + i740 = i1356 - 1 + if (i740 > 0) newline(pp) end - pretty_declaration(pp, elem727) + pretty_declaration(pp, elem739) end end dedent!(pp) @@ -1142,78 +1146,78 @@ function pretty_fragment(pp::PrettyPrinter, msg::Proto.Fragment) end function pretty_new_fragment_id(pp::PrettyPrinter, msg::Proto.FragmentId) - flat731 = try_flat(pp, msg, pretty_new_fragment_id) - if !isnothing(flat731) - write(pp, flat731) + flat743 = try_flat(pp, msg, pretty_new_fragment_id) + if !isnothing(flat743) + write(pp, flat743) return nothing else - fields730 = msg - pretty_fragment_id(pp, fields730) + fields742 = msg + pretty_fragment_id(pp, fields742) end return nothing end function pretty_declaration(pp::PrettyPrinter, msg::Proto.Declaration) - flat740 = try_flat(pp, msg, pretty_declaration) - if !isnothing(flat740) - write(pp, flat740) + flat752 = try_flat(pp, msg, pretty_declaration) + if !isnothing(flat752) + write(pp, flat752) return nothing else - function _t1333(_dollar_dollar) + function _t1357(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("def")) - _t1334 = _get_oneof_field(_dollar_dollar, :def) + _t1358 = _get_oneof_field(_dollar_dollar, :def) else - _t1334 = nothing + _t1358 = nothing end - return _t1334 + return _t1358 end - _t1335 = _t1333(msg) - deconstruct_result738 = _t1335 - if !isnothing(deconstruct_result738) - unwrapped739 = deconstruct_result738 - pretty_def(pp, unwrapped739) + _t1359 = _t1357(msg) + deconstruct_result750 = _t1359 + if !isnothing(deconstruct_result750) + unwrapped751 = deconstruct_result750 + pretty_def(pp, unwrapped751) else - function _t1336(_dollar_dollar) + function _t1360(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("algorithm")) - _t1337 = _get_oneof_field(_dollar_dollar, :algorithm) + _t1361 = _get_oneof_field(_dollar_dollar, :algorithm) else - _t1337 = nothing + _t1361 = nothing end - return _t1337 + return _t1361 end - _t1338 = _t1336(msg) - deconstruct_result736 = _t1338 - if !isnothing(deconstruct_result736) - unwrapped737 = deconstruct_result736 - pretty_algorithm(pp, unwrapped737) + _t1362 = _t1360(msg) + deconstruct_result748 = _t1362 + if !isnothing(deconstruct_result748) + unwrapped749 = deconstruct_result748 + pretty_algorithm(pp, unwrapped749) else - function _t1339(_dollar_dollar) + function _t1363(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("constraint")) - _t1340 = _get_oneof_field(_dollar_dollar, :constraint) + _t1364 = _get_oneof_field(_dollar_dollar, :constraint) else - _t1340 = nothing + _t1364 = nothing end - return _t1340 + return _t1364 end - _t1341 = _t1339(msg) - deconstruct_result734 = _t1341 - if !isnothing(deconstruct_result734) - unwrapped735 = deconstruct_result734 - pretty_constraint(pp, unwrapped735) + _t1365 = _t1363(msg) + deconstruct_result746 = _t1365 + if !isnothing(deconstruct_result746) + unwrapped747 = deconstruct_result746 + pretty_constraint(pp, unwrapped747) else - function _t1342(_dollar_dollar) + function _t1366(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("data")) - _t1343 = _get_oneof_field(_dollar_dollar, :data) + _t1367 = _get_oneof_field(_dollar_dollar, :data) else - _t1343 = nothing + _t1367 = nothing end - return _t1343 + return _t1367 end - _t1344 = _t1342(msg) - deconstruct_result732 = _t1344 - if !isnothing(deconstruct_result732) - unwrapped733 = deconstruct_result732 - pretty_data(pp, unwrapped733) + _t1368 = _t1366(msg) + deconstruct_result744 = _t1368 + if !isnothing(deconstruct_result744) + unwrapped745 = deconstruct_result744 + pretty_data(pp, unwrapped745) else throw(ParseError("No matching rule for declaration")) end @@ -1225,36 +1229,36 @@ function pretty_declaration(pp::PrettyPrinter, msg::Proto.Declaration) end function pretty_def(pp::PrettyPrinter, msg::Proto.Def) - flat747 = try_flat(pp, msg, pretty_def) - if !isnothing(flat747) - write(pp, flat747) + flat759 = try_flat(pp, msg, pretty_def) + if !isnothing(flat759) + write(pp, flat759) return nothing else - function _t1345(_dollar_dollar) + function _t1369(_dollar_dollar) if !isempty(_dollar_dollar.attrs) - _t1346 = _dollar_dollar.attrs + _t1370 = _dollar_dollar.attrs else - _t1346 = nothing + _t1370 = nothing end - return (_dollar_dollar.name, _dollar_dollar.body, _t1346,) + return (_dollar_dollar.name, _dollar_dollar.body, _t1370,) end - _t1347 = _t1345(msg) - fields741 = _t1347 - unwrapped_fields742 = fields741 + _t1371 = _t1369(msg) + fields753 = _t1371 + unwrapped_fields754 = fields753 write(pp, "(") write(pp, "def") indent_sexp!(pp) newline(pp) - field743 = unwrapped_fields742[1] - pretty_relation_id(pp, field743) + field755 = unwrapped_fields754[1] + pretty_relation_id(pp, field755) newline(pp) - field744 = unwrapped_fields742[2] - pretty_abstraction(pp, field744) - field745 = unwrapped_fields742[3] - if !isnothing(field745) + field756 = unwrapped_fields754[2] + pretty_abstraction(pp, field756) + field757 = unwrapped_fields754[3] + if !isnothing(field757) newline(pp) - opt_val746 = field745 - pretty_attrs(pp, opt_val746) + opt_val758 = field757 + pretty_attrs(pp, opt_val758) end dedent!(pp) write(pp, ")") @@ -1263,36 +1267,36 @@ function pretty_def(pp::PrettyPrinter, msg::Proto.Def) end function pretty_relation_id(pp::PrettyPrinter, msg::Proto.RelationId) - flat752 = try_flat(pp, msg, pretty_relation_id) - if !isnothing(flat752) - write(pp, flat752) + flat764 = try_flat(pp, msg, pretty_relation_id) + if !isnothing(flat764) + write(pp, flat764) return nothing else - function _t1348(_dollar_dollar) + function _t1372(_dollar_dollar) if !isnothing(relation_id_to_string(pp, _dollar_dollar)) - _t1350 = deconstruct_relation_id_string(pp, _dollar_dollar) - _t1349 = _t1350 + _t1374 = deconstruct_relation_id_string(pp, _dollar_dollar) + _t1373 = _t1374 else - _t1349 = nothing + _t1373 = nothing end - return _t1349 + return _t1373 end - _t1351 = _t1348(msg) - deconstruct_result750 = _t1351 - if !isnothing(deconstruct_result750) - unwrapped751 = deconstruct_result750 + _t1375 = _t1372(msg) + deconstruct_result762 = _t1375 + if !isnothing(deconstruct_result762) + unwrapped763 = deconstruct_result762 write(pp, ":") - write(pp, unwrapped751) + write(pp, unwrapped763) else - function _t1352(_dollar_dollar) - _t1353 = deconstruct_relation_id_uint128(pp, _dollar_dollar) - return _t1353 + function _t1376(_dollar_dollar) + _t1377 = deconstruct_relation_id_uint128(pp, _dollar_dollar) + return _t1377 end - _t1354 = _t1352(msg) - deconstruct_result748 = _t1354 - if !isnothing(deconstruct_result748) - unwrapped749 = deconstruct_result748 - write(pp, format_uint128(pp, unwrapped749)) + _t1378 = _t1376(msg) + deconstruct_result760 = _t1378 + if !isnothing(deconstruct_result760) + unwrapped761 = deconstruct_result760 + write(pp, format_uint128(pp, unwrapped761)) else throw(ParseError("No matching rule for relation_id")) end @@ -1302,25 +1306,25 @@ function pretty_relation_id(pp::PrettyPrinter, msg::Proto.RelationId) end function pretty_abstraction(pp::PrettyPrinter, msg::Proto.Abstraction) - flat757 = try_flat(pp, msg, pretty_abstraction) - if !isnothing(flat757) - write(pp, flat757) + flat769 = try_flat(pp, msg, pretty_abstraction) + if !isnothing(flat769) + write(pp, flat769) return nothing else - function _t1355(_dollar_dollar) - _t1356 = deconstruct_bindings(pp, _dollar_dollar) - return (_t1356, _dollar_dollar.value,) + function _t1379(_dollar_dollar) + _t1380 = deconstruct_bindings(pp, _dollar_dollar) + return (_t1380, _dollar_dollar.value,) end - _t1357 = _t1355(msg) - fields753 = _t1357 - unwrapped_fields754 = fields753 + _t1381 = _t1379(msg) + fields765 = _t1381 + unwrapped_fields766 = fields765 write(pp, "(") indent!(pp) - field755 = unwrapped_fields754[1] - pretty_bindings(pp, field755) + field767 = unwrapped_fields766[1] + pretty_bindings(pp, field767) newline(pp) - field756 = unwrapped_fields754[2] - pretty_formula(pp, field756) + field768 = unwrapped_fields766[2] + pretty_formula(pp, field768) dedent!(pp) write(pp, ")") end @@ -1328,37 +1332,37 @@ function pretty_abstraction(pp::PrettyPrinter, msg::Proto.Abstraction) end function pretty_bindings(pp::PrettyPrinter, msg::Tuple{Vector{Proto.Binding}, Vector{Proto.Binding}}) - flat765 = try_flat(pp, msg, pretty_bindings) - if !isnothing(flat765) - write(pp, flat765) + flat777 = try_flat(pp, msg, pretty_bindings) + if !isnothing(flat777) + write(pp, flat777) return nothing else - function _t1358(_dollar_dollar) + function _t1382(_dollar_dollar) if !isempty(_dollar_dollar[2]) - _t1359 = _dollar_dollar[2] + _t1383 = _dollar_dollar[2] else - _t1359 = nothing + _t1383 = nothing end - return (_dollar_dollar[1], _t1359,) + return (_dollar_dollar[1], _t1383,) end - _t1360 = _t1358(msg) - fields758 = _t1360 - unwrapped_fields759 = fields758 + _t1384 = _t1382(msg) + fields770 = _t1384 + unwrapped_fields771 = fields770 write(pp, "[") indent!(pp) - field760 = unwrapped_fields759[1] - for (i1361, elem761) in enumerate(field760) - i762 = i1361 - 1 - if (i762 > 0) + field772 = unwrapped_fields771[1] + for (i1385, elem773) in enumerate(field772) + i774 = i1385 - 1 + if (i774 > 0) newline(pp) end - pretty_binding(pp, elem761) + pretty_binding(pp, elem773) end - field763 = unwrapped_fields759[2] - if !isnothing(field763) + field775 = unwrapped_fields771[2] + if !isnothing(field775) newline(pp) - opt_val764 = field763 - pretty_value_bindings(pp, opt_val764) + opt_val776 = field775 + pretty_value_bindings(pp, opt_val776) end dedent!(pp) write(pp, "]") @@ -1367,185 +1371,185 @@ function pretty_bindings(pp::PrettyPrinter, msg::Tuple{Vector{Proto.Binding}, Ve end function pretty_binding(pp::PrettyPrinter, msg::Proto.Binding) - flat770 = try_flat(pp, msg, pretty_binding) - if !isnothing(flat770) - write(pp, flat770) + flat782 = try_flat(pp, msg, pretty_binding) + if !isnothing(flat782) + write(pp, flat782) return nothing else - function _t1362(_dollar_dollar) + function _t1386(_dollar_dollar) return (_dollar_dollar.var.name, _dollar_dollar.var"#type",) end - _t1363 = _t1362(msg) - fields766 = _t1363 - unwrapped_fields767 = fields766 - field768 = unwrapped_fields767[1] - write(pp, field768) + _t1387 = _t1386(msg) + fields778 = _t1387 + unwrapped_fields779 = fields778 + field780 = unwrapped_fields779[1] + write(pp, field780) write(pp, "::") - field769 = unwrapped_fields767[2] - pretty_type(pp, field769) + field781 = unwrapped_fields779[2] + pretty_type(pp, field781) end return nothing end function pretty_type(pp::PrettyPrinter, msg::Proto.var"#Type") - flat793 = try_flat(pp, msg, pretty_type) - if !isnothing(flat793) - write(pp, flat793) + flat805 = try_flat(pp, msg, pretty_type) + if !isnothing(flat805) + write(pp, flat805) return nothing else - function _t1364(_dollar_dollar) + function _t1388(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("unspecified_type")) - _t1365 = _get_oneof_field(_dollar_dollar, :unspecified_type) + _t1389 = _get_oneof_field(_dollar_dollar, :unspecified_type) else - _t1365 = nothing + _t1389 = nothing end - return _t1365 + return _t1389 end - _t1366 = _t1364(msg) - deconstruct_result791 = _t1366 - if !isnothing(deconstruct_result791) - unwrapped792 = deconstruct_result791 - pretty_unspecified_type(pp, unwrapped792) + _t1390 = _t1388(msg) + deconstruct_result803 = _t1390 + if !isnothing(deconstruct_result803) + unwrapped804 = deconstruct_result803 + pretty_unspecified_type(pp, unwrapped804) else - function _t1367(_dollar_dollar) + function _t1391(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("string_type")) - _t1368 = _get_oneof_field(_dollar_dollar, :string_type) + _t1392 = _get_oneof_field(_dollar_dollar, :string_type) else - _t1368 = nothing + _t1392 = nothing end - return _t1368 + return _t1392 end - _t1369 = _t1367(msg) - deconstruct_result789 = _t1369 - if !isnothing(deconstruct_result789) - unwrapped790 = deconstruct_result789 - pretty_string_type(pp, unwrapped790) + _t1393 = _t1391(msg) + deconstruct_result801 = _t1393 + if !isnothing(deconstruct_result801) + unwrapped802 = deconstruct_result801 + pretty_string_type(pp, unwrapped802) else - function _t1370(_dollar_dollar) + function _t1394(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("int_type")) - _t1371 = _get_oneof_field(_dollar_dollar, :int_type) + _t1395 = _get_oneof_field(_dollar_dollar, :int_type) else - _t1371 = nothing + _t1395 = nothing end - return _t1371 + return _t1395 end - _t1372 = _t1370(msg) - deconstruct_result787 = _t1372 - if !isnothing(deconstruct_result787) - unwrapped788 = deconstruct_result787 - pretty_int_type(pp, unwrapped788) + _t1396 = _t1394(msg) + deconstruct_result799 = _t1396 + if !isnothing(deconstruct_result799) + unwrapped800 = deconstruct_result799 + pretty_int_type(pp, unwrapped800) else - function _t1373(_dollar_dollar) + function _t1397(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("float_type")) - _t1374 = _get_oneof_field(_dollar_dollar, :float_type) + _t1398 = _get_oneof_field(_dollar_dollar, :float_type) else - _t1374 = nothing + _t1398 = nothing end - return _t1374 + return _t1398 end - _t1375 = _t1373(msg) - deconstruct_result785 = _t1375 - if !isnothing(deconstruct_result785) - unwrapped786 = deconstruct_result785 - pretty_float_type(pp, unwrapped786) + _t1399 = _t1397(msg) + deconstruct_result797 = _t1399 + if !isnothing(deconstruct_result797) + unwrapped798 = deconstruct_result797 + pretty_float_type(pp, unwrapped798) else - function _t1376(_dollar_dollar) + function _t1400(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("uint128_type")) - _t1377 = _get_oneof_field(_dollar_dollar, :uint128_type) + _t1401 = _get_oneof_field(_dollar_dollar, :uint128_type) else - _t1377 = nothing + _t1401 = nothing end - return _t1377 + return _t1401 end - _t1378 = _t1376(msg) - deconstruct_result783 = _t1378 - if !isnothing(deconstruct_result783) - unwrapped784 = deconstruct_result783 - pretty_uint128_type(pp, unwrapped784) + _t1402 = _t1400(msg) + deconstruct_result795 = _t1402 + if !isnothing(deconstruct_result795) + unwrapped796 = deconstruct_result795 + pretty_uint128_type(pp, unwrapped796) else - function _t1379(_dollar_dollar) + function _t1403(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("int128_type")) - _t1380 = _get_oneof_field(_dollar_dollar, :int128_type) + _t1404 = _get_oneof_field(_dollar_dollar, :int128_type) else - _t1380 = nothing + _t1404 = nothing end - return _t1380 + return _t1404 end - _t1381 = _t1379(msg) - deconstruct_result781 = _t1381 - if !isnothing(deconstruct_result781) - unwrapped782 = deconstruct_result781 - pretty_int128_type(pp, unwrapped782) + _t1405 = _t1403(msg) + deconstruct_result793 = _t1405 + if !isnothing(deconstruct_result793) + unwrapped794 = deconstruct_result793 + pretty_int128_type(pp, unwrapped794) else - function _t1382(_dollar_dollar) + function _t1406(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("date_type")) - _t1383 = _get_oneof_field(_dollar_dollar, :date_type) + _t1407 = _get_oneof_field(_dollar_dollar, :date_type) else - _t1383 = nothing + _t1407 = nothing end - return _t1383 + return _t1407 end - _t1384 = _t1382(msg) - deconstruct_result779 = _t1384 - if !isnothing(deconstruct_result779) - unwrapped780 = deconstruct_result779 - pretty_date_type(pp, unwrapped780) + _t1408 = _t1406(msg) + deconstruct_result791 = _t1408 + if !isnothing(deconstruct_result791) + unwrapped792 = deconstruct_result791 + pretty_date_type(pp, unwrapped792) else - function _t1385(_dollar_dollar) + function _t1409(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("datetime_type")) - _t1386 = _get_oneof_field(_dollar_dollar, :datetime_type) + _t1410 = _get_oneof_field(_dollar_dollar, :datetime_type) else - _t1386 = nothing + _t1410 = nothing end - return _t1386 + return _t1410 end - _t1387 = _t1385(msg) - deconstruct_result777 = _t1387 - if !isnothing(deconstruct_result777) - unwrapped778 = deconstruct_result777 - pretty_datetime_type(pp, unwrapped778) + _t1411 = _t1409(msg) + deconstruct_result789 = _t1411 + if !isnothing(deconstruct_result789) + unwrapped790 = deconstruct_result789 + pretty_datetime_type(pp, unwrapped790) else - function _t1388(_dollar_dollar) + function _t1412(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("missing_type")) - _t1389 = _get_oneof_field(_dollar_dollar, :missing_type) + _t1413 = _get_oneof_field(_dollar_dollar, :missing_type) else - _t1389 = nothing + _t1413 = nothing end - return _t1389 + return _t1413 end - _t1390 = _t1388(msg) - deconstruct_result775 = _t1390 - if !isnothing(deconstruct_result775) - unwrapped776 = deconstruct_result775 - pretty_missing_type(pp, unwrapped776) + _t1414 = _t1412(msg) + deconstruct_result787 = _t1414 + if !isnothing(deconstruct_result787) + unwrapped788 = deconstruct_result787 + pretty_missing_type(pp, unwrapped788) else - function _t1391(_dollar_dollar) + function _t1415(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("decimal_type")) - _t1392 = _get_oneof_field(_dollar_dollar, :decimal_type) + _t1416 = _get_oneof_field(_dollar_dollar, :decimal_type) else - _t1392 = nothing + _t1416 = nothing end - return _t1392 + return _t1416 end - _t1393 = _t1391(msg) - deconstruct_result773 = _t1393 - if !isnothing(deconstruct_result773) - unwrapped774 = deconstruct_result773 - pretty_decimal_type(pp, unwrapped774) + _t1417 = _t1415(msg) + deconstruct_result785 = _t1417 + if !isnothing(deconstruct_result785) + unwrapped786 = deconstruct_result785 + pretty_decimal_type(pp, unwrapped786) else - function _t1394(_dollar_dollar) + function _t1418(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("boolean_type")) - _t1395 = _get_oneof_field(_dollar_dollar, :boolean_type) + _t1419 = _get_oneof_field(_dollar_dollar, :boolean_type) else - _t1395 = nothing + _t1419 = nothing end - return _t1395 + return _t1419 end - _t1396 = _t1394(msg) - deconstruct_result771 = _t1396 - if !isnothing(deconstruct_result771) - unwrapped772 = deconstruct_result771 - pretty_boolean_type(pp, unwrapped772) + _t1420 = _t1418(msg) + deconstruct_result783 = _t1420 + if !isnothing(deconstruct_result783) + unwrapped784 = deconstruct_result783 + pretty_boolean_type(pp, unwrapped784) else throw(ParseError("No matching rule for type")) end @@ -1564,80 +1568,80 @@ function pretty_type(pp::PrettyPrinter, msg::Proto.var"#Type") end function pretty_unspecified_type(pp::PrettyPrinter, msg::Proto.UnspecifiedType) - fields794 = msg + fields806 = msg write(pp, "UNKNOWN") return nothing end function pretty_string_type(pp::PrettyPrinter, msg::Proto.StringType) - fields795 = msg + fields807 = msg write(pp, "STRING") return nothing end function pretty_int_type(pp::PrettyPrinter, msg::Proto.IntType) - fields796 = msg + fields808 = msg write(pp, "INT") return nothing end function pretty_float_type(pp::PrettyPrinter, msg::Proto.FloatType) - fields797 = msg + fields809 = msg write(pp, "FLOAT") return nothing end function pretty_uint128_type(pp::PrettyPrinter, msg::Proto.UInt128Type) - fields798 = msg + fields810 = msg write(pp, "UINT128") return nothing end function pretty_int128_type(pp::PrettyPrinter, msg::Proto.Int128Type) - fields799 = msg + fields811 = msg write(pp, "INT128") return nothing end function pretty_date_type(pp::PrettyPrinter, msg::Proto.DateType) - fields800 = msg + fields812 = msg write(pp, "DATE") return nothing end function pretty_datetime_type(pp::PrettyPrinter, msg::Proto.DateTimeType) - fields801 = msg + fields813 = msg write(pp, "DATETIME") return nothing end function pretty_missing_type(pp::PrettyPrinter, msg::Proto.MissingType) - fields802 = msg + fields814 = msg write(pp, "MISSING") return nothing end function pretty_decimal_type(pp::PrettyPrinter, msg::Proto.DecimalType) - flat807 = try_flat(pp, msg, pretty_decimal_type) - if !isnothing(flat807) - write(pp, flat807) + flat819 = try_flat(pp, msg, pretty_decimal_type) + if !isnothing(flat819) + write(pp, flat819) return nothing else - function _t1397(_dollar_dollar) + function _t1421(_dollar_dollar) return (Int64(_dollar_dollar.precision), Int64(_dollar_dollar.scale),) end - _t1398 = _t1397(msg) - fields803 = _t1398 - unwrapped_fields804 = fields803 + _t1422 = _t1421(msg) + fields815 = _t1422 + unwrapped_fields816 = fields815 write(pp, "(") write(pp, "DECIMAL") indent_sexp!(pp) newline(pp) - field805 = unwrapped_fields804[1] - write(pp, format_int(pp, field805)) + field817 = unwrapped_fields816[1] + write(pp, format_int(pp, field817)) newline(pp) - field806 = unwrapped_fields804[2] - write(pp, format_int(pp, field806)) + field818 = unwrapped_fields816[2] + write(pp, format_int(pp, field818)) dedent!(pp) write(pp, ")") end @@ -1645,27 +1649,27 @@ function pretty_decimal_type(pp::PrettyPrinter, msg::Proto.DecimalType) end function pretty_boolean_type(pp::PrettyPrinter, msg::Proto.BooleanType) - fields808 = msg + fields820 = msg write(pp, "BOOLEAN") return nothing end function pretty_value_bindings(pp::PrettyPrinter, msg::Vector{Proto.Binding}) - flat812 = try_flat(pp, msg, pretty_value_bindings) - if !isnothing(flat812) - write(pp, flat812) + flat824 = try_flat(pp, msg, pretty_value_bindings) + if !isnothing(flat824) + write(pp, flat824) return nothing else - fields809 = msg + fields821 = msg write(pp, "|") - if !isempty(fields809) + if !isempty(fields821) write(pp, " ") - for (i1399, elem810) in enumerate(fields809) - i811 = i1399 - 1 - if (i811 > 0) + for (i1423, elem822) in enumerate(fields821) + i823 = i1423 - 1 + if (i823 > 0) newline(pp) end - pretty_binding(pp, elem810) + pretty_binding(pp, elem822) end end end @@ -1673,192 +1677,192 @@ function pretty_value_bindings(pp::PrettyPrinter, msg::Vector{Proto.Binding}) end function pretty_formula(pp::PrettyPrinter, msg::Proto.Formula) - flat839 = try_flat(pp, msg, pretty_formula) - if !isnothing(flat839) - write(pp, flat839) + flat851 = try_flat(pp, msg, pretty_formula) + if !isnothing(flat851) + write(pp, flat851) return nothing else - function _t1400(_dollar_dollar) + function _t1424(_dollar_dollar) if (_has_proto_field(_dollar_dollar, Symbol("conjunction")) && isempty(_get_oneof_field(_dollar_dollar, :conjunction).args)) - _t1401 = _get_oneof_field(_dollar_dollar, :conjunction) + _t1425 = _get_oneof_field(_dollar_dollar, :conjunction) else - _t1401 = nothing + _t1425 = nothing end - return _t1401 + return _t1425 end - _t1402 = _t1400(msg) - deconstruct_result837 = _t1402 - if !isnothing(deconstruct_result837) - unwrapped838 = deconstruct_result837 - pretty_true(pp, unwrapped838) + _t1426 = _t1424(msg) + deconstruct_result849 = _t1426 + if !isnothing(deconstruct_result849) + unwrapped850 = deconstruct_result849 + pretty_true(pp, unwrapped850) else - function _t1403(_dollar_dollar) + function _t1427(_dollar_dollar) if (_has_proto_field(_dollar_dollar, Symbol("disjunction")) && isempty(_get_oneof_field(_dollar_dollar, :disjunction).args)) - _t1404 = _get_oneof_field(_dollar_dollar, :disjunction) + _t1428 = _get_oneof_field(_dollar_dollar, :disjunction) else - _t1404 = nothing + _t1428 = nothing end - return _t1404 + return _t1428 end - _t1405 = _t1403(msg) - deconstruct_result835 = _t1405 - if !isnothing(deconstruct_result835) - unwrapped836 = deconstruct_result835 - pretty_false(pp, unwrapped836) + _t1429 = _t1427(msg) + deconstruct_result847 = _t1429 + if !isnothing(deconstruct_result847) + unwrapped848 = deconstruct_result847 + pretty_false(pp, unwrapped848) else - function _t1406(_dollar_dollar) + function _t1430(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("exists")) - _t1407 = _get_oneof_field(_dollar_dollar, :exists) + _t1431 = _get_oneof_field(_dollar_dollar, :exists) else - _t1407 = nothing + _t1431 = nothing end - return _t1407 + return _t1431 end - _t1408 = _t1406(msg) - deconstruct_result833 = _t1408 - if !isnothing(deconstruct_result833) - unwrapped834 = deconstruct_result833 - pretty_exists(pp, unwrapped834) + _t1432 = _t1430(msg) + deconstruct_result845 = _t1432 + if !isnothing(deconstruct_result845) + unwrapped846 = deconstruct_result845 + pretty_exists(pp, unwrapped846) else - function _t1409(_dollar_dollar) + function _t1433(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("reduce")) - _t1410 = _get_oneof_field(_dollar_dollar, :reduce) + _t1434 = _get_oneof_field(_dollar_dollar, :reduce) else - _t1410 = nothing + _t1434 = nothing end - return _t1410 + return _t1434 end - _t1411 = _t1409(msg) - deconstruct_result831 = _t1411 - if !isnothing(deconstruct_result831) - unwrapped832 = deconstruct_result831 - pretty_reduce(pp, unwrapped832) + _t1435 = _t1433(msg) + deconstruct_result843 = _t1435 + if !isnothing(deconstruct_result843) + unwrapped844 = deconstruct_result843 + pretty_reduce(pp, unwrapped844) else - function _t1412(_dollar_dollar) + function _t1436(_dollar_dollar) if (_has_proto_field(_dollar_dollar, Symbol("conjunction")) && !isempty(_get_oneof_field(_dollar_dollar, :conjunction).args)) - _t1413 = _get_oneof_field(_dollar_dollar, :conjunction) + _t1437 = _get_oneof_field(_dollar_dollar, :conjunction) else - _t1413 = nothing + _t1437 = nothing end - return _t1413 + return _t1437 end - _t1414 = _t1412(msg) - deconstruct_result829 = _t1414 - if !isnothing(deconstruct_result829) - unwrapped830 = deconstruct_result829 - pretty_conjunction(pp, unwrapped830) + _t1438 = _t1436(msg) + deconstruct_result841 = _t1438 + if !isnothing(deconstruct_result841) + unwrapped842 = deconstruct_result841 + pretty_conjunction(pp, unwrapped842) else - function _t1415(_dollar_dollar) + function _t1439(_dollar_dollar) if (_has_proto_field(_dollar_dollar, Symbol("disjunction")) && !isempty(_get_oneof_field(_dollar_dollar, :disjunction).args)) - _t1416 = _get_oneof_field(_dollar_dollar, :disjunction) + _t1440 = _get_oneof_field(_dollar_dollar, :disjunction) else - _t1416 = nothing + _t1440 = nothing end - return _t1416 + return _t1440 end - _t1417 = _t1415(msg) - deconstruct_result827 = _t1417 - if !isnothing(deconstruct_result827) - unwrapped828 = deconstruct_result827 - pretty_disjunction(pp, unwrapped828) + _t1441 = _t1439(msg) + deconstruct_result839 = _t1441 + if !isnothing(deconstruct_result839) + unwrapped840 = deconstruct_result839 + pretty_disjunction(pp, unwrapped840) else - function _t1418(_dollar_dollar) + function _t1442(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("not")) - _t1419 = _get_oneof_field(_dollar_dollar, :not) + _t1443 = _get_oneof_field(_dollar_dollar, :not) else - _t1419 = nothing + _t1443 = nothing end - return _t1419 + return _t1443 end - _t1420 = _t1418(msg) - deconstruct_result825 = _t1420 - if !isnothing(deconstruct_result825) - unwrapped826 = deconstruct_result825 - pretty_not(pp, unwrapped826) + _t1444 = _t1442(msg) + deconstruct_result837 = _t1444 + if !isnothing(deconstruct_result837) + unwrapped838 = deconstruct_result837 + pretty_not(pp, unwrapped838) else - function _t1421(_dollar_dollar) + function _t1445(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("ffi")) - _t1422 = _get_oneof_field(_dollar_dollar, :ffi) + _t1446 = _get_oneof_field(_dollar_dollar, :ffi) else - _t1422 = nothing + _t1446 = nothing end - return _t1422 + return _t1446 end - _t1423 = _t1421(msg) - deconstruct_result823 = _t1423 - if !isnothing(deconstruct_result823) - unwrapped824 = deconstruct_result823 - pretty_ffi(pp, unwrapped824) + _t1447 = _t1445(msg) + deconstruct_result835 = _t1447 + if !isnothing(deconstruct_result835) + unwrapped836 = deconstruct_result835 + pretty_ffi(pp, unwrapped836) else - function _t1424(_dollar_dollar) + function _t1448(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("atom")) - _t1425 = _get_oneof_field(_dollar_dollar, :atom) + _t1449 = _get_oneof_field(_dollar_dollar, :atom) else - _t1425 = nothing + _t1449 = nothing end - return _t1425 + return _t1449 end - _t1426 = _t1424(msg) - deconstruct_result821 = _t1426 - if !isnothing(deconstruct_result821) - unwrapped822 = deconstruct_result821 - pretty_atom(pp, unwrapped822) + _t1450 = _t1448(msg) + deconstruct_result833 = _t1450 + if !isnothing(deconstruct_result833) + unwrapped834 = deconstruct_result833 + pretty_atom(pp, unwrapped834) else - function _t1427(_dollar_dollar) + function _t1451(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("pragma")) - _t1428 = _get_oneof_field(_dollar_dollar, :pragma) + _t1452 = _get_oneof_field(_dollar_dollar, :pragma) else - _t1428 = nothing + _t1452 = nothing end - return _t1428 + return _t1452 end - _t1429 = _t1427(msg) - deconstruct_result819 = _t1429 - if !isnothing(deconstruct_result819) - unwrapped820 = deconstruct_result819 - pretty_pragma(pp, unwrapped820) + _t1453 = _t1451(msg) + deconstruct_result831 = _t1453 + if !isnothing(deconstruct_result831) + unwrapped832 = deconstruct_result831 + pretty_pragma(pp, unwrapped832) else - function _t1430(_dollar_dollar) + function _t1454(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("primitive")) - _t1431 = _get_oneof_field(_dollar_dollar, :primitive) + _t1455 = _get_oneof_field(_dollar_dollar, :primitive) else - _t1431 = nothing + _t1455 = nothing end - return _t1431 + return _t1455 end - _t1432 = _t1430(msg) - deconstruct_result817 = _t1432 - if !isnothing(deconstruct_result817) - unwrapped818 = deconstruct_result817 - pretty_primitive(pp, unwrapped818) + _t1456 = _t1454(msg) + deconstruct_result829 = _t1456 + if !isnothing(deconstruct_result829) + unwrapped830 = deconstruct_result829 + pretty_primitive(pp, unwrapped830) else - function _t1433(_dollar_dollar) + function _t1457(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("rel_atom")) - _t1434 = _get_oneof_field(_dollar_dollar, :rel_atom) + _t1458 = _get_oneof_field(_dollar_dollar, :rel_atom) else - _t1434 = nothing + _t1458 = nothing end - return _t1434 + return _t1458 end - _t1435 = _t1433(msg) - deconstruct_result815 = _t1435 - if !isnothing(deconstruct_result815) - unwrapped816 = deconstruct_result815 - pretty_rel_atom(pp, unwrapped816) + _t1459 = _t1457(msg) + deconstruct_result827 = _t1459 + if !isnothing(deconstruct_result827) + unwrapped828 = deconstruct_result827 + pretty_rel_atom(pp, unwrapped828) else - function _t1436(_dollar_dollar) + function _t1460(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("cast")) - _t1437 = _get_oneof_field(_dollar_dollar, :cast) + _t1461 = _get_oneof_field(_dollar_dollar, :cast) else - _t1437 = nothing + _t1461 = nothing end - return _t1437 + return _t1461 end - _t1438 = _t1436(msg) - deconstruct_result813 = _t1438 - if !isnothing(deconstruct_result813) - unwrapped814 = deconstruct_result813 - pretty_cast(pp, unwrapped814) + _t1462 = _t1460(msg) + deconstruct_result825 = _t1462 + if !isnothing(deconstruct_result825) + unwrapped826 = deconstruct_result825 + pretty_cast(pp, unwrapped826) else throw(ParseError("No matching rule for formula")) end @@ -1879,7 +1883,7 @@ function pretty_formula(pp::PrettyPrinter, msg::Proto.Formula) end function pretty_true(pp::PrettyPrinter, msg::Proto.Conjunction) - fields840 = msg + fields852 = msg write(pp, "(") write(pp, "true") write(pp, ")") @@ -1887,7 +1891,7 @@ function pretty_true(pp::PrettyPrinter, msg::Proto.Conjunction) end function pretty_false(pp::PrettyPrinter, msg::Proto.Disjunction) - fields841 = msg + fields853 = msg write(pp, "(") write(pp, "false") write(pp, ")") @@ -1895,27 +1899,27 @@ function pretty_false(pp::PrettyPrinter, msg::Proto.Disjunction) end function pretty_exists(pp::PrettyPrinter, msg::Proto.Exists) - flat846 = try_flat(pp, msg, pretty_exists) - if !isnothing(flat846) - write(pp, flat846) + flat858 = try_flat(pp, msg, pretty_exists) + if !isnothing(flat858) + write(pp, flat858) return nothing else - function _t1439(_dollar_dollar) - _t1440 = deconstruct_bindings(pp, _dollar_dollar.body) - return (_t1440, _dollar_dollar.body.value,) + function _t1463(_dollar_dollar) + _t1464 = deconstruct_bindings(pp, _dollar_dollar.body) + return (_t1464, _dollar_dollar.body.value,) end - _t1441 = _t1439(msg) - fields842 = _t1441 - unwrapped_fields843 = fields842 + _t1465 = _t1463(msg) + fields854 = _t1465 + unwrapped_fields855 = fields854 write(pp, "(") write(pp, "exists") indent_sexp!(pp) newline(pp) - field844 = unwrapped_fields843[1] - pretty_bindings(pp, field844) + field856 = unwrapped_fields855[1] + pretty_bindings(pp, field856) newline(pp) - field845 = unwrapped_fields843[2] - pretty_formula(pp, field845) + field857 = unwrapped_fields855[2] + pretty_formula(pp, field857) dedent!(pp) write(pp, ")") end @@ -1923,29 +1927,29 @@ function pretty_exists(pp::PrettyPrinter, msg::Proto.Exists) end function pretty_reduce(pp::PrettyPrinter, msg::Proto.Reduce) - flat852 = try_flat(pp, msg, pretty_reduce) - if !isnothing(flat852) - write(pp, flat852) + flat864 = try_flat(pp, msg, pretty_reduce) + if !isnothing(flat864) + write(pp, flat864) return nothing else - function _t1442(_dollar_dollar) + function _t1466(_dollar_dollar) return (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) end - _t1443 = _t1442(msg) - fields847 = _t1443 - unwrapped_fields848 = fields847 + _t1467 = _t1466(msg) + fields859 = _t1467 + unwrapped_fields860 = fields859 write(pp, "(") write(pp, "reduce") indent_sexp!(pp) newline(pp) - field849 = unwrapped_fields848[1] - pretty_abstraction(pp, field849) + field861 = unwrapped_fields860[1] + pretty_abstraction(pp, field861) newline(pp) - field850 = unwrapped_fields848[2] - pretty_abstraction(pp, field850) + field862 = unwrapped_fields860[2] + pretty_abstraction(pp, field862) newline(pp) - field851 = unwrapped_fields848[3] - pretty_terms(pp, field851) + field863 = unwrapped_fields860[3] + pretty_terms(pp, field863) dedent!(pp) write(pp, ")") end @@ -1953,23 +1957,23 @@ function pretty_reduce(pp::PrettyPrinter, msg::Proto.Reduce) end function pretty_terms(pp::PrettyPrinter, msg::Vector{Proto.Term}) - flat856 = try_flat(pp, msg, pretty_terms) - if !isnothing(flat856) - write(pp, flat856) + flat868 = try_flat(pp, msg, pretty_terms) + if !isnothing(flat868) + write(pp, flat868) return nothing else - fields853 = msg + fields865 = msg write(pp, "(") write(pp, "terms") indent_sexp!(pp) - if !isempty(fields853) + if !isempty(fields865) newline(pp) - for (i1444, elem854) in enumerate(fields853) - i855 = i1444 - 1 - if (i855 > 0) + for (i1468, elem866) in enumerate(fields865) + i867 = i1468 - 1 + if (i867 > 0) newline(pp) end - pretty_term(pp, elem854) + pretty_term(pp, elem866) end end dedent!(pp) @@ -1979,38 +1983,38 @@ function pretty_terms(pp::PrettyPrinter, msg::Vector{Proto.Term}) end function pretty_term(pp::PrettyPrinter, msg::Proto.Term) - flat861 = try_flat(pp, msg, pretty_term) - if !isnothing(flat861) - write(pp, flat861) + flat873 = try_flat(pp, msg, pretty_term) + if !isnothing(flat873) + write(pp, flat873) return nothing else - function _t1445(_dollar_dollar) + function _t1469(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("var")) - _t1446 = _get_oneof_field(_dollar_dollar, :var) + _t1470 = _get_oneof_field(_dollar_dollar, :var) else - _t1446 = nothing + _t1470 = nothing end - return _t1446 + return _t1470 end - _t1447 = _t1445(msg) - deconstruct_result859 = _t1447 - if !isnothing(deconstruct_result859) - unwrapped860 = deconstruct_result859 - pretty_var(pp, unwrapped860) + _t1471 = _t1469(msg) + deconstruct_result871 = _t1471 + if !isnothing(deconstruct_result871) + unwrapped872 = deconstruct_result871 + pretty_var(pp, unwrapped872) else - function _t1448(_dollar_dollar) + function _t1472(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("constant")) - _t1449 = _get_oneof_field(_dollar_dollar, :constant) + _t1473 = _get_oneof_field(_dollar_dollar, :constant) else - _t1449 = nothing + _t1473 = nothing end - return _t1449 + return _t1473 end - _t1450 = _t1448(msg) - deconstruct_result857 = _t1450 - if !isnothing(deconstruct_result857) - unwrapped858 = deconstruct_result857 - pretty_constant(pp, unwrapped858) + _t1474 = _t1472(msg) + deconstruct_result869 = _t1474 + if !isnothing(deconstruct_result869) + unwrapped870 = deconstruct_result869 + pretty_constant(pp, unwrapped870) else throw(ParseError("No matching rule for term")) end @@ -2020,57 +2024,57 @@ function pretty_term(pp::PrettyPrinter, msg::Proto.Term) end function pretty_var(pp::PrettyPrinter, msg::Proto.Var) - flat864 = try_flat(pp, msg, pretty_var) - if !isnothing(flat864) - write(pp, flat864) + flat876 = try_flat(pp, msg, pretty_var) + if !isnothing(flat876) + write(pp, flat876) return nothing else - function _t1451(_dollar_dollar) + function _t1475(_dollar_dollar) return _dollar_dollar.name end - _t1452 = _t1451(msg) - fields862 = _t1452 - unwrapped_fields863 = fields862 - write(pp, unwrapped_fields863) + _t1476 = _t1475(msg) + fields874 = _t1476 + unwrapped_fields875 = fields874 + write(pp, unwrapped_fields875) end return nothing end function pretty_constant(pp::PrettyPrinter, msg::Proto.Value) - flat866 = try_flat(pp, msg, pretty_constant) - if !isnothing(flat866) - write(pp, flat866) + flat878 = try_flat(pp, msg, pretty_constant) + if !isnothing(flat878) + write(pp, flat878) return nothing else - fields865 = msg - pretty_value(pp, fields865) + fields877 = msg + pretty_value(pp, fields877) end return nothing end function pretty_conjunction(pp::PrettyPrinter, msg::Proto.Conjunction) - flat871 = try_flat(pp, msg, pretty_conjunction) - if !isnothing(flat871) - write(pp, flat871) + flat883 = try_flat(pp, msg, pretty_conjunction) + if !isnothing(flat883) + write(pp, flat883) return nothing else - function _t1453(_dollar_dollar) + function _t1477(_dollar_dollar) return _dollar_dollar.args end - _t1454 = _t1453(msg) - fields867 = _t1454 - unwrapped_fields868 = fields867 + _t1478 = _t1477(msg) + fields879 = _t1478 + unwrapped_fields880 = fields879 write(pp, "(") write(pp, "and") indent_sexp!(pp) - if !isempty(unwrapped_fields868) + if !isempty(unwrapped_fields880) newline(pp) - for (i1455, elem869) in enumerate(unwrapped_fields868) - i870 = i1455 - 1 - if (i870 > 0) + for (i1479, elem881) in enumerate(unwrapped_fields880) + i882 = i1479 - 1 + if (i882 > 0) newline(pp) end - pretty_formula(pp, elem869) + pretty_formula(pp, elem881) end end dedent!(pp) @@ -2080,28 +2084,28 @@ function pretty_conjunction(pp::PrettyPrinter, msg::Proto.Conjunction) end function pretty_disjunction(pp::PrettyPrinter, msg::Proto.Disjunction) - flat876 = try_flat(pp, msg, pretty_disjunction) - if !isnothing(flat876) - write(pp, flat876) + flat888 = try_flat(pp, msg, pretty_disjunction) + if !isnothing(flat888) + write(pp, flat888) return nothing else - function _t1456(_dollar_dollar) + function _t1480(_dollar_dollar) return _dollar_dollar.args end - _t1457 = _t1456(msg) - fields872 = _t1457 - unwrapped_fields873 = fields872 + _t1481 = _t1480(msg) + fields884 = _t1481 + unwrapped_fields885 = fields884 write(pp, "(") write(pp, "or") indent_sexp!(pp) - if !isempty(unwrapped_fields873) + if !isempty(unwrapped_fields885) newline(pp) - for (i1458, elem874) in enumerate(unwrapped_fields873) - i875 = i1458 - 1 - if (i875 > 0) + for (i1482, elem886) in enumerate(unwrapped_fields885) + i887 = i1482 - 1 + if (i887 > 0) newline(pp) end - pretty_formula(pp, elem874) + pretty_formula(pp, elem886) end end dedent!(pp) @@ -2111,22 +2115,22 @@ function pretty_disjunction(pp::PrettyPrinter, msg::Proto.Disjunction) end function pretty_not(pp::PrettyPrinter, msg::Proto.Not) - flat879 = try_flat(pp, msg, pretty_not) - if !isnothing(flat879) - write(pp, flat879) + flat891 = try_flat(pp, msg, pretty_not) + if !isnothing(flat891) + write(pp, flat891) return nothing else - function _t1459(_dollar_dollar) + function _t1483(_dollar_dollar) return _dollar_dollar.arg end - _t1460 = _t1459(msg) - fields877 = _t1460 - unwrapped_fields878 = fields877 + _t1484 = _t1483(msg) + fields889 = _t1484 + unwrapped_fields890 = fields889 write(pp, "(") write(pp, "not") indent_sexp!(pp) newline(pp) - pretty_formula(pp, unwrapped_fields878) + pretty_formula(pp, unwrapped_fields890) dedent!(pp) write(pp, ")") end @@ -2134,29 +2138,29 @@ function pretty_not(pp::PrettyPrinter, msg::Proto.Not) end function pretty_ffi(pp::PrettyPrinter, msg::Proto.FFI) - flat885 = try_flat(pp, msg, pretty_ffi) - if !isnothing(flat885) - write(pp, flat885) + flat897 = try_flat(pp, msg, pretty_ffi) + if !isnothing(flat897) + write(pp, flat897) return nothing else - function _t1461(_dollar_dollar) + function _t1485(_dollar_dollar) return (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) end - _t1462 = _t1461(msg) - fields880 = _t1462 - unwrapped_fields881 = fields880 + _t1486 = _t1485(msg) + fields892 = _t1486 + unwrapped_fields893 = fields892 write(pp, "(") write(pp, "ffi") indent_sexp!(pp) newline(pp) - field882 = unwrapped_fields881[1] - pretty_name(pp, field882) + field894 = unwrapped_fields893[1] + pretty_name(pp, field894) newline(pp) - field883 = unwrapped_fields881[2] - pretty_ffi_args(pp, field883) + field895 = unwrapped_fields893[2] + pretty_ffi_args(pp, field895) newline(pp) - field884 = unwrapped_fields881[3] - pretty_terms(pp, field884) + field896 = unwrapped_fields893[3] + pretty_terms(pp, field896) dedent!(pp) write(pp, ")") end @@ -2164,36 +2168,36 @@ function pretty_ffi(pp::PrettyPrinter, msg::Proto.FFI) end function pretty_name(pp::PrettyPrinter, msg::String) - flat887 = try_flat(pp, msg, pretty_name) - if !isnothing(flat887) - write(pp, flat887) + flat899 = try_flat(pp, msg, pretty_name) + if !isnothing(flat899) + write(pp, flat899) return nothing else - fields886 = msg + fields898 = msg write(pp, ":") - write(pp, fields886) + write(pp, fields898) end return nothing end function pretty_ffi_args(pp::PrettyPrinter, msg::Vector{Proto.Abstraction}) - flat891 = try_flat(pp, msg, pretty_ffi_args) - if !isnothing(flat891) - write(pp, flat891) + flat903 = try_flat(pp, msg, pretty_ffi_args) + if !isnothing(flat903) + write(pp, flat903) return nothing else - fields888 = msg + fields900 = msg write(pp, "(") write(pp, "args") indent_sexp!(pp) - if !isempty(fields888) + if !isempty(fields900) newline(pp) - for (i1463, elem889) in enumerate(fields888) - i890 = i1463 - 1 - if (i890 > 0) + for (i1487, elem901) in enumerate(fields900) + i902 = i1487 - 1 + if (i902 > 0) newline(pp) end - pretty_abstraction(pp, elem889) + pretty_abstraction(pp, elem901) end end dedent!(pp) @@ -2203,32 +2207,32 @@ function pretty_ffi_args(pp::PrettyPrinter, msg::Vector{Proto.Abstraction}) end function pretty_atom(pp::PrettyPrinter, msg::Proto.Atom) - flat898 = try_flat(pp, msg, pretty_atom) - if !isnothing(flat898) - write(pp, flat898) + flat910 = try_flat(pp, msg, pretty_atom) + if !isnothing(flat910) + write(pp, flat910) return nothing else - function _t1464(_dollar_dollar) + function _t1488(_dollar_dollar) return (_dollar_dollar.name, _dollar_dollar.terms,) end - _t1465 = _t1464(msg) - fields892 = _t1465 - unwrapped_fields893 = fields892 + _t1489 = _t1488(msg) + fields904 = _t1489 + unwrapped_fields905 = fields904 write(pp, "(") write(pp, "atom") indent_sexp!(pp) newline(pp) - field894 = unwrapped_fields893[1] - pretty_relation_id(pp, field894) - field895 = unwrapped_fields893[2] - if !isempty(field895) + field906 = unwrapped_fields905[1] + pretty_relation_id(pp, field906) + field907 = unwrapped_fields905[2] + if !isempty(field907) newline(pp) - for (i1466, elem896) in enumerate(field895) - i897 = i1466 - 1 - if (i897 > 0) + for (i1490, elem908) in enumerate(field907) + i909 = i1490 - 1 + if (i909 > 0) newline(pp) end - pretty_term(pp, elem896) + pretty_term(pp, elem908) end end dedent!(pp) @@ -2238,32 +2242,32 @@ function pretty_atom(pp::PrettyPrinter, msg::Proto.Atom) end function pretty_pragma(pp::PrettyPrinter, msg::Proto.Pragma) - flat905 = try_flat(pp, msg, pretty_pragma) - if !isnothing(flat905) - write(pp, flat905) + flat917 = try_flat(pp, msg, pretty_pragma) + if !isnothing(flat917) + write(pp, flat917) return nothing else - function _t1467(_dollar_dollar) + function _t1491(_dollar_dollar) return (_dollar_dollar.name, _dollar_dollar.terms,) end - _t1468 = _t1467(msg) - fields899 = _t1468 - unwrapped_fields900 = fields899 + _t1492 = _t1491(msg) + fields911 = _t1492 + unwrapped_fields912 = fields911 write(pp, "(") write(pp, "pragma") indent_sexp!(pp) newline(pp) - field901 = unwrapped_fields900[1] - pretty_name(pp, field901) - field902 = unwrapped_fields900[2] - if !isempty(field902) + field913 = unwrapped_fields912[1] + pretty_name(pp, field913) + field914 = unwrapped_fields912[2] + if !isempty(field914) newline(pp) - for (i1469, elem903) in enumerate(field902) - i904 = i1469 - 1 - if (i904 > 0) + for (i1493, elem915) in enumerate(field914) + i916 = i1493 - 1 + if (i916 > 0) newline(pp) end - pretty_term(pp, elem903) + pretty_term(pp, elem915) end end dedent!(pp) @@ -2273,149 +2277,149 @@ function pretty_pragma(pp::PrettyPrinter, msg::Proto.Pragma) end function pretty_primitive(pp::PrettyPrinter, msg::Proto.Primitive) - flat921 = try_flat(pp, msg, pretty_primitive) - if !isnothing(flat921) - write(pp, flat921) + flat933 = try_flat(pp, msg, pretty_primitive) + if !isnothing(flat933) + write(pp, flat933) return nothing else - function _t1470(_dollar_dollar) + function _t1494(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_eq" - _t1471 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1495 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1471 = nothing + _t1495 = nothing end - return _t1471 + return _t1495 end - _t1472 = _t1470(msg) - guard_result920 = _t1472 - if !isnothing(guard_result920) + _t1496 = _t1494(msg) + guard_result932 = _t1496 + if !isnothing(guard_result932) pretty_eq(pp, msg) else - function _t1473(_dollar_dollar) + function _t1497(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_lt_monotype" - _t1474 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1498 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1474 = nothing + _t1498 = nothing end - return _t1474 + return _t1498 end - _t1475 = _t1473(msg) - guard_result919 = _t1475 - if !isnothing(guard_result919) + _t1499 = _t1497(msg) + guard_result931 = _t1499 + if !isnothing(guard_result931) pretty_lt(pp, msg) else - function _t1476(_dollar_dollar) + function _t1500(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_lt_eq_monotype" - _t1477 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1501 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1477 = nothing + _t1501 = nothing end - return _t1477 + return _t1501 end - _t1478 = _t1476(msg) - guard_result918 = _t1478 - if !isnothing(guard_result918) + _t1502 = _t1500(msg) + guard_result930 = _t1502 + if !isnothing(guard_result930) pretty_lt_eq(pp, msg) else - function _t1479(_dollar_dollar) + function _t1503(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_gt_monotype" - _t1480 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1504 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1480 = nothing + _t1504 = nothing end - return _t1480 + return _t1504 end - _t1481 = _t1479(msg) - guard_result917 = _t1481 - if !isnothing(guard_result917) + _t1505 = _t1503(msg) + guard_result929 = _t1505 + if !isnothing(guard_result929) pretty_gt(pp, msg) else - function _t1482(_dollar_dollar) + function _t1506(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_gt_eq_monotype" - _t1483 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1507 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1483 = nothing + _t1507 = nothing end - return _t1483 + return _t1507 end - _t1484 = _t1482(msg) - guard_result916 = _t1484 - if !isnothing(guard_result916) + _t1508 = _t1506(msg) + guard_result928 = _t1508 + if !isnothing(guard_result928) pretty_gt_eq(pp, msg) else - function _t1485(_dollar_dollar) + function _t1509(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_add_monotype" - _t1486 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1510 = (_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 - _t1486 = nothing + _t1510 = nothing end - return _t1486 + return _t1510 end - _t1487 = _t1485(msg) - guard_result915 = _t1487 - if !isnothing(guard_result915) + _t1511 = _t1509(msg) + guard_result927 = _t1511 + if !isnothing(guard_result927) pretty_add(pp, msg) else - function _t1488(_dollar_dollar) + function _t1512(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_subtract_monotype" - _t1489 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1513 = (_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 - _t1489 = nothing + _t1513 = nothing end - return _t1489 + return _t1513 end - _t1490 = _t1488(msg) - guard_result914 = _t1490 - if !isnothing(guard_result914) + _t1514 = _t1512(msg) + guard_result926 = _t1514 + if !isnothing(guard_result926) pretty_minus(pp, msg) else - function _t1491(_dollar_dollar) + function _t1515(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_multiply_monotype" - _t1492 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1516 = (_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 - _t1492 = nothing + _t1516 = nothing end - return _t1492 + return _t1516 end - _t1493 = _t1491(msg) - guard_result913 = _t1493 - if !isnothing(guard_result913) + _t1517 = _t1515(msg) + guard_result925 = _t1517 + if !isnothing(guard_result925) pretty_multiply(pp, msg) else - function _t1494(_dollar_dollar) + function _t1518(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_divide_monotype" - _t1495 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1519 = (_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 - _t1495 = nothing + _t1519 = nothing end - return _t1495 + return _t1519 end - _t1496 = _t1494(msg) - guard_result912 = _t1496 - if !isnothing(guard_result912) + _t1520 = _t1518(msg) + guard_result924 = _t1520 + if !isnothing(guard_result924) pretty_divide(pp, msg) else - function _t1497(_dollar_dollar) + function _t1521(_dollar_dollar) return (_dollar_dollar.name, _dollar_dollar.terms,) end - _t1498 = _t1497(msg) - fields906 = _t1498 - unwrapped_fields907 = fields906 + _t1522 = _t1521(msg) + fields918 = _t1522 + unwrapped_fields919 = fields918 write(pp, "(") write(pp, "primitive") indent_sexp!(pp) newline(pp) - field908 = unwrapped_fields907[1] - pretty_name(pp, field908) - field909 = unwrapped_fields907[2] - if !isempty(field909) + field920 = unwrapped_fields919[1] + pretty_name(pp, field920) + field921 = unwrapped_fields919[2] + if !isempty(field921) newline(pp) - for (i1499, elem910) in enumerate(field909) - i911 = i1499 - 1 - if (i911 > 0) + for (i1523, elem922) in enumerate(field921) + i923 = i1523 - 1 + if (i923 > 0) newline(pp) end - pretty_rel_term(pp, elem910) + pretty_rel_term(pp, elem922) end end dedent!(pp) @@ -2434,31 +2438,31 @@ function pretty_primitive(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat926 = try_flat(pp, msg, pretty_eq) - if !isnothing(flat926) - write(pp, flat926) + flat938 = try_flat(pp, msg, pretty_eq) + if !isnothing(flat938) + write(pp, flat938) return nothing else - function _t1500(_dollar_dollar) + function _t1524(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_eq" - _t1501 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1525 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1501 = nothing + _t1525 = nothing end - return _t1501 + return _t1525 end - _t1502 = _t1500(msg) - fields922 = _t1502 - unwrapped_fields923 = fields922 + _t1526 = _t1524(msg) + fields934 = _t1526 + unwrapped_fields935 = fields934 write(pp, "(") write(pp, "=") indent_sexp!(pp) newline(pp) - field924 = unwrapped_fields923[1] - pretty_term(pp, field924) + field936 = unwrapped_fields935[1] + pretty_term(pp, field936) newline(pp) - field925 = unwrapped_fields923[2] - pretty_term(pp, field925) + field937 = unwrapped_fields935[2] + pretty_term(pp, field937) dedent!(pp) write(pp, ")") end @@ -2466,31 +2470,31 @@ function pretty_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_lt(pp::PrettyPrinter, msg::Proto.Primitive) - flat931 = try_flat(pp, msg, pretty_lt) - if !isnothing(flat931) - write(pp, flat931) + flat943 = try_flat(pp, msg, pretty_lt) + if !isnothing(flat943) + write(pp, flat943) return nothing else - function _t1503(_dollar_dollar) + function _t1527(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_lt_monotype" - _t1504 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1528 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1504 = nothing + _t1528 = nothing end - return _t1504 + return _t1528 end - _t1505 = _t1503(msg) - fields927 = _t1505 - unwrapped_fields928 = fields927 + _t1529 = _t1527(msg) + fields939 = _t1529 + unwrapped_fields940 = fields939 write(pp, "(") write(pp, "<") indent_sexp!(pp) newline(pp) - field929 = unwrapped_fields928[1] - pretty_term(pp, field929) + field941 = unwrapped_fields940[1] + pretty_term(pp, field941) newline(pp) - field930 = unwrapped_fields928[2] - pretty_term(pp, field930) + field942 = unwrapped_fields940[2] + pretty_term(pp, field942) dedent!(pp) write(pp, ")") end @@ -2498,31 +2502,31 @@ function pretty_lt(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_lt_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat936 = try_flat(pp, msg, pretty_lt_eq) - if !isnothing(flat936) - write(pp, flat936) + flat948 = try_flat(pp, msg, pretty_lt_eq) + if !isnothing(flat948) + write(pp, flat948) return nothing else - function _t1506(_dollar_dollar) + function _t1530(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_lt_eq_monotype" - _t1507 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1531 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1507 = nothing + _t1531 = nothing end - return _t1507 + return _t1531 end - _t1508 = _t1506(msg) - fields932 = _t1508 - unwrapped_fields933 = fields932 + _t1532 = _t1530(msg) + fields944 = _t1532 + unwrapped_fields945 = fields944 write(pp, "(") write(pp, "<=") indent_sexp!(pp) newline(pp) - field934 = unwrapped_fields933[1] - pretty_term(pp, field934) + field946 = unwrapped_fields945[1] + pretty_term(pp, field946) newline(pp) - field935 = unwrapped_fields933[2] - pretty_term(pp, field935) + field947 = unwrapped_fields945[2] + pretty_term(pp, field947) dedent!(pp) write(pp, ")") end @@ -2530,31 +2534,31 @@ function pretty_lt_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_gt(pp::PrettyPrinter, msg::Proto.Primitive) - flat941 = try_flat(pp, msg, pretty_gt) - if !isnothing(flat941) - write(pp, flat941) + flat953 = try_flat(pp, msg, pretty_gt) + if !isnothing(flat953) + write(pp, flat953) return nothing else - function _t1509(_dollar_dollar) + function _t1533(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_gt_monotype" - _t1510 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1534 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1510 = nothing + _t1534 = nothing end - return _t1510 + return _t1534 end - _t1511 = _t1509(msg) - fields937 = _t1511 - unwrapped_fields938 = fields937 + _t1535 = _t1533(msg) + fields949 = _t1535 + unwrapped_fields950 = fields949 write(pp, "(") write(pp, ">") indent_sexp!(pp) newline(pp) - field939 = unwrapped_fields938[1] - pretty_term(pp, field939) + field951 = unwrapped_fields950[1] + pretty_term(pp, field951) newline(pp) - field940 = unwrapped_fields938[2] - pretty_term(pp, field940) + field952 = unwrapped_fields950[2] + pretty_term(pp, field952) dedent!(pp) write(pp, ")") end @@ -2562,31 +2566,31 @@ function pretty_gt(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_gt_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat946 = try_flat(pp, msg, pretty_gt_eq) - if !isnothing(flat946) - write(pp, flat946) + flat958 = try_flat(pp, msg, pretty_gt_eq) + if !isnothing(flat958) + write(pp, flat958) return nothing else - function _t1512(_dollar_dollar) + function _t1536(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_gt_eq_monotype" - _t1513 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1537 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1513 = nothing + _t1537 = nothing end - return _t1513 + return _t1537 end - _t1514 = _t1512(msg) - fields942 = _t1514 - unwrapped_fields943 = fields942 + _t1538 = _t1536(msg) + fields954 = _t1538 + unwrapped_fields955 = fields954 write(pp, "(") write(pp, ">=") indent_sexp!(pp) newline(pp) - field944 = unwrapped_fields943[1] - pretty_term(pp, field944) + field956 = unwrapped_fields955[1] + pretty_term(pp, field956) newline(pp) - field945 = unwrapped_fields943[2] - pretty_term(pp, field945) + field957 = unwrapped_fields955[2] + pretty_term(pp, field957) dedent!(pp) write(pp, ")") end @@ -2594,34 +2598,34 @@ function pretty_gt_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_add(pp::PrettyPrinter, msg::Proto.Primitive) - flat952 = try_flat(pp, msg, pretty_add) - if !isnothing(flat952) - write(pp, flat952) + flat964 = try_flat(pp, msg, pretty_add) + if !isnothing(flat964) + write(pp, flat964) return nothing else - function _t1515(_dollar_dollar) + function _t1539(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_add_monotype" - _t1516 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1540 = (_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 - _t1516 = nothing + _t1540 = nothing end - return _t1516 + return _t1540 end - _t1517 = _t1515(msg) - fields947 = _t1517 - unwrapped_fields948 = fields947 + _t1541 = _t1539(msg) + fields959 = _t1541 + unwrapped_fields960 = fields959 write(pp, "(") write(pp, "+") indent_sexp!(pp) newline(pp) - field949 = unwrapped_fields948[1] - pretty_term(pp, field949) + field961 = unwrapped_fields960[1] + pretty_term(pp, field961) newline(pp) - field950 = unwrapped_fields948[2] - pretty_term(pp, field950) + field962 = unwrapped_fields960[2] + pretty_term(pp, field962) newline(pp) - field951 = unwrapped_fields948[3] - pretty_term(pp, field951) + field963 = unwrapped_fields960[3] + pretty_term(pp, field963) dedent!(pp) write(pp, ")") end @@ -2629,34 +2633,34 @@ function pretty_add(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_minus(pp::PrettyPrinter, msg::Proto.Primitive) - flat958 = try_flat(pp, msg, pretty_minus) - if !isnothing(flat958) - write(pp, flat958) + flat970 = try_flat(pp, msg, pretty_minus) + if !isnothing(flat970) + write(pp, flat970) return nothing else - function _t1518(_dollar_dollar) + function _t1542(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_subtract_monotype" - _t1519 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1543 = (_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 - _t1519 = nothing + _t1543 = nothing end - return _t1519 + return _t1543 end - _t1520 = _t1518(msg) - fields953 = _t1520 - unwrapped_fields954 = fields953 + _t1544 = _t1542(msg) + fields965 = _t1544 + unwrapped_fields966 = fields965 write(pp, "(") write(pp, "-") indent_sexp!(pp) newline(pp) - field955 = unwrapped_fields954[1] - pretty_term(pp, field955) + field967 = unwrapped_fields966[1] + pretty_term(pp, field967) newline(pp) - field956 = unwrapped_fields954[2] - pretty_term(pp, field956) + field968 = unwrapped_fields966[2] + pretty_term(pp, field968) newline(pp) - field957 = unwrapped_fields954[3] - pretty_term(pp, field957) + field969 = unwrapped_fields966[3] + pretty_term(pp, field969) dedent!(pp) write(pp, ")") end @@ -2664,34 +2668,34 @@ function pretty_minus(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_multiply(pp::PrettyPrinter, msg::Proto.Primitive) - flat964 = try_flat(pp, msg, pretty_multiply) - if !isnothing(flat964) - write(pp, flat964) + flat976 = try_flat(pp, msg, pretty_multiply) + if !isnothing(flat976) + write(pp, flat976) return nothing else - function _t1521(_dollar_dollar) + function _t1545(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_multiply_monotype" - _t1522 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1546 = (_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 - _t1522 = nothing + _t1546 = nothing end - return _t1522 + return _t1546 end - _t1523 = _t1521(msg) - fields959 = _t1523 - unwrapped_fields960 = fields959 + _t1547 = _t1545(msg) + fields971 = _t1547 + unwrapped_fields972 = fields971 write(pp, "(") write(pp, "*") indent_sexp!(pp) newline(pp) - field961 = unwrapped_fields960[1] - pretty_term(pp, field961) + field973 = unwrapped_fields972[1] + pretty_term(pp, field973) newline(pp) - field962 = unwrapped_fields960[2] - pretty_term(pp, field962) + field974 = unwrapped_fields972[2] + pretty_term(pp, field974) newline(pp) - field963 = unwrapped_fields960[3] - pretty_term(pp, field963) + field975 = unwrapped_fields972[3] + pretty_term(pp, field975) dedent!(pp) write(pp, ")") end @@ -2699,34 +2703,34 @@ function pretty_multiply(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_divide(pp::PrettyPrinter, msg::Proto.Primitive) - flat970 = try_flat(pp, msg, pretty_divide) - if !isnothing(flat970) - write(pp, flat970) + flat982 = try_flat(pp, msg, pretty_divide) + if !isnothing(flat982) + write(pp, flat982) return nothing else - function _t1524(_dollar_dollar) + function _t1548(_dollar_dollar) if _dollar_dollar.name == "rel_primitive_divide_monotype" - _t1525 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1549 = (_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 - _t1525 = nothing + _t1549 = nothing end - return _t1525 + return _t1549 end - _t1526 = _t1524(msg) - fields965 = _t1526 - unwrapped_fields966 = fields965 + _t1550 = _t1548(msg) + fields977 = _t1550 + unwrapped_fields978 = fields977 write(pp, "(") write(pp, "/") indent_sexp!(pp) newline(pp) - field967 = unwrapped_fields966[1] - pretty_term(pp, field967) + field979 = unwrapped_fields978[1] + pretty_term(pp, field979) newline(pp) - field968 = unwrapped_fields966[2] - pretty_term(pp, field968) + field980 = unwrapped_fields978[2] + pretty_term(pp, field980) newline(pp) - field969 = unwrapped_fields966[3] - pretty_term(pp, field969) + field981 = unwrapped_fields978[3] + pretty_term(pp, field981) dedent!(pp) write(pp, ")") end @@ -2734,38 +2738,38 @@ function pretty_divide(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_rel_term(pp::PrettyPrinter, msg::Proto.RelTerm) - flat975 = try_flat(pp, msg, pretty_rel_term) - if !isnothing(flat975) - write(pp, flat975) + flat987 = try_flat(pp, msg, pretty_rel_term) + if !isnothing(flat987) + write(pp, flat987) return nothing else - function _t1527(_dollar_dollar) + function _t1551(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("specialized_value")) - _t1528 = _get_oneof_field(_dollar_dollar, :specialized_value) + _t1552 = _get_oneof_field(_dollar_dollar, :specialized_value) else - _t1528 = nothing + _t1552 = nothing end - return _t1528 + return _t1552 end - _t1529 = _t1527(msg) - deconstruct_result973 = _t1529 - if !isnothing(deconstruct_result973) - unwrapped974 = deconstruct_result973 - pretty_specialized_value(pp, unwrapped974) + _t1553 = _t1551(msg) + deconstruct_result985 = _t1553 + if !isnothing(deconstruct_result985) + unwrapped986 = deconstruct_result985 + pretty_specialized_value(pp, unwrapped986) else - function _t1530(_dollar_dollar) + function _t1554(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("term")) - _t1531 = _get_oneof_field(_dollar_dollar, :term) + _t1555 = _get_oneof_field(_dollar_dollar, :term) else - _t1531 = nothing + _t1555 = nothing end - return _t1531 + return _t1555 end - _t1532 = _t1530(msg) - deconstruct_result971 = _t1532 - if !isnothing(deconstruct_result971) - unwrapped972 = deconstruct_result971 - pretty_term(pp, unwrapped972) + _t1556 = _t1554(msg) + deconstruct_result983 = _t1556 + if !isnothing(deconstruct_result983) + unwrapped984 = deconstruct_result983 + pretty_term(pp, unwrapped984) else throw(ParseError("No matching rule for rel_term")) end @@ -2775,45 +2779,45 @@ function pretty_rel_term(pp::PrettyPrinter, msg::Proto.RelTerm) end function pretty_specialized_value(pp::PrettyPrinter, msg::Proto.Value) - flat977 = try_flat(pp, msg, pretty_specialized_value) - if !isnothing(flat977) - write(pp, flat977) + flat989 = try_flat(pp, msg, pretty_specialized_value) + if !isnothing(flat989) + write(pp, flat989) return nothing else - fields976 = msg + fields988 = msg write(pp, "#") - pretty_value(pp, fields976) + pretty_value(pp, fields988) end return nothing end function pretty_rel_atom(pp::PrettyPrinter, msg::Proto.RelAtom) - flat984 = try_flat(pp, msg, pretty_rel_atom) - if !isnothing(flat984) - write(pp, flat984) + flat996 = try_flat(pp, msg, pretty_rel_atom) + if !isnothing(flat996) + write(pp, flat996) return nothing else - function _t1533(_dollar_dollar) + function _t1557(_dollar_dollar) return (_dollar_dollar.name, _dollar_dollar.terms,) end - _t1534 = _t1533(msg) - fields978 = _t1534 - unwrapped_fields979 = fields978 + _t1558 = _t1557(msg) + fields990 = _t1558 + unwrapped_fields991 = fields990 write(pp, "(") write(pp, "relatom") indent_sexp!(pp) newline(pp) - field980 = unwrapped_fields979[1] - pretty_name(pp, field980) - field981 = unwrapped_fields979[2] - if !isempty(field981) + field992 = unwrapped_fields991[1] + pretty_name(pp, field992) + field993 = unwrapped_fields991[2] + if !isempty(field993) newline(pp) - for (i1535, elem982) in enumerate(field981) - i983 = i1535 - 1 - if (i983 > 0) + for (i1559, elem994) in enumerate(field993) + i995 = i1559 - 1 + if (i995 > 0) newline(pp) end - pretty_rel_term(pp, elem982) + pretty_rel_term(pp, elem994) end end dedent!(pp) @@ -2823,26 +2827,26 @@ function pretty_rel_atom(pp::PrettyPrinter, msg::Proto.RelAtom) end function pretty_cast(pp::PrettyPrinter, msg::Proto.Cast) - flat989 = try_flat(pp, msg, pretty_cast) - if !isnothing(flat989) - write(pp, flat989) + flat1001 = try_flat(pp, msg, pretty_cast) + if !isnothing(flat1001) + write(pp, flat1001) return nothing else - function _t1536(_dollar_dollar) + function _t1560(_dollar_dollar) return (_dollar_dollar.input, _dollar_dollar.result,) end - _t1537 = _t1536(msg) - fields985 = _t1537 - unwrapped_fields986 = fields985 + _t1561 = _t1560(msg) + fields997 = _t1561 + unwrapped_fields998 = fields997 write(pp, "(") write(pp, "cast") indent_sexp!(pp) newline(pp) - field987 = unwrapped_fields986[1] - pretty_term(pp, field987) + field999 = unwrapped_fields998[1] + pretty_term(pp, field999) newline(pp) - field988 = unwrapped_fields986[2] - pretty_term(pp, field988) + field1000 = unwrapped_fields998[2] + pretty_term(pp, field1000) dedent!(pp) write(pp, ")") end @@ -2850,23 +2854,23 @@ function pretty_cast(pp::PrettyPrinter, msg::Proto.Cast) end function pretty_attrs(pp::PrettyPrinter, msg::Vector{Proto.Attribute}) - flat993 = try_flat(pp, msg, pretty_attrs) - if !isnothing(flat993) - write(pp, flat993) + flat1005 = try_flat(pp, msg, pretty_attrs) + if !isnothing(flat1005) + write(pp, flat1005) return nothing else - fields990 = msg + fields1002 = msg write(pp, "(") write(pp, "attrs") indent_sexp!(pp) - if !isempty(fields990) + if !isempty(fields1002) newline(pp) - for (i1538, elem991) in enumerate(fields990) - i992 = i1538 - 1 - if (i992 > 0) + for (i1562, elem1003) in enumerate(fields1002) + i1004 = i1562 - 1 + if (i1004 > 0) newline(pp) end - pretty_attribute(pp, elem991) + pretty_attribute(pp, elem1003) end end dedent!(pp) @@ -2876,32 +2880,32 @@ function pretty_attrs(pp::PrettyPrinter, msg::Vector{Proto.Attribute}) end function pretty_attribute(pp::PrettyPrinter, msg::Proto.Attribute) - flat1000 = try_flat(pp, msg, pretty_attribute) - if !isnothing(flat1000) - write(pp, flat1000) + flat1012 = try_flat(pp, msg, pretty_attribute) + if !isnothing(flat1012) + write(pp, flat1012) return nothing else - function _t1539(_dollar_dollar) + function _t1563(_dollar_dollar) return (_dollar_dollar.name, _dollar_dollar.args,) end - _t1540 = _t1539(msg) - fields994 = _t1540 - unwrapped_fields995 = fields994 + _t1564 = _t1563(msg) + fields1006 = _t1564 + unwrapped_fields1007 = fields1006 write(pp, "(") write(pp, "attribute") indent_sexp!(pp) newline(pp) - field996 = unwrapped_fields995[1] - pretty_name(pp, field996) - field997 = unwrapped_fields995[2] - if !isempty(field997) + field1008 = unwrapped_fields1007[1] + pretty_name(pp, field1008) + field1009 = unwrapped_fields1007[2] + if !isempty(field1009) newline(pp) - for (i1541, elem998) in enumerate(field997) - i999 = i1541 - 1 - if (i999 > 0) + for (i1565, elem1010) in enumerate(field1009) + i1011 = i1565 - 1 + if (i1011 > 0) newline(pp) end - pretty_value(pp, elem998) + pretty_value(pp, elem1010) end end dedent!(pp) @@ -2911,34 +2915,34 @@ function pretty_attribute(pp::PrettyPrinter, msg::Proto.Attribute) end function pretty_algorithm(pp::PrettyPrinter, msg::Proto.Algorithm) - flat1007 = try_flat(pp, msg, pretty_algorithm) - if !isnothing(flat1007) - write(pp, flat1007) + flat1019 = try_flat(pp, msg, pretty_algorithm) + if !isnothing(flat1019) + write(pp, flat1019) return nothing else - function _t1542(_dollar_dollar) + function _t1566(_dollar_dollar) return (_dollar_dollar.var"#global", _dollar_dollar.body,) end - _t1543 = _t1542(msg) - fields1001 = _t1543 - unwrapped_fields1002 = fields1001 + _t1567 = _t1566(msg) + fields1013 = _t1567 + unwrapped_fields1014 = fields1013 write(pp, "(") write(pp, "algorithm") indent_sexp!(pp) - field1003 = unwrapped_fields1002[1] - if !isempty(field1003) + field1015 = unwrapped_fields1014[1] + if !isempty(field1015) newline(pp) - for (i1544, elem1004) in enumerate(field1003) - i1005 = i1544 - 1 - if (i1005 > 0) + for (i1568, elem1016) in enumerate(field1015) + i1017 = i1568 - 1 + if (i1017 > 0) newline(pp) end - pretty_relation_id(pp, elem1004) + pretty_relation_id(pp, elem1016) end end newline(pp) - field1006 = unwrapped_fields1002[2] - pretty_script(pp, field1006) + field1018 = unwrapped_fields1014[2] + pretty_script(pp, field1018) dedent!(pp) write(pp, ")") end @@ -2946,28 +2950,28 @@ function pretty_algorithm(pp::PrettyPrinter, msg::Proto.Algorithm) end function pretty_script(pp::PrettyPrinter, msg::Proto.Script) - flat1012 = try_flat(pp, msg, pretty_script) - if !isnothing(flat1012) - write(pp, flat1012) + flat1024 = try_flat(pp, msg, pretty_script) + if !isnothing(flat1024) + write(pp, flat1024) return nothing else - function _t1545(_dollar_dollar) + function _t1569(_dollar_dollar) return _dollar_dollar.constructs end - _t1546 = _t1545(msg) - fields1008 = _t1546 - unwrapped_fields1009 = fields1008 + _t1570 = _t1569(msg) + fields1020 = _t1570 + unwrapped_fields1021 = fields1020 write(pp, "(") write(pp, "script") indent_sexp!(pp) - if !isempty(unwrapped_fields1009) + if !isempty(unwrapped_fields1021) newline(pp) - for (i1547, elem1010) in enumerate(unwrapped_fields1009) - i1011 = i1547 - 1 - if (i1011 > 0) + for (i1571, elem1022) in enumerate(unwrapped_fields1021) + i1023 = i1571 - 1 + if (i1023 > 0) newline(pp) end - pretty_construct(pp, elem1010) + pretty_construct(pp, elem1022) end end dedent!(pp) @@ -2977,38 +2981,38 @@ function pretty_script(pp::PrettyPrinter, msg::Proto.Script) end function pretty_construct(pp::PrettyPrinter, msg::Proto.Construct) - flat1017 = try_flat(pp, msg, pretty_construct) - if !isnothing(flat1017) - write(pp, flat1017) + flat1029 = try_flat(pp, msg, pretty_construct) + if !isnothing(flat1029) + write(pp, flat1029) return nothing else - function _t1548(_dollar_dollar) + function _t1572(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("loop")) - _t1549 = _get_oneof_field(_dollar_dollar, :loop) + _t1573 = _get_oneof_field(_dollar_dollar, :loop) else - _t1549 = nothing + _t1573 = nothing end - return _t1549 + return _t1573 end - _t1550 = _t1548(msg) - deconstruct_result1015 = _t1550 - if !isnothing(deconstruct_result1015) - unwrapped1016 = deconstruct_result1015 - pretty_loop(pp, unwrapped1016) + _t1574 = _t1572(msg) + deconstruct_result1027 = _t1574 + if !isnothing(deconstruct_result1027) + unwrapped1028 = deconstruct_result1027 + pretty_loop(pp, unwrapped1028) else - function _t1551(_dollar_dollar) + function _t1575(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("instruction")) - _t1552 = _get_oneof_field(_dollar_dollar, :instruction) + _t1576 = _get_oneof_field(_dollar_dollar, :instruction) else - _t1552 = nothing + _t1576 = nothing end - return _t1552 + return _t1576 end - _t1553 = _t1551(msg) - deconstruct_result1013 = _t1553 - if !isnothing(deconstruct_result1013) - unwrapped1014 = deconstruct_result1013 - pretty_instruction(pp, unwrapped1014) + _t1577 = _t1575(msg) + deconstruct_result1025 = _t1577 + if !isnothing(deconstruct_result1025) + unwrapped1026 = deconstruct_result1025 + pretty_instruction(pp, unwrapped1026) else throw(ParseError("No matching rule for construct")) end @@ -3018,26 +3022,26 @@ function pretty_construct(pp::PrettyPrinter, msg::Proto.Construct) end function pretty_loop(pp::PrettyPrinter, msg::Proto.Loop) - flat1022 = try_flat(pp, msg, pretty_loop) - if !isnothing(flat1022) - write(pp, flat1022) + flat1034 = try_flat(pp, msg, pretty_loop) + if !isnothing(flat1034) + write(pp, flat1034) return nothing else - function _t1554(_dollar_dollar) + function _t1578(_dollar_dollar) return (_dollar_dollar.init, _dollar_dollar.body,) end - _t1555 = _t1554(msg) - fields1018 = _t1555 - unwrapped_fields1019 = fields1018 + _t1579 = _t1578(msg) + fields1030 = _t1579 + unwrapped_fields1031 = fields1030 write(pp, "(") write(pp, "loop") indent_sexp!(pp) newline(pp) - field1020 = unwrapped_fields1019[1] - pretty_init(pp, field1020) + field1032 = unwrapped_fields1031[1] + pretty_init(pp, field1032) newline(pp) - field1021 = unwrapped_fields1019[2] - pretty_script(pp, field1021) + field1033 = unwrapped_fields1031[2] + pretty_script(pp, field1033) dedent!(pp) write(pp, ")") end @@ -3045,23 +3049,23 @@ function pretty_loop(pp::PrettyPrinter, msg::Proto.Loop) end function pretty_init(pp::PrettyPrinter, msg::Vector{Proto.Instruction}) - flat1026 = try_flat(pp, msg, pretty_init) - if !isnothing(flat1026) - write(pp, flat1026) + flat1038 = try_flat(pp, msg, pretty_init) + if !isnothing(flat1038) + write(pp, flat1038) return nothing else - fields1023 = msg + fields1035 = msg write(pp, "(") write(pp, "init") indent_sexp!(pp) - if !isempty(fields1023) + if !isempty(fields1035) newline(pp) - for (i1556, elem1024) in enumerate(fields1023) - i1025 = i1556 - 1 - if (i1025 > 0) + for (i1580, elem1036) in enumerate(fields1035) + i1037 = i1580 - 1 + if (i1037 > 0) newline(pp) end - pretty_instruction(pp, elem1024) + pretty_instruction(pp, elem1036) end end dedent!(pp) @@ -3071,80 +3075,80 @@ function pretty_init(pp::PrettyPrinter, msg::Vector{Proto.Instruction}) end function pretty_instruction(pp::PrettyPrinter, msg::Proto.Instruction) - flat1037 = try_flat(pp, msg, pretty_instruction) - if !isnothing(flat1037) - write(pp, flat1037) + flat1049 = try_flat(pp, msg, pretty_instruction) + if !isnothing(flat1049) + write(pp, flat1049) return nothing else - function _t1557(_dollar_dollar) + function _t1581(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("assign")) - _t1558 = _get_oneof_field(_dollar_dollar, :assign) + _t1582 = _get_oneof_field(_dollar_dollar, :assign) else - _t1558 = nothing + _t1582 = nothing end - return _t1558 + return _t1582 end - _t1559 = _t1557(msg) - deconstruct_result1035 = _t1559 - if !isnothing(deconstruct_result1035) - unwrapped1036 = deconstruct_result1035 - pretty_assign(pp, unwrapped1036) + _t1583 = _t1581(msg) + deconstruct_result1047 = _t1583 + if !isnothing(deconstruct_result1047) + unwrapped1048 = deconstruct_result1047 + pretty_assign(pp, unwrapped1048) else - function _t1560(_dollar_dollar) + function _t1584(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("upsert")) - _t1561 = _get_oneof_field(_dollar_dollar, :upsert) + _t1585 = _get_oneof_field(_dollar_dollar, :upsert) else - _t1561 = nothing + _t1585 = nothing end - return _t1561 + return _t1585 end - _t1562 = _t1560(msg) - deconstruct_result1033 = _t1562 - if !isnothing(deconstruct_result1033) - unwrapped1034 = deconstruct_result1033 - pretty_upsert(pp, unwrapped1034) + _t1586 = _t1584(msg) + deconstruct_result1045 = _t1586 + if !isnothing(deconstruct_result1045) + unwrapped1046 = deconstruct_result1045 + pretty_upsert(pp, unwrapped1046) else - function _t1563(_dollar_dollar) + function _t1587(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("#break")) - _t1564 = _get_oneof_field(_dollar_dollar, :var"#break") + _t1588 = _get_oneof_field(_dollar_dollar, :var"#break") else - _t1564 = nothing + _t1588 = nothing end - return _t1564 + return _t1588 end - _t1565 = _t1563(msg) - deconstruct_result1031 = _t1565 - if !isnothing(deconstruct_result1031) - unwrapped1032 = deconstruct_result1031 - pretty_break(pp, unwrapped1032) + _t1589 = _t1587(msg) + deconstruct_result1043 = _t1589 + if !isnothing(deconstruct_result1043) + unwrapped1044 = deconstruct_result1043 + pretty_break(pp, unwrapped1044) else - function _t1566(_dollar_dollar) + function _t1590(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("monoid_def")) - _t1567 = _get_oneof_field(_dollar_dollar, :monoid_def) + _t1591 = _get_oneof_field(_dollar_dollar, :monoid_def) else - _t1567 = nothing + _t1591 = nothing end - return _t1567 + return _t1591 end - _t1568 = _t1566(msg) - deconstruct_result1029 = _t1568 - if !isnothing(deconstruct_result1029) - unwrapped1030 = deconstruct_result1029 - pretty_monoid_def(pp, unwrapped1030) + _t1592 = _t1590(msg) + deconstruct_result1041 = _t1592 + if !isnothing(deconstruct_result1041) + unwrapped1042 = deconstruct_result1041 + pretty_monoid_def(pp, unwrapped1042) else - function _t1569(_dollar_dollar) + function _t1593(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("monus_def")) - _t1570 = _get_oneof_field(_dollar_dollar, :monus_def) + _t1594 = _get_oneof_field(_dollar_dollar, :monus_def) else - _t1570 = nothing + _t1594 = nothing end - return _t1570 + return _t1594 end - _t1571 = _t1569(msg) - deconstruct_result1027 = _t1571 - if !isnothing(deconstruct_result1027) - unwrapped1028 = deconstruct_result1027 - pretty_monus_def(pp, unwrapped1028) + _t1595 = _t1593(msg) + deconstruct_result1039 = _t1595 + if !isnothing(deconstruct_result1039) + unwrapped1040 = deconstruct_result1039 + pretty_monus_def(pp, unwrapped1040) else throw(ParseError("No matching rule for instruction")) end @@ -3157,36 +3161,36 @@ function pretty_instruction(pp::PrettyPrinter, msg::Proto.Instruction) end function pretty_assign(pp::PrettyPrinter, msg::Proto.Assign) - flat1044 = try_flat(pp, msg, pretty_assign) - if !isnothing(flat1044) - write(pp, flat1044) + flat1056 = try_flat(pp, msg, pretty_assign) + if !isnothing(flat1056) + write(pp, flat1056) return nothing else - function _t1572(_dollar_dollar) + function _t1596(_dollar_dollar) if !isempty(_dollar_dollar.attrs) - _t1573 = _dollar_dollar.attrs + _t1597 = _dollar_dollar.attrs else - _t1573 = nothing + _t1597 = nothing end - return (_dollar_dollar.name, _dollar_dollar.body, _t1573,) + return (_dollar_dollar.name, _dollar_dollar.body, _t1597,) end - _t1574 = _t1572(msg) - fields1038 = _t1574 - unwrapped_fields1039 = fields1038 + _t1598 = _t1596(msg) + fields1050 = _t1598 + unwrapped_fields1051 = fields1050 write(pp, "(") write(pp, "assign") indent_sexp!(pp) newline(pp) - field1040 = unwrapped_fields1039[1] - pretty_relation_id(pp, field1040) + field1052 = unwrapped_fields1051[1] + pretty_relation_id(pp, field1052) newline(pp) - field1041 = unwrapped_fields1039[2] - pretty_abstraction(pp, field1041) - field1042 = unwrapped_fields1039[3] - if !isnothing(field1042) + field1053 = unwrapped_fields1051[2] + pretty_abstraction(pp, field1053) + field1054 = unwrapped_fields1051[3] + if !isnothing(field1054) newline(pp) - opt_val1043 = field1042 - pretty_attrs(pp, opt_val1043) + opt_val1055 = field1054 + pretty_attrs(pp, opt_val1055) end dedent!(pp) write(pp, ")") @@ -3195,36 +3199,36 @@ function pretty_assign(pp::PrettyPrinter, msg::Proto.Assign) end function pretty_upsert(pp::PrettyPrinter, msg::Proto.Upsert) - flat1051 = try_flat(pp, msg, pretty_upsert) - if !isnothing(flat1051) - write(pp, flat1051) + flat1063 = try_flat(pp, msg, pretty_upsert) + if !isnothing(flat1063) + write(pp, flat1063) return nothing else - function _t1575(_dollar_dollar) + function _t1599(_dollar_dollar) if !isempty(_dollar_dollar.attrs) - _t1576 = _dollar_dollar.attrs + _t1600 = _dollar_dollar.attrs else - _t1576 = nothing + _t1600 = nothing end - return (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1576,) + return (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1600,) end - _t1577 = _t1575(msg) - fields1045 = _t1577 - unwrapped_fields1046 = fields1045 + _t1601 = _t1599(msg) + fields1057 = _t1601 + unwrapped_fields1058 = fields1057 write(pp, "(") write(pp, "upsert") indent_sexp!(pp) newline(pp) - field1047 = unwrapped_fields1046[1] - pretty_relation_id(pp, field1047) + field1059 = unwrapped_fields1058[1] + pretty_relation_id(pp, field1059) newline(pp) - field1048 = unwrapped_fields1046[2] - pretty_abstraction_with_arity(pp, field1048) - field1049 = unwrapped_fields1046[3] - if !isnothing(field1049) + field1060 = unwrapped_fields1058[2] + pretty_abstraction_with_arity(pp, field1060) + field1061 = unwrapped_fields1058[3] + if !isnothing(field1061) newline(pp) - opt_val1050 = field1049 - pretty_attrs(pp, opt_val1050) + opt_val1062 = field1061 + pretty_attrs(pp, opt_val1062) end dedent!(pp) write(pp, ")") @@ -3233,25 +3237,25 @@ function pretty_upsert(pp::PrettyPrinter, msg::Proto.Upsert) end function pretty_abstraction_with_arity(pp::PrettyPrinter, msg::Tuple{Proto.Abstraction, Int64}) - flat1056 = try_flat(pp, msg, pretty_abstraction_with_arity) - if !isnothing(flat1056) - write(pp, flat1056) + flat1068 = try_flat(pp, msg, pretty_abstraction_with_arity) + if !isnothing(flat1068) + write(pp, flat1068) return nothing else - function _t1578(_dollar_dollar) - _t1579 = deconstruct_bindings_with_arity(pp, _dollar_dollar[1], _dollar_dollar[2]) - return (_t1579, _dollar_dollar[1].value,) + function _t1602(_dollar_dollar) + _t1603 = deconstruct_bindings_with_arity(pp, _dollar_dollar[1], _dollar_dollar[2]) + return (_t1603, _dollar_dollar[1].value,) end - _t1580 = _t1578(msg) - fields1052 = _t1580 - unwrapped_fields1053 = fields1052 + _t1604 = _t1602(msg) + fields1064 = _t1604 + unwrapped_fields1065 = fields1064 write(pp, "(") indent!(pp) - field1054 = unwrapped_fields1053[1] - pretty_bindings(pp, field1054) + field1066 = unwrapped_fields1065[1] + pretty_bindings(pp, field1066) newline(pp) - field1055 = unwrapped_fields1053[2] - pretty_formula(pp, field1055) + field1067 = unwrapped_fields1065[2] + pretty_formula(pp, field1067) dedent!(pp) write(pp, ")") end @@ -3259,36 +3263,36 @@ function pretty_abstraction_with_arity(pp::PrettyPrinter, msg::Tuple{Proto.Abstr end function pretty_break(pp::PrettyPrinter, msg::Proto.Break) - flat1063 = try_flat(pp, msg, pretty_break) - if !isnothing(flat1063) - write(pp, flat1063) + flat1075 = try_flat(pp, msg, pretty_break) + if !isnothing(flat1075) + write(pp, flat1075) return nothing else - function _t1581(_dollar_dollar) + function _t1605(_dollar_dollar) if !isempty(_dollar_dollar.attrs) - _t1582 = _dollar_dollar.attrs + _t1606 = _dollar_dollar.attrs else - _t1582 = nothing + _t1606 = nothing end - return (_dollar_dollar.name, _dollar_dollar.body, _t1582,) + return (_dollar_dollar.name, _dollar_dollar.body, _t1606,) end - _t1583 = _t1581(msg) - fields1057 = _t1583 - unwrapped_fields1058 = fields1057 + _t1607 = _t1605(msg) + fields1069 = _t1607 + unwrapped_fields1070 = fields1069 write(pp, "(") write(pp, "break") indent_sexp!(pp) newline(pp) - field1059 = unwrapped_fields1058[1] - pretty_relation_id(pp, field1059) + field1071 = unwrapped_fields1070[1] + pretty_relation_id(pp, field1071) newline(pp) - field1060 = unwrapped_fields1058[2] - pretty_abstraction(pp, field1060) - field1061 = unwrapped_fields1058[3] - if !isnothing(field1061) + field1072 = unwrapped_fields1070[2] + pretty_abstraction(pp, field1072) + field1073 = unwrapped_fields1070[3] + if !isnothing(field1073) newline(pp) - opt_val1062 = field1061 - pretty_attrs(pp, opt_val1062) + opt_val1074 = field1073 + pretty_attrs(pp, opt_val1074) end dedent!(pp) write(pp, ")") @@ -3297,39 +3301,39 @@ function pretty_break(pp::PrettyPrinter, msg::Proto.Break) end function pretty_monoid_def(pp::PrettyPrinter, msg::Proto.MonoidDef) - flat1071 = try_flat(pp, msg, pretty_monoid_def) - if !isnothing(flat1071) - write(pp, flat1071) + flat1083 = try_flat(pp, msg, pretty_monoid_def) + if !isnothing(flat1083) + write(pp, flat1083) return nothing else - function _t1584(_dollar_dollar) + function _t1608(_dollar_dollar) if !isempty(_dollar_dollar.attrs) - _t1585 = _dollar_dollar.attrs + _t1609 = _dollar_dollar.attrs else - _t1585 = nothing + _t1609 = nothing end - return (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1585,) + return (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1609,) end - _t1586 = _t1584(msg) - fields1064 = _t1586 - unwrapped_fields1065 = fields1064 + _t1610 = _t1608(msg) + fields1076 = _t1610 + unwrapped_fields1077 = fields1076 write(pp, "(") write(pp, "monoid") indent_sexp!(pp) newline(pp) - field1066 = unwrapped_fields1065[1] - pretty_monoid(pp, field1066) + field1078 = unwrapped_fields1077[1] + pretty_monoid(pp, field1078) newline(pp) - field1067 = unwrapped_fields1065[2] - pretty_relation_id(pp, field1067) + field1079 = unwrapped_fields1077[2] + pretty_relation_id(pp, field1079) newline(pp) - field1068 = unwrapped_fields1065[3] - pretty_abstraction_with_arity(pp, field1068) - field1069 = unwrapped_fields1065[4] - if !isnothing(field1069) + field1080 = unwrapped_fields1077[3] + pretty_abstraction_with_arity(pp, field1080) + field1081 = unwrapped_fields1077[4] + if !isnothing(field1081) newline(pp) - opt_val1070 = field1069 - pretty_attrs(pp, opt_val1070) + opt_val1082 = field1081 + pretty_attrs(pp, opt_val1082) end dedent!(pp) write(pp, ")") @@ -3338,66 +3342,66 @@ function pretty_monoid_def(pp::PrettyPrinter, msg::Proto.MonoidDef) end function pretty_monoid(pp::PrettyPrinter, msg::Proto.Monoid) - flat1080 = try_flat(pp, msg, pretty_monoid) - if !isnothing(flat1080) - write(pp, flat1080) + flat1092 = try_flat(pp, msg, pretty_monoid) + if !isnothing(flat1092) + write(pp, flat1092) return nothing else - function _t1587(_dollar_dollar) + function _t1611(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("or_monoid")) - _t1588 = _get_oneof_field(_dollar_dollar, :or_monoid) + _t1612 = _get_oneof_field(_dollar_dollar, :or_monoid) else - _t1588 = nothing + _t1612 = nothing end - return _t1588 + return _t1612 end - _t1589 = _t1587(msg) - deconstruct_result1078 = _t1589 - if !isnothing(deconstruct_result1078) - unwrapped1079 = deconstruct_result1078 - pretty_or_monoid(pp, unwrapped1079) + _t1613 = _t1611(msg) + deconstruct_result1090 = _t1613 + if !isnothing(deconstruct_result1090) + unwrapped1091 = deconstruct_result1090 + pretty_or_monoid(pp, unwrapped1091) else - function _t1590(_dollar_dollar) + function _t1614(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("min_monoid")) - _t1591 = _get_oneof_field(_dollar_dollar, :min_monoid) + _t1615 = _get_oneof_field(_dollar_dollar, :min_monoid) else - _t1591 = nothing + _t1615 = nothing end - return _t1591 + return _t1615 end - _t1592 = _t1590(msg) - deconstruct_result1076 = _t1592 - if !isnothing(deconstruct_result1076) - unwrapped1077 = deconstruct_result1076 - pretty_min_monoid(pp, unwrapped1077) + _t1616 = _t1614(msg) + deconstruct_result1088 = _t1616 + if !isnothing(deconstruct_result1088) + unwrapped1089 = deconstruct_result1088 + pretty_min_monoid(pp, unwrapped1089) else - function _t1593(_dollar_dollar) + function _t1617(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("max_monoid")) - _t1594 = _get_oneof_field(_dollar_dollar, :max_monoid) + _t1618 = _get_oneof_field(_dollar_dollar, :max_monoid) else - _t1594 = nothing + _t1618 = nothing end - return _t1594 + return _t1618 end - _t1595 = _t1593(msg) - deconstruct_result1074 = _t1595 - if !isnothing(deconstruct_result1074) - unwrapped1075 = deconstruct_result1074 - pretty_max_monoid(pp, unwrapped1075) + _t1619 = _t1617(msg) + deconstruct_result1086 = _t1619 + if !isnothing(deconstruct_result1086) + unwrapped1087 = deconstruct_result1086 + pretty_max_monoid(pp, unwrapped1087) else - function _t1596(_dollar_dollar) + function _t1620(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("sum_monoid")) - _t1597 = _get_oneof_field(_dollar_dollar, :sum_monoid) + _t1621 = _get_oneof_field(_dollar_dollar, :sum_monoid) else - _t1597 = nothing + _t1621 = nothing end - return _t1597 + return _t1621 end - _t1598 = _t1596(msg) - deconstruct_result1072 = _t1598 - if !isnothing(deconstruct_result1072) - unwrapped1073 = deconstruct_result1072 - pretty_sum_monoid(pp, unwrapped1073) + _t1622 = _t1620(msg) + deconstruct_result1084 = _t1622 + if !isnothing(deconstruct_result1084) + unwrapped1085 = deconstruct_result1084 + pretty_sum_monoid(pp, unwrapped1085) else throw(ParseError("No matching rule for monoid")) end @@ -3409,7 +3413,7 @@ function pretty_monoid(pp::PrettyPrinter, msg::Proto.Monoid) end function pretty_or_monoid(pp::PrettyPrinter, msg::Proto.OrMonoid) - fields1081 = msg + fields1093 = msg write(pp, "(") write(pp, "or") write(pp, ")") @@ -3417,22 +3421,22 @@ function pretty_or_monoid(pp::PrettyPrinter, msg::Proto.OrMonoid) end function pretty_min_monoid(pp::PrettyPrinter, msg::Proto.MinMonoid) - flat1084 = try_flat(pp, msg, pretty_min_monoid) - if !isnothing(flat1084) - write(pp, flat1084) + flat1096 = try_flat(pp, msg, pretty_min_monoid) + if !isnothing(flat1096) + write(pp, flat1096) return nothing else - function _t1599(_dollar_dollar) + function _t1623(_dollar_dollar) return _dollar_dollar.var"#type" end - _t1600 = _t1599(msg) - fields1082 = _t1600 - unwrapped_fields1083 = fields1082 + _t1624 = _t1623(msg) + fields1094 = _t1624 + unwrapped_fields1095 = fields1094 write(pp, "(") write(pp, "min") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1083) + pretty_type(pp, unwrapped_fields1095) dedent!(pp) write(pp, ")") end @@ -3440,22 +3444,22 @@ function pretty_min_monoid(pp::PrettyPrinter, msg::Proto.MinMonoid) end function pretty_max_monoid(pp::PrettyPrinter, msg::Proto.MaxMonoid) - flat1087 = try_flat(pp, msg, pretty_max_monoid) - if !isnothing(flat1087) - write(pp, flat1087) + flat1099 = try_flat(pp, msg, pretty_max_monoid) + if !isnothing(flat1099) + write(pp, flat1099) return nothing else - function _t1601(_dollar_dollar) + function _t1625(_dollar_dollar) return _dollar_dollar.var"#type" end - _t1602 = _t1601(msg) - fields1085 = _t1602 - unwrapped_fields1086 = fields1085 + _t1626 = _t1625(msg) + fields1097 = _t1626 + unwrapped_fields1098 = fields1097 write(pp, "(") write(pp, "max") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1086) + pretty_type(pp, unwrapped_fields1098) dedent!(pp) write(pp, ")") end @@ -3463,22 +3467,22 @@ function pretty_max_monoid(pp::PrettyPrinter, msg::Proto.MaxMonoid) end function pretty_sum_monoid(pp::PrettyPrinter, msg::Proto.SumMonoid) - flat1090 = try_flat(pp, msg, pretty_sum_monoid) - if !isnothing(flat1090) - write(pp, flat1090) + flat1102 = try_flat(pp, msg, pretty_sum_monoid) + if !isnothing(flat1102) + write(pp, flat1102) return nothing else - function _t1603(_dollar_dollar) + function _t1627(_dollar_dollar) return _dollar_dollar.var"#type" end - _t1604 = _t1603(msg) - fields1088 = _t1604 - unwrapped_fields1089 = fields1088 + _t1628 = _t1627(msg) + fields1100 = _t1628 + unwrapped_fields1101 = fields1100 write(pp, "(") write(pp, "sum") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1089) + pretty_type(pp, unwrapped_fields1101) dedent!(pp) write(pp, ")") end @@ -3486,39 +3490,39 @@ function pretty_sum_monoid(pp::PrettyPrinter, msg::Proto.SumMonoid) end function pretty_monus_def(pp::PrettyPrinter, msg::Proto.MonusDef) - flat1098 = try_flat(pp, msg, pretty_monus_def) - if !isnothing(flat1098) - write(pp, flat1098) + flat1110 = try_flat(pp, msg, pretty_monus_def) + if !isnothing(flat1110) + write(pp, flat1110) return nothing else - function _t1605(_dollar_dollar) + function _t1629(_dollar_dollar) if !isempty(_dollar_dollar.attrs) - _t1606 = _dollar_dollar.attrs + _t1630 = _dollar_dollar.attrs else - _t1606 = nothing + _t1630 = nothing end - return (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1606,) + return (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1630,) end - _t1607 = _t1605(msg) - fields1091 = _t1607 - unwrapped_fields1092 = fields1091 + _t1631 = _t1629(msg) + fields1103 = _t1631 + unwrapped_fields1104 = fields1103 write(pp, "(") write(pp, "monus") indent_sexp!(pp) newline(pp) - field1093 = unwrapped_fields1092[1] - pretty_monoid(pp, field1093) + field1105 = unwrapped_fields1104[1] + pretty_monoid(pp, field1105) newline(pp) - field1094 = unwrapped_fields1092[2] - pretty_relation_id(pp, field1094) + field1106 = unwrapped_fields1104[2] + pretty_relation_id(pp, field1106) newline(pp) - field1095 = unwrapped_fields1092[3] - pretty_abstraction_with_arity(pp, field1095) - field1096 = unwrapped_fields1092[4] - if !isnothing(field1096) + field1107 = unwrapped_fields1104[3] + pretty_abstraction_with_arity(pp, field1107) + field1108 = unwrapped_fields1104[4] + if !isnothing(field1108) newline(pp) - opt_val1097 = field1096 - pretty_attrs(pp, opt_val1097) + opt_val1109 = field1108 + pretty_attrs(pp, opt_val1109) end dedent!(pp) write(pp, ")") @@ -3527,32 +3531,32 @@ function pretty_monus_def(pp::PrettyPrinter, msg::Proto.MonusDef) end function pretty_constraint(pp::PrettyPrinter, msg::Proto.Constraint) - flat1105 = try_flat(pp, msg, pretty_constraint) - if !isnothing(flat1105) - write(pp, flat1105) + flat1117 = try_flat(pp, msg, pretty_constraint) + if !isnothing(flat1117) + write(pp, flat1117) return nothing else - function _t1608(_dollar_dollar) + function _t1632(_dollar_dollar) return (_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,) end - _t1609 = _t1608(msg) - fields1099 = _t1609 - unwrapped_fields1100 = fields1099 + _t1633 = _t1632(msg) + fields1111 = _t1633 + unwrapped_fields1112 = fields1111 write(pp, "(") write(pp, "functional_dependency") indent_sexp!(pp) newline(pp) - field1101 = unwrapped_fields1100[1] - pretty_relation_id(pp, field1101) + field1113 = unwrapped_fields1112[1] + pretty_relation_id(pp, field1113) newline(pp) - field1102 = unwrapped_fields1100[2] - pretty_abstraction(pp, field1102) + field1114 = unwrapped_fields1112[2] + pretty_abstraction(pp, field1114) newline(pp) - field1103 = unwrapped_fields1100[3] - pretty_functional_dependency_keys(pp, field1103) + field1115 = unwrapped_fields1112[3] + pretty_functional_dependency_keys(pp, field1115) newline(pp) - field1104 = unwrapped_fields1100[4] - pretty_functional_dependency_values(pp, field1104) + field1116 = unwrapped_fields1112[4] + pretty_functional_dependency_values(pp, field1116) dedent!(pp) write(pp, ")") end @@ -3560,23 +3564,23 @@ function pretty_constraint(pp::PrettyPrinter, msg::Proto.Constraint) end function pretty_functional_dependency_keys(pp::PrettyPrinter, msg::Vector{Proto.Var}) - flat1109 = try_flat(pp, msg, pretty_functional_dependency_keys) - if !isnothing(flat1109) - write(pp, flat1109) + flat1121 = try_flat(pp, msg, pretty_functional_dependency_keys) + if !isnothing(flat1121) + write(pp, flat1121) return nothing else - fields1106 = msg + fields1118 = msg write(pp, "(") write(pp, "keys") indent_sexp!(pp) - if !isempty(fields1106) + if !isempty(fields1118) newline(pp) - for (i1610, elem1107) in enumerate(fields1106) - i1108 = i1610 - 1 - if (i1108 > 0) + for (i1634, elem1119) in enumerate(fields1118) + i1120 = i1634 - 1 + if (i1120 > 0) newline(pp) end - pretty_var(pp, elem1107) + pretty_var(pp, elem1119) end end dedent!(pp) @@ -3586,23 +3590,23 @@ function pretty_functional_dependency_keys(pp::PrettyPrinter, msg::Vector{Proto. end function pretty_functional_dependency_values(pp::PrettyPrinter, msg::Vector{Proto.Var}) - flat1113 = try_flat(pp, msg, pretty_functional_dependency_values) - if !isnothing(flat1113) - write(pp, flat1113) + flat1125 = try_flat(pp, msg, pretty_functional_dependency_values) + if !isnothing(flat1125) + write(pp, flat1125) return nothing else - fields1110 = msg + fields1122 = msg write(pp, "(") write(pp, "values") indent_sexp!(pp) - if !isempty(fields1110) + if !isempty(fields1122) newline(pp) - for (i1611, elem1111) in enumerate(fields1110) - i1112 = i1611 - 1 - if (i1112 > 0) + for (i1635, elem1123) in enumerate(fields1122) + i1124 = i1635 - 1 + if (i1124 > 0) newline(pp) end - pretty_var(pp, elem1111) + pretty_var(pp, elem1123) end end dedent!(pp) @@ -3612,52 +3616,52 @@ function pretty_functional_dependency_values(pp::PrettyPrinter, msg::Vector{Prot end function pretty_data(pp::PrettyPrinter, msg::Proto.Data) - flat1120 = try_flat(pp, msg, pretty_data) - if !isnothing(flat1120) - write(pp, flat1120) + flat1132 = try_flat(pp, msg, pretty_data) + if !isnothing(flat1132) + write(pp, flat1132) return nothing else - function _t1612(_dollar_dollar) + function _t1636(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("rel_edb")) - _t1613 = _get_oneof_field(_dollar_dollar, :rel_edb) + _t1637 = _get_oneof_field(_dollar_dollar, :rel_edb) else - _t1613 = nothing + _t1637 = nothing end - return _t1613 + return _t1637 end - _t1614 = _t1612(msg) - deconstruct_result1118 = _t1614 - if !isnothing(deconstruct_result1118) - unwrapped1119 = deconstruct_result1118 - pretty_rel_edb(pp, unwrapped1119) + _t1638 = _t1636(msg) + deconstruct_result1130 = _t1638 + if !isnothing(deconstruct_result1130) + unwrapped1131 = deconstruct_result1130 + pretty_rel_edb(pp, unwrapped1131) else - function _t1615(_dollar_dollar) + function _t1639(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("betree_relation")) - _t1616 = _get_oneof_field(_dollar_dollar, :betree_relation) + _t1640 = _get_oneof_field(_dollar_dollar, :betree_relation) else - _t1616 = nothing + _t1640 = nothing end - return _t1616 + return _t1640 end - _t1617 = _t1615(msg) - deconstruct_result1116 = _t1617 - if !isnothing(deconstruct_result1116) - unwrapped1117 = deconstruct_result1116 - pretty_betree_relation(pp, unwrapped1117) + _t1641 = _t1639(msg) + deconstruct_result1128 = _t1641 + if !isnothing(deconstruct_result1128) + unwrapped1129 = deconstruct_result1128 + pretty_betree_relation(pp, unwrapped1129) else - function _t1618(_dollar_dollar) + function _t1642(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("csv_data")) - _t1619 = _get_oneof_field(_dollar_dollar, :csv_data) + _t1643 = _get_oneof_field(_dollar_dollar, :csv_data) else - _t1619 = nothing + _t1643 = nothing end - return _t1619 + return _t1643 end - _t1620 = _t1618(msg) - deconstruct_result1114 = _t1620 - if !isnothing(deconstruct_result1114) - unwrapped1115 = deconstruct_result1114 - pretty_csv_data(pp, unwrapped1115) + _t1644 = _t1642(msg) + deconstruct_result1126 = _t1644 + if !isnothing(deconstruct_result1126) + unwrapped1127 = deconstruct_result1126 + pretty_csv_data(pp, unwrapped1127) else throw(ParseError("No matching rule for data")) end @@ -3668,29 +3672,29 @@ function pretty_data(pp::PrettyPrinter, msg::Proto.Data) end function pretty_rel_edb(pp::PrettyPrinter, msg::Proto.RelEDB) - flat1126 = try_flat(pp, msg, pretty_rel_edb) - if !isnothing(flat1126) - write(pp, flat1126) + flat1138 = try_flat(pp, msg, pretty_rel_edb) + if !isnothing(flat1138) + write(pp, flat1138) return nothing else - function _t1621(_dollar_dollar) + function _t1645(_dollar_dollar) return (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) end - _t1622 = _t1621(msg) - fields1121 = _t1622 - unwrapped_fields1122 = fields1121 + _t1646 = _t1645(msg) + fields1133 = _t1646 + unwrapped_fields1134 = fields1133 write(pp, "(") write(pp, "rel_edb") indent_sexp!(pp) newline(pp) - field1123 = unwrapped_fields1122[1] - pretty_relation_id(pp, field1123) + field1135 = unwrapped_fields1134[1] + pretty_relation_id(pp, field1135) newline(pp) - field1124 = unwrapped_fields1122[2] - pretty_rel_edb_path(pp, field1124) + field1136 = unwrapped_fields1134[2] + pretty_rel_edb_path(pp, field1136) newline(pp) - field1125 = unwrapped_fields1122[3] - pretty_rel_edb_types(pp, field1125) + field1137 = unwrapped_fields1134[3] + pretty_rel_edb_types(pp, field1137) dedent!(pp) write(pp, ")") end @@ -3698,20 +3702,20 @@ function pretty_rel_edb(pp::PrettyPrinter, msg::Proto.RelEDB) end function pretty_rel_edb_path(pp::PrettyPrinter, msg::Vector{String}) - flat1130 = try_flat(pp, msg, pretty_rel_edb_path) - if !isnothing(flat1130) - write(pp, flat1130) + flat1142 = try_flat(pp, msg, pretty_rel_edb_path) + if !isnothing(flat1142) + write(pp, flat1142) return nothing else - fields1127 = msg + fields1139 = msg write(pp, "[") indent!(pp) - for (i1623, elem1128) in enumerate(fields1127) - i1129 = i1623 - 1 - if (i1129 > 0) + for (i1647, elem1140) in enumerate(fields1139) + i1141 = i1647 - 1 + if (i1141 > 0) newline(pp) end - write(pp, format_string(pp, elem1128)) + write(pp, format_string(pp, elem1140)) end dedent!(pp) write(pp, "]") @@ -3720,20 +3724,20 @@ function pretty_rel_edb_path(pp::PrettyPrinter, msg::Vector{String}) end function pretty_rel_edb_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) - flat1134 = try_flat(pp, msg, pretty_rel_edb_types) - if !isnothing(flat1134) - write(pp, flat1134) + flat1146 = try_flat(pp, msg, pretty_rel_edb_types) + if !isnothing(flat1146) + write(pp, flat1146) return nothing else - fields1131 = msg + fields1143 = msg write(pp, "[") indent!(pp) - for (i1624, elem1132) in enumerate(fields1131) - i1133 = i1624 - 1 - if (i1133 > 0) + for (i1648, elem1144) in enumerate(fields1143) + i1145 = i1648 - 1 + if (i1145 > 0) newline(pp) end - pretty_type(pp, elem1132) + pretty_type(pp, elem1144) end dedent!(pp) write(pp, "]") @@ -3742,26 +3746,26 @@ function pretty_rel_edb_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) end function pretty_betree_relation(pp::PrettyPrinter, msg::Proto.BeTreeRelation) - flat1139 = try_flat(pp, msg, pretty_betree_relation) - if !isnothing(flat1139) - write(pp, flat1139) + flat1151 = try_flat(pp, msg, pretty_betree_relation) + if !isnothing(flat1151) + write(pp, flat1151) return nothing else - function _t1625(_dollar_dollar) + function _t1649(_dollar_dollar) return (_dollar_dollar.name, _dollar_dollar.relation_info,) end - _t1626 = _t1625(msg) - fields1135 = _t1626 - unwrapped_fields1136 = fields1135 + _t1650 = _t1649(msg) + fields1147 = _t1650 + unwrapped_fields1148 = fields1147 write(pp, "(") write(pp, "betree_relation") indent_sexp!(pp) newline(pp) - field1137 = unwrapped_fields1136[1] - pretty_relation_id(pp, field1137) + field1149 = unwrapped_fields1148[1] + pretty_relation_id(pp, field1149) newline(pp) - field1138 = unwrapped_fields1136[2] - pretty_betree_info(pp, field1138) + field1150 = unwrapped_fields1148[2] + pretty_betree_info(pp, field1150) dedent!(pp) write(pp, ")") end @@ -3769,30 +3773,30 @@ function pretty_betree_relation(pp::PrettyPrinter, msg::Proto.BeTreeRelation) end function pretty_betree_info(pp::PrettyPrinter, msg::Proto.BeTreeInfo) - flat1145 = try_flat(pp, msg, pretty_betree_info) - if !isnothing(flat1145) - write(pp, flat1145) + flat1157 = try_flat(pp, msg, pretty_betree_info) + if !isnothing(flat1157) + write(pp, flat1157) return nothing else - function _t1627(_dollar_dollar) - _t1628 = deconstruct_betree_info_config(pp, _dollar_dollar) - return (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1628,) + function _t1651(_dollar_dollar) + _t1652 = deconstruct_betree_info_config(pp, _dollar_dollar) + return (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1652,) end - _t1629 = _t1627(msg) - fields1140 = _t1629 - unwrapped_fields1141 = fields1140 + _t1653 = _t1651(msg) + fields1152 = _t1653 + unwrapped_fields1153 = fields1152 write(pp, "(") write(pp, "betree_info") indent_sexp!(pp) newline(pp) - field1142 = unwrapped_fields1141[1] - pretty_betree_info_key_types(pp, field1142) + field1154 = unwrapped_fields1153[1] + pretty_betree_info_key_types(pp, field1154) newline(pp) - field1143 = unwrapped_fields1141[2] - pretty_betree_info_value_types(pp, field1143) + field1155 = unwrapped_fields1153[2] + pretty_betree_info_value_types(pp, field1155) newline(pp) - field1144 = unwrapped_fields1141[3] - pretty_config_dict(pp, field1144) + field1156 = unwrapped_fields1153[3] + pretty_config_dict(pp, field1156) dedent!(pp) write(pp, ")") end @@ -3800,23 +3804,23 @@ function pretty_betree_info(pp::PrettyPrinter, msg::Proto.BeTreeInfo) end function pretty_betree_info_key_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) - flat1149 = try_flat(pp, msg, pretty_betree_info_key_types) - if !isnothing(flat1149) - write(pp, flat1149) + flat1161 = try_flat(pp, msg, pretty_betree_info_key_types) + if !isnothing(flat1161) + write(pp, flat1161) return nothing else - fields1146 = msg + fields1158 = msg write(pp, "(") write(pp, "key_types") indent_sexp!(pp) - if !isempty(fields1146) + if !isempty(fields1158) newline(pp) - for (i1630, elem1147) in enumerate(fields1146) - i1148 = i1630 - 1 - if (i1148 > 0) + for (i1654, elem1159) in enumerate(fields1158) + i1160 = i1654 - 1 + if (i1160 > 0) newline(pp) end - pretty_type(pp, elem1147) + pretty_type(pp, elem1159) end end dedent!(pp) @@ -3826,23 +3830,23 @@ 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"}) - flat1153 = try_flat(pp, msg, pretty_betree_info_value_types) - if !isnothing(flat1153) - write(pp, flat1153) + flat1165 = try_flat(pp, msg, pretty_betree_info_value_types) + if !isnothing(flat1165) + write(pp, flat1165) return nothing else - fields1150 = msg + fields1162 = msg write(pp, "(") write(pp, "value_types") indent_sexp!(pp) - if !isempty(fields1150) + if !isempty(fields1162) newline(pp) - for (i1631, elem1151) in enumerate(fields1150) - i1152 = i1631 - 1 - if (i1152 > 0) + for (i1655, elem1163) in enumerate(fields1162) + i1164 = i1655 - 1 + if (i1164 > 0) newline(pp) end - pretty_type(pp, elem1151) + pretty_type(pp, elem1163) end end dedent!(pp) @@ -3852,32 +3856,32 @@ function pretty_betree_info_value_types(pp::PrettyPrinter, msg::Vector{Proto.var end function pretty_csv_data(pp::PrettyPrinter, msg::Proto.CSVData) - flat1160 = try_flat(pp, msg, pretty_csv_data) - if !isnothing(flat1160) - write(pp, flat1160) + flat1172 = try_flat(pp, msg, pretty_csv_data) + if !isnothing(flat1172) + write(pp, flat1172) return nothing else - function _t1632(_dollar_dollar) + function _t1656(_dollar_dollar) return (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) end - _t1633 = _t1632(msg) - fields1154 = _t1633 - unwrapped_fields1155 = fields1154 + _t1657 = _t1656(msg) + fields1166 = _t1657 + unwrapped_fields1167 = fields1166 write(pp, "(") write(pp, "csv_data") indent_sexp!(pp) newline(pp) - field1156 = unwrapped_fields1155[1] - pretty_csvlocator(pp, field1156) + field1168 = unwrapped_fields1167[1] + pretty_csvlocator(pp, field1168) newline(pp) - field1157 = unwrapped_fields1155[2] - pretty_csv_config(pp, field1157) + field1169 = unwrapped_fields1167[2] + pretty_csv_config(pp, field1169) newline(pp) - field1158 = unwrapped_fields1155[3] - pretty_csv_columns(pp, field1158) + field1170 = unwrapped_fields1167[3] + pretty_csv_columns(pp, field1170) newline(pp) - field1159 = unwrapped_fields1155[4] - pretty_csv_asof(pp, field1159) + field1171 = unwrapped_fields1167[4] + pretty_csv_asof(pp, field1171) dedent!(pp) write(pp, ")") end @@ -3885,41 +3889,41 @@ function pretty_csv_data(pp::PrettyPrinter, msg::Proto.CSVData) end function pretty_csvlocator(pp::PrettyPrinter, msg::Proto.CSVLocator) - flat1167 = try_flat(pp, msg, pretty_csvlocator) - if !isnothing(flat1167) - write(pp, flat1167) + flat1179 = try_flat(pp, msg, pretty_csvlocator) + if !isnothing(flat1179) + write(pp, flat1179) return nothing else - function _t1634(_dollar_dollar) + function _t1658(_dollar_dollar) if !isempty(_dollar_dollar.paths) - _t1635 = _dollar_dollar.paths + _t1659 = _dollar_dollar.paths else - _t1635 = nothing + _t1659 = nothing end if String(copy(_dollar_dollar.inline_data)) != "" - _t1636 = String(copy(_dollar_dollar.inline_data)) + _t1660 = String(copy(_dollar_dollar.inline_data)) else - _t1636 = nothing + _t1660 = nothing end - return (_t1635, _t1636,) + return (_t1659, _t1660,) end - _t1637 = _t1634(msg) - fields1161 = _t1637 - unwrapped_fields1162 = fields1161 + _t1661 = _t1658(msg) + fields1173 = _t1661 + unwrapped_fields1174 = fields1173 write(pp, "(") write(pp, "csv_locator") indent_sexp!(pp) - field1163 = unwrapped_fields1162[1] - if !isnothing(field1163) + field1175 = unwrapped_fields1174[1] + if !isnothing(field1175) newline(pp) - opt_val1164 = field1163 - pretty_csv_locator_paths(pp, opt_val1164) + opt_val1176 = field1175 + pretty_csv_locator_paths(pp, opt_val1176) end - field1165 = unwrapped_fields1162[2] - if !isnothing(field1165) + field1177 = unwrapped_fields1174[2] + if !isnothing(field1177) newline(pp) - opt_val1166 = field1165 - pretty_csv_locator_inline_data(pp, opt_val1166) + opt_val1178 = field1177 + pretty_csv_locator_inline_data(pp, opt_val1178) end dedent!(pp) write(pp, ")") @@ -3928,23 +3932,23 @@ function pretty_csvlocator(pp::PrettyPrinter, msg::Proto.CSVLocator) end function pretty_csv_locator_paths(pp::PrettyPrinter, msg::Vector{String}) - flat1171 = try_flat(pp, msg, pretty_csv_locator_paths) - if !isnothing(flat1171) - write(pp, flat1171) + flat1183 = try_flat(pp, msg, pretty_csv_locator_paths) + if !isnothing(flat1183) + write(pp, flat1183) return nothing else - fields1168 = msg + fields1180 = msg write(pp, "(") write(pp, "paths") indent_sexp!(pp) - if !isempty(fields1168) + if !isempty(fields1180) newline(pp) - for (i1638, elem1169) in enumerate(fields1168) - i1170 = i1638 - 1 - if (i1170 > 0) + for (i1662, elem1181) in enumerate(fields1180) + i1182 = i1662 - 1 + if (i1182 > 0) newline(pp) end - write(pp, format_string(pp, elem1169)) + write(pp, format_string(pp, elem1181)) end end dedent!(pp) @@ -3954,17 +3958,17 @@ function pretty_csv_locator_paths(pp::PrettyPrinter, msg::Vector{String}) end function pretty_csv_locator_inline_data(pp::PrettyPrinter, msg::String) - flat1173 = try_flat(pp, msg, pretty_csv_locator_inline_data) - if !isnothing(flat1173) - write(pp, flat1173) + flat1185 = try_flat(pp, msg, pretty_csv_locator_inline_data) + if !isnothing(flat1185) + write(pp, flat1185) return nothing else - fields1172 = msg + fields1184 = msg write(pp, "(") write(pp, "inline_data") indent_sexp!(pp) newline(pp) - write(pp, format_string(pp, fields1172)) + write(pp, format_string(pp, fields1184)) dedent!(pp) write(pp, ")") end @@ -3972,23 +3976,23 @@ function pretty_csv_locator_inline_data(pp::PrettyPrinter, msg::String) end function pretty_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig) - flat1176 = try_flat(pp, msg, pretty_csv_config) - if !isnothing(flat1176) - write(pp, flat1176) + flat1188 = try_flat(pp, msg, pretty_csv_config) + if !isnothing(flat1188) + write(pp, flat1188) return nothing else - function _t1639(_dollar_dollar) - _t1640 = deconstruct_csv_config(pp, _dollar_dollar) - return _t1640 + function _t1663(_dollar_dollar) + _t1664 = deconstruct_csv_config(pp, _dollar_dollar) + return _t1664 end - _t1641 = _t1639(msg) - fields1174 = _t1641 - unwrapped_fields1175 = fields1174 + _t1665 = _t1663(msg) + fields1186 = _t1665 + unwrapped_fields1187 = fields1186 write(pp, "(") write(pp, "csv_config") indent_sexp!(pp) newline(pp) - pretty_config_dict(pp, unwrapped_fields1175) + pretty_config_dict(pp, unwrapped_fields1187) dedent!(pp) write(pp, ")") end @@ -3996,23 +4000,23 @@ function pretty_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig) end function pretty_csv_columns(pp::PrettyPrinter, msg::Vector{Proto.CSVColumn}) - flat1180 = try_flat(pp, msg, pretty_csv_columns) - if !isnothing(flat1180) - write(pp, flat1180) + flat1192 = try_flat(pp, msg, pretty_csv_columns) + if !isnothing(flat1192) + write(pp, flat1192) return nothing else - fields1177 = msg + fields1189 = msg write(pp, "(") write(pp, "columns") indent_sexp!(pp) - if !isempty(fields1177) + if !isempty(fields1189) newline(pp) - for (i1642, elem1178) in enumerate(fields1177) - i1179 = i1642 - 1 - if (i1179 > 0) + for (i1666, elem1190) in enumerate(fields1189) + i1191 = i1666 - 1 + if (i1191 > 0) newline(pp) end - pretty_csv_column(pp, elem1178) + pretty_csv_column(pp, elem1190) end end dedent!(pp) @@ -4022,35 +4026,35 @@ function pretty_csv_columns(pp::PrettyPrinter, msg::Vector{Proto.CSVColumn}) end function pretty_csv_column(pp::PrettyPrinter, msg::Proto.CSVColumn) - flat1188 = try_flat(pp, msg, pretty_csv_column) - if !isnothing(flat1188) - write(pp, flat1188) + flat1200 = try_flat(pp, msg, pretty_csv_column) + if !isnothing(flat1200) + write(pp, flat1200) return nothing else - function _t1643(_dollar_dollar) + function _t1667(_dollar_dollar) return (_dollar_dollar.column_name, _dollar_dollar.target_id, _dollar_dollar.types,) end - _t1644 = _t1643(msg) - fields1181 = _t1644 - unwrapped_fields1182 = fields1181 + _t1668 = _t1667(msg) + fields1193 = _t1668 + unwrapped_fields1194 = fields1193 write(pp, "(") write(pp, "column") indent_sexp!(pp) newline(pp) - field1183 = unwrapped_fields1182[1] - write(pp, format_string(pp, field1183)) + field1195 = unwrapped_fields1194[1] + write(pp, format_string(pp, field1195)) newline(pp) - field1184 = unwrapped_fields1182[2] - pretty_relation_id(pp, field1184) + field1196 = unwrapped_fields1194[2] + pretty_relation_id(pp, field1196) newline(pp) write(pp, "[") - field1185 = unwrapped_fields1182[3] - for (i1645, elem1186) in enumerate(field1185) - i1187 = i1645 - 1 - if (i1187 > 0) + field1197 = unwrapped_fields1194[3] + for (i1669, elem1198) in enumerate(field1197) + i1199 = i1669 - 1 + if (i1199 > 0) newline(pp) end - pretty_type(pp, elem1186) + pretty_type(pp, elem1198) end write(pp, "]") dedent!(pp) @@ -4060,17 +4064,17 @@ function pretty_csv_column(pp::PrettyPrinter, msg::Proto.CSVColumn) end function pretty_csv_asof(pp::PrettyPrinter, msg::String) - flat1190 = try_flat(pp, msg, pretty_csv_asof) - if !isnothing(flat1190) - write(pp, flat1190) + flat1202 = try_flat(pp, msg, pretty_csv_asof) + if !isnothing(flat1202) + write(pp, flat1202) return nothing else - fields1189 = msg + fields1201 = msg write(pp, "(") write(pp, "asof") indent_sexp!(pp) newline(pp) - write(pp, format_string(pp, fields1189)) + write(pp, format_string(pp, fields1201)) dedent!(pp) write(pp, ")") end @@ -4078,22 +4082,22 @@ function pretty_csv_asof(pp::PrettyPrinter, msg::String) end function pretty_undefine(pp::PrettyPrinter, msg::Proto.Undefine) - flat1193 = try_flat(pp, msg, pretty_undefine) - if !isnothing(flat1193) - write(pp, flat1193) + flat1205 = try_flat(pp, msg, pretty_undefine) + if !isnothing(flat1205) + write(pp, flat1205) return nothing else - function _t1646(_dollar_dollar) + function _t1670(_dollar_dollar) return _dollar_dollar.fragment_id end - _t1647 = _t1646(msg) - fields1191 = _t1647 - unwrapped_fields1192 = fields1191 + _t1671 = _t1670(msg) + fields1203 = _t1671 + unwrapped_fields1204 = fields1203 write(pp, "(") write(pp, "undefine") indent_sexp!(pp) newline(pp) - pretty_fragment_id(pp, unwrapped_fields1192) + pretty_fragment_id(pp, unwrapped_fields1204) dedent!(pp) write(pp, ")") end @@ -4101,28 +4105,28 @@ function pretty_undefine(pp::PrettyPrinter, msg::Proto.Undefine) end function pretty_context(pp::PrettyPrinter, msg::Proto.Context) - flat1198 = try_flat(pp, msg, pretty_context) - if !isnothing(flat1198) - write(pp, flat1198) + flat1210 = try_flat(pp, msg, pretty_context) + if !isnothing(flat1210) + write(pp, flat1210) return nothing else - function _t1648(_dollar_dollar) + function _t1672(_dollar_dollar) return _dollar_dollar.relations end - _t1649 = _t1648(msg) - fields1194 = _t1649 - unwrapped_fields1195 = fields1194 + _t1673 = _t1672(msg) + fields1206 = _t1673 + unwrapped_fields1207 = fields1206 write(pp, "(") write(pp, "context") indent_sexp!(pp) - if !isempty(unwrapped_fields1195) + if !isempty(unwrapped_fields1207) newline(pp) - for (i1650, elem1196) in enumerate(unwrapped_fields1195) - i1197 = i1650 - 1 - if (i1197 > 0) + for (i1674, elem1208) in enumerate(unwrapped_fields1207) + i1209 = i1674 - 1 + if (i1209 > 0) newline(pp) end - pretty_relation_id(pp, elem1196) + pretty_relation_id(pp, elem1208) end end dedent!(pp) @@ -4132,26 +4136,26 @@ function pretty_context(pp::PrettyPrinter, msg::Proto.Context) end function pretty_snapshot(pp::PrettyPrinter, msg::Proto.Snapshot) - flat1203 = try_flat(pp, msg, pretty_snapshot) - if !isnothing(flat1203) - write(pp, flat1203) + flat1215 = try_flat(pp, msg, pretty_snapshot) + if !isnothing(flat1215) + write(pp, flat1215) return nothing else - function _t1651(_dollar_dollar) + function _t1675(_dollar_dollar) return (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) end - _t1652 = _t1651(msg) - fields1199 = _t1652 - unwrapped_fields1200 = fields1199 + _t1676 = _t1675(msg) + fields1211 = _t1676 + unwrapped_fields1212 = fields1211 write(pp, "(") write(pp, "snapshot") indent_sexp!(pp) newline(pp) - field1201 = unwrapped_fields1200[1] - pretty_rel_edb_path(pp, field1201) + field1213 = unwrapped_fields1212[1] + pretty_rel_edb_path(pp, field1213) newline(pp) - field1202 = unwrapped_fields1200[2] - pretty_relation_id(pp, field1202) + field1214 = unwrapped_fields1212[2] + pretty_relation_id(pp, field1214) dedent!(pp) write(pp, ")") end @@ -4159,23 +4163,23 @@ function pretty_snapshot(pp::PrettyPrinter, msg::Proto.Snapshot) end function pretty_epoch_reads(pp::PrettyPrinter, msg::Vector{Proto.Read}) - flat1207 = try_flat(pp, msg, pretty_epoch_reads) - if !isnothing(flat1207) - write(pp, flat1207) + flat1219 = try_flat(pp, msg, pretty_epoch_reads) + if !isnothing(flat1219) + write(pp, flat1219) return nothing else - fields1204 = msg + fields1216 = msg write(pp, "(") write(pp, "reads") indent_sexp!(pp) - if !isempty(fields1204) + if !isempty(fields1216) newline(pp) - for (i1653, elem1205) in enumerate(fields1204) - i1206 = i1653 - 1 - if (i1206 > 0) + for (i1677, elem1217) in enumerate(fields1216) + i1218 = i1677 - 1 + if (i1218 > 0) newline(pp) end - pretty_read(pp, elem1205) + pretty_read(pp, elem1217) end end dedent!(pp) @@ -4185,80 +4189,80 @@ function pretty_epoch_reads(pp::PrettyPrinter, msg::Vector{Proto.Read}) end function pretty_read(pp::PrettyPrinter, msg::Proto.Read) - flat1218 = try_flat(pp, msg, pretty_read) - if !isnothing(flat1218) - write(pp, flat1218) + flat1230 = try_flat(pp, msg, pretty_read) + if !isnothing(flat1230) + write(pp, flat1230) return nothing else - function _t1654(_dollar_dollar) + function _t1678(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("demand")) - _t1655 = _get_oneof_field(_dollar_dollar, :demand) + _t1679 = _get_oneof_field(_dollar_dollar, :demand) else - _t1655 = nothing + _t1679 = nothing end - return _t1655 + return _t1679 end - _t1656 = _t1654(msg) - deconstruct_result1216 = _t1656 - if !isnothing(deconstruct_result1216) - unwrapped1217 = deconstruct_result1216 - pretty_demand(pp, unwrapped1217) + _t1680 = _t1678(msg) + deconstruct_result1228 = _t1680 + if !isnothing(deconstruct_result1228) + unwrapped1229 = deconstruct_result1228 + pretty_demand(pp, unwrapped1229) else - function _t1657(_dollar_dollar) + function _t1681(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("output")) - _t1658 = _get_oneof_field(_dollar_dollar, :output) + _t1682 = _get_oneof_field(_dollar_dollar, :output) else - _t1658 = nothing + _t1682 = nothing end - return _t1658 + return _t1682 end - _t1659 = _t1657(msg) - deconstruct_result1214 = _t1659 - if !isnothing(deconstruct_result1214) - unwrapped1215 = deconstruct_result1214 - pretty_output(pp, unwrapped1215) + _t1683 = _t1681(msg) + deconstruct_result1226 = _t1683 + if !isnothing(deconstruct_result1226) + unwrapped1227 = deconstruct_result1226 + pretty_output(pp, unwrapped1227) else - function _t1660(_dollar_dollar) + function _t1684(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("what_if")) - _t1661 = _get_oneof_field(_dollar_dollar, :what_if) + _t1685 = _get_oneof_field(_dollar_dollar, :what_if) else - _t1661 = nothing + _t1685 = nothing end - return _t1661 + return _t1685 end - _t1662 = _t1660(msg) - deconstruct_result1212 = _t1662 - if !isnothing(deconstruct_result1212) - unwrapped1213 = deconstruct_result1212 - pretty_what_if(pp, unwrapped1213) + _t1686 = _t1684(msg) + deconstruct_result1224 = _t1686 + if !isnothing(deconstruct_result1224) + unwrapped1225 = deconstruct_result1224 + pretty_what_if(pp, unwrapped1225) else - function _t1663(_dollar_dollar) + function _t1687(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("abort")) - _t1664 = _get_oneof_field(_dollar_dollar, :abort) + _t1688 = _get_oneof_field(_dollar_dollar, :abort) else - _t1664 = nothing + _t1688 = nothing end - return _t1664 + return _t1688 end - _t1665 = _t1663(msg) - deconstruct_result1210 = _t1665 - if !isnothing(deconstruct_result1210) - unwrapped1211 = deconstruct_result1210 - pretty_abort(pp, unwrapped1211) + _t1689 = _t1687(msg) + deconstruct_result1222 = _t1689 + if !isnothing(deconstruct_result1222) + unwrapped1223 = deconstruct_result1222 + pretty_abort(pp, unwrapped1223) else - function _t1666(_dollar_dollar) + function _t1690(_dollar_dollar) if _has_proto_field(_dollar_dollar, Symbol("#export")) - _t1667 = _get_oneof_field(_dollar_dollar, :var"#export") + _t1691 = _get_oneof_field(_dollar_dollar, :var"#export") else - _t1667 = nothing + _t1691 = nothing end - return _t1667 + return _t1691 end - _t1668 = _t1666(msg) - deconstruct_result1208 = _t1668 - if !isnothing(deconstruct_result1208) - unwrapped1209 = deconstruct_result1208 - pretty_export(pp, unwrapped1209) + _t1692 = _t1690(msg) + deconstruct_result1220 = _t1692 + if !isnothing(deconstruct_result1220) + unwrapped1221 = deconstruct_result1220 + pretty_export(pp, unwrapped1221) else throw(ParseError("No matching rule for read")) end @@ -4271,22 +4275,22 @@ function pretty_read(pp::PrettyPrinter, msg::Proto.Read) end function pretty_demand(pp::PrettyPrinter, msg::Proto.Demand) - flat1221 = try_flat(pp, msg, pretty_demand) - if !isnothing(flat1221) - write(pp, flat1221) + flat1233 = try_flat(pp, msg, pretty_demand) + if !isnothing(flat1233) + write(pp, flat1233) return nothing else - function _t1669(_dollar_dollar) + function _t1693(_dollar_dollar) return _dollar_dollar.relation_id end - _t1670 = _t1669(msg) - fields1219 = _t1670 - unwrapped_fields1220 = fields1219 + _t1694 = _t1693(msg) + fields1231 = _t1694 + unwrapped_fields1232 = fields1231 write(pp, "(") write(pp, "demand") indent_sexp!(pp) newline(pp) - pretty_relation_id(pp, unwrapped_fields1220) + pretty_relation_id(pp, unwrapped_fields1232) dedent!(pp) write(pp, ")") end @@ -4294,26 +4298,26 @@ function pretty_demand(pp::PrettyPrinter, msg::Proto.Demand) end function pretty_output(pp::PrettyPrinter, msg::Proto.Output) - flat1226 = try_flat(pp, msg, pretty_output) - if !isnothing(flat1226) - write(pp, flat1226) + flat1238 = try_flat(pp, msg, pretty_output) + if !isnothing(flat1238) + write(pp, flat1238) return nothing else - function _t1671(_dollar_dollar) + function _t1695(_dollar_dollar) return (_dollar_dollar.name, _dollar_dollar.relation_id,) end - _t1672 = _t1671(msg) - fields1222 = _t1672 - unwrapped_fields1223 = fields1222 + _t1696 = _t1695(msg) + fields1234 = _t1696 + unwrapped_fields1235 = fields1234 write(pp, "(") write(pp, "output") indent_sexp!(pp) newline(pp) - field1224 = unwrapped_fields1223[1] - pretty_name(pp, field1224) + field1236 = unwrapped_fields1235[1] + pretty_name(pp, field1236) newline(pp) - field1225 = unwrapped_fields1223[2] - pretty_relation_id(pp, field1225) + field1237 = unwrapped_fields1235[2] + pretty_relation_id(pp, field1237) dedent!(pp) write(pp, ")") end @@ -4321,26 +4325,26 @@ function pretty_output(pp::PrettyPrinter, msg::Proto.Output) end function pretty_what_if(pp::PrettyPrinter, msg::Proto.WhatIf) - flat1231 = try_flat(pp, msg, pretty_what_if) - if !isnothing(flat1231) - write(pp, flat1231) + flat1243 = try_flat(pp, msg, pretty_what_if) + if !isnothing(flat1243) + write(pp, flat1243) return nothing else - function _t1673(_dollar_dollar) + function _t1697(_dollar_dollar) return (_dollar_dollar.branch, _dollar_dollar.epoch,) end - _t1674 = _t1673(msg) - fields1227 = _t1674 - unwrapped_fields1228 = fields1227 + _t1698 = _t1697(msg) + fields1239 = _t1698 + unwrapped_fields1240 = fields1239 write(pp, "(") write(pp, "what_if") indent_sexp!(pp) newline(pp) - field1229 = unwrapped_fields1228[1] - pretty_name(pp, field1229) + field1241 = unwrapped_fields1240[1] + pretty_name(pp, field1241) newline(pp) - field1230 = unwrapped_fields1228[2] - pretty_epoch(pp, field1230) + field1242 = unwrapped_fields1240[2] + pretty_epoch(pp, field1242) dedent!(pp) write(pp, ")") end @@ -4348,34 +4352,34 @@ function pretty_what_if(pp::PrettyPrinter, msg::Proto.WhatIf) end function pretty_abort(pp::PrettyPrinter, msg::Proto.Abort) - flat1237 = try_flat(pp, msg, pretty_abort) - if !isnothing(flat1237) - write(pp, flat1237) + flat1249 = try_flat(pp, msg, pretty_abort) + if !isnothing(flat1249) + write(pp, flat1249) return nothing else - function _t1675(_dollar_dollar) + function _t1699(_dollar_dollar) if _dollar_dollar.name != "abort" - _t1676 = _dollar_dollar.name + _t1700 = _dollar_dollar.name else - _t1676 = nothing + _t1700 = nothing end - return (_t1676, _dollar_dollar.relation_id,) + return (_t1700, _dollar_dollar.relation_id,) end - _t1677 = _t1675(msg) - fields1232 = _t1677 - unwrapped_fields1233 = fields1232 + _t1701 = _t1699(msg) + fields1244 = _t1701 + unwrapped_fields1245 = fields1244 write(pp, "(") write(pp, "abort") indent_sexp!(pp) - field1234 = unwrapped_fields1233[1] - if !isnothing(field1234) + field1246 = unwrapped_fields1245[1] + if !isnothing(field1246) newline(pp) - opt_val1235 = field1234 - pretty_name(pp, opt_val1235) + opt_val1247 = field1246 + pretty_name(pp, opt_val1247) end newline(pp) - field1236 = unwrapped_fields1233[2] - pretty_relation_id(pp, field1236) + field1248 = unwrapped_fields1245[2] + pretty_relation_id(pp, field1248) dedent!(pp) write(pp, ")") end @@ -4383,22 +4387,22 @@ function pretty_abort(pp::PrettyPrinter, msg::Proto.Abort) end function pretty_export(pp::PrettyPrinter, msg::Proto.Export) - flat1240 = try_flat(pp, msg, pretty_export) - if !isnothing(flat1240) - write(pp, flat1240) + flat1252 = try_flat(pp, msg, pretty_export) + if !isnothing(flat1252) + write(pp, flat1252) return nothing else - function _t1678(_dollar_dollar) + function _t1702(_dollar_dollar) return _get_oneof_field(_dollar_dollar, :csv_config) end - _t1679 = _t1678(msg) - fields1238 = _t1679 - unwrapped_fields1239 = fields1238 + _t1703 = _t1702(msg) + fields1250 = _t1703 + unwrapped_fields1251 = fields1250 write(pp, "(") write(pp, "export") indent_sexp!(pp) newline(pp) - pretty_export_csv_config(pp, unwrapped_fields1239) + pretty_export_csv_config(pp, unwrapped_fields1251) dedent!(pp) write(pp, ")") end @@ -4406,101 +4410,199 @@ function pretty_export(pp::PrettyPrinter, msg::Proto.Export) end function pretty_export_csv_config(pp::PrettyPrinter, msg::Proto.ExportCSVConfig) - flat1246 = try_flat(pp, msg, pretty_export_csv_config) - if !isnothing(flat1246) - write(pp, flat1246) + flat1263 = try_flat(pp, msg, pretty_export_csv_config) + if !isnothing(flat1263) + write(pp, flat1263) return nothing else - function _t1680(_dollar_dollar) - _t1681 = deconstruct_export_csv_config(pp, _dollar_dollar) - return (_dollar_dollar.path, _dollar_dollar.data_columns, _t1681,) + function _t1704(_dollar_dollar) + if length(_dollar_dollar.data_columns) == 0 + _t1705 = (_dollar_dollar.path, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) + else + _t1705 = nothing + end + return _t1705 + end + _t1706 = _t1704(msg) + deconstruct_result1258 = _t1706 + if !isnothing(deconstruct_result1258) + unwrapped1259 = deconstruct_result1258 + write(pp, "(") + write(pp, "export_csv_config_v2") + indent_sexp!(pp) + newline(pp) + field1260 = unwrapped1259[1] + pretty_export_csv_path(pp, field1260) + newline(pp) + field1261 = unwrapped1259[2] + pretty_export_csv_source(pp, field1261) + newline(pp) + field1262 = unwrapped1259[3] + pretty_csv_config(pp, field1262) + dedent!(pp) + write(pp, ")") + else + function _t1707(_dollar_dollar) + if length(_dollar_dollar.data_columns) != 0 + _t1709 = deconstruct_export_csv_config(pp, _dollar_dollar) + _t1708 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1709,) + else + _t1708 = nothing + end + return _t1708 + end + _t1710 = _t1707(msg) + deconstruct_result1253 = _t1710 + if !isnothing(deconstruct_result1253) + unwrapped1254 = deconstruct_result1253 + write(pp, "(") + write(pp, "export_csv_config") + indent_sexp!(pp) + newline(pp) + field1255 = unwrapped1254[1] + pretty_export_csv_path(pp, field1255) + newline(pp) + field1256 = unwrapped1254[2] + pretty_export_csv_columns_list(pp, field1256) + newline(pp) + field1257 = unwrapped1254[3] + pretty_config_dict(pp, field1257) + dedent!(pp) + write(pp, ")") + else + throw(ParseError("No matching rule for export_csv_config")) + end end - _t1682 = _t1680(msg) - fields1241 = _t1682 - unwrapped_fields1242 = fields1241 - write(pp, "(") - write(pp, "export_csv_config") - indent_sexp!(pp) - newline(pp) - field1243 = unwrapped_fields1242[1] - pretty_export_csv_path(pp, field1243) - newline(pp) - field1244 = unwrapped_fields1242[2] - pretty_export_csv_columns(pp, field1244) - newline(pp) - field1245 = unwrapped_fields1242[3] - pretty_config_dict(pp, field1245) - dedent!(pp) - write(pp, ")") end return nothing end function pretty_export_csv_path(pp::PrettyPrinter, msg::String) - flat1248 = try_flat(pp, msg, pretty_export_csv_path) - if !isnothing(flat1248) - write(pp, flat1248) + flat1265 = try_flat(pp, msg, pretty_export_csv_path) + if !isnothing(flat1265) + write(pp, flat1265) return nothing else - fields1247 = msg + fields1264 = msg write(pp, "(") write(pp, "path") indent_sexp!(pp) newline(pp) - write(pp, format_string(pp, fields1247)) + write(pp, format_string(pp, fields1264)) dedent!(pp) write(pp, ")") end return nothing end -function pretty_export_csv_columns(pp::PrettyPrinter, msg::Vector{Proto.ExportCSVColumn}) - flat1252 = try_flat(pp, msg, pretty_export_csv_columns) - if !isnothing(flat1252) - write(pp, flat1252) +function pretty_export_csv_source(pp::PrettyPrinter, msg::Proto.ExportCSVSource) + flat1272 = try_flat(pp, msg, pretty_export_csv_source) + if !isnothing(flat1272) + write(pp, flat1272) return nothing else - fields1249 = msg - write(pp, "(") - write(pp, "columns") - indent_sexp!(pp) - if !isempty(fields1249) - newline(pp) - for (i1683, elem1250) in enumerate(fields1249) - i1251 = i1683 - 1 - if (i1251 > 0) - newline(pp) + function _t1711(_dollar_dollar) + if _has_proto_field(_dollar_dollar, Symbol("gnf_columns")) + _t1712 = _get_oneof_field(_dollar_dollar, :gnf_columns).columns + else + _t1712 = nothing + end + return _t1712 + end + _t1713 = _t1711(msg) + deconstruct_result1268 = _t1713 + if !isnothing(deconstruct_result1268) + unwrapped1269 = deconstruct_result1268 + write(pp, "(") + write(pp, "gnf_columns") + indent_sexp!(pp) + if !isempty(unwrapped1269) + newline(pp) + for (i1714, elem1270) in enumerate(unwrapped1269) + i1271 = i1714 - 1 + if (i1271 > 0) + newline(pp) + end + pretty_export_csv_column(pp, elem1270) end - pretty_export_csv_column(pp, elem1250) + end + dedent!(pp) + write(pp, ")") + else + function _t1715(_dollar_dollar) + if _has_proto_field(_dollar_dollar, Symbol("table_def")) + _t1716 = _get_oneof_field(_dollar_dollar, :table_def) + else + _t1716 = nothing + end + return _t1716 + end + _t1717 = _t1715(msg) + deconstruct_result1266 = _t1717 + if !isnothing(deconstruct_result1266) + unwrapped1267 = deconstruct_result1266 + write(pp, "(") + write(pp, "table_def") + indent_sexp!(pp) + newline(pp) + pretty_relation_id(pp, unwrapped1267) + 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) - flat1257 = try_flat(pp, msg, pretty_export_csv_column) - if !isnothing(flat1257) - write(pp, flat1257) + flat1277 = try_flat(pp, msg, pretty_export_csv_column) + if !isnothing(flat1277) + write(pp, flat1277) return nothing else - function _t1684(_dollar_dollar) + function _t1718(_dollar_dollar) return (_dollar_dollar.column_name, _dollar_dollar.column_data,) end - _t1685 = _t1684(msg) - fields1253 = _t1685 - unwrapped_fields1254 = fields1253 + _t1719 = _t1718(msg) + fields1273 = _t1719 + unwrapped_fields1274 = fields1273 write(pp, "(") write(pp, "column") indent_sexp!(pp) newline(pp) - field1255 = unwrapped_fields1254[1] - write(pp, format_string(pp, field1255)) + field1275 = unwrapped_fields1274[1] + write(pp, format_string(pp, field1275)) newline(pp) - field1256 = unwrapped_fields1254[2] - pretty_relation_id(pp, field1256) + field1276 = unwrapped_fields1274[2] + pretty_relation_id(pp, field1276) + dedent!(pp) + write(pp, ")") + end + return nothing +end + +function pretty_export_csv_columns_list(pp::PrettyPrinter, msg::Vector{Proto.ExportCSVColumn}) + flat1281 = try_flat(pp, msg, pretty_export_csv_columns_list) + if !isnothing(flat1281) + write(pp, flat1281) + return nothing + else + fields1278 = msg + write(pp, "(") + write(pp, "columns") + indent_sexp!(pp) + if !isempty(fields1278) + newline(pp) + for (i1720, elem1279) in enumerate(fields1278) + i1280 = i1720 - 1 + if (i1280 > 0) + newline(pp) + end + pretty_export_csv_column(pp, elem1279) + end + end dedent!(pp) write(pp, ")") end @@ -4513,12 +4615,12 @@ end function pretty_debug_info(pp::PrettyPrinter, msg::Proto.DebugInfo) write(pp, "(debug_info") indent_sexp!(pp) - for (i1723, _rid) in enumerate(msg.ids) - _idx = i1723 - 1 + for (i1759, _rid) in enumerate(msg.ids) + _idx = i1759 - 1 newline(pp) write(pp, "(") - _t1724 = Proto.UInt128Value(low=_rid.id_low, high=_rid.id_high) - _pprint_dispatch(pp, _t1724) + _t1760 = Proto.UInt128Value(low=_rid.id_low, high=_rid.id_high) + _pprint_dispatch(pp, _t1760) write(pp, " ") write(pp, format_string(pp, msg.orig_names[_idx + 1])) write(pp, ")") @@ -4591,8 +4693,8 @@ function pretty_functional_dependency(pp::PrettyPrinter, msg::Proto.FunctionalDe newline(pp) write(pp, ":keys ") write(pp, "(") - for (i1725, _elem) in enumerate(msg.keys) - _idx = i1725 - 1 + for (i1761, _elem) in enumerate(msg.keys) + _idx = i1761 - 1 if (_idx > 0) write(pp, " ") end @@ -4602,8 +4704,8 @@ function pretty_functional_dependency(pp::PrettyPrinter, msg::Proto.FunctionalDe newline(pp) write(pp, ":values ") write(pp, "(") - for (i1726, _elem) in enumerate(msg.values) - _idx = i1726 - 1 + for (i1762, _elem) in enumerate(msg.values) + _idx = i1762 - 1 if (_idx > 0) write(pp, " ") end @@ -4630,6 +4732,25 @@ 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 ") + write(pp, "(") + for (i1763, _elem) in enumerate(msg.columns) + _idx = i1763 - 1 + if (_idx > 0) + write(pp, " ") + end + _pprint_dispatch(pp, _elem) + end + write(pp, ")") + write(pp, ")") + dedent!(pp) + return nothing +end + function pretty_ivm_config(pp::PrettyPrinter, msg::Proto.IVMConfig) write(pp, "(ivm_config") indent_sexp!(pp) @@ -4756,8 +4877,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) @@ -4766,6 +4888,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 2c023fb0..6373abfa 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 - _t1311 = value.HasField("int_value") + _t1350 = value.HasField("int_value") else: - _t1311 = False - if _t1311: + _t1350 = False + if _t1350: assert value is not None return int(value.int_value) else: - _t1312 = None + _t1351 = 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 - _t1313 = value.HasField("int_value") + _t1352 = value.HasField("int_value") else: - _t1313 = False - if _t1313: + _t1352 = False + if _t1352: assert value is not None return value.int_value else: - _t1314 = None + _t1353 = 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 - _t1315 = value.HasField("string_value") + _t1354 = value.HasField("string_value") else: - _t1315 = False - if _t1315: + _t1354 = False + if _t1354: assert value is not None return value.string_value else: - _t1316 = None + _t1355 = 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 - _t1317 = value.HasField("boolean_value") + _t1356 = value.HasField("boolean_value") else: - _t1317 = False - if _t1317: + _t1356 = False + if _t1356: assert value is not None return value.boolean_value else: - _t1318 = None + _t1357 = 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 - _t1319 = value.HasField("string_value") + _t1358 = value.HasField("string_value") else: - _t1319 = False - if _t1319: + _t1358 = False + if _t1358: assert value is not None return [value.string_value] else: - _t1320 = None + _t1359 = 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 - _t1321 = value.HasField("int_value") + _t1360 = value.HasField("int_value") else: - _t1321 = False - if _t1321: + _t1360 = False + if _t1360: assert value is not None return value.int_value else: - _t1322 = None + _t1361 = 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 - _t1323 = value.HasField("float_value") + _t1362 = value.HasField("float_value") else: - _t1323 = False - if _t1323: + _t1362 = False + if _t1362: assert value is not None return value.float_value else: - _t1324 = None + _t1363 = 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 - _t1325 = value.HasField("string_value") + _t1364 = value.HasField("string_value") else: - _t1325 = False - if _t1325: + _t1364 = False + if _t1364: assert value is not None return value.string_value.encode() else: - _t1326 = None + _t1365 = 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 - _t1327 = value.HasField("uint128_value") + _t1366 = value.HasField("uint128_value") else: - _t1327 = False - if _t1327: + _t1366 = False + if _t1366: assert value is not None return value.uint128_value else: - _t1328 = None + _t1367 = None return None def construct_csv_config(self, config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> logic_pb2.CSVConfig: config = dict(config_dict) - _t1329 = self._extract_value_int32(config.get("csv_header_row"), 1) - header_row = _t1329 - _t1330 = self._extract_value_int64(config.get("csv_skip"), 0) - skip = _t1330 - _t1331 = self._extract_value_string(config.get("csv_new_line"), "") - new_line = _t1331 - _t1332 = self._extract_value_string(config.get("csv_delimiter"), ",") - delimiter = _t1332 - _t1333 = self._extract_value_string(config.get("csv_quotechar"), '"') - quotechar = _t1333 - _t1334 = self._extract_value_string(config.get("csv_escapechar"), '"') - escapechar = _t1334 - _t1335 = self._extract_value_string(config.get("csv_comment"), "") - comment = _t1335 - _t1336 = self._extract_value_string_list(config.get("csv_missing_strings"), []) - missing_strings = _t1336 - _t1337 = self._extract_value_string(config.get("csv_decimal_separator"), ".") - decimal_separator = _t1337 - _t1338 = self._extract_value_string(config.get("csv_encoding"), "utf-8") - encoding = _t1338 - _t1339 = self._extract_value_string(config.get("csv_compression"), "auto") - compression = _t1339 - _t1340 = 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 _t1340 + _t1368 = self._extract_value_int32(config.get("csv_header_row"), 1) + header_row = _t1368 + _t1369 = self._extract_value_int64(config.get("csv_skip"), 0) + skip = _t1369 + _t1370 = self._extract_value_string(config.get("csv_new_line"), "") + new_line = _t1370 + _t1371 = self._extract_value_string(config.get("csv_delimiter"), ",") + delimiter = _t1371 + _t1372 = self._extract_value_string(config.get("csv_quotechar"), '"') + quotechar = _t1372 + _t1373 = self._extract_value_string(config.get("csv_escapechar"), '"') + escapechar = _t1373 + _t1374 = self._extract_value_string(config.get("csv_comment"), "") + comment = _t1374 + _t1375 = self._extract_value_string_list(config.get("csv_missing_strings"), []) + missing_strings = _t1375 + _t1376 = self._extract_value_string(config.get("csv_decimal_separator"), ".") + decimal_separator = _t1376 + _t1377 = self._extract_value_string(config.get("csv_encoding"), "utf-8") + encoding = _t1377 + _t1378 = self._extract_value_string(config.get("csv_compression"), "auto") + compression = _t1378 + _t1379 = self._extract_value_int64(config.get("csv_partition_size_mb"), 0) + partition_size_mb = _t1379 + _t1380 = 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 _t1380 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) - _t1341 = self._try_extract_value_float64(config.get("betree_config_epsilon")) - epsilon = _t1341 - _t1342 = self._try_extract_value_int64(config.get("betree_config_max_pivots")) - max_pivots = _t1342 - _t1343 = self._try_extract_value_int64(config.get("betree_config_max_deltas")) - max_deltas = _t1343 - _t1344 = self._try_extract_value_int64(config.get("betree_config_max_leaf")) - max_leaf = _t1344 - _t1345 = logic_pb2.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) - storage_config = _t1345 - _t1346 = self._try_extract_value_uint128(config.get("betree_locator_root_pageid")) - root_pageid = _t1346 - _t1347 = self._try_extract_value_bytes(config.get("betree_locator_inline_data")) - inline_data = _t1347 - _t1348 = self._try_extract_value_int64(config.get("betree_locator_element_count")) - element_count = _t1348 - _t1349 = self._try_extract_value_int64(config.get("betree_locator_tree_height")) - tree_height = _t1349 - _t1350 = logic_pb2.BeTreeLocator(root_pageid=root_pageid, inline_data=inline_data, element_count=element_count, tree_height=tree_height) - relation_locator = _t1350 - _t1351 = logic_pb2.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) - return _t1351 + _t1381 = self._try_extract_value_float64(config.get("betree_config_epsilon")) + epsilon = _t1381 + _t1382 = self._try_extract_value_int64(config.get("betree_config_max_pivots")) + max_pivots = _t1382 + _t1383 = self._try_extract_value_int64(config.get("betree_config_max_deltas")) + max_deltas = _t1383 + _t1384 = self._try_extract_value_int64(config.get("betree_config_max_leaf")) + max_leaf = _t1384 + _t1385 = logic_pb2.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) + storage_config = _t1385 + _t1386 = self._try_extract_value_uint128(config.get("betree_locator_root_pageid")) + root_pageid = _t1386 + _t1387 = self._try_extract_value_bytes(config.get("betree_locator_inline_data")) + inline_data = _t1387 + _t1388 = self._try_extract_value_int64(config.get("betree_locator_element_count")) + element_count = _t1388 + _t1389 = self._try_extract_value_int64(config.get("betree_locator_tree_height")) + tree_height = _t1389 + _t1390 = logic_pb2.BeTreeLocator(root_pageid=root_pageid, inline_data=inline_data, element_count=element_count, tree_height=tree_height) + relation_locator = _t1390 + _t1391 = logic_pb2.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) + return _t1391 def default_configure(self) -> transactions_pb2.Configure: - _t1352 = transactions_pb2.IVMConfig(level=transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) - ivm_config = _t1352 - _t1353 = transactions_pb2.Configure(semantics_version=0, ivm_config=ivm_config) - return _t1353 + _t1392 = transactions_pb2.IVMConfig(level=transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) + ivm_config = _t1392 + _t1393 = transactions_pb2.Configure(semantics_version=0, ivm_config=ivm_config) + return _t1393 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 - _t1354 = transactions_pb2.IVMConfig(level=maintenance_level) - ivm_config = _t1354 - _t1355 = self._extract_value_int64(config.get("semantics_version"), 0) - semantics_version = _t1355 - _t1356 = transactions_pb2.Configure(semantics_version=semantics_version, ivm_config=ivm_config) - return _t1356 - - def export_csv_config(self, path: str, columns: Sequence[transactions_pb2.ExportCSVColumn], config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> transactions_pb2.ExportCSVConfig: + _t1394 = transactions_pb2.IVMConfig(level=maintenance_level) + ivm_config = _t1394 + _t1395 = self._extract_value_int64(config.get("semantics_version"), 0) + semantics_version = _t1395 + _t1396 = transactions_pb2.Configure(semantics_version=semantics_version, ivm_config=ivm_config) + return _t1396 + + 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) - _t1357 = self._extract_value_int64(config.get("partition_size"), 0) - partition_size = _t1357 - _t1358 = self._extract_value_string(config.get("compression"), "") - compression = _t1358 - _t1359 = self._extract_value_boolean(config.get("syntax_header_row"), True) - syntax_header_row = _t1359 - _t1360 = self._extract_value_string(config.get("syntax_missing_string"), "") - syntax_missing_string = _t1360 - _t1361 = self._extract_value_string(config.get("syntax_delim"), ",") - syntax_delim = _t1361 - _t1362 = self._extract_value_string(config.get("syntax_quotechar"), '"') - syntax_quotechar = _t1362 - _t1363 = self._extract_value_string(config.get("syntax_escapechar"), "\\") - syntax_escapechar = _t1363 - _t1364 = 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 _t1364 + _t1397 = self._extract_value_int64(config.get("partition_size"), 0) + partition_size = _t1397 + _t1398 = self._extract_value_string(config.get("compression"), "") + compression = _t1398 + _t1399 = self._extract_value_boolean(config.get("syntax_header_row"), True) + syntax_header_row = _t1399 + _t1400 = self._extract_value_string(config.get("syntax_missing_string"), "") + syntax_missing_string = _t1400 + _t1401 = self._extract_value_string(config.get("syntax_delim"), ",") + syntax_delim = _t1401 + _t1402 = self._extract_value_string(config.get("syntax_quotechar"), '"') + syntax_quotechar = _t1402 + _t1403 = self._extract_value_string(config.get("syntax_escapechar"), "\\") + syntax_escapechar = _t1403 + _t1404 = 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 _t1404 + + def construct_export_csv_config_with_source(self, path: str, csv_source: transactions_pb2.ExportCSVSource, csv_config: logic_pb2.CSVConfig) -> transactions_pb2.ExportCSVConfig: + _t1405 = transactions_pb2.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) + return _t1405 # --- Parse methods --- @@ -517,2336 +523,2410 @@ 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)): - _t713 = self.parse_configure() - _t712 = _t713 + _t733 = self.parse_configure() + _t732 = _t733 else: - _t712 = None - configure356 = _t712 + _t732 = None + configure366 = _t732 if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("sync", 1)): - _t715 = self.parse_sync() - _t714 = _t715 - else: - _t714 = None - sync357 = _t714 - xs358 = [] - cond359 = self.match_lookahead_literal("(", 0) - while cond359: - _t716 = self.parse_epoch() - item360 = _t716 - xs358.append(item360) - cond359 = self.match_lookahead_literal("(", 0) - epochs361 = xs358 - self.consume_literal(")") - _t717 = self.default_configure() - _t718 = transactions_pb2.Transaction(epochs=epochs361, configure=(configure356 if configure356 is not None else _t717), sync=sync357) - return _t718 + _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 def parse_configure(self) -> transactions_pb2.Configure: self.consume_literal("(") self.consume_literal("configure") - _t719 = self.parse_config_dict() - config_dict362 = _t719 + _t739 = self.parse_config_dict() + config_dict372 = _t739 self.consume_literal(")") - _t720 = self.construct_configure(config_dict362) - return _t720 + _t740 = self.construct_configure(config_dict372) + return _t740 def parse_config_dict(self) -> Sequence[tuple[str, logic_pb2.Value]]: self.consume_literal("{") - xs363 = [] - cond364 = self.match_lookahead_literal(":", 0) - while cond364: - _t721 = self.parse_config_key_value() - item365 = _t721 - xs363.append(item365) - cond364 = self.match_lookahead_literal(":", 0) - config_key_values366 = xs363 + 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 self.consume_literal("}") - return config_key_values366 + return config_key_values376 def parse_config_key_value(self) -> tuple[str, logic_pb2.Value]: self.consume_literal(":") - symbol367 = self.consume_terminal("SYMBOL") - _t722 = self.parse_value() - value368 = _t722 - return (symbol367, value368,) + symbol377 = self.consume_terminal("SYMBOL") + _t742 = self.parse_value() + value378 = _t742 + return (symbol377, value378,) def parse_value(self) -> logic_pb2.Value: if self.match_lookahead_literal("true", 0): - _t723 = 9 + _t743 = 9 else: if self.match_lookahead_literal("missing", 0): - _t724 = 8 + _t744 = 8 else: if self.match_lookahead_literal("false", 0): - _t725 = 9 + _t745 = 9 else: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("datetime", 1): - _t727 = 1 + _t747 = 1 else: if self.match_lookahead_literal("date", 1): - _t728 = 0 + _t748 = 0 else: - _t728 = -1 - _t727 = _t728 - _t726 = _t727 + _t748 = -1 + _t747 = _t748 + _t746 = _t747 else: if self.match_lookahead_terminal("UINT128", 0): - _t729 = 5 + _t749 = 5 else: if self.match_lookahead_terminal("STRING", 0): - _t730 = 2 + _t750 = 2 else: if self.match_lookahead_terminal("INT128", 0): - _t731 = 6 + _t751 = 6 else: if self.match_lookahead_terminal("INT", 0): - _t732 = 3 + _t752 = 3 else: if self.match_lookahead_terminal("FLOAT", 0): - _t733 = 4 + _t753 = 4 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t734 = 7 + _t754 = 7 else: - _t734 = -1 - _t733 = _t734 - _t732 = _t733 - _t731 = _t732 - _t730 = _t731 - _t729 = _t730 - _t726 = _t729 - _t725 = _t726 - _t724 = _t725 - _t723 = _t724 - prediction369 = _t723 - if prediction369 == 9: - _t736 = self.parse_boolean_value() - boolean_value378 = _t736 - _t737 = logic_pb2.Value(boolean_value=boolean_value378) - _t735 = _t737 - else: - if prediction369 == 8: + _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: self.consume_literal("missing") - _t739 = logic_pb2.MissingValue() - _t740 = logic_pb2.Value(missing_value=_t739) - _t738 = _t740 + _t759 = logic_pb2.MissingValue() + _t760 = logic_pb2.Value(missing_value=_t759) + _t758 = _t760 else: - if prediction369 == 7: - decimal377 = self.consume_terminal("DECIMAL") - _t742 = logic_pb2.Value(decimal_value=decimal377) - _t741 = _t742 + if prediction379 == 7: + decimal387 = self.consume_terminal("DECIMAL") + _t762 = logic_pb2.Value(decimal_value=decimal387) + _t761 = _t762 else: - if prediction369 == 6: - int128376 = self.consume_terminal("INT128") - _t744 = logic_pb2.Value(int128_value=int128376) - _t743 = _t744 + if prediction379 == 6: + int128386 = self.consume_terminal("INT128") + _t764 = logic_pb2.Value(int128_value=int128386) + _t763 = _t764 else: - if prediction369 == 5: - uint128375 = self.consume_terminal("UINT128") - _t746 = logic_pb2.Value(uint128_value=uint128375) - _t745 = _t746 + if prediction379 == 5: + uint128385 = self.consume_terminal("UINT128") + _t766 = logic_pb2.Value(uint128_value=uint128385) + _t765 = _t766 else: - if prediction369 == 4: - float374 = self.consume_terminal("FLOAT") - _t748 = logic_pb2.Value(float_value=float374) - _t747 = _t748 + if prediction379 == 4: + float384 = self.consume_terminal("FLOAT") + _t768 = logic_pb2.Value(float_value=float384) + _t767 = _t768 else: - if prediction369 == 3: - int373 = self.consume_terminal("INT") - _t750 = logic_pb2.Value(int_value=int373) - _t749 = _t750 + if prediction379 == 3: + int383 = self.consume_terminal("INT") + _t770 = logic_pb2.Value(int_value=int383) + _t769 = _t770 else: - if prediction369 == 2: - string372 = self.consume_terminal("STRING") - _t752 = logic_pb2.Value(string_value=string372) - _t751 = _t752 + if prediction379 == 2: + string382 = self.consume_terminal("STRING") + _t772 = logic_pb2.Value(string_value=string382) + _t771 = _t772 else: - if prediction369 == 1: - _t754 = self.parse_datetime() - datetime371 = _t754 - _t755 = logic_pb2.Value(datetime_value=datetime371) - _t753 = _t755 + if prediction379 == 1: + _t774 = self.parse_datetime() + datetime381 = _t774 + _t775 = logic_pb2.Value(datetime_value=datetime381) + _t773 = _t775 else: - if prediction369 == 0: - _t757 = self.parse_date() - date370 = _t757 - _t758 = logic_pb2.Value(date_value=date370) - _t756 = _t758 + if prediction379 == 0: + _t777 = self.parse_date() + date380 = _t777 + _t778 = logic_pb2.Value(date_value=date380) + _t776 = _t778 else: raise ParseError("Unexpected token in value" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t753 = _t756 - _t751 = _t753 - _t749 = _t751 - _t747 = _t749 - _t745 = _t747 - _t743 = _t745 - _t741 = _t743 - _t738 = _t741 - _t735 = _t738 - return _t735 + _t773 = _t776 + _t771 = _t773 + _t769 = _t771 + _t767 = _t769 + _t765 = _t767 + _t763 = _t765 + _t761 = _t763 + _t758 = _t761 + _t755 = _t758 + return _t755 def parse_date(self) -> logic_pb2.DateValue: self.consume_literal("(") self.consume_literal("date") - int379 = self.consume_terminal("INT") - int_3380 = self.consume_terminal("INT") - int_4381 = self.consume_terminal("INT") + int389 = self.consume_terminal("INT") + int_3390 = self.consume_terminal("INT") + int_4391 = self.consume_terminal("INT") self.consume_literal(")") - _t759 = logic_pb2.DateValue(year=int(int379), month=int(int_3380), day=int(int_4381)) - return _t759 + _t779 = logic_pb2.DateValue(year=int(int389), month=int(int_3390), day=int(int_4391)) + return _t779 def parse_datetime(self) -> logic_pb2.DateTimeValue: self.consume_literal("(") self.consume_literal("datetime") - int382 = self.consume_terminal("INT") - int_3383 = self.consume_terminal("INT") - int_4384 = self.consume_terminal("INT") - int_5385 = self.consume_terminal("INT") - int_6386 = self.consume_terminal("INT") - int_7387 = self.consume_terminal("INT") + 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") if self.match_lookahead_terminal("INT", 0): - _t760 = self.consume_terminal("INT") + _t780 = self.consume_terminal("INT") else: - _t760 = None - int_8388 = _t760 + _t780 = None + int_8398 = _t780 self.consume_literal(")") - _t761 = logic_pb2.DateTimeValue(year=int(int382), month=int(int_3383), day=int(int_4384), hour=int(int_5385), minute=int(int_6386), second=int(int_7387), microsecond=int((int_8388 if int_8388 is not None else 0))) - return _t761 + _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 def parse_boolean_value(self) -> bool: if self.match_lookahead_literal("true", 0): - _t762 = 0 + _t782 = 0 else: if self.match_lookahead_literal("false", 0): - _t763 = 1 + _t783 = 1 else: - _t763 = -1 - _t762 = _t763 - prediction389 = _t762 - if prediction389 == 1: + _t783 = -1 + _t782 = _t783 + prediction399 = _t782 + if prediction399 == 1: self.consume_literal("false") - _t764 = False + _t784 = False else: - if prediction389 == 0: + if prediction399 == 0: self.consume_literal("true") - _t765 = True + _t785 = True else: raise ParseError("Unexpected token in boolean_value" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t764 = _t765 - return _t764 + _t784 = _t785 + return _t784 def parse_sync(self) -> transactions_pb2.Sync: self.consume_literal("(") self.consume_literal("sync") - xs390 = [] - cond391 = self.match_lookahead_literal(":", 0) - while cond391: - _t766 = self.parse_fragment_id() - item392 = _t766 - xs390.append(item392) - cond391 = self.match_lookahead_literal(":", 0) - fragment_ids393 = xs390 - self.consume_literal(")") - _t767 = transactions_pb2.Sync(fragments=fragment_ids393) - return _t767 + 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 def parse_fragment_id(self) -> fragments_pb2.FragmentId: self.consume_literal(":") - symbol394 = self.consume_terminal("SYMBOL") - return fragments_pb2.FragmentId(id=symbol394.encode()) + symbol404 = self.consume_terminal("SYMBOL") + return fragments_pb2.FragmentId(id=symbol404.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)): - _t769 = self.parse_epoch_writes() - _t768 = _t769 + _t789 = self.parse_epoch_writes() + _t788 = _t789 else: - _t768 = None - epoch_writes395 = _t768 + _t788 = None + epoch_writes405 = _t788 if self.match_lookahead_literal("(", 0): - _t771 = self.parse_epoch_reads() - _t770 = _t771 + _t791 = self.parse_epoch_reads() + _t790 = _t791 else: - _t770 = None - epoch_reads396 = _t770 + _t790 = None + epoch_reads406 = _t790 self.consume_literal(")") - _t772 = transactions_pb2.Epoch(writes=(epoch_writes395 if epoch_writes395 is not None else []), reads=(epoch_reads396 if epoch_reads396 is not None else [])) - return _t772 + _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 def parse_epoch_writes(self) -> Sequence[transactions_pb2.Write]: self.consume_literal("(") self.consume_literal("writes") - xs397 = [] - cond398 = self.match_lookahead_literal("(", 0) - while cond398: - _t773 = self.parse_write() - item399 = _t773 - xs397.append(item399) - cond398 = self.match_lookahead_literal("(", 0) - writes400 = xs397 + 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 self.consume_literal(")") - return writes400 + return writes410 def parse_write(self) -> transactions_pb2.Write: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("undefine", 1): - _t775 = 1 + _t795 = 1 else: if self.match_lookahead_literal("snapshot", 1): - _t776 = 3 + _t796 = 3 else: if self.match_lookahead_literal("define", 1): - _t777 = 0 + _t797 = 0 else: if self.match_lookahead_literal("context", 1): - _t778 = 2 + _t798 = 2 else: - _t778 = -1 - _t777 = _t778 - _t776 = _t777 - _t775 = _t776 - _t774 = _t775 - else: - _t774 = -1 - prediction401 = _t774 - if prediction401 == 3: - _t780 = self.parse_snapshot() - snapshot405 = _t780 - _t781 = transactions_pb2.Write(snapshot=snapshot405) - _t779 = _t781 - else: - if prediction401 == 2: - _t783 = self.parse_context() - context404 = _t783 - _t784 = transactions_pb2.Write(context=context404) - _t782 = _t784 + _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 else: - if prediction401 == 1: - _t786 = self.parse_undefine() - undefine403 = _t786 - _t787 = transactions_pb2.Write(undefine=undefine403) - _t785 = _t787 + if prediction411 == 1: + _t806 = self.parse_undefine() + undefine413 = _t806 + _t807 = transactions_pb2.Write(undefine=undefine413) + _t805 = _t807 else: - if prediction401 == 0: - _t789 = self.parse_define() - define402 = _t789 - _t790 = transactions_pb2.Write(define=define402) - _t788 = _t790 + if prediction411 == 0: + _t809 = self.parse_define() + define412 = _t809 + _t810 = transactions_pb2.Write(define=define412) + _t808 = _t810 else: raise ParseError("Unexpected token in write" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t785 = _t788 - _t782 = _t785 - _t779 = _t782 - return _t779 + _t805 = _t808 + _t802 = _t805 + _t799 = _t802 + return _t799 def parse_define(self) -> transactions_pb2.Define: self.consume_literal("(") self.consume_literal("define") - _t791 = self.parse_fragment() - fragment406 = _t791 + _t811 = self.parse_fragment() + fragment416 = _t811 self.consume_literal(")") - _t792 = transactions_pb2.Define(fragment=fragment406) - return _t792 + _t812 = transactions_pb2.Define(fragment=fragment416) + return _t812 def parse_fragment(self) -> fragments_pb2.Fragment: self.consume_literal("(") self.consume_literal("fragment") - _t793 = self.parse_new_fragment_id() - new_fragment_id407 = _t793 - xs408 = [] - cond409 = self.match_lookahead_literal("(", 0) - while cond409: - _t794 = self.parse_declaration() - item410 = _t794 - xs408.append(item410) - cond409 = self.match_lookahead_literal("(", 0) - declarations411 = xs408 - self.consume_literal(")") - return self.construct_fragment(new_fragment_id407, declarations411) + _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) def parse_new_fragment_id(self) -> fragments_pb2.FragmentId: - _t795 = self.parse_fragment_id() - fragment_id412 = _t795 - self.start_fragment(fragment_id412) - return fragment_id412 + _t815 = self.parse_fragment_id() + fragment_id422 = _t815 + self.start_fragment(fragment_id422) + return fragment_id422 def parse_declaration(self) -> logic_pb2.Declaration: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("rel_edb", 1): - _t797 = 3 + _t817 = 3 else: if self.match_lookahead_literal("functional_dependency", 1): - _t798 = 2 + _t818 = 2 else: if self.match_lookahead_literal("def", 1): - _t799 = 0 + _t819 = 0 else: if self.match_lookahead_literal("csv_data", 1): - _t800 = 3 + _t820 = 3 else: if self.match_lookahead_literal("betree_relation", 1): - _t801 = 3 + _t821 = 3 else: if self.match_lookahead_literal("algorithm", 1): - _t802 = 1 + _t822 = 1 else: - _t802 = -1 - _t801 = _t802 - _t800 = _t801 - _t799 = _t800 - _t798 = _t799 - _t797 = _t798 - _t796 = _t797 - else: - _t796 = -1 - prediction413 = _t796 - if prediction413 == 3: - _t804 = self.parse_data() - data417 = _t804 - _t805 = logic_pb2.Declaration(data=data417) - _t803 = _t805 - else: - if prediction413 == 2: - _t807 = self.parse_constraint() - constraint416 = _t807 - _t808 = logic_pb2.Declaration(constraint=constraint416) - _t806 = _t808 + _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 else: - if prediction413 == 1: - _t810 = self.parse_algorithm() - algorithm415 = _t810 - _t811 = logic_pb2.Declaration(algorithm=algorithm415) - _t809 = _t811 + if prediction423 == 1: + _t830 = self.parse_algorithm() + algorithm425 = _t830 + _t831 = logic_pb2.Declaration(algorithm=algorithm425) + _t829 = _t831 else: - if prediction413 == 0: - _t813 = self.parse_def() - def414 = _t813 - _t814 = logic_pb2.Declaration() - getattr(_t814, 'def').CopyFrom(def414) - _t812 = _t814 + if prediction423 == 0: + _t833 = self.parse_def() + def424 = _t833 + _t834 = logic_pb2.Declaration() + getattr(_t834, 'def').CopyFrom(def424) + _t832 = _t834 else: raise ParseError("Unexpected token in declaration" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t809 = _t812 - _t806 = _t809 - _t803 = _t806 - return _t803 + _t829 = _t832 + _t826 = _t829 + _t823 = _t826 + return _t823 def parse_def(self) -> logic_pb2.Def: self.consume_literal("(") self.consume_literal("def") - _t815 = self.parse_relation_id() - relation_id418 = _t815 - _t816 = self.parse_abstraction() - abstraction419 = _t816 + _t835 = self.parse_relation_id() + relation_id428 = _t835 + _t836 = self.parse_abstraction() + abstraction429 = _t836 if self.match_lookahead_literal("(", 0): - _t818 = self.parse_attrs() - _t817 = _t818 + _t838 = self.parse_attrs() + _t837 = _t838 else: - _t817 = None - attrs420 = _t817 + _t837 = None + attrs430 = _t837 self.consume_literal(")") - _t819 = logic_pb2.Def(name=relation_id418, body=abstraction419, attrs=(attrs420 if attrs420 is not None else [])) - return _t819 + _t839 = logic_pb2.Def(name=relation_id428, body=abstraction429, attrs=(attrs430 if attrs430 is not None else [])) + return _t839 def parse_relation_id(self) -> logic_pb2.RelationId: if self.match_lookahead_literal(":", 0): - _t820 = 0 + _t840 = 0 else: if self.match_lookahead_terminal("UINT128", 0): - _t821 = 1 + _t841 = 1 else: - _t821 = -1 - _t820 = _t821 - prediction421 = _t820 - if prediction421 == 1: - uint128423 = self.consume_terminal("UINT128") - _t822 = logic_pb2.RelationId(id_low=uint128423.low, id_high=uint128423.high) - else: - if prediction421 == 0: + _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: self.consume_literal(":") - symbol422 = self.consume_terminal("SYMBOL") - _t823 = self.relation_id_from_string(symbol422) + symbol432 = self.consume_terminal("SYMBOL") + _t843 = self.relation_id_from_string(symbol432) else: raise ParseError("Unexpected token in relation_id" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t822 = _t823 - return _t822 + _t842 = _t843 + return _t842 def parse_abstraction(self) -> logic_pb2.Abstraction: self.consume_literal("(") - _t824 = self.parse_bindings() - bindings424 = _t824 - _t825 = self.parse_formula() - formula425 = _t825 + _t844 = self.parse_bindings() + bindings434 = _t844 + _t845 = self.parse_formula() + formula435 = _t845 self.consume_literal(")") - _t826 = logic_pb2.Abstraction(vars=(list(bindings424[0]) + list(bindings424[1] if bindings424[1] is not None else [])), value=formula425) - return _t826 + _t846 = logic_pb2.Abstraction(vars=(list(bindings434[0]) + list(bindings434[1] if bindings434[1] is not None else [])), value=formula435) + return _t846 def parse_bindings(self) -> tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]: self.consume_literal("[") - xs426 = [] - cond427 = self.match_lookahead_terminal("SYMBOL", 0) - while cond427: - _t827 = self.parse_binding() - item428 = _t827 - xs426.append(item428) - cond427 = self.match_lookahead_terminal("SYMBOL", 0) - bindings429 = xs426 + 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 if self.match_lookahead_literal("|", 0): - _t829 = self.parse_value_bindings() - _t828 = _t829 + _t849 = self.parse_value_bindings() + _t848 = _t849 else: - _t828 = None - value_bindings430 = _t828 + _t848 = None + value_bindings440 = _t848 self.consume_literal("]") - return (bindings429, (value_bindings430 if value_bindings430 is not None else []),) + return (bindings439, (value_bindings440 if value_bindings440 is not None else []),) def parse_binding(self) -> logic_pb2.Binding: - symbol431 = self.consume_terminal("SYMBOL") + symbol441 = self.consume_terminal("SYMBOL") self.consume_literal("::") - _t830 = self.parse_type() - type432 = _t830 - _t831 = logic_pb2.Var(name=symbol431) - _t832 = logic_pb2.Binding(var=_t831, type=type432) - return _t832 + _t850 = self.parse_type() + type442 = _t850 + _t851 = logic_pb2.Var(name=symbol441) + _t852 = logic_pb2.Binding(var=_t851, type=type442) + return _t852 def parse_type(self) -> logic_pb2.Type: if self.match_lookahead_literal("UNKNOWN", 0): - _t833 = 0 + _t853 = 0 else: if self.match_lookahead_literal("UINT128", 0): - _t834 = 4 + _t854 = 4 else: if self.match_lookahead_literal("STRING", 0): - _t835 = 1 + _t855 = 1 else: if self.match_lookahead_literal("MISSING", 0): - _t836 = 8 + _t856 = 8 else: if self.match_lookahead_literal("INT128", 0): - _t837 = 5 + _t857 = 5 else: if self.match_lookahead_literal("INT", 0): - _t838 = 2 + _t858 = 2 else: if self.match_lookahead_literal("FLOAT", 0): - _t839 = 3 + _t859 = 3 else: if self.match_lookahead_literal("DATETIME", 0): - _t840 = 7 + _t860 = 7 else: if self.match_lookahead_literal("DATE", 0): - _t841 = 6 + _t861 = 6 else: if self.match_lookahead_literal("BOOLEAN", 0): - _t842 = 10 + _t862 = 10 else: if self.match_lookahead_literal("(", 0): - _t843 = 9 + _t863 = 9 else: - _t843 = -1 - _t842 = _t843 - _t841 = _t842 - _t840 = _t841 - _t839 = _t840 - _t838 = _t839 - _t837 = _t838 - _t836 = _t837 - _t835 = _t836 - _t834 = _t835 - _t833 = _t834 - prediction433 = _t833 - if prediction433 == 10: - _t845 = self.parse_boolean_type() - boolean_type444 = _t845 - _t846 = logic_pb2.Type(boolean_type=boolean_type444) - _t844 = _t846 - else: - if prediction433 == 9: - _t848 = self.parse_decimal_type() - decimal_type443 = _t848 - _t849 = logic_pb2.Type(decimal_type=decimal_type443) - _t847 = _t849 + _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 else: - if prediction433 == 8: - _t851 = self.parse_missing_type() - missing_type442 = _t851 - _t852 = logic_pb2.Type(missing_type=missing_type442) - _t850 = _t852 + if prediction443 == 8: + _t871 = self.parse_missing_type() + missing_type452 = _t871 + _t872 = logic_pb2.Type(missing_type=missing_type452) + _t870 = _t872 else: - if prediction433 == 7: - _t854 = self.parse_datetime_type() - datetime_type441 = _t854 - _t855 = logic_pb2.Type(datetime_type=datetime_type441) - _t853 = _t855 + if prediction443 == 7: + _t874 = self.parse_datetime_type() + datetime_type451 = _t874 + _t875 = logic_pb2.Type(datetime_type=datetime_type451) + _t873 = _t875 else: - if prediction433 == 6: - _t857 = self.parse_date_type() - date_type440 = _t857 - _t858 = logic_pb2.Type(date_type=date_type440) - _t856 = _t858 + if prediction443 == 6: + _t877 = self.parse_date_type() + date_type450 = _t877 + _t878 = logic_pb2.Type(date_type=date_type450) + _t876 = _t878 else: - if prediction433 == 5: - _t860 = self.parse_int128_type() - int128_type439 = _t860 - _t861 = logic_pb2.Type(int128_type=int128_type439) - _t859 = _t861 + if prediction443 == 5: + _t880 = self.parse_int128_type() + int128_type449 = _t880 + _t881 = logic_pb2.Type(int128_type=int128_type449) + _t879 = _t881 else: - if prediction433 == 4: - _t863 = self.parse_uint128_type() - uint128_type438 = _t863 - _t864 = logic_pb2.Type(uint128_type=uint128_type438) - _t862 = _t864 + if prediction443 == 4: + _t883 = self.parse_uint128_type() + uint128_type448 = _t883 + _t884 = logic_pb2.Type(uint128_type=uint128_type448) + _t882 = _t884 else: - if prediction433 == 3: - _t866 = self.parse_float_type() - float_type437 = _t866 - _t867 = logic_pb2.Type(float_type=float_type437) - _t865 = _t867 + if prediction443 == 3: + _t886 = self.parse_float_type() + float_type447 = _t886 + _t887 = logic_pb2.Type(float_type=float_type447) + _t885 = _t887 else: - if prediction433 == 2: - _t869 = self.parse_int_type() - int_type436 = _t869 - _t870 = logic_pb2.Type(int_type=int_type436) - _t868 = _t870 + if prediction443 == 2: + _t889 = self.parse_int_type() + int_type446 = _t889 + _t890 = logic_pb2.Type(int_type=int_type446) + _t888 = _t890 else: - if prediction433 == 1: - _t872 = self.parse_string_type() - string_type435 = _t872 - _t873 = logic_pb2.Type(string_type=string_type435) - _t871 = _t873 + if prediction443 == 1: + _t892 = self.parse_string_type() + string_type445 = _t892 + _t893 = logic_pb2.Type(string_type=string_type445) + _t891 = _t893 else: - if prediction433 == 0: - _t875 = self.parse_unspecified_type() - unspecified_type434 = _t875 - _t876 = logic_pb2.Type(unspecified_type=unspecified_type434) - _t874 = _t876 + if prediction443 == 0: + _t895 = self.parse_unspecified_type() + unspecified_type444 = _t895 + _t896 = logic_pb2.Type(unspecified_type=unspecified_type444) + _t894 = _t896 else: raise ParseError("Unexpected token in type" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t871 = _t874 - _t868 = _t871 - _t865 = _t868 - _t862 = _t865 - _t859 = _t862 - _t856 = _t859 - _t853 = _t856 - _t850 = _t853 - _t847 = _t850 - _t844 = _t847 - return _t844 + _t891 = _t894 + _t888 = _t891 + _t885 = _t888 + _t882 = _t885 + _t879 = _t882 + _t876 = _t879 + _t873 = _t876 + _t870 = _t873 + _t867 = _t870 + _t864 = _t867 + return _t864 def parse_unspecified_type(self) -> logic_pb2.UnspecifiedType: self.consume_literal("UNKNOWN") - _t877 = logic_pb2.UnspecifiedType() - return _t877 + _t897 = logic_pb2.UnspecifiedType() + return _t897 def parse_string_type(self) -> logic_pb2.StringType: self.consume_literal("STRING") - _t878 = logic_pb2.StringType() - return _t878 + _t898 = logic_pb2.StringType() + return _t898 def parse_int_type(self) -> logic_pb2.IntType: self.consume_literal("INT") - _t879 = logic_pb2.IntType() - return _t879 + _t899 = logic_pb2.IntType() + return _t899 def parse_float_type(self) -> logic_pb2.FloatType: self.consume_literal("FLOAT") - _t880 = logic_pb2.FloatType() - return _t880 + _t900 = logic_pb2.FloatType() + return _t900 def parse_uint128_type(self) -> logic_pb2.UInt128Type: self.consume_literal("UINT128") - _t881 = logic_pb2.UInt128Type() - return _t881 + _t901 = logic_pb2.UInt128Type() + return _t901 def parse_int128_type(self) -> logic_pb2.Int128Type: self.consume_literal("INT128") - _t882 = logic_pb2.Int128Type() - return _t882 + _t902 = logic_pb2.Int128Type() + return _t902 def parse_date_type(self) -> logic_pb2.DateType: self.consume_literal("DATE") - _t883 = logic_pb2.DateType() - return _t883 + _t903 = logic_pb2.DateType() + return _t903 def parse_datetime_type(self) -> logic_pb2.DateTimeType: self.consume_literal("DATETIME") - _t884 = logic_pb2.DateTimeType() - return _t884 + _t904 = logic_pb2.DateTimeType() + return _t904 def parse_missing_type(self) -> logic_pb2.MissingType: self.consume_literal("MISSING") - _t885 = logic_pb2.MissingType() - return _t885 + _t905 = logic_pb2.MissingType() + return _t905 def parse_decimal_type(self) -> logic_pb2.DecimalType: self.consume_literal("(") self.consume_literal("DECIMAL") - int445 = self.consume_terminal("INT") - int_3446 = self.consume_terminal("INT") + int455 = self.consume_terminal("INT") + int_3456 = self.consume_terminal("INT") self.consume_literal(")") - _t886 = logic_pb2.DecimalType(precision=int(int445), scale=int(int_3446)) - return _t886 + _t906 = logic_pb2.DecimalType(precision=int(int455), scale=int(int_3456)) + return _t906 def parse_boolean_type(self) -> logic_pb2.BooleanType: self.consume_literal("BOOLEAN") - _t887 = logic_pb2.BooleanType() - return _t887 + _t907 = logic_pb2.BooleanType() + return _t907 def parse_value_bindings(self) -> Sequence[logic_pb2.Binding]: self.consume_literal("|") - xs447 = [] - cond448 = self.match_lookahead_terminal("SYMBOL", 0) - while cond448: - _t888 = self.parse_binding() - item449 = _t888 - xs447.append(item449) - cond448 = self.match_lookahead_terminal("SYMBOL", 0) - bindings450 = xs447 - return bindings450 + 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 def parse_formula(self) -> logic_pb2.Formula: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("true", 1): - _t890 = 0 + _t910 = 0 else: if self.match_lookahead_literal("relatom", 1): - _t891 = 11 + _t911 = 11 else: if self.match_lookahead_literal("reduce", 1): - _t892 = 3 + _t912 = 3 else: if self.match_lookahead_literal("primitive", 1): - _t893 = 10 + _t913 = 10 else: if self.match_lookahead_literal("pragma", 1): - _t894 = 9 + _t914 = 9 else: if self.match_lookahead_literal("or", 1): - _t895 = 5 + _t915 = 5 else: if self.match_lookahead_literal("not", 1): - _t896 = 6 + _t916 = 6 else: if self.match_lookahead_literal("ffi", 1): - _t897 = 7 + _t917 = 7 else: if self.match_lookahead_literal("false", 1): - _t898 = 1 + _t918 = 1 else: if self.match_lookahead_literal("exists", 1): - _t899 = 2 + _t919 = 2 else: if self.match_lookahead_literal("cast", 1): - _t900 = 12 + _t920 = 12 else: if self.match_lookahead_literal("atom", 1): - _t901 = 8 + _t921 = 8 else: if self.match_lookahead_literal("and", 1): - _t902 = 4 + _t922 = 4 else: if self.match_lookahead_literal(">=", 1): - _t903 = 10 + _t923 = 10 else: if self.match_lookahead_literal(">", 1): - _t904 = 10 + _t924 = 10 else: if self.match_lookahead_literal("=", 1): - _t905 = 10 + _t925 = 10 else: if self.match_lookahead_literal("<=", 1): - _t906 = 10 + _t926 = 10 else: if self.match_lookahead_literal("<", 1): - _t907 = 10 + _t927 = 10 else: if self.match_lookahead_literal("/", 1): - _t908 = 10 + _t928 = 10 else: if self.match_lookahead_literal("-", 1): - _t909 = 10 + _t929 = 10 else: if self.match_lookahead_literal("+", 1): - _t910 = 10 + _t930 = 10 else: if self.match_lookahead_literal("*", 1): - _t911 = 10 + _t931 = 10 else: - _t911 = -1 - _t910 = _t911 - _t909 = _t910 - _t908 = _t909 - _t907 = _t908 - _t906 = _t907 - _t905 = _t906 - _t904 = _t905 - _t903 = _t904 - _t902 = _t903 - _t901 = _t902 - _t900 = _t901 - _t899 = _t900 - _t898 = _t899 - _t897 = _t898 - _t896 = _t897 - _t895 = _t896 - _t894 = _t895 - _t893 = _t894 - _t892 = _t893 - _t891 = _t892 - _t890 = _t891 - _t889 = _t890 - else: - _t889 = -1 - prediction451 = _t889 - if prediction451 == 12: - _t913 = self.parse_cast() - cast464 = _t913 - _t914 = logic_pb2.Formula(cast=cast464) - _t912 = _t914 - else: - if prediction451 == 11: - _t916 = self.parse_rel_atom() - rel_atom463 = _t916 - _t917 = logic_pb2.Formula(rel_atom=rel_atom463) - _t915 = _t917 + _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 else: - if prediction451 == 10: - _t919 = self.parse_primitive() - primitive462 = _t919 - _t920 = logic_pb2.Formula(primitive=primitive462) - _t918 = _t920 + if prediction461 == 10: + _t939 = self.parse_primitive() + primitive472 = _t939 + _t940 = logic_pb2.Formula(primitive=primitive472) + _t938 = _t940 else: - if prediction451 == 9: - _t922 = self.parse_pragma() - pragma461 = _t922 - _t923 = logic_pb2.Formula(pragma=pragma461) - _t921 = _t923 + if prediction461 == 9: + _t942 = self.parse_pragma() + pragma471 = _t942 + _t943 = logic_pb2.Formula(pragma=pragma471) + _t941 = _t943 else: - if prediction451 == 8: - _t925 = self.parse_atom() - atom460 = _t925 - _t926 = logic_pb2.Formula(atom=atom460) - _t924 = _t926 + if prediction461 == 8: + _t945 = self.parse_atom() + atom470 = _t945 + _t946 = logic_pb2.Formula(atom=atom470) + _t944 = _t946 else: - if prediction451 == 7: - _t928 = self.parse_ffi() - ffi459 = _t928 - _t929 = logic_pb2.Formula(ffi=ffi459) - _t927 = _t929 + if prediction461 == 7: + _t948 = self.parse_ffi() + ffi469 = _t948 + _t949 = logic_pb2.Formula(ffi=ffi469) + _t947 = _t949 else: - if prediction451 == 6: - _t931 = self.parse_not() - not458 = _t931 - _t932 = logic_pb2.Formula() - getattr(_t932, 'not').CopyFrom(not458) - _t930 = _t932 + if prediction461 == 6: + _t951 = self.parse_not() + not468 = _t951 + _t952 = logic_pb2.Formula() + getattr(_t952, 'not').CopyFrom(not468) + _t950 = _t952 else: - if prediction451 == 5: - _t934 = self.parse_disjunction() - disjunction457 = _t934 - _t935 = logic_pb2.Formula(disjunction=disjunction457) - _t933 = _t935 + if prediction461 == 5: + _t954 = self.parse_disjunction() + disjunction467 = _t954 + _t955 = logic_pb2.Formula(disjunction=disjunction467) + _t953 = _t955 else: - if prediction451 == 4: - _t937 = self.parse_conjunction() - conjunction456 = _t937 - _t938 = logic_pb2.Formula(conjunction=conjunction456) - _t936 = _t938 + if prediction461 == 4: + _t957 = self.parse_conjunction() + conjunction466 = _t957 + _t958 = logic_pb2.Formula(conjunction=conjunction466) + _t956 = _t958 else: - if prediction451 == 3: - _t940 = self.parse_reduce() - reduce455 = _t940 - _t941 = logic_pb2.Formula(reduce=reduce455) - _t939 = _t941 + if prediction461 == 3: + _t960 = self.parse_reduce() + reduce465 = _t960 + _t961 = logic_pb2.Formula(reduce=reduce465) + _t959 = _t961 else: - if prediction451 == 2: - _t943 = self.parse_exists() - exists454 = _t943 - _t944 = logic_pb2.Formula(exists=exists454) - _t942 = _t944 + if prediction461 == 2: + _t963 = self.parse_exists() + exists464 = _t963 + _t964 = logic_pb2.Formula(exists=exists464) + _t962 = _t964 else: - if prediction451 == 1: - _t946 = self.parse_false() - false453 = _t946 - _t947 = logic_pb2.Formula(disjunction=false453) - _t945 = _t947 + if prediction461 == 1: + _t966 = self.parse_false() + false463 = _t966 + _t967 = logic_pb2.Formula(disjunction=false463) + _t965 = _t967 else: - if prediction451 == 0: - _t949 = self.parse_true() - true452 = _t949 - _t950 = logic_pb2.Formula(conjunction=true452) - _t948 = _t950 + if prediction461 == 0: + _t969 = self.parse_true() + true462 = _t969 + _t970 = logic_pb2.Formula(conjunction=true462) + _t968 = _t970 else: raise ParseError("Unexpected token in formula" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t945 = _t948 - _t942 = _t945 - _t939 = _t942 - _t936 = _t939 - _t933 = _t936 - _t930 = _t933 - _t927 = _t930 - _t924 = _t927 - _t921 = _t924 - _t918 = _t921 - _t915 = _t918 - _t912 = _t915 - return _t912 + _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 def parse_true(self) -> logic_pb2.Conjunction: self.consume_literal("(") self.consume_literal("true") self.consume_literal(")") - _t951 = logic_pb2.Conjunction(args=[]) - return _t951 + _t971 = logic_pb2.Conjunction(args=[]) + return _t971 def parse_false(self) -> logic_pb2.Disjunction: self.consume_literal("(") self.consume_literal("false") self.consume_literal(")") - _t952 = logic_pb2.Disjunction(args=[]) - return _t952 + _t972 = logic_pb2.Disjunction(args=[]) + return _t972 def parse_exists(self) -> logic_pb2.Exists: self.consume_literal("(") self.consume_literal("exists") - _t953 = self.parse_bindings() - bindings465 = _t953 - _t954 = self.parse_formula() - formula466 = _t954 + _t973 = self.parse_bindings() + bindings475 = _t973 + _t974 = self.parse_formula() + formula476 = _t974 self.consume_literal(")") - _t955 = logic_pb2.Abstraction(vars=(list(bindings465[0]) + list(bindings465[1] if bindings465[1] is not None else [])), value=formula466) - _t956 = logic_pb2.Exists(body=_t955) - return _t956 + _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 def parse_reduce(self) -> logic_pb2.Reduce: self.consume_literal("(") self.consume_literal("reduce") - _t957 = self.parse_abstraction() - abstraction467 = _t957 - _t958 = self.parse_abstraction() - abstraction_3468 = _t958 - _t959 = self.parse_terms() - terms469 = _t959 + _t977 = self.parse_abstraction() + abstraction477 = _t977 + _t978 = self.parse_abstraction() + abstraction_3478 = _t978 + _t979 = self.parse_terms() + terms479 = _t979 self.consume_literal(")") - _t960 = logic_pb2.Reduce(op=abstraction467, body=abstraction_3468, terms=terms469) - return _t960 + _t980 = logic_pb2.Reduce(op=abstraction477, body=abstraction_3478, terms=terms479) + return _t980 def parse_terms(self) -> Sequence[logic_pb2.Term]: self.consume_literal("(") self.consume_literal("terms") - xs470 = [] - cond471 = ((((((((((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 cond471: - _t961 = self.parse_term() - item472 = _t961 - xs470.append(item472) - cond471 = ((((((((((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)) - terms473 = xs470 + 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 self.consume_literal(")") - return terms473 + return terms483 def parse_term(self) -> logic_pb2.Term: if self.match_lookahead_literal("true", 0): - _t962 = 1 + _t982 = 1 else: if self.match_lookahead_literal("missing", 0): - _t963 = 1 + _t983 = 1 else: if self.match_lookahead_literal("false", 0): - _t964 = 1 + _t984 = 1 else: if self.match_lookahead_literal("(", 0): - _t965 = 1 + _t985 = 1 else: if self.match_lookahead_terminal("UINT128", 0): - _t966 = 1 + _t986 = 1 else: if self.match_lookahead_terminal("SYMBOL", 0): - _t967 = 0 + _t987 = 0 else: if self.match_lookahead_terminal("STRING", 0): - _t968 = 1 + _t988 = 1 else: if self.match_lookahead_terminal("INT128", 0): - _t969 = 1 + _t989 = 1 else: if self.match_lookahead_terminal("INT", 0): - _t970 = 1 + _t990 = 1 else: if self.match_lookahead_terminal("FLOAT", 0): - _t971 = 1 + _t991 = 1 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t972 = 1 + _t992 = 1 else: - _t972 = -1 - _t971 = _t972 - _t970 = _t971 - _t969 = _t970 - _t968 = _t969 - _t967 = _t968 - _t966 = _t967 - _t965 = _t966 - _t964 = _t965 - _t963 = _t964 - _t962 = _t963 - prediction474 = _t962 - if prediction474 == 1: - _t974 = self.parse_constant() - constant476 = _t974 - _t975 = logic_pb2.Term(constant=constant476) - _t973 = _t975 - else: - if prediction474 == 0: - _t977 = self.parse_var() - var475 = _t977 - _t978 = logic_pb2.Term(var=var475) - _t976 = _t978 + _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 else: raise ParseError("Unexpected token in term" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t973 = _t976 - return _t973 + _t993 = _t996 + return _t993 def parse_var(self) -> logic_pb2.Var: - symbol477 = self.consume_terminal("SYMBOL") - _t979 = logic_pb2.Var(name=symbol477) - return _t979 + symbol487 = self.consume_terminal("SYMBOL") + _t999 = logic_pb2.Var(name=symbol487) + return _t999 def parse_constant(self) -> logic_pb2.Value: - _t980 = self.parse_value() - value478 = _t980 - return value478 + _t1000 = self.parse_value() + value488 = _t1000 + return value488 def parse_conjunction(self) -> logic_pb2.Conjunction: self.consume_literal("(") self.consume_literal("and") - xs479 = [] - cond480 = self.match_lookahead_literal("(", 0) - while cond480: - _t981 = self.parse_formula() - item481 = _t981 - xs479.append(item481) - cond480 = self.match_lookahead_literal("(", 0) - formulas482 = xs479 - self.consume_literal(")") - _t982 = logic_pb2.Conjunction(args=formulas482) - return _t982 + 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 def parse_disjunction(self) -> logic_pb2.Disjunction: self.consume_literal("(") self.consume_literal("or") - xs483 = [] - cond484 = self.match_lookahead_literal("(", 0) - while cond484: - _t983 = self.parse_formula() - item485 = _t983 - xs483.append(item485) - cond484 = self.match_lookahead_literal("(", 0) - formulas486 = xs483 - self.consume_literal(")") - _t984 = logic_pb2.Disjunction(args=formulas486) - return _t984 + 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 def parse_not(self) -> logic_pb2.Not: self.consume_literal("(") self.consume_literal("not") - _t985 = self.parse_formula() - formula487 = _t985 + _t1005 = self.parse_formula() + formula497 = _t1005 self.consume_literal(")") - _t986 = logic_pb2.Not(arg=formula487) - return _t986 + _t1006 = logic_pb2.Not(arg=formula497) + return _t1006 def parse_ffi(self) -> logic_pb2.FFI: self.consume_literal("(") self.consume_literal("ffi") - _t987 = self.parse_name() - name488 = _t987 - _t988 = self.parse_ffi_args() - ffi_args489 = _t988 - _t989 = self.parse_terms() - terms490 = _t989 + _t1007 = self.parse_name() + name498 = _t1007 + _t1008 = self.parse_ffi_args() + ffi_args499 = _t1008 + _t1009 = self.parse_terms() + terms500 = _t1009 self.consume_literal(")") - _t990 = logic_pb2.FFI(name=name488, args=ffi_args489, terms=terms490) - return _t990 + _t1010 = logic_pb2.FFI(name=name498, args=ffi_args499, terms=terms500) + return _t1010 def parse_name(self) -> str: self.consume_literal(":") - symbol491 = self.consume_terminal("SYMBOL") - return symbol491 + symbol501 = self.consume_terminal("SYMBOL") + return symbol501 def parse_ffi_args(self) -> Sequence[logic_pb2.Abstraction]: self.consume_literal("(") self.consume_literal("args") - xs492 = [] - cond493 = self.match_lookahead_literal("(", 0) - while cond493: - _t991 = self.parse_abstraction() - item494 = _t991 - xs492.append(item494) - cond493 = self.match_lookahead_literal("(", 0) - abstractions495 = xs492 + 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 self.consume_literal(")") - return abstractions495 + return abstractions505 def parse_atom(self) -> logic_pb2.Atom: self.consume_literal("(") self.consume_literal("atom") - _t992 = self.parse_relation_id() - relation_id496 = _t992 - xs497 = [] - cond498 = ((((((((((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 cond498: - _t993 = self.parse_term() - item499 = _t993 - xs497.append(item499) - cond498 = ((((((((((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)) - terms500 = xs497 - self.consume_literal(")") - _t994 = logic_pb2.Atom(name=relation_id496, terms=terms500) - return _t994 + _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 def parse_pragma(self) -> logic_pb2.Pragma: self.consume_literal("(") self.consume_literal("pragma") - _t995 = self.parse_name() - name501 = _t995 - xs502 = [] - cond503 = ((((((((((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 cond503: - _t996 = self.parse_term() - item504 = _t996 - xs502.append(item504) - cond503 = ((((((((((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)) - terms505 = xs502 - self.consume_literal(")") - _t997 = logic_pb2.Pragma(name=name501, terms=terms505) - return _t997 + _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 def parse_primitive(self) -> logic_pb2.Primitive: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("primitive", 1): - _t999 = 9 + _t1019 = 9 else: if self.match_lookahead_literal(">=", 1): - _t1000 = 4 + _t1020 = 4 else: if self.match_lookahead_literal(">", 1): - _t1001 = 3 + _t1021 = 3 else: if self.match_lookahead_literal("=", 1): - _t1002 = 0 + _t1022 = 0 else: if self.match_lookahead_literal("<=", 1): - _t1003 = 2 + _t1023 = 2 else: if self.match_lookahead_literal("<", 1): - _t1004 = 1 + _t1024 = 1 else: if self.match_lookahead_literal("/", 1): - _t1005 = 8 + _t1025 = 8 else: if self.match_lookahead_literal("-", 1): - _t1006 = 6 + _t1026 = 6 else: if self.match_lookahead_literal("+", 1): - _t1007 = 5 + _t1027 = 5 else: if self.match_lookahead_literal("*", 1): - _t1008 = 7 + _t1028 = 7 else: - _t1008 = -1 - _t1007 = _t1008 - _t1006 = _t1007 - _t1005 = _t1006 - _t1004 = _t1005 - _t1003 = _t1004 - _t1002 = _t1003 - _t1001 = _t1002 - _t1000 = _t1001 - _t999 = _t1000 - _t998 = _t999 - else: - _t998 = -1 - prediction506 = _t998 - if prediction506 == 9: + _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: self.consume_literal("(") self.consume_literal("primitive") - _t1010 = self.parse_name() - name516 = _t1010 - xs517 = [] - cond518 = (((((((((((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 cond518: - _t1011 = self.parse_rel_term() - item519 = _t1011 - xs517.append(item519) - cond518 = (((((((((((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_terms520 = xs517 + _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 self.consume_literal(")") - _t1012 = logic_pb2.Primitive(name=name516, terms=rel_terms520) - _t1009 = _t1012 + _t1032 = logic_pb2.Primitive(name=name526, terms=rel_terms530) + _t1029 = _t1032 else: - if prediction506 == 8: - _t1014 = self.parse_divide() - divide515 = _t1014 - _t1013 = divide515 + if prediction516 == 8: + _t1034 = self.parse_divide() + divide525 = _t1034 + _t1033 = divide525 else: - if prediction506 == 7: - _t1016 = self.parse_multiply() - multiply514 = _t1016 - _t1015 = multiply514 + if prediction516 == 7: + _t1036 = self.parse_multiply() + multiply524 = _t1036 + _t1035 = multiply524 else: - if prediction506 == 6: - _t1018 = self.parse_minus() - minus513 = _t1018 - _t1017 = minus513 + if prediction516 == 6: + _t1038 = self.parse_minus() + minus523 = _t1038 + _t1037 = minus523 else: - if prediction506 == 5: - _t1020 = self.parse_add() - add512 = _t1020 - _t1019 = add512 + if prediction516 == 5: + _t1040 = self.parse_add() + add522 = _t1040 + _t1039 = add522 else: - if prediction506 == 4: - _t1022 = self.parse_gt_eq() - gt_eq511 = _t1022 - _t1021 = gt_eq511 + if prediction516 == 4: + _t1042 = self.parse_gt_eq() + gt_eq521 = _t1042 + _t1041 = gt_eq521 else: - if prediction506 == 3: - _t1024 = self.parse_gt() - gt510 = _t1024 - _t1023 = gt510 + if prediction516 == 3: + _t1044 = self.parse_gt() + gt520 = _t1044 + _t1043 = gt520 else: - if prediction506 == 2: - _t1026 = self.parse_lt_eq() - lt_eq509 = _t1026 - _t1025 = lt_eq509 + if prediction516 == 2: + _t1046 = self.parse_lt_eq() + lt_eq519 = _t1046 + _t1045 = lt_eq519 else: - if prediction506 == 1: - _t1028 = self.parse_lt() - lt508 = _t1028 - _t1027 = lt508 + if prediction516 == 1: + _t1048 = self.parse_lt() + lt518 = _t1048 + _t1047 = lt518 else: - if prediction506 == 0: - _t1030 = self.parse_eq() - eq507 = _t1030 - _t1029 = eq507 + if prediction516 == 0: + _t1050 = self.parse_eq() + eq517 = _t1050 + _t1049 = eq517 else: raise ParseError("Unexpected token in primitive" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1027 = _t1029 - _t1025 = _t1027 - _t1023 = _t1025 - _t1021 = _t1023 - _t1019 = _t1021 - _t1017 = _t1019 - _t1015 = _t1017 - _t1013 = _t1015 - _t1009 = _t1013 - return _t1009 + _t1047 = _t1049 + _t1045 = _t1047 + _t1043 = _t1045 + _t1041 = _t1043 + _t1039 = _t1041 + _t1037 = _t1039 + _t1035 = _t1037 + _t1033 = _t1035 + _t1029 = _t1033 + return _t1029 def parse_eq(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("=") - _t1031 = self.parse_term() - term521 = _t1031 - _t1032 = self.parse_term() - term_3522 = _t1032 + _t1051 = self.parse_term() + term531 = _t1051 + _t1052 = self.parse_term() + term_3532 = _t1052 self.consume_literal(")") - _t1033 = logic_pb2.RelTerm(term=term521) - _t1034 = logic_pb2.RelTerm(term=term_3522) - _t1035 = logic_pb2.Primitive(name="rel_primitive_eq", terms=[_t1033, _t1034]) - return _t1035 + _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 def parse_lt(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("<") - _t1036 = self.parse_term() - term523 = _t1036 - _t1037 = self.parse_term() - term_3524 = _t1037 + _t1056 = self.parse_term() + term533 = _t1056 + _t1057 = self.parse_term() + term_3534 = _t1057 self.consume_literal(")") - _t1038 = logic_pb2.RelTerm(term=term523) - _t1039 = logic_pb2.RelTerm(term=term_3524) - _t1040 = logic_pb2.Primitive(name="rel_primitive_lt_monotype", terms=[_t1038, _t1039]) - return _t1040 + _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 def parse_lt_eq(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("<=") - _t1041 = self.parse_term() - term525 = _t1041 - _t1042 = self.parse_term() - term_3526 = _t1042 + _t1061 = self.parse_term() + term535 = _t1061 + _t1062 = self.parse_term() + term_3536 = _t1062 self.consume_literal(")") - _t1043 = logic_pb2.RelTerm(term=term525) - _t1044 = logic_pb2.RelTerm(term=term_3526) - _t1045 = logic_pb2.Primitive(name="rel_primitive_lt_eq_monotype", terms=[_t1043, _t1044]) - return _t1045 + _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 def parse_gt(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal(">") - _t1046 = self.parse_term() - term527 = _t1046 - _t1047 = self.parse_term() - term_3528 = _t1047 + _t1066 = self.parse_term() + term537 = _t1066 + _t1067 = self.parse_term() + term_3538 = _t1067 self.consume_literal(")") - _t1048 = logic_pb2.RelTerm(term=term527) - _t1049 = logic_pb2.RelTerm(term=term_3528) - _t1050 = logic_pb2.Primitive(name="rel_primitive_gt_monotype", terms=[_t1048, _t1049]) - return _t1050 + _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 def parse_gt_eq(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal(">=") - _t1051 = self.parse_term() - term529 = _t1051 - _t1052 = self.parse_term() - term_3530 = _t1052 + _t1071 = self.parse_term() + term539 = _t1071 + _t1072 = self.parse_term() + term_3540 = _t1072 self.consume_literal(")") - _t1053 = logic_pb2.RelTerm(term=term529) - _t1054 = logic_pb2.RelTerm(term=term_3530) - _t1055 = logic_pb2.Primitive(name="rel_primitive_gt_eq_monotype", terms=[_t1053, _t1054]) - return _t1055 + _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 def parse_add(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("+") - _t1056 = self.parse_term() - term531 = _t1056 - _t1057 = self.parse_term() - term_3532 = _t1057 - _t1058 = self.parse_term() - term_4533 = _t1058 + _t1076 = self.parse_term() + term541 = _t1076 + _t1077 = self.parse_term() + term_3542 = _t1077 + _t1078 = self.parse_term() + term_4543 = _t1078 self.consume_literal(")") - _t1059 = logic_pb2.RelTerm(term=term531) - _t1060 = logic_pb2.RelTerm(term=term_3532) - _t1061 = logic_pb2.RelTerm(term=term_4533) - _t1062 = logic_pb2.Primitive(name="rel_primitive_add_monotype", terms=[_t1059, _t1060, _t1061]) - return _t1062 + _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 def parse_minus(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("-") - _t1063 = self.parse_term() - term534 = _t1063 - _t1064 = self.parse_term() - term_3535 = _t1064 - _t1065 = self.parse_term() - term_4536 = _t1065 - self.consume_literal(")") - _t1066 = logic_pb2.RelTerm(term=term534) - _t1067 = logic_pb2.RelTerm(term=term_3535) - _t1068 = logic_pb2.RelTerm(term=term_4536) - _t1069 = logic_pb2.Primitive(name="rel_primitive_subtract_monotype", terms=[_t1066, _t1067, _t1068]) - return _t1069 + _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 def parse_multiply(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("*") - _t1070 = self.parse_term() - term537 = _t1070 - _t1071 = self.parse_term() - term_3538 = _t1071 - _t1072 = self.parse_term() - term_4539 = _t1072 - self.consume_literal(")") - _t1073 = logic_pb2.RelTerm(term=term537) - _t1074 = logic_pb2.RelTerm(term=term_3538) - _t1075 = logic_pb2.RelTerm(term=term_4539) - _t1076 = logic_pb2.Primitive(name="rel_primitive_multiply_monotype", terms=[_t1073, _t1074, _t1075]) - return _t1076 + _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 def parse_divide(self) -> logic_pb2.Primitive: self.consume_literal("(") self.consume_literal("/") - _t1077 = self.parse_term() - term540 = _t1077 - _t1078 = self.parse_term() - term_3541 = _t1078 - _t1079 = self.parse_term() - term_4542 = _t1079 - self.consume_literal(")") - _t1080 = logic_pb2.RelTerm(term=term540) - _t1081 = logic_pb2.RelTerm(term=term_3541) - _t1082 = logic_pb2.RelTerm(term=term_4542) - _t1083 = logic_pb2.Primitive(name="rel_primitive_divide_monotype", terms=[_t1080, _t1081, _t1082]) - return _t1083 + _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 def parse_rel_term(self) -> logic_pb2.RelTerm: if self.match_lookahead_literal("true", 0): - _t1084 = 1 + _t1104 = 1 else: if self.match_lookahead_literal("missing", 0): - _t1085 = 1 + _t1105 = 1 else: if self.match_lookahead_literal("false", 0): - _t1086 = 1 + _t1106 = 1 else: if self.match_lookahead_literal("(", 0): - _t1087 = 1 + _t1107 = 1 else: if self.match_lookahead_literal("#", 0): - _t1088 = 0 + _t1108 = 0 else: if self.match_lookahead_terminal("UINT128", 0): - _t1089 = 1 + _t1109 = 1 else: if self.match_lookahead_terminal("SYMBOL", 0): - _t1090 = 1 + _t1110 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t1091 = 1 + _t1111 = 1 else: if self.match_lookahead_terminal("INT128", 0): - _t1092 = 1 + _t1112 = 1 else: if self.match_lookahead_terminal("INT", 0): - _t1093 = 1 + _t1113 = 1 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1094 = 1 + _t1114 = 1 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1095 = 1 + _t1115 = 1 else: - _t1095 = -1 - _t1094 = _t1095 - _t1093 = _t1094 - _t1092 = _t1093 - _t1091 = _t1092 - _t1090 = _t1091 - _t1089 = _t1090 - _t1088 = _t1089 - _t1087 = _t1088 - _t1086 = _t1087 - _t1085 = _t1086 - _t1084 = _t1085 - prediction543 = _t1084 - if prediction543 == 1: - _t1097 = self.parse_term() - term545 = _t1097 - _t1098 = logic_pb2.RelTerm(term=term545) - _t1096 = _t1098 - else: - if prediction543 == 0: - _t1100 = self.parse_specialized_value() - specialized_value544 = _t1100 - _t1101 = logic_pb2.RelTerm(specialized_value=specialized_value544) - _t1099 = _t1101 + _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 else: raise ParseError("Unexpected token in rel_term" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1096 = _t1099 - return _t1096 + _t1116 = _t1119 + return _t1116 def parse_specialized_value(self) -> logic_pb2.Value: self.consume_literal("#") - _t1102 = self.parse_value() - value546 = _t1102 - return value546 + _t1122 = self.parse_value() + value556 = _t1122 + return value556 def parse_rel_atom(self) -> logic_pb2.RelAtom: self.consume_literal("(") self.consume_literal("relatom") - _t1103 = self.parse_name() - name547 = _t1103 - xs548 = [] - cond549 = (((((((((((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 cond549: - _t1104 = self.parse_rel_term() - item550 = _t1104 - xs548.append(item550) - cond549 = (((((((((((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_terms551 = xs548 - self.consume_literal(")") - _t1105 = logic_pb2.RelAtom(name=name547, terms=rel_terms551) - return _t1105 + _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 def parse_cast(self) -> logic_pb2.Cast: self.consume_literal("(") self.consume_literal("cast") - _t1106 = self.parse_term() - term552 = _t1106 - _t1107 = self.parse_term() - term_3553 = _t1107 + _t1126 = self.parse_term() + term562 = _t1126 + _t1127 = self.parse_term() + term_3563 = _t1127 self.consume_literal(")") - _t1108 = logic_pb2.Cast(input=term552, result=term_3553) - return _t1108 + _t1128 = logic_pb2.Cast(input=term562, result=term_3563) + return _t1128 def parse_attrs(self) -> Sequence[logic_pb2.Attribute]: self.consume_literal("(") self.consume_literal("attrs") - xs554 = [] - cond555 = self.match_lookahead_literal("(", 0) - while cond555: - _t1109 = self.parse_attribute() - item556 = _t1109 - xs554.append(item556) - cond555 = self.match_lookahead_literal("(", 0) - attributes557 = xs554 + 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 self.consume_literal(")") - return attributes557 + return attributes567 def parse_attribute(self) -> logic_pb2.Attribute: self.consume_literal("(") self.consume_literal("attribute") - _t1110 = self.parse_name() - name558 = _t1110 - xs559 = [] - cond560 = (((((((((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 cond560: - _t1111 = self.parse_value() - item561 = _t1111 - xs559.append(item561) - cond560 = (((((((((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)) - values562 = xs559 - self.consume_literal(")") - _t1112 = logic_pb2.Attribute(name=name558, args=values562) - return _t1112 + _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 def parse_algorithm(self) -> logic_pb2.Algorithm: self.consume_literal("(") self.consume_literal("algorithm") - xs563 = [] - cond564 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - while cond564: - _t1113 = self.parse_relation_id() - item565 = _t1113 - xs563.append(item565) - cond564 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - relation_ids566 = xs563 - _t1114 = self.parse_script() - script567 = _t1114 - self.consume_literal(")") - _t1115 = logic_pb2.Algorithm(body=script567) - getattr(_t1115, 'global').extend(relation_ids566) - return _t1115 + 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 def parse_script(self) -> logic_pb2.Script: self.consume_literal("(") self.consume_literal("script") - xs568 = [] - cond569 = self.match_lookahead_literal("(", 0) - while cond569: - _t1116 = self.parse_construct() - item570 = _t1116 - xs568.append(item570) - cond569 = self.match_lookahead_literal("(", 0) - constructs571 = xs568 - self.consume_literal(")") - _t1117 = logic_pb2.Script(constructs=constructs571) - return _t1117 + 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 def parse_construct(self) -> logic_pb2.Construct: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("upsert", 1): - _t1119 = 1 + _t1139 = 1 else: if self.match_lookahead_literal("monus", 1): - _t1120 = 1 + _t1140 = 1 else: if self.match_lookahead_literal("monoid", 1): - _t1121 = 1 + _t1141 = 1 else: if self.match_lookahead_literal("loop", 1): - _t1122 = 0 + _t1142 = 0 else: if self.match_lookahead_literal("break", 1): - _t1123 = 1 + _t1143 = 1 else: if self.match_lookahead_literal("assign", 1): - _t1124 = 1 + _t1144 = 1 else: - _t1124 = -1 - _t1123 = _t1124 - _t1122 = _t1123 - _t1121 = _t1122 - _t1120 = _t1121 - _t1119 = _t1120 - _t1118 = _t1119 - else: - _t1118 = -1 - prediction572 = _t1118 - if prediction572 == 1: - _t1126 = self.parse_instruction() - instruction574 = _t1126 - _t1127 = logic_pb2.Construct(instruction=instruction574) - _t1125 = _t1127 - else: - if prediction572 == 0: - _t1129 = self.parse_loop() - loop573 = _t1129 - _t1130 = logic_pb2.Construct(loop=loop573) - _t1128 = _t1130 + _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 else: raise ParseError("Unexpected token in construct" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1125 = _t1128 - return _t1125 + _t1145 = _t1148 + return _t1145 def parse_loop(self) -> logic_pb2.Loop: self.consume_literal("(") self.consume_literal("loop") - _t1131 = self.parse_init() - init575 = _t1131 - _t1132 = self.parse_script() - script576 = _t1132 + _t1151 = self.parse_init() + init585 = _t1151 + _t1152 = self.parse_script() + script586 = _t1152 self.consume_literal(")") - _t1133 = logic_pb2.Loop(init=init575, body=script576) - return _t1133 + _t1153 = logic_pb2.Loop(init=init585, body=script586) + return _t1153 def parse_init(self) -> Sequence[logic_pb2.Instruction]: self.consume_literal("(") self.consume_literal("init") - xs577 = [] - cond578 = self.match_lookahead_literal("(", 0) - while cond578: - _t1134 = self.parse_instruction() - item579 = _t1134 - xs577.append(item579) - cond578 = self.match_lookahead_literal("(", 0) - instructions580 = xs577 + 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 self.consume_literal(")") - return instructions580 + return instructions590 def parse_instruction(self) -> logic_pb2.Instruction: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("upsert", 1): - _t1136 = 1 + _t1156 = 1 else: if self.match_lookahead_literal("monus", 1): - _t1137 = 4 + _t1157 = 4 else: if self.match_lookahead_literal("monoid", 1): - _t1138 = 3 + _t1158 = 3 else: if self.match_lookahead_literal("break", 1): - _t1139 = 2 + _t1159 = 2 else: if self.match_lookahead_literal("assign", 1): - _t1140 = 0 + _t1160 = 0 else: - _t1140 = -1 - _t1139 = _t1140 - _t1138 = _t1139 - _t1137 = _t1138 - _t1136 = _t1137 - _t1135 = _t1136 - else: - _t1135 = -1 - prediction581 = _t1135 - if prediction581 == 4: - _t1142 = self.parse_monus_def() - monus_def586 = _t1142 - _t1143 = logic_pb2.Instruction(monus_def=monus_def586) - _t1141 = _t1143 - else: - if prediction581 == 3: - _t1145 = self.parse_monoid_def() - monoid_def585 = _t1145 - _t1146 = logic_pb2.Instruction(monoid_def=monoid_def585) - _t1144 = _t1146 + _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 else: - if prediction581 == 2: - _t1148 = self.parse_break() - break584 = _t1148 - _t1149 = logic_pb2.Instruction() - getattr(_t1149, 'break').CopyFrom(break584) - _t1147 = _t1149 + if prediction591 == 2: + _t1168 = self.parse_break() + break594 = _t1168 + _t1169 = logic_pb2.Instruction() + getattr(_t1169, 'break').CopyFrom(break594) + _t1167 = _t1169 else: - if prediction581 == 1: - _t1151 = self.parse_upsert() - upsert583 = _t1151 - _t1152 = logic_pb2.Instruction(upsert=upsert583) - _t1150 = _t1152 + if prediction591 == 1: + _t1171 = self.parse_upsert() + upsert593 = _t1171 + _t1172 = logic_pb2.Instruction(upsert=upsert593) + _t1170 = _t1172 else: - if prediction581 == 0: - _t1154 = self.parse_assign() - assign582 = _t1154 - _t1155 = logic_pb2.Instruction(assign=assign582) - _t1153 = _t1155 + if prediction591 == 0: + _t1174 = self.parse_assign() + assign592 = _t1174 + _t1175 = logic_pb2.Instruction(assign=assign592) + _t1173 = _t1175 else: raise ParseError("Unexpected token in instruction" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1150 = _t1153 - _t1147 = _t1150 - _t1144 = _t1147 - _t1141 = _t1144 - return _t1141 + _t1170 = _t1173 + _t1167 = _t1170 + _t1164 = _t1167 + _t1161 = _t1164 + return _t1161 def parse_assign(self) -> logic_pb2.Assign: self.consume_literal("(") self.consume_literal("assign") - _t1156 = self.parse_relation_id() - relation_id587 = _t1156 - _t1157 = self.parse_abstraction() - abstraction588 = _t1157 + _t1176 = self.parse_relation_id() + relation_id597 = _t1176 + _t1177 = self.parse_abstraction() + abstraction598 = _t1177 if self.match_lookahead_literal("(", 0): - _t1159 = self.parse_attrs() - _t1158 = _t1159 + _t1179 = self.parse_attrs() + _t1178 = _t1179 else: - _t1158 = None - attrs589 = _t1158 + _t1178 = None + attrs599 = _t1178 self.consume_literal(")") - _t1160 = logic_pb2.Assign(name=relation_id587, body=abstraction588, attrs=(attrs589 if attrs589 is not None else [])) - return _t1160 + _t1180 = logic_pb2.Assign(name=relation_id597, body=abstraction598, attrs=(attrs599 if attrs599 is not None else [])) + return _t1180 def parse_upsert(self) -> logic_pb2.Upsert: self.consume_literal("(") self.consume_literal("upsert") - _t1161 = self.parse_relation_id() - relation_id590 = _t1161 - _t1162 = self.parse_abstraction_with_arity() - abstraction_with_arity591 = _t1162 + _t1181 = self.parse_relation_id() + relation_id600 = _t1181 + _t1182 = self.parse_abstraction_with_arity() + abstraction_with_arity601 = _t1182 if self.match_lookahead_literal("(", 0): - _t1164 = self.parse_attrs() - _t1163 = _t1164 + _t1184 = self.parse_attrs() + _t1183 = _t1184 else: - _t1163 = None - attrs592 = _t1163 + _t1183 = None + attrs602 = _t1183 self.consume_literal(")") - _t1165 = logic_pb2.Upsert(name=relation_id590, body=abstraction_with_arity591[0], attrs=(attrs592 if attrs592 is not None else []), value_arity=abstraction_with_arity591[1]) - return _t1165 + _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 def parse_abstraction_with_arity(self) -> tuple[logic_pb2.Abstraction, int]: self.consume_literal("(") - _t1166 = self.parse_bindings() - bindings593 = _t1166 - _t1167 = self.parse_formula() - formula594 = _t1167 + _t1186 = self.parse_bindings() + bindings603 = _t1186 + _t1187 = self.parse_formula() + formula604 = _t1187 self.consume_literal(")") - _t1168 = logic_pb2.Abstraction(vars=(list(bindings593[0]) + list(bindings593[1] if bindings593[1] is not None else [])), value=formula594) - return (_t1168, len(bindings593[1]),) + _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]),) def parse_break(self) -> logic_pb2.Break: self.consume_literal("(") self.consume_literal("break") - _t1169 = self.parse_relation_id() - relation_id595 = _t1169 - _t1170 = self.parse_abstraction() - abstraction596 = _t1170 + _t1189 = self.parse_relation_id() + relation_id605 = _t1189 + _t1190 = self.parse_abstraction() + abstraction606 = _t1190 if self.match_lookahead_literal("(", 0): - _t1172 = self.parse_attrs() - _t1171 = _t1172 + _t1192 = self.parse_attrs() + _t1191 = _t1192 else: - _t1171 = None - attrs597 = _t1171 + _t1191 = None + attrs607 = _t1191 self.consume_literal(")") - _t1173 = logic_pb2.Break(name=relation_id595, body=abstraction596, attrs=(attrs597 if attrs597 is not None else [])) - return _t1173 + _t1193 = logic_pb2.Break(name=relation_id605, body=abstraction606, attrs=(attrs607 if attrs607 is not None else [])) + return _t1193 def parse_monoid_def(self) -> logic_pb2.MonoidDef: self.consume_literal("(") self.consume_literal("monoid") - _t1174 = self.parse_monoid() - monoid598 = _t1174 - _t1175 = self.parse_relation_id() - relation_id599 = _t1175 - _t1176 = self.parse_abstraction_with_arity() - abstraction_with_arity600 = _t1176 + _t1194 = self.parse_monoid() + monoid608 = _t1194 + _t1195 = self.parse_relation_id() + relation_id609 = _t1195 + _t1196 = self.parse_abstraction_with_arity() + abstraction_with_arity610 = _t1196 if self.match_lookahead_literal("(", 0): - _t1178 = self.parse_attrs() - _t1177 = _t1178 + _t1198 = self.parse_attrs() + _t1197 = _t1198 else: - _t1177 = None - attrs601 = _t1177 + _t1197 = None + attrs611 = _t1197 self.consume_literal(")") - _t1179 = logic_pb2.MonoidDef(monoid=monoid598, name=relation_id599, body=abstraction_with_arity600[0], attrs=(attrs601 if attrs601 is not None else []), value_arity=abstraction_with_arity600[1]) - return _t1179 + _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 def parse_monoid(self) -> logic_pb2.Monoid: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("sum", 1): - _t1181 = 3 + _t1201 = 3 else: if self.match_lookahead_literal("or", 1): - _t1182 = 0 + _t1202 = 0 else: if self.match_lookahead_literal("min", 1): - _t1183 = 1 + _t1203 = 1 else: if self.match_lookahead_literal("max", 1): - _t1184 = 2 + _t1204 = 2 else: - _t1184 = -1 - _t1183 = _t1184 - _t1182 = _t1183 - _t1181 = _t1182 - _t1180 = _t1181 - else: - _t1180 = -1 - prediction602 = _t1180 - if prediction602 == 3: - _t1186 = self.parse_sum_monoid() - sum_monoid606 = _t1186 - _t1187 = logic_pb2.Monoid(sum_monoid=sum_monoid606) - _t1185 = _t1187 - else: - if prediction602 == 2: - _t1189 = self.parse_max_monoid() - max_monoid605 = _t1189 - _t1190 = logic_pb2.Monoid(max_monoid=max_monoid605) - _t1188 = _t1190 + _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 else: - if prediction602 == 1: - _t1192 = self.parse_min_monoid() - min_monoid604 = _t1192 - _t1193 = logic_pb2.Monoid(min_monoid=min_monoid604) - _t1191 = _t1193 + if prediction612 == 1: + _t1212 = self.parse_min_monoid() + min_monoid614 = _t1212 + _t1213 = logic_pb2.Monoid(min_monoid=min_monoid614) + _t1211 = _t1213 else: - if prediction602 == 0: - _t1195 = self.parse_or_monoid() - or_monoid603 = _t1195 - _t1196 = logic_pb2.Monoid(or_monoid=or_monoid603) - _t1194 = _t1196 + if prediction612 == 0: + _t1215 = self.parse_or_monoid() + or_monoid613 = _t1215 + _t1216 = logic_pb2.Monoid(or_monoid=or_monoid613) + _t1214 = _t1216 else: raise ParseError("Unexpected token in monoid" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1191 = _t1194 - _t1188 = _t1191 - _t1185 = _t1188 - return _t1185 + _t1211 = _t1214 + _t1208 = _t1211 + _t1205 = _t1208 + return _t1205 def parse_or_monoid(self) -> logic_pb2.OrMonoid: self.consume_literal("(") self.consume_literal("or") self.consume_literal(")") - _t1197 = logic_pb2.OrMonoid() - return _t1197 + _t1217 = logic_pb2.OrMonoid() + return _t1217 def parse_min_monoid(self) -> logic_pb2.MinMonoid: self.consume_literal("(") self.consume_literal("min") - _t1198 = self.parse_type() - type607 = _t1198 + _t1218 = self.parse_type() + type617 = _t1218 self.consume_literal(")") - _t1199 = logic_pb2.MinMonoid(type=type607) - return _t1199 + _t1219 = logic_pb2.MinMonoid(type=type617) + return _t1219 def parse_max_monoid(self) -> logic_pb2.MaxMonoid: self.consume_literal("(") self.consume_literal("max") - _t1200 = self.parse_type() - type608 = _t1200 + _t1220 = self.parse_type() + type618 = _t1220 self.consume_literal(")") - _t1201 = logic_pb2.MaxMonoid(type=type608) - return _t1201 + _t1221 = logic_pb2.MaxMonoid(type=type618) + return _t1221 def parse_sum_monoid(self) -> logic_pb2.SumMonoid: self.consume_literal("(") self.consume_literal("sum") - _t1202 = self.parse_type() - type609 = _t1202 + _t1222 = self.parse_type() + type619 = _t1222 self.consume_literal(")") - _t1203 = logic_pb2.SumMonoid(type=type609) - return _t1203 + _t1223 = logic_pb2.SumMonoid(type=type619) + return _t1223 def parse_monus_def(self) -> logic_pb2.MonusDef: self.consume_literal("(") self.consume_literal("monus") - _t1204 = self.parse_monoid() - monoid610 = _t1204 - _t1205 = self.parse_relation_id() - relation_id611 = _t1205 - _t1206 = self.parse_abstraction_with_arity() - abstraction_with_arity612 = _t1206 + _t1224 = self.parse_monoid() + monoid620 = _t1224 + _t1225 = self.parse_relation_id() + relation_id621 = _t1225 + _t1226 = self.parse_abstraction_with_arity() + abstraction_with_arity622 = _t1226 if self.match_lookahead_literal("(", 0): - _t1208 = self.parse_attrs() - _t1207 = _t1208 + _t1228 = self.parse_attrs() + _t1227 = _t1228 else: - _t1207 = None - attrs613 = _t1207 + _t1227 = None + attrs623 = _t1227 self.consume_literal(")") - _t1209 = logic_pb2.MonusDef(monoid=monoid610, name=relation_id611, body=abstraction_with_arity612[0], attrs=(attrs613 if attrs613 is not None else []), value_arity=abstraction_with_arity612[1]) - return _t1209 + _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 def parse_constraint(self) -> logic_pb2.Constraint: self.consume_literal("(") self.consume_literal("functional_dependency") - _t1210 = self.parse_relation_id() - relation_id614 = _t1210 - _t1211 = self.parse_abstraction() - abstraction615 = _t1211 - _t1212 = self.parse_functional_dependency_keys() - functional_dependency_keys616 = _t1212 - _t1213 = self.parse_functional_dependency_values() - functional_dependency_values617 = _t1213 - self.consume_literal(")") - _t1214 = logic_pb2.FunctionalDependency(guard=abstraction615, keys=functional_dependency_keys616, values=functional_dependency_values617) - _t1215 = logic_pb2.Constraint(name=relation_id614, functional_dependency=_t1214) - return _t1215 + _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 def parse_functional_dependency_keys(self) -> Sequence[logic_pb2.Var]: self.consume_literal("(") self.consume_literal("keys") - xs618 = [] - cond619 = self.match_lookahead_terminal("SYMBOL", 0) - while cond619: - _t1216 = self.parse_var() - item620 = _t1216 - xs618.append(item620) - cond619 = self.match_lookahead_terminal("SYMBOL", 0) - vars621 = xs618 + 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 self.consume_literal(")") - return vars621 + return vars631 def parse_functional_dependency_values(self) -> Sequence[logic_pb2.Var]: self.consume_literal("(") self.consume_literal("values") - xs622 = [] - cond623 = self.match_lookahead_terminal("SYMBOL", 0) - while cond623: - _t1217 = self.parse_var() - item624 = _t1217 - xs622.append(item624) - cond623 = self.match_lookahead_terminal("SYMBOL", 0) - vars625 = xs622 + 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 self.consume_literal(")") - return vars625 + return vars635 def parse_data(self) -> logic_pb2.Data: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("rel_edb", 1): - _t1219 = 0 + _t1239 = 0 else: if self.match_lookahead_literal("csv_data", 1): - _t1220 = 2 + _t1240 = 2 else: if self.match_lookahead_literal("betree_relation", 1): - _t1221 = 1 + _t1241 = 1 else: - _t1221 = -1 - _t1220 = _t1221 - _t1219 = _t1220 - _t1218 = _t1219 - else: - _t1218 = -1 - prediction626 = _t1218 - if prediction626 == 2: - _t1223 = self.parse_csv_data() - csv_data629 = _t1223 - _t1224 = logic_pb2.Data(csv_data=csv_data629) - _t1222 = _t1224 - else: - if prediction626 == 1: - _t1226 = self.parse_betree_relation() - betree_relation628 = _t1226 - _t1227 = logic_pb2.Data(betree_relation=betree_relation628) - _t1225 = _t1227 + _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 else: - if prediction626 == 0: - _t1229 = self.parse_rel_edb() - rel_edb627 = _t1229 - _t1230 = logic_pb2.Data(rel_edb=rel_edb627) - _t1228 = _t1230 + if prediction636 == 0: + _t1249 = self.parse_rel_edb() + rel_edb637 = _t1249 + _t1250 = logic_pb2.Data(rel_edb=rel_edb637) + _t1248 = _t1250 else: raise ParseError("Unexpected token in data" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1225 = _t1228 - _t1222 = _t1225 - return _t1222 + _t1245 = _t1248 + _t1242 = _t1245 + return _t1242 def parse_rel_edb(self) -> logic_pb2.RelEDB: self.consume_literal("(") self.consume_literal("rel_edb") - _t1231 = self.parse_relation_id() - relation_id630 = _t1231 - _t1232 = self.parse_rel_edb_path() - rel_edb_path631 = _t1232 - _t1233 = self.parse_rel_edb_types() - rel_edb_types632 = _t1233 - self.consume_literal(")") - _t1234 = logic_pb2.RelEDB(target_id=relation_id630, path=rel_edb_path631, types=rel_edb_types632) - return _t1234 + _t1251 = self.parse_relation_id() + relation_id640 = _t1251 + _t1252 = self.parse_rel_edb_path() + rel_edb_path641 = _t1252 + _t1253 = self.parse_rel_edb_types() + rel_edb_types642 = _t1253 + self.consume_literal(")") + _t1254 = logic_pb2.RelEDB(target_id=relation_id640, path=rel_edb_path641, types=rel_edb_types642) + return _t1254 def parse_rel_edb_path(self) -> Sequence[str]: self.consume_literal("[") - xs633 = [] - cond634 = self.match_lookahead_terminal("STRING", 0) - while cond634: - item635 = self.consume_terminal("STRING") - xs633.append(item635) - cond634 = self.match_lookahead_terminal("STRING", 0) - strings636 = xs633 + 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 self.consume_literal("]") - return strings636 + return strings646 def parse_rel_edb_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("[") - xs637 = [] - cond638 = ((((((((((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 cond638: - _t1235 = self.parse_type() - item639 = _t1235 - xs637.append(item639) - cond638 = ((((((((((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)) - types640 = xs637 + 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 self.consume_literal("]") - return types640 + return types650 def parse_betree_relation(self) -> logic_pb2.BeTreeRelation: self.consume_literal("(") self.consume_literal("betree_relation") - _t1236 = self.parse_relation_id() - relation_id641 = _t1236 - _t1237 = self.parse_betree_info() - betree_info642 = _t1237 + _t1256 = self.parse_relation_id() + relation_id651 = _t1256 + _t1257 = self.parse_betree_info() + betree_info652 = _t1257 self.consume_literal(")") - _t1238 = logic_pb2.BeTreeRelation(name=relation_id641, relation_info=betree_info642) - return _t1238 + _t1258 = logic_pb2.BeTreeRelation(name=relation_id651, relation_info=betree_info652) + return _t1258 def parse_betree_info(self) -> logic_pb2.BeTreeInfo: self.consume_literal("(") self.consume_literal("betree_info") - _t1239 = self.parse_betree_info_key_types() - betree_info_key_types643 = _t1239 - _t1240 = self.parse_betree_info_value_types() - betree_info_value_types644 = _t1240 - _t1241 = self.parse_config_dict() - config_dict645 = _t1241 - self.consume_literal(")") - _t1242 = self.construct_betree_info(betree_info_key_types643, betree_info_value_types644, config_dict645) - return _t1242 + _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 def parse_betree_info_key_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("(") self.consume_literal("key_types") - xs646 = [] - cond647 = ((((((((((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 cond647: - _t1243 = self.parse_type() - item648 = _t1243 - xs646.append(item648) - cond647 = ((((((((((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)) - types649 = xs646 + 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 self.consume_literal(")") - return types649 + return types659 def parse_betree_info_value_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("(") self.consume_literal("value_types") - xs650 = [] - cond651 = ((((((((((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 cond651: - _t1244 = self.parse_type() - item652 = _t1244 - xs650.append(item652) - cond651 = ((((((((((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)) - types653 = xs650 + 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 self.consume_literal(")") - return types653 + return types663 def parse_csv_data(self) -> logic_pb2.CSVData: self.consume_literal("(") self.consume_literal("csv_data") - _t1245 = self.parse_csvlocator() - csvlocator654 = _t1245 - _t1246 = self.parse_csv_config() - csv_config655 = _t1246 - _t1247 = self.parse_csv_columns() - csv_columns656 = _t1247 - _t1248 = self.parse_csv_asof() - csv_asof657 = _t1248 - self.consume_literal(")") - _t1249 = logic_pb2.CSVData(locator=csvlocator654, config=csv_config655, columns=csv_columns656, asof=csv_asof657) - return _t1249 + _t1265 = self.parse_csvlocator() + csvlocator664 = _t1265 + _t1266 = self.parse_csv_config() + csv_config665 = _t1266 + _t1267 = self.parse_csv_columns() + csv_columns666 = _t1267 + _t1268 = self.parse_csv_asof() + csv_asof667 = _t1268 + self.consume_literal(")") + _t1269 = logic_pb2.CSVData(locator=csvlocator664, config=csv_config665, columns=csv_columns666, asof=csv_asof667) + return _t1269 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)): - _t1251 = self.parse_csv_locator_paths() - _t1250 = _t1251 + _t1271 = self.parse_csv_locator_paths() + _t1270 = _t1271 else: - _t1250 = None - csv_locator_paths658 = _t1250 + _t1270 = None + csv_locator_paths668 = _t1270 if self.match_lookahead_literal("(", 0): - _t1253 = self.parse_csv_locator_inline_data() - _t1252 = _t1253 + _t1273 = self.parse_csv_locator_inline_data() + _t1272 = _t1273 else: - _t1252 = None - csv_locator_inline_data659 = _t1252 + _t1272 = None + csv_locator_inline_data669 = _t1272 self.consume_literal(")") - _t1254 = logic_pb2.CSVLocator(paths=(csv_locator_paths658 if csv_locator_paths658 is not None else []), inline_data=(csv_locator_inline_data659 if csv_locator_inline_data659 is not None else "").encode()) - return _t1254 + _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 def parse_csv_locator_paths(self) -> Sequence[str]: self.consume_literal("(") self.consume_literal("paths") - xs660 = [] - cond661 = self.match_lookahead_terminal("STRING", 0) - while cond661: - item662 = self.consume_terminal("STRING") - xs660.append(item662) - cond661 = self.match_lookahead_terminal("STRING", 0) - strings663 = xs660 + 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 self.consume_literal(")") - return strings663 + return strings673 def parse_csv_locator_inline_data(self) -> str: self.consume_literal("(") self.consume_literal("inline_data") - string664 = self.consume_terminal("STRING") + string674 = self.consume_terminal("STRING") self.consume_literal(")") - return string664 + return string674 def parse_csv_config(self) -> logic_pb2.CSVConfig: self.consume_literal("(") self.consume_literal("csv_config") - _t1255 = self.parse_config_dict() - config_dict665 = _t1255 + _t1275 = self.parse_config_dict() + config_dict675 = _t1275 self.consume_literal(")") - _t1256 = self.construct_csv_config(config_dict665) - return _t1256 + _t1276 = self.construct_csv_config(config_dict675) + return _t1276 def parse_csv_columns(self) -> Sequence[logic_pb2.CSVColumn]: self.consume_literal("(") self.consume_literal("columns") - xs666 = [] - cond667 = self.match_lookahead_literal("(", 0) - while cond667: - _t1257 = self.parse_csv_column() - item668 = _t1257 - xs666.append(item668) - cond667 = self.match_lookahead_literal("(", 0) - csv_columns669 = xs666 + xs676 = [] + cond677 = self.match_lookahead_literal("(", 0) + while cond677: + _t1277 = self.parse_csv_column() + item678 = _t1277 + xs676.append(item678) + cond677 = self.match_lookahead_literal("(", 0) + csv_columns679 = xs676 self.consume_literal(")") - return csv_columns669 + return csv_columns679 def parse_csv_column(self) -> logic_pb2.CSVColumn: self.consume_literal("(") self.consume_literal("column") - string670 = self.consume_terminal("STRING") - _t1258 = self.parse_relation_id() - relation_id671 = _t1258 + string680 = self.consume_terminal("STRING") + _t1278 = self.parse_relation_id() + relation_id681 = _t1278 self.consume_literal("[") - xs672 = [] - cond673 = ((((((((((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 cond673: - _t1259 = self.parse_type() - item674 = _t1259 - xs672.append(item674) - cond673 = ((((((((((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)) - types675 = xs672 + 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: + _t1279 = self.parse_type() + item684 = _t1279 + 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 self.consume_literal("]") self.consume_literal(")") - _t1260 = logic_pb2.CSVColumn(column_name=string670, target_id=relation_id671, types=types675) - return _t1260 + _t1280 = logic_pb2.CSVColumn(column_name=string680, target_id=relation_id681, types=types685) + return _t1280 def parse_csv_asof(self) -> str: self.consume_literal("(") self.consume_literal("asof") - string676 = self.consume_terminal("STRING") + string686 = self.consume_terminal("STRING") self.consume_literal(")") - return string676 + return string686 def parse_undefine(self) -> transactions_pb2.Undefine: self.consume_literal("(") self.consume_literal("undefine") - _t1261 = self.parse_fragment_id() - fragment_id677 = _t1261 + _t1281 = self.parse_fragment_id() + fragment_id687 = _t1281 self.consume_literal(")") - _t1262 = transactions_pb2.Undefine(fragment_id=fragment_id677) - return _t1262 + _t1282 = transactions_pb2.Undefine(fragment_id=fragment_id687) + return _t1282 def parse_context(self) -> transactions_pb2.Context: self.consume_literal("(") self.consume_literal("context") - xs678 = [] - cond679 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - while cond679: - _t1263 = self.parse_relation_id() - item680 = _t1263 - xs678.append(item680) - cond679 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - relation_ids681 = xs678 - self.consume_literal(")") - _t1264 = transactions_pb2.Context(relations=relation_ids681) - return _t1264 + xs688 = [] + cond689 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + while cond689: + _t1283 = self.parse_relation_id() + item690 = _t1283 + xs688.append(item690) + cond689 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + relation_ids691 = xs688 + self.consume_literal(")") + _t1284 = transactions_pb2.Context(relations=relation_ids691) + return _t1284 def parse_snapshot(self) -> transactions_pb2.Snapshot: self.consume_literal("(") self.consume_literal("snapshot") - _t1265 = self.parse_rel_edb_path() - rel_edb_path682 = _t1265 - _t1266 = self.parse_relation_id() - relation_id683 = _t1266 + _t1285 = self.parse_rel_edb_path() + rel_edb_path692 = _t1285 + _t1286 = self.parse_relation_id() + relation_id693 = _t1286 self.consume_literal(")") - _t1267 = transactions_pb2.Snapshot(destination_path=rel_edb_path682, source_relation=relation_id683) - return _t1267 + _t1287 = transactions_pb2.Snapshot(destination_path=rel_edb_path692, source_relation=relation_id693) + return _t1287 def parse_epoch_reads(self) -> Sequence[transactions_pb2.Read]: self.consume_literal("(") self.consume_literal("reads") - xs684 = [] - cond685 = self.match_lookahead_literal("(", 0) - while cond685: - _t1268 = self.parse_read() - item686 = _t1268 - xs684.append(item686) - cond685 = self.match_lookahead_literal("(", 0) - reads687 = xs684 + xs694 = [] + cond695 = self.match_lookahead_literal("(", 0) + while cond695: + _t1288 = self.parse_read() + item696 = _t1288 + xs694.append(item696) + cond695 = self.match_lookahead_literal("(", 0) + reads697 = xs694 self.consume_literal(")") - return reads687 + return reads697 def parse_read(self) -> transactions_pb2.Read: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("what_if", 1): - _t1270 = 2 + _t1290 = 2 else: if self.match_lookahead_literal("output", 1): - _t1271 = 1 + _t1291 = 1 else: if self.match_lookahead_literal("export", 1): - _t1272 = 4 + _t1292 = 4 else: if self.match_lookahead_literal("demand", 1): - _t1273 = 0 + _t1293 = 0 else: if self.match_lookahead_literal("abort", 1): - _t1274 = 3 + _t1294 = 3 else: - _t1274 = -1 - _t1273 = _t1274 - _t1272 = _t1273 - _t1271 = _t1272 - _t1270 = _t1271 - _t1269 = _t1270 - else: - _t1269 = -1 - prediction688 = _t1269 - if prediction688 == 4: - _t1276 = self.parse_export() - export693 = _t1276 - _t1277 = transactions_pb2.Read(export=export693) - _t1275 = _t1277 - else: - if prediction688 == 3: - _t1279 = self.parse_abort() - abort692 = _t1279 - _t1280 = transactions_pb2.Read(abort=abort692) - _t1278 = _t1280 + _t1294 = -1 + _t1293 = _t1294 + _t1292 = _t1293 + _t1291 = _t1292 + _t1290 = _t1291 + _t1289 = _t1290 + else: + _t1289 = -1 + prediction698 = _t1289 + if prediction698 == 4: + _t1296 = self.parse_export() + export703 = _t1296 + _t1297 = transactions_pb2.Read(export=export703) + _t1295 = _t1297 + else: + if prediction698 == 3: + _t1299 = self.parse_abort() + abort702 = _t1299 + _t1300 = transactions_pb2.Read(abort=abort702) + _t1298 = _t1300 else: - if prediction688 == 2: - _t1282 = self.parse_what_if() - what_if691 = _t1282 - _t1283 = transactions_pb2.Read(what_if=what_if691) - _t1281 = _t1283 + if prediction698 == 2: + _t1302 = self.parse_what_if() + what_if701 = _t1302 + _t1303 = transactions_pb2.Read(what_if=what_if701) + _t1301 = _t1303 else: - if prediction688 == 1: - _t1285 = self.parse_output() - output690 = _t1285 - _t1286 = transactions_pb2.Read(output=output690) - _t1284 = _t1286 + if prediction698 == 1: + _t1305 = self.parse_output() + output700 = _t1305 + _t1306 = transactions_pb2.Read(output=output700) + _t1304 = _t1306 else: - if prediction688 == 0: - _t1288 = self.parse_demand() - demand689 = _t1288 - _t1289 = transactions_pb2.Read(demand=demand689) - _t1287 = _t1289 + if prediction698 == 0: + _t1308 = self.parse_demand() + demand699 = _t1308 + _t1309 = transactions_pb2.Read(demand=demand699) + _t1307 = _t1309 else: raise ParseError("Unexpected token in read" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1284 = _t1287 - _t1281 = _t1284 - _t1278 = _t1281 - _t1275 = _t1278 - return _t1275 + _t1304 = _t1307 + _t1301 = _t1304 + _t1298 = _t1301 + _t1295 = _t1298 + return _t1295 def parse_demand(self) -> transactions_pb2.Demand: self.consume_literal("(") self.consume_literal("demand") - _t1290 = self.parse_relation_id() - relation_id694 = _t1290 + _t1310 = self.parse_relation_id() + relation_id704 = _t1310 self.consume_literal(")") - _t1291 = transactions_pb2.Demand(relation_id=relation_id694) - return _t1291 + _t1311 = transactions_pb2.Demand(relation_id=relation_id704) + return _t1311 def parse_output(self) -> transactions_pb2.Output: self.consume_literal("(") self.consume_literal("output") - _t1292 = self.parse_name() - name695 = _t1292 - _t1293 = self.parse_relation_id() - relation_id696 = _t1293 + _t1312 = self.parse_name() + name705 = _t1312 + _t1313 = self.parse_relation_id() + relation_id706 = _t1313 self.consume_literal(")") - _t1294 = transactions_pb2.Output(name=name695, relation_id=relation_id696) - return _t1294 + _t1314 = transactions_pb2.Output(name=name705, relation_id=relation_id706) + return _t1314 def parse_what_if(self) -> transactions_pb2.WhatIf: self.consume_literal("(") self.consume_literal("what_if") - _t1295 = self.parse_name() - name697 = _t1295 - _t1296 = self.parse_epoch() - epoch698 = _t1296 + _t1315 = self.parse_name() + name707 = _t1315 + _t1316 = self.parse_epoch() + epoch708 = _t1316 self.consume_literal(")") - _t1297 = transactions_pb2.WhatIf(branch=name697, epoch=epoch698) - return _t1297 + _t1317 = transactions_pb2.WhatIf(branch=name707, epoch=epoch708) + return _t1317 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)): - _t1299 = self.parse_name() - _t1298 = _t1299 + _t1319 = self.parse_name() + _t1318 = _t1319 else: - _t1298 = None - name699 = _t1298 - _t1300 = self.parse_relation_id() - relation_id700 = _t1300 + _t1318 = None + name709 = _t1318 + _t1320 = self.parse_relation_id() + relation_id710 = _t1320 self.consume_literal(")") - _t1301 = transactions_pb2.Abort(name=(name699 if name699 is not None else "abort"), relation_id=relation_id700) - return _t1301 + _t1321 = transactions_pb2.Abort(name=(name709 if name709 is not None else "abort"), relation_id=relation_id710) + return _t1321 def parse_export(self) -> transactions_pb2.Export: self.consume_literal("(") self.consume_literal("export") - _t1302 = self.parse_export_csv_config() - export_csv_config701 = _t1302 + _t1322 = self.parse_export_csv_config() + export_csv_config711 = _t1322 self.consume_literal(")") - _t1303 = transactions_pb2.Export(csv_config=export_csv_config701) - return _t1303 + _t1323 = transactions_pb2.Export(csv_config=export_csv_config711) + return _t1323 def parse_export_csv_config(self) -> transactions_pb2.ExportCSVConfig: - self.consume_literal("(") - self.consume_literal("export_csv_config") - _t1304 = self.parse_export_csv_path() - export_csv_path702 = _t1304 - _t1305 = self.parse_export_csv_columns() - export_csv_columns703 = _t1305 - _t1306 = self.parse_config_dict() - config_dict704 = _t1306 - self.consume_literal(")") - _t1307 = self.export_csv_config(export_csv_path702, export_csv_columns703, config_dict704) - return _t1307 + if self.match_lookahead_literal("(", 0): + if self.match_lookahead_literal("export_csv_config_v2", 1): + _t1325 = 0 + else: + if self.match_lookahead_literal("export_csv_config", 1): + _t1326 = 1 + else: + _t1326 = -1 + _t1325 = _t1326 + _t1324 = _t1325 + else: + _t1324 = -1 + prediction712 = _t1324 + if prediction712 == 1: + self.consume_literal("(") + self.consume_literal("export_csv_config") + _t1328 = self.parse_export_csv_path() + export_csv_path716 = _t1328 + _t1329 = self.parse_export_csv_columns_list() + export_csv_columns_list717 = _t1329 + _t1330 = self.parse_config_dict() + config_dict718 = _t1330 + self.consume_literal(")") + _t1331 = self.construct_export_csv_config(export_csv_path716, export_csv_columns_list717, config_dict718) + _t1327 = _t1331 + else: + if prediction712 == 0: + self.consume_literal("(") + self.consume_literal("export_csv_config_v2") + _t1333 = self.parse_export_csv_path() + export_csv_path713 = _t1333 + _t1334 = self.parse_export_csv_source() + export_csv_source714 = _t1334 + _t1335 = self.parse_csv_config() + csv_config715 = _t1335 + self.consume_literal(")") + _t1336 = self.construct_export_csv_config_with_source(export_csv_path713, export_csv_source714, csv_config715) + _t1332 = _t1336 + else: + raise ParseError("Unexpected token in export_csv_config" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") + _t1327 = _t1332 + return _t1327 def parse_export_csv_path(self) -> str: self.consume_literal("(") self.consume_literal("path") - string705 = self.consume_terminal("STRING") + string719 = self.consume_terminal("STRING") self.consume_literal(")") - return string705 + return string719 - def parse_export_csv_columns(self) -> Sequence[transactions_pb2.ExportCSVColumn]: - self.consume_literal("(") - self.consume_literal("columns") - xs706 = [] - cond707 = self.match_lookahead_literal("(", 0) - while cond707: - _t1308 = self.parse_export_csv_column() - item708 = _t1308 - xs706.append(item708) - cond707 = self.match_lookahead_literal("(", 0) - export_csv_columns709 = xs706 - self.consume_literal(")") - return export_csv_columns709 + def parse_export_csv_source(self) -> transactions_pb2.ExportCSVSource: + if self.match_lookahead_literal("(", 0): + if self.match_lookahead_literal("table_def", 1): + _t1338 = 1 + else: + if self.match_lookahead_literal("gnf_columns", 1): + _t1339 = 0 + else: + _t1339 = -1 + _t1338 = _t1339 + _t1337 = _t1338 + else: + _t1337 = -1 + prediction720 = _t1337 + if prediction720 == 1: + self.consume_literal("(") + self.consume_literal("table_def") + _t1341 = self.parse_relation_id() + relation_id725 = _t1341 + self.consume_literal(")") + _t1342 = transactions_pb2.ExportCSVSource(table_def=relation_id725) + _t1340 = _t1342 + else: + if prediction720 == 0: + self.consume_literal("(") + self.consume_literal("gnf_columns") + xs721 = [] + cond722 = self.match_lookahead_literal("(", 0) + while cond722: + _t1344 = self.parse_export_csv_column() + item723 = _t1344 + xs721.append(item723) + cond722 = self.match_lookahead_literal("(", 0) + export_csv_columns724 = xs721 + self.consume_literal(")") + _t1345 = transactions_pb2.ExportCSVColumns(columns=export_csv_columns724) + _t1346 = transactions_pb2.ExportCSVSource(gnf_columns=_t1345) + _t1343 = _t1346 + else: + raise ParseError("Unexpected token in export_csv_source" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") + _t1340 = _t1343 + return _t1340 def parse_export_csv_column(self) -> transactions_pb2.ExportCSVColumn: self.consume_literal("(") self.consume_literal("column") - string710 = self.consume_terminal("STRING") - _t1309 = self.parse_relation_id() - relation_id711 = _t1309 + string726 = self.consume_terminal("STRING") + _t1347 = self.parse_relation_id() + relation_id727 = _t1347 self.consume_literal(")") - _t1310 = transactions_pb2.ExportCSVColumn(column_name=string710, column_data=relation_id711) - return _t1310 + _t1348 = transactions_pb2.ExportCSVColumn(column_name=string726, column_data=relation_id727) + return _t1348 + + def parse_export_csv_columns_list(self) -> Sequence[transactions_pb2.ExportCSVColumn]: + self.consume_literal("(") + self.consume_literal("columns") + xs728 = [] + cond729 = self.match_lookahead_literal("(", 0) + while cond729: + _t1349 = self.parse_export_csv_column() + item730 = _t1349 + xs728.append(item730) + cond729 = self.match_lookahead_literal("(", 0) + export_csv_columns731 = xs728 + self.consume_literal(")") + return export_csv_columns731 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 e58dfdd5..7d7a99d6 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: - _t1654 = logic_pb2.Value(int_value=int(v)) - return _t1654 + _t1688 = logic_pb2.Value(int_value=int(v)) + return _t1688 def _make_value_int64(self, v: int) -> logic_pb2.Value: - _t1655 = logic_pb2.Value(int_value=v) - return _t1655 + _t1689 = logic_pb2.Value(int_value=v) + return _t1689 def _make_value_float64(self, v: float) -> logic_pb2.Value: - _t1656 = logic_pb2.Value(float_value=v) - return _t1656 + _t1690 = logic_pb2.Value(float_value=v) + return _t1690 def _make_value_string(self, v: str) -> logic_pb2.Value: - _t1657 = logic_pb2.Value(string_value=v) - return _t1657 + _t1691 = logic_pb2.Value(string_value=v) + return _t1691 def _make_value_boolean(self, v: bool) -> logic_pb2.Value: - _t1658 = logic_pb2.Value(boolean_value=v) - return _t1658 + _t1692 = logic_pb2.Value(boolean_value=v) + return _t1692 def _make_value_uint128(self, v: logic_pb2.UInt128Value) -> logic_pb2.Value: - _t1659 = logic_pb2.Value(uint128_value=v) - return _t1659 + _t1693 = logic_pb2.Value(uint128_value=v) + return _t1693 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: - _t1660 = self._make_value_string("auto") - result.append(("ivm.maintenance_level", _t1660,)) + _t1694 = self._make_value_string("auto") + result.append(("ivm.maintenance_level", _t1694,)) else: if msg.ivm_config.level == transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_ALL: - _t1661 = self._make_value_string("all") - result.append(("ivm.maintenance_level", _t1661,)) + _t1695 = self._make_value_string("all") + result.append(("ivm.maintenance_level", _t1695,)) else: if msg.ivm_config.level == transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF: - _t1662 = self._make_value_string("off") - result.append(("ivm.maintenance_level", _t1662,)) - _t1663 = self._make_value_int64(msg.semantics_version) - result.append(("semantics_version", _t1663,)) + _t1696 = self._make_value_string("off") + result.append(("ivm.maintenance_level", _t1696,)) + _t1697 = self._make_value_int64(msg.semantics_version) + result.append(("semantics_version", _t1697,)) return sorted(result) def deconstruct_csv_config(self, msg: logic_pb2.CSVConfig) -> list[tuple[str, logic_pb2.Value]]: result = [] - _t1664 = self._make_value_int32(msg.header_row) - result.append(("csv_header_row", _t1664,)) - _t1665 = self._make_value_int64(msg.skip) - result.append(("csv_skip", _t1665,)) + _t1698 = self._make_value_int32(msg.header_row) + result.append(("csv_header_row", _t1698,)) + _t1699 = self._make_value_int64(msg.skip) + result.append(("csv_skip", _t1699,)) if msg.new_line != "": - _t1666 = self._make_value_string(msg.new_line) - result.append(("csv_new_line", _t1666,)) - _t1667 = self._make_value_string(msg.delimiter) - result.append(("csv_delimiter", _t1667,)) - _t1668 = self._make_value_string(msg.quotechar) - result.append(("csv_quotechar", _t1668,)) - _t1669 = self._make_value_string(msg.escapechar) - result.append(("csv_escapechar", _t1669,)) + _t1700 = self._make_value_string(msg.new_line) + result.append(("csv_new_line", _t1700,)) + _t1701 = self._make_value_string(msg.delimiter) + result.append(("csv_delimiter", _t1701,)) + _t1702 = self._make_value_string(msg.quotechar) + result.append(("csv_quotechar", _t1702,)) + _t1703 = self._make_value_string(msg.escapechar) + result.append(("csv_escapechar", _t1703,)) if msg.comment != "": - _t1670 = self._make_value_string(msg.comment) - result.append(("csv_comment", _t1670,)) + _t1704 = self._make_value_string(msg.comment) + result.append(("csv_comment", _t1704,)) for missing_string in msg.missing_strings: - _t1671 = self._make_value_string(missing_string) - result.append(("csv_missing_strings", _t1671,)) - _t1672 = self._make_value_string(msg.decimal_separator) - result.append(("csv_decimal_separator", _t1672,)) - _t1673 = self._make_value_string(msg.encoding) - result.append(("csv_encoding", _t1673,)) - _t1674 = self._make_value_string(msg.compression) - result.append(("csv_compression", _t1674,)) + _t1705 = self._make_value_string(missing_string) + result.append(("csv_missing_strings", _t1705,)) + _t1706 = self._make_value_string(msg.decimal_separator) + result.append(("csv_decimal_separator", _t1706,)) + _t1707 = self._make_value_string(msg.encoding) + result.append(("csv_encoding", _t1707,)) + _t1708 = self._make_value_string(msg.compression) + result.append(("csv_compression", _t1708,)) + if msg.partition_size_mb != 0: + _t1709 = self._make_value_int64(msg.partition_size_mb) + result.append(("csv_partition_size_mb", _t1709,)) return sorted(result) def deconstruct_betree_info_config(self, msg: logic_pb2.BeTreeInfo) -> list[tuple[str, logic_pb2.Value]]: result = [] - _t1675 = self._make_value_float64(msg.storage_config.epsilon) - result.append(("betree_config_epsilon", _t1675,)) - _t1676 = self._make_value_int64(msg.storage_config.max_pivots) - result.append(("betree_config_max_pivots", _t1676,)) - _t1677 = self._make_value_int64(msg.storage_config.max_deltas) - result.append(("betree_config_max_deltas", _t1677,)) - _t1678 = self._make_value_int64(msg.storage_config.max_leaf) - result.append(("betree_config_max_leaf", _t1678,)) + _t1710 = self._make_value_float64(msg.storage_config.epsilon) + result.append(("betree_config_epsilon", _t1710,)) + _t1711 = self._make_value_int64(msg.storage_config.max_pivots) + result.append(("betree_config_max_pivots", _t1711,)) + _t1712 = self._make_value_int64(msg.storage_config.max_deltas) + result.append(("betree_config_max_deltas", _t1712,)) + _t1713 = self._make_value_int64(msg.storage_config.max_leaf) + result.append(("betree_config_max_leaf", _t1713,)) 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 - _t1679 = self._make_value_uint128(msg.relation_locator.root_pageid) - result.append(("betree_locator_root_pageid", _t1679,)) + _t1714 = self._make_value_uint128(msg.relation_locator.root_pageid) + result.append(("betree_locator_root_pageid", _t1714,)) 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 - _t1680 = self._make_value_string(msg.relation_locator.inline_data.decode('utf-8')) - result.append(("betree_locator_inline_data", _t1680,)) - _t1681 = self._make_value_int64(msg.relation_locator.element_count) - result.append(("betree_locator_element_count", _t1681,)) - _t1682 = self._make_value_int64(msg.relation_locator.tree_height) - result.append(("betree_locator_tree_height", _t1682,)) + _t1715 = self._make_value_string(msg.relation_locator.inline_data.decode('utf-8')) + result.append(("betree_locator_inline_data", _t1715,)) + _t1716 = self._make_value_int64(msg.relation_locator.element_count) + result.append(("betree_locator_element_count", _t1716,)) + _t1717 = self._make_value_int64(msg.relation_locator.tree_height) + result.append(("betree_locator_tree_height", _t1717,)) 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 - _t1683 = self._make_value_int64(msg.partition_size) - result.append(("partition_size", _t1683,)) + _t1718 = self._make_value_int64(msg.partition_size) + result.append(("partition_size", _t1718,)) if msg.compression is not None: assert msg.compression is not None - _t1684 = self._make_value_string(msg.compression) - result.append(("compression", _t1684,)) + _t1719 = self._make_value_string(msg.compression) + result.append(("compression", _t1719,)) if msg.syntax_header_row is not None: assert msg.syntax_header_row is not None - _t1685 = self._make_value_boolean(msg.syntax_header_row) - result.append(("syntax_header_row", _t1685,)) + _t1720 = self._make_value_boolean(msg.syntax_header_row) + result.append(("syntax_header_row", _t1720,)) if msg.syntax_missing_string is not None: assert msg.syntax_missing_string is not None - _t1686 = self._make_value_string(msg.syntax_missing_string) - result.append(("syntax_missing_string", _t1686,)) + _t1721 = self._make_value_string(msg.syntax_missing_string) + result.append(("syntax_missing_string", _t1721,)) if msg.syntax_delim is not None: assert msg.syntax_delim is not None - _t1687 = self._make_value_string(msg.syntax_delim) - result.append(("syntax_delim", _t1687,)) + _t1722 = self._make_value_string(msg.syntax_delim) + result.append(("syntax_delim", _t1722,)) if msg.syntax_quotechar is not None: assert msg.syntax_quotechar is not None - _t1688 = self._make_value_string(msg.syntax_quotechar) - result.append(("syntax_quotechar", _t1688,)) + _t1723 = self._make_value_string(msg.syntax_quotechar) + result.append(("syntax_quotechar", _t1723,)) if msg.syntax_escapechar is not None: assert msg.syntax_escapechar is not None - _t1689 = self._make_value_string(msg.syntax_escapechar) - result.append(("syntax_escapechar", _t1689,)) + _t1724 = self._make_value_string(msg.syntax_escapechar) + result.append(("syntax_escapechar", _t1724,)) 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: - _t1690 = None + _t1725 = None return None def deconstruct_bindings(self, abs: logic_pb2.Abstraction) -> tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]: @@ -345,3453 +348,3537 @@ def deconstruct_bindings_with_arity(self, abs: logic_pb2.Abstraction, value_arit # --- Pretty-print methods --- def pretty_transaction(self, msg: transactions_pb2.Transaction): - flat638 = self._try_flat(msg, self.pretty_transaction) - if flat638 is not None: - assert flat638 is not None - self.write(flat638) + flat650 = self._try_flat(msg, self.pretty_transaction) + if flat650 is not None: + assert flat650 is not None + self.write(flat650) return None else: - def _t1258(_dollar_dollar): + def _t1282(_dollar_dollar): if _dollar_dollar.HasField("configure"): - _t1259 = _dollar_dollar.configure + _t1283 = _dollar_dollar.configure else: - _t1259 = None + _t1283 = None if _dollar_dollar.HasField("sync"): - _t1260 = _dollar_dollar.sync + _t1284 = _dollar_dollar.sync else: - _t1260 = None - return (_t1259, _t1260, _dollar_dollar.epochs,) - _t1261 = _t1258(msg) - fields629 = _t1261 - assert fields629 is not None - unwrapped_fields630 = fields629 + _t1284 = None + return (_t1283, _t1284, _dollar_dollar.epochs,) + _t1285 = _t1282(msg) + fields641 = _t1285 + assert fields641 is not None + unwrapped_fields642 = fields641 self.write("(") self.write("transaction") self.indent_sexp() - field631 = unwrapped_fields630[0] - if field631 is not None: + field643 = unwrapped_fields642[0] + if field643 is not None: self.newline() - assert field631 is not None - opt_val632 = field631 - self.pretty_configure(opt_val632) - field633 = unwrapped_fields630[1] - if field633 is not None: + assert field643 is not None + opt_val644 = field643 + self.pretty_configure(opt_val644) + field645 = unwrapped_fields642[1] + if field645 is not None: self.newline() - assert field633 is not None - opt_val634 = field633 - self.pretty_sync(opt_val634) - field635 = unwrapped_fields630[2] - if not len(field635) == 0: + assert field645 is not None + opt_val646 = field645 + self.pretty_sync(opt_val646) + field647 = unwrapped_fields642[2] + if not len(field647) == 0: self.newline() - for i637, elem636 in enumerate(field635): - if (i637 > 0): + for i649, elem648 in enumerate(field647): + if (i649 > 0): self.newline() - self.pretty_epoch(elem636) + self.pretty_epoch(elem648) self.dedent() self.write(")") def pretty_configure(self, msg: transactions_pb2.Configure): - flat641 = self._try_flat(msg, self.pretty_configure) - if flat641 is not None: - assert flat641 is not None - self.write(flat641) + flat653 = self._try_flat(msg, self.pretty_configure) + if flat653 is not None: + assert flat653 is not None + self.write(flat653) return None else: - def _t1262(_dollar_dollar): - _t1263 = self.deconstruct_configure(_dollar_dollar) - return _t1263 - _t1264 = _t1262(msg) - fields639 = _t1264 - assert fields639 is not None - unwrapped_fields640 = fields639 + def _t1286(_dollar_dollar): + _t1287 = self.deconstruct_configure(_dollar_dollar) + return _t1287 + _t1288 = _t1286(msg) + fields651 = _t1288 + assert fields651 is not None + unwrapped_fields652 = fields651 self.write("(") self.write("configure") self.indent_sexp() self.newline() - self.pretty_config_dict(unwrapped_fields640) + self.pretty_config_dict(unwrapped_fields652) self.dedent() self.write(")") def pretty_config_dict(self, msg: Sequence[tuple[str, logic_pb2.Value]]): - flat645 = self._try_flat(msg, self.pretty_config_dict) - if flat645 is not None: - assert flat645 is not None - self.write(flat645) + flat657 = self._try_flat(msg, self.pretty_config_dict) + if flat657 is not None: + assert flat657 is not None + self.write(flat657) return None else: - fields642 = msg + fields654 = msg self.write("{") self.indent() - if not len(fields642) == 0: + if not len(fields654) == 0: self.newline() - for i644, elem643 in enumerate(fields642): - if (i644 > 0): + for i656, elem655 in enumerate(fields654): + if (i656 > 0): self.newline() - self.pretty_config_key_value(elem643) + self.pretty_config_key_value(elem655) self.dedent() self.write("}") def pretty_config_key_value(self, msg: tuple[str, logic_pb2.Value]): - flat650 = self._try_flat(msg, self.pretty_config_key_value) - if flat650 is not None: - assert flat650 is not None - self.write(flat650) + flat662 = self._try_flat(msg, self.pretty_config_key_value) + if flat662 is not None: + assert flat662 is not None + self.write(flat662) return None else: - def _t1265(_dollar_dollar): + def _t1289(_dollar_dollar): return (_dollar_dollar[0], _dollar_dollar[1],) - _t1266 = _t1265(msg) - fields646 = _t1266 - assert fields646 is not None - unwrapped_fields647 = fields646 + _t1290 = _t1289(msg) + fields658 = _t1290 + assert fields658 is not None + unwrapped_fields659 = fields658 self.write(":") - field648 = unwrapped_fields647[0] - self.write(field648) + field660 = unwrapped_fields659[0] + self.write(field660) self.write(" ") - field649 = unwrapped_fields647[1] - self.pretty_value(field649) + field661 = unwrapped_fields659[1] + self.pretty_value(field661) def pretty_value(self, msg: logic_pb2.Value): - flat670 = self._try_flat(msg, self.pretty_value) - if flat670 is not None: - assert flat670 is not None - self.write(flat670) + flat682 = self._try_flat(msg, self.pretty_value) + if flat682 is not None: + assert flat682 is not None + self.write(flat682) return None else: - def _t1267(_dollar_dollar): + def _t1291(_dollar_dollar): if _dollar_dollar.HasField("date_value"): - _t1268 = _dollar_dollar.date_value + _t1292 = _dollar_dollar.date_value else: - _t1268 = None - return _t1268 - _t1269 = _t1267(msg) - deconstruct_result668 = _t1269 - if deconstruct_result668 is not None: - assert deconstruct_result668 is not None - unwrapped669 = deconstruct_result668 - self.pretty_date(unwrapped669) + _t1292 = None + return _t1292 + _t1293 = _t1291(msg) + deconstruct_result680 = _t1293 + if deconstruct_result680 is not None: + assert deconstruct_result680 is not None + unwrapped681 = deconstruct_result680 + self.pretty_date(unwrapped681) else: - def _t1270(_dollar_dollar): + def _t1294(_dollar_dollar): if _dollar_dollar.HasField("datetime_value"): - _t1271 = _dollar_dollar.datetime_value + _t1295 = _dollar_dollar.datetime_value else: - _t1271 = None - return _t1271 - _t1272 = _t1270(msg) - deconstruct_result666 = _t1272 - if deconstruct_result666 is not None: - assert deconstruct_result666 is not None - unwrapped667 = deconstruct_result666 - self.pretty_datetime(unwrapped667) + _t1295 = None + return _t1295 + _t1296 = _t1294(msg) + deconstruct_result678 = _t1296 + if deconstruct_result678 is not None: + assert deconstruct_result678 is not None + unwrapped679 = deconstruct_result678 + self.pretty_datetime(unwrapped679) else: - def _t1273(_dollar_dollar): + def _t1297(_dollar_dollar): if _dollar_dollar.HasField("string_value"): - _t1274 = _dollar_dollar.string_value + _t1298 = _dollar_dollar.string_value else: - _t1274 = None - return _t1274 - _t1275 = _t1273(msg) - deconstruct_result664 = _t1275 - if deconstruct_result664 is not None: - assert deconstruct_result664 is not None - unwrapped665 = deconstruct_result664 - self.write(self.format_string_value(unwrapped665)) + _t1298 = None + return _t1298 + _t1299 = _t1297(msg) + deconstruct_result676 = _t1299 + if deconstruct_result676 is not None: + assert deconstruct_result676 is not None + unwrapped677 = deconstruct_result676 + self.write(self.format_string_value(unwrapped677)) else: - def _t1276(_dollar_dollar): + def _t1300(_dollar_dollar): if _dollar_dollar.HasField("int_value"): - _t1277 = _dollar_dollar.int_value + _t1301 = _dollar_dollar.int_value else: - _t1277 = None - return _t1277 - _t1278 = _t1276(msg) - deconstruct_result662 = _t1278 - if deconstruct_result662 is not None: - assert deconstruct_result662 is not None - unwrapped663 = deconstruct_result662 - self.write(str(unwrapped663)) + _t1301 = None + return _t1301 + _t1302 = _t1300(msg) + deconstruct_result674 = _t1302 + if deconstruct_result674 is not None: + assert deconstruct_result674 is not None + unwrapped675 = deconstruct_result674 + self.write(str(unwrapped675)) else: - def _t1279(_dollar_dollar): + def _t1303(_dollar_dollar): if _dollar_dollar.HasField("float_value"): - _t1280 = _dollar_dollar.float_value + _t1304 = _dollar_dollar.float_value else: - _t1280 = None - return _t1280 - _t1281 = _t1279(msg) - deconstruct_result660 = _t1281 - if deconstruct_result660 is not None: - assert deconstruct_result660 is not None - unwrapped661 = deconstruct_result660 - self.write(str(unwrapped661)) + _t1304 = None + return _t1304 + _t1305 = _t1303(msg) + deconstruct_result672 = _t1305 + if deconstruct_result672 is not None: + assert deconstruct_result672 is not None + unwrapped673 = deconstruct_result672 + self.write(str(unwrapped673)) else: - def _t1282(_dollar_dollar): + def _t1306(_dollar_dollar): if _dollar_dollar.HasField("uint128_value"): - _t1283 = _dollar_dollar.uint128_value + _t1307 = _dollar_dollar.uint128_value else: - _t1283 = None - return _t1283 - _t1284 = _t1282(msg) - deconstruct_result658 = _t1284 - if deconstruct_result658 is not None: - assert deconstruct_result658 is not None - unwrapped659 = deconstruct_result658 - self.write(self.format_uint128(unwrapped659)) + _t1307 = None + return _t1307 + _t1308 = _t1306(msg) + deconstruct_result670 = _t1308 + if deconstruct_result670 is not None: + assert deconstruct_result670 is not None + unwrapped671 = deconstruct_result670 + self.write(self.format_uint128(unwrapped671)) else: - def _t1285(_dollar_dollar): + def _t1309(_dollar_dollar): if _dollar_dollar.HasField("int128_value"): - _t1286 = _dollar_dollar.int128_value + _t1310 = _dollar_dollar.int128_value else: - _t1286 = None - return _t1286 - _t1287 = _t1285(msg) - deconstruct_result656 = _t1287 - if deconstruct_result656 is not None: - assert deconstruct_result656 is not None - unwrapped657 = deconstruct_result656 - self.write(self.format_int128(unwrapped657)) + _t1310 = None + return _t1310 + _t1311 = _t1309(msg) + deconstruct_result668 = _t1311 + if deconstruct_result668 is not None: + assert deconstruct_result668 is not None + unwrapped669 = deconstruct_result668 + self.write(self.format_int128(unwrapped669)) else: - def _t1288(_dollar_dollar): + def _t1312(_dollar_dollar): if _dollar_dollar.HasField("decimal_value"): - _t1289 = _dollar_dollar.decimal_value + _t1313 = _dollar_dollar.decimal_value else: - _t1289 = None - return _t1289 - _t1290 = _t1288(msg) - deconstruct_result654 = _t1290 - if deconstruct_result654 is not None: - assert deconstruct_result654 is not None - unwrapped655 = deconstruct_result654 - self.write(self.format_decimal(unwrapped655)) + _t1313 = None + return _t1313 + _t1314 = _t1312(msg) + deconstruct_result666 = _t1314 + if deconstruct_result666 is not None: + assert deconstruct_result666 is not None + unwrapped667 = deconstruct_result666 + self.write(self.format_decimal(unwrapped667)) else: - def _t1291(_dollar_dollar): + def _t1315(_dollar_dollar): if _dollar_dollar.HasField("boolean_value"): - _t1292 = _dollar_dollar.boolean_value + _t1316 = _dollar_dollar.boolean_value else: - _t1292 = None - return _t1292 - _t1293 = _t1291(msg) - deconstruct_result652 = _t1293 - if deconstruct_result652 is not None: - assert deconstruct_result652 is not None - unwrapped653 = deconstruct_result652 - self.pretty_boolean_value(unwrapped653) + _t1316 = None + return _t1316 + _t1317 = _t1315(msg) + deconstruct_result664 = _t1317 + if deconstruct_result664 is not None: + assert deconstruct_result664 is not None + unwrapped665 = deconstruct_result664 + self.pretty_boolean_value(unwrapped665) else: - fields651 = msg + fields663 = msg self.write("missing") def pretty_date(self, msg: logic_pb2.DateValue): - flat676 = self._try_flat(msg, self.pretty_date) - if flat676 is not None: - assert flat676 is not None - self.write(flat676) + flat688 = self._try_flat(msg, self.pretty_date) + if flat688 is not None: + assert flat688 is not None + self.write(flat688) return None else: - def _t1294(_dollar_dollar): + def _t1318(_dollar_dollar): return (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) - _t1295 = _t1294(msg) - fields671 = _t1295 - assert fields671 is not None - unwrapped_fields672 = fields671 + _t1319 = _t1318(msg) + fields683 = _t1319 + assert fields683 is not None + unwrapped_fields684 = fields683 self.write("(") self.write("date") self.indent_sexp() self.newline() - field673 = unwrapped_fields672[0] - self.write(str(field673)) + field685 = unwrapped_fields684[0] + self.write(str(field685)) self.newline() - field674 = unwrapped_fields672[1] - self.write(str(field674)) + field686 = unwrapped_fields684[1] + self.write(str(field686)) self.newline() - field675 = unwrapped_fields672[2] - self.write(str(field675)) + field687 = unwrapped_fields684[2] + self.write(str(field687)) self.dedent() self.write(")") def pretty_datetime(self, msg: logic_pb2.DateTimeValue): - flat687 = self._try_flat(msg, self.pretty_datetime) - if flat687 is not None: - assert flat687 is not None - self.write(flat687) + flat699 = self._try_flat(msg, self.pretty_datetime) + if flat699 is not None: + assert flat699 is not None + self.write(flat699) return None else: - def _t1296(_dollar_dollar): + def _t1320(_dollar_dollar): return (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),) - _t1297 = _t1296(msg) - fields677 = _t1297 - assert fields677 is not None - unwrapped_fields678 = fields677 + _t1321 = _t1320(msg) + fields689 = _t1321 + assert fields689 is not None + unwrapped_fields690 = fields689 self.write("(") self.write("datetime") self.indent_sexp() self.newline() - field679 = unwrapped_fields678[0] - self.write(str(field679)) + field691 = unwrapped_fields690[0] + self.write(str(field691)) self.newline() - field680 = unwrapped_fields678[1] - self.write(str(field680)) + field692 = unwrapped_fields690[1] + self.write(str(field692)) self.newline() - field681 = unwrapped_fields678[2] - self.write(str(field681)) + field693 = unwrapped_fields690[2] + self.write(str(field693)) self.newline() - field682 = unwrapped_fields678[3] - self.write(str(field682)) + field694 = unwrapped_fields690[3] + self.write(str(field694)) self.newline() - field683 = unwrapped_fields678[4] - self.write(str(field683)) + field695 = unwrapped_fields690[4] + self.write(str(field695)) self.newline() - field684 = unwrapped_fields678[5] - self.write(str(field684)) - field685 = unwrapped_fields678[6] - if field685 is not None: + field696 = unwrapped_fields690[5] + self.write(str(field696)) + field697 = unwrapped_fields690[6] + if field697 is not None: self.newline() - assert field685 is not None - opt_val686 = field685 - self.write(str(opt_val686)) + assert field697 is not None + opt_val698 = field697 + self.write(str(opt_val698)) self.dedent() self.write(")") def pretty_boolean_value(self, msg: bool): - def _t1298(_dollar_dollar): + def _t1322(_dollar_dollar): if _dollar_dollar: - _t1299 = () + _t1323 = () else: - _t1299 = None - return _t1299 - _t1300 = _t1298(msg) - deconstruct_result690 = _t1300 - if deconstruct_result690 is not None: - assert deconstruct_result690 is not None - unwrapped691 = deconstruct_result690 + _t1323 = None + return _t1323 + _t1324 = _t1322(msg) + deconstruct_result702 = _t1324 + if deconstruct_result702 is not None: + assert deconstruct_result702 is not None + unwrapped703 = deconstruct_result702 self.write("true") else: - def _t1301(_dollar_dollar): + def _t1325(_dollar_dollar): if not _dollar_dollar: - _t1302 = () + _t1326 = () else: - _t1302 = None - return _t1302 - _t1303 = _t1301(msg) - deconstruct_result688 = _t1303 - if deconstruct_result688 is not None: - assert deconstruct_result688 is not None - unwrapped689 = deconstruct_result688 + _t1326 = None + return _t1326 + _t1327 = _t1325(msg) + deconstruct_result700 = _t1327 + if deconstruct_result700 is not None: + assert deconstruct_result700 is not None + unwrapped701 = deconstruct_result700 self.write("false") else: raise ParseError("No matching rule for boolean_value") def pretty_sync(self, msg: transactions_pb2.Sync): - flat696 = self._try_flat(msg, self.pretty_sync) - if flat696 is not None: - assert flat696 is not None - self.write(flat696) + flat708 = self._try_flat(msg, self.pretty_sync) + if flat708 is not None: + assert flat708 is not None + self.write(flat708) return None else: - def _t1304(_dollar_dollar): + def _t1328(_dollar_dollar): return _dollar_dollar.fragments - _t1305 = _t1304(msg) - fields692 = _t1305 - assert fields692 is not None - unwrapped_fields693 = fields692 + _t1329 = _t1328(msg) + fields704 = _t1329 + assert fields704 is not None + unwrapped_fields705 = fields704 self.write("(") self.write("sync") self.indent_sexp() - if not len(unwrapped_fields693) == 0: + if not len(unwrapped_fields705) == 0: self.newline() - for i695, elem694 in enumerate(unwrapped_fields693): - if (i695 > 0): + for i707, elem706 in enumerate(unwrapped_fields705): + if (i707 > 0): self.newline() - self.pretty_fragment_id(elem694) + self.pretty_fragment_id(elem706) self.dedent() self.write(")") def pretty_fragment_id(self, msg: fragments_pb2.FragmentId): - flat699 = self._try_flat(msg, self.pretty_fragment_id) - if flat699 is not None: - assert flat699 is not None - self.write(flat699) + flat711 = self._try_flat(msg, self.pretty_fragment_id) + if flat711 is not None: + assert flat711 is not None + self.write(flat711) return None else: - def _t1306(_dollar_dollar): + def _t1330(_dollar_dollar): return self.fragment_id_to_string(_dollar_dollar) - _t1307 = _t1306(msg) - fields697 = _t1307 - assert fields697 is not None - unwrapped_fields698 = fields697 + _t1331 = _t1330(msg) + fields709 = _t1331 + assert fields709 is not None + unwrapped_fields710 = fields709 self.write(":") - self.write(unwrapped_fields698) + self.write(unwrapped_fields710) def pretty_epoch(self, msg: transactions_pb2.Epoch): - flat706 = self._try_flat(msg, self.pretty_epoch) - if flat706 is not None: - assert flat706 is not None - self.write(flat706) + flat718 = self._try_flat(msg, self.pretty_epoch) + if flat718 is not None: + assert flat718 is not None + self.write(flat718) return None else: - def _t1308(_dollar_dollar): + def _t1332(_dollar_dollar): if not len(_dollar_dollar.writes) == 0: - _t1309 = _dollar_dollar.writes + _t1333 = _dollar_dollar.writes else: - _t1309 = None + _t1333 = None if not len(_dollar_dollar.reads) == 0: - _t1310 = _dollar_dollar.reads + _t1334 = _dollar_dollar.reads else: - _t1310 = None - return (_t1309, _t1310,) - _t1311 = _t1308(msg) - fields700 = _t1311 - assert fields700 is not None - unwrapped_fields701 = fields700 + _t1334 = None + return (_t1333, _t1334,) + _t1335 = _t1332(msg) + fields712 = _t1335 + assert fields712 is not None + unwrapped_fields713 = fields712 self.write("(") self.write("epoch") self.indent_sexp() - field702 = unwrapped_fields701[0] - if field702 is not None: + field714 = unwrapped_fields713[0] + if field714 is not None: self.newline() - assert field702 is not None - opt_val703 = field702 - self.pretty_epoch_writes(opt_val703) - field704 = unwrapped_fields701[1] - if field704 is not None: + assert field714 is not None + opt_val715 = field714 + self.pretty_epoch_writes(opt_val715) + field716 = unwrapped_fields713[1] + if field716 is not None: self.newline() - assert field704 is not None - opt_val705 = field704 - self.pretty_epoch_reads(opt_val705) + assert field716 is not None + opt_val717 = field716 + self.pretty_epoch_reads(opt_val717) self.dedent() self.write(")") def pretty_epoch_writes(self, msg: Sequence[transactions_pb2.Write]): - flat710 = self._try_flat(msg, self.pretty_epoch_writes) - if flat710 is not None: - assert flat710 is not None - self.write(flat710) + flat722 = self._try_flat(msg, self.pretty_epoch_writes) + if flat722 is not None: + assert flat722 is not None + self.write(flat722) return None else: - fields707 = msg + fields719 = msg self.write("(") self.write("writes") self.indent_sexp() - if not len(fields707) == 0: + if not len(fields719) == 0: self.newline() - for i709, elem708 in enumerate(fields707): - if (i709 > 0): + for i721, elem720 in enumerate(fields719): + if (i721 > 0): self.newline() - self.pretty_write(elem708) + self.pretty_write(elem720) self.dedent() self.write(")") def pretty_write(self, msg: transactions_pb2.Write): - flat719 = self._try_flat(msg, self.pretty_write) - if flat719 is not None: - assert flat719 is not None - self.write(flat719) + flat731 = self._try_flat(msg, self.pretty_write) + if flat731 is not None: + assert flat731 is not None + self.write(flat731) return None else: - def _t1312(_dollar_dollar): + def _t1336(_dollar_dollar): if _dollar_dollar.HasField("define"): - _t1313 = _dollar_dollar.define + _t1337 = _dollar_dollar.define else: - _t1313 = None - return _t1313 - _t1314 = _t1312(msg) - deconstruct_result717 = _t1314 - if deconstruct_result717 is not None: - assert deconstruct_result717 is not None - unwrapped718 = deconstruct_result717 - self.pretty_define(unwrapped718) + _t1337 = None + return _t1337 + _t1338 = _t1336(msg) + deconstruct_result729 = _t1338 + if deconstruct_result729 is not None: + assert deconstruct_result729 is not None + unwrapped730 = deconstruct_result729 + self.pretty_define(unwrapped730) else: - def _t1315(_dollar_dollar): + def _t1339(_dollar_dollar): if _dollar_dollar.HasField("undefine"): - _t1316 = _dollar_dollar.undefine + _t1340 = _dollar_dollar.undefine else: - _t1316 = None - return _t1316 - _t1317 = _t1315(msg) - deconstruct_result715 = _t1317 - if deconstruct_result715 is not None: - assert deconstruct_result715 is not None - unwrapped716 = deconstruct_result715 - self.pretty_undefine(unwrapped716) + _t1340 = None + return _t1340 + _t1341 = _t1339(msg) + deconstruct_result727 = _t1341 + if deconstruct_result727 is not None: + assert deconstruct_result727 is not None + unwrapped728 = deconstruct_result727 + self.pretty_undefine(unwrapped728) else: - def _t1318(_dollar_dollar): + def _t1342(_dollar_dollar): if _dollar_dollar.HasField("context"): - _t1319 = _dollar_dollar.context + _t1343 = _dollar_dollar.context else: - _t1319 = None - return _t1319 - _t1320 = _t1318(msg) - deconstruct_result713 = _t1320 - if deconstruct_result713 is not None: - assert deconstruct_result713 is not None - unwrapped714 = deconstruct_result713 - self.pretty_context(unwrapped714) + _t1343 = None + return _t1343 + _t1344 = _t1342(msg) + deconstruct_result725 = _t1344 + if deconstruct_result725 is not None: + assert deconstruct_result725 is not None + unwrapped726 = deconstruct_result725 + self.pretty_context(unwrapped726) else: - def _t1321(_dollar_dollar): + def _t1345(_dollar_dollar): if _dollar_dollar.HasField("snapshot"): - _t1322 = _dollar_dollar.snapshot + _t1346 = _dollar_dollar.snapshot else: - _t1322 = None - return _t1322 - _t1323 = _t1321(msg) - deconstruct_result711 = _t1323 - if deconstruct_result711 is not None: - assert deconstruct_result711 is not None - unwrapped712 = deconstruct_result711 - self.pretty_snapshot(unwrapped712) + _t1346 = None + return _t1346 + _t1347 = _t1345(msg) + deconstruct_result723 = _t1347 + if deconstruct_result723 is not None: + assert deconstruct_result723 is not None + unwrapped724 = deconstruct_result723 + self.pretty_snapshot(unwrapped724) else: raise ParseError("No matching rule for write") def pretty_define(self, msg: transactions_pb2.Define): - flat722 = self._try_flat(msg, self.pretty_define) - if flat722 is not None: - assert flat722 is not None - self.write(flat722) + flat734 = self._try_flat(msg, self.pretty_define) + if flat734 is not None: + assert flat734 is not None + self.write(flat734) return None else: - def _t1324(_dollar_dollar): + def _t1348(_dollar_dollar): return _dollar_dollar.fragment - _t1325 = _t1324(msg) - fields720 = _t1325 - assert fields720 is not None - unwrapped_fields721 = fields720 + _t1349 = _t1348(msg) + fields732 = _t1349 + assert fields732 is not None + unwrapped_fields733 = fields732 self.write("(") self.write("define") self.indent_sexp() self.newline() - self.pretty_fragment(unwrapped_fields721) + self.pretty_fragment(unwrapped_fields733) self.dedent() self.write(")") def pretty_fragment(self, msg: fragments_pb2.Fragment): - flat729 = self._try_flat(msg, self.pretty_fragment) - if flat729 is not None: - assert flat729 is not None - self.write(flat729) + flat741 = self._try_flat(msg, self.pretty_fragment) + if flat741 is not None: + assert flat741 is not None + self.write(flat741) return None else: - def _t1326(_dollar_dollar): + def _t1350(_dollar_dollar): self.start_pretty_fragment(_dollar_dollar) return (_dollar_dollar.id, _dollar_dollar.declarations,) - _t1327 = _t1326(msg) - fields723 = _t1327 - assert fields723 is not None - unwrapped_fields724 = fields723 + _t1351 = _t1350(msg) + fields735 = _t1351 + assert fields735 is not None + unwrapped_fields736 = fields735 self.write("(") self.write("fragment") self.indent_sexp() self.newline() - field725 = unwrapped_fields724[0] - self.pretty_new_fragment_id(field725) - field726 = unwrapped_fields724[1] - if not len(field726) == 0: + field737 = unwrapped_fields736[0] + self.pretty_new_fragment_id(field737) + field738 = unwrapped_fields736[1] + if not len(field738) == 0: self.newline() - for i728, elem727 in enumerate(field726): - if (i728 > 0): + for i740, elem739 in enumerate(field738): + if (i740 > 0): self.newline() - self.pretty_declaration(elem727) + self.pretty_declaration(elem739) self.dedent() self.write(")") def pretty_new_fragment_id(self, msg: fragments_pb2.FragmentId): - flat731 = self._try_flat(msg, self.pretty_new_fragment_id) - if flat731 is not None: - assert flat731 is not None - self.write(flat731) + flat743 = self._try_flat(msg, self.pretty_new_fragment_id) + if flat743 is not None: + assert flat743 is not None + self.write(flat743) return None else: - fields730 = msg - self.pretty_fragment_id(fields730) + fields742 = msg + self.pretty_fragment_id(fields742) def pretty_declaration(self, msg: logic_pb2.Declaration): - flat740 = self._try_flat(msg, self.pretty_declaration) - if flat740 is not None: - assert flat740 is not None - self.write(flat740) + flat752 = self._try_flat(msg, self.pretty_declaration) + if flat752 is not None: + assert flat752 is not None + self.write(flat752) return None else: - def _t1328(_dollar_dollar): + def _t1352(_dollar_dollar): if _dollar_dollar.HasField("def"): - _t1329 = getattr(_dollar_dollar, 'def') + _t1353 = getattr(_dollar_dollar, 'def') else: - _t1329 = None - return _t1329 - _t1330 = _t1328(msg) - deconstruct_result738 = _t1330 - if deconstruct_result738 is not None: - assert deconstruct_result738 is not None - unwrapped739 = deconstruct_result738 - self.pretty_def(unwrapped739) + _t1353 = None + return _t1353 + _t1354 = _t1352(msg) + deconstruct_result750 = _t1354 + if deconstruct_result750 is not None: + assert deconstruct_result750 is not None + unwrapped751 = deconstruct_result750 + self.pretty_def(unwrapped751) else: - def _t1331(_dollar_dollar): + def _t1355(_dollar_dollar): if _dollar_dollar.HasField("algorithm"): - _t1332 = _dollar_dollar.algorithm + _t1356 = _dollar_dollar.algorithm else: - _t1332 = None - return _t1332 - _t1333 = _t1331(msg) - deconstruct_result736 = _t1333 - if deconstruct_result736 is not None: - assert deconstruct_result736 is not None - unwrapped737 = deconstruct_result736 - self.pretty_algorithm(unwrapped737) + _t1356 = None + return _t1356 + _t1357 = _t1355(msg) + deconstruct_result748 = _t1357 + if deconstruct_result748 is not None: + assert deconstruct_result748 is not None + unwrapped749 = deconstruct_result748 + self.pretty_algorithm(unwrapped749) else: - def _t1334(_dollar_dollar): + def _t1358(_dollar_dollar): if _dollar_dollar.HasField("constraint"): - _t1335 = _dollar_dollar.constraint + _t1359 = _dollar_dollar.constraint else: - _t1335 = None - return _t1335 - _t1336 = _t1334(msg) - deconstruct_result734 = _t1336 - if deconstruct_result734 is not None: - assert deconstruct_result734 is not None - unwrapped735 = deconstruct_result734 - self.pretty_constraint(unwrapped735) + _t1359 = None + return _t1359 + _t1360 = _t1358(msg) + deconstruct_result746 = _t1360 + if deconstruct_result746 is not None: + assert deconstruct_result746 is not None + unwrapped747 = deconstruct_result746 + self.pretty_constraint(unwrapped747) else: - def _t1337(_dollar_dollar): + def _t1361(_dollar_dollar): if _dollar_dollar.HasField("data"): - _t1338 = _dollar_dollar.data + _t1362 = _dollar_dollar.data else: - _t1338 = None - return _t1338 - _t1339 = _t1337(msg) - deconstruct_result732 = _t1339 - if deconstruct_result732 is not None: - assert deconstruct_result732 is not None - unwrapped733 = deconstruct_result732 - self.pretty_data(unwrapped733) + _t1362 = None + return _t1362 + _t1363 = _t1361(msg) + deconstruct_result744 = _t1363 + if deconstruct_result744 is not None: + assert deconstruct_result744 is not None + unwrapped745 = deconstruct_result744 + self.pretty_data(unwrapped745) else: raise ParseError("No matching rule for declaration") def pretty_def(self, msg: logic_pb2.Def): - flat747 = self._try_flat(msg, self.pretty_def) - if flat747 is not None: - assert flat747 is not None - self.write(flat747) + flat759 = self._try_flat(msg, self.pretty_def) + if flat759 is not None: + assert flat759 is not None + self.write(flat759) return None else: - def _t1340(_dollar_dollar): + def _t1364(_dollar_dollar): if not len(_dollar_dollar.attrs) == 0: - _t1341 = _dollar_dollar.attrs + _t1365 = _dollar_dollar.attrs else: - _t1341 = None - return (_dollar_dollar.name, _dollar_dollar.body, _t1341,) - _t1342 = _t1340(msg) - fields741 = _t1342 - assert fields741 is not None - unwrapped_fields742 = fields741 + _t1365 = None + return (_dollar_dollar.name, _dollar_dollar.body, _t1365,) + _t1366 = _t1364(msg) + fields753 = _t1366 + assert fields753 is not None + unwrapped_fields754 = fields753 self.write("(") self.write("def") self.indent_sexp() self.newline() - field743 = unwrapped_fields742[0] - self.pretty_relation_id(field743) + field755 = unwrapped_fields754[0] + self.pretty_relation_id(field755) self.newline() - field744 = unwrapped_fields742[1] - self.pretty_abstraction(field744) - field745 = unwrapped_fields742[2] - if field745 is not None: + field756 = unwrapped_fields754[1] + self.pretty_abstraction(field756) + field757 = unwrapped_fields754[2] + if field757 is not None: self.newline() - assert field745 is not None - opt_val746 = field745 - self.pretty_attrs(opt_val746) + assert field757 is not None + opt_val758 = field757 + self.pretty_attrs(opt_val758) self.dedent() self.write(")") def pretty_relation_id(self, msg: logic_pb2.RelationId): - flat752 = self._try_flat(msg, self.pretty_relation_id) - if flat752 is not None: - assert flat752 is not None - self.write(flat752) + flat764 = self._try_flat(msg, self.pretty_relation_id) + if flat764 is not None: + assert flat764 is not None + self.write(flat764) return None else: - def _t1343(_dollar_dollar): + def _t1367(_dollar_dollar): if self.relation_id_to_string(_dollar_dollar) is not None: - _t1345 = self.deconstruct_relation_id_string(_dollar_dollar) - _t1344 = _t1345 + _t1369 = self.deconstruct_relation_id_string(_dollar_dollar) + _t1368 = _t1369 else: - _t1344 = None - return _t1344 - _t1346 = _t1343(msg) - deconstruct_result750 = _t1346 - if deconstruct_result750 is not None: - assert deconstruct_result750 is not None - unwrapped751 = deconstruct_result750 + _t1368 = None + return _t1368 + _t1370 = _t1367(msg) + deconstruct_result762 = _t1370 + if deconstruct_result762 is not None: + assert deconstruct_result762 is not None + unwrapped763 = deconstruct_result762 self.write(":") - self.write(unwrapped751) + self.write(unwrapped763) else: - def _t1347(_dollar_dollar): - _t1348 = self.deconstruct_relation_id_uint128(_dollar_dollar) - return _t1348 - _t1349 = _t1347(msg) - deconstruct_result748 = _t1349 - if deconstruct_result748 is not None: - assert deconstruct_result748 is not None - unwrapped749 = deconstruct_result748 - self.write(self.format_uint128(unwrapped749)) + def _t1371(_dollar_dollar): + _t1372 = self.deconstruct_relation_id_uint128(_dollar_dollar) + return _t1372 + _t1373 = _t1371(msg) + deconstruct_result760 = _t1373 + if deconstruct_result760 is not None: + assert deconstruct_result760 is not None + unwrapped761 = deconstruct_result760 + self.write(self.format_uint128(unwrapped761)) else: raise ParseError("No matching rule for relation_id") def pretty_abstraction(self, msg: logic_pb2.Abstraction): - flat757 = self._try_flat(msg, self.pretty_abstraction) - if flat757 is not None: - assert flat757 is not None - self.write(flat757) + flat769 = self._try_flat(msg, self.pretty_abstraction) + if flat769 is not None: + assert flat769 is not None + self.write(flat769) return None else: - def _t1350(_dollar_dollar): - _t1351 = self.deconstruct_bindings(_dollar_dollar) - return (_t1351, _dollar_dollar.value,) - _t1352 = _t1350(msg) - fields753 = _t1352 - assert fields753 is not None - unwrapped_fields754 = fields753 + def _t1374(_dollar_dollar): + _t1375 = self.deconstruct_bindings(_dollar_dollar) + return (_t1375, _dollar_dollar.value,) + _t1376 = _t1374(msg) + fields765 = _t1376 + assert fields765 is not None + unwrapped_fields766 = fields765 self.write("(") self.indent() - field755 = unwrapped_fields754[0] - self.pretty_bindings(field755) + field767 = unwrapped_fields766[0] + self.pretty_bindings(field767) self.newline() - field756 = unwrapped_fields754[1] - self.pretty_formula(field756) + field768 = unwrapped_fields766[1] + self.pretty_formula(field768) self.dedent() self.write(")") def pretty_bindings(self, msg: tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]): - flat765 = self._try_flat(msg, self.pretty_bindings) - if flat765 is not None: - assert flat765 is not None - self.write(flat765) + flat777 = self._try_flat(msg, self.pretty_bindings) + if flat777 is not None: + assert flat777 is not None + self.write(flat777) return None else: - def _t1353(_dollar_dollar): + def _t1377(_dollar_dollar): if not len(_dollar_dollar[1]) == 0: - _t1354 = _dollar_dollar[1] + _t1378 = _dollar_dollar[1] else: - _t1354 = None - return (_dollar_dollar[0], _t1354,) - _t1355 = _t1353(msg) - fields758 = _t1355 - assert fields758 is not None - unwrapped_fields759 = fields758 + _t1378 = None + return (_dollar_dollar[0], _t1378,) + _t1379 = _t1377(msg) + fields770 = _t1379 + assert fields770 is not None + unwrapped_fields771 = fields770 self.write("[") self.indent() - field760 = unwrapped_fields759[0] - for i762, elem761 in enumerate(field760): - if (i762 > 0): + field772 = unwrapped_fields771[0] + for i774, elem773 in enumerate(field772): + if (i774 > 0): self.newline() - self.pretty_binding(elem761) - field763 = unwrapped_fields759[1] - if field763 is not None: + self.pretty_binding(elem773) + field775 = unwrapped_fields771[1] + if field775 is not None: self.newline() - assert field763 is not None - opt_val764 = field763 - self.pretty_value_bindings(opt_val764) + assert field775 is not None + opt_val776 = field775 + self.pretty_value_bindings(opt_val776) self.dedent() self.write("]") def pretty_binding(self, msg: logic_pb2.Binding): - flat770 = self._try_flat(msg, self.pretty_binding) - if flat770 is not None: - assert flat770 is not None - self.write(flat770) + flat782 = self._try_flat(msg, self.pretty_binding) + if flat782 is not None: + assert flat782 is not None + self.write(flat782) return None else: - def _t1356(_dollar_dollar): + def _t1380(_dollar_dollar): return (_dollar_dollar.var.name, _dollar_dollar.type,) - _t1357 = _t1356(msg) - fields766 = _t1357 - assert fields766 is not None - unwrapped_fields767 = fields766 - field768 = unwrapped_fields767[0] - self.write(field768) + _t1381 = _t1380(msg) + fields778 = _t1381 + assert fields778 is not None + unwrapped_fields779 = fields778 + field780 = unwrapped_fields779[0] + self.write(field780) self.write("::") - field769 = unwrapped_fields767[1] - self.pretty_type(field769) + field781 = unwrapped_fields779[1] + self.pretty_type(field781) def pretty_type(self, msg: logic_pb2.Type): - flat793 = self._try_flat(msg, self.pretty_type) - if flat793 is not None: - assert flat793 is not None - self.write(flat793) + flat805 = self._try_flat(msg, self.pretty_type) + if flat805 is not None: + assert flat805 is not None + self.write(flat805) return None else: - def _t1358(_dollar_dollar): + def _t1382(_dollar_dollar): if _dollar_dollar.HasField("unspecified_type"): - _t1359 = _dollar_dollar.unspecified_type + _t1383 = _dollar_dollar.unspecified_type else: - _t1359 = None - return _t1359 - _t1360 = _t1358(msg) - deconstruct_result791 = _t1360 - if deconstruct_result791 is not None: - assert deconstruct_result791 is not None - unwrapped792 = deconstruct_result791 - self.pretty_unspecified_type(unwrapped792) + _t1383 = None + return _t1383 + _t1384 = _t1382(msg) + deconstruct_result803 = _t1384 + if deconstruct_result803 is not None: + assert deconstruct_result803 is not None + unwrapped804 = deconstruct_result803 + self.pretty_unspecified_type(unwrapped804) else: - def _t1361(_dollar_dollar): + def _t1385(_dollar_dollar): if _dollar_dollar.HasField("string_type"): - _t1362 = _dollar_dollar.string_type + _t1386 = _dollar_dollar.string_type else: - _t1362 = None - return _t1362 - _t1363 = _t1361(msg) - deconstruct_result789 = _t1363 - if deconstruct_result789 is not None: - assert deconstruct_result789 is not None - unwrapped790 = deconstruct_result789 - self.pretty_string_type(unwrapped790) + _t1386 = None + return _t1386 + _t1387 = _t1385(msg) + deconstruct_result801 = _t1387 + if deconstruct_result801 is not None: + assert deconstruct_result801 is not None + unwrapped802 = deconstruct_result801 + self.pretty_string_type(unwrapped802) else: - def _t1364(_dollar_dollar): + def _t1388(_dollar_dollar): if _dollar_dollar.HasField("int_type"): - _t1365 = _dollar_dollar.int_type + _t1389 = _dollar_dollar.int_type else: - _t1365 = None - return _t1365 - _t1366 = _t1364(msg) - deconstruct_result787 = _t1366 - if deconstruct_result787 is not None: - assert deconstruct_result787 is not None - unwrapped788 = deconstruct_result787 - self.pretty_int_type(unwrapped788) + _t1389 = None + return _t1389 + _t1390 = _t1388(msg) + deconstruct_result799 = _t1390 + if deconstruct_result799 is not None: + assert deconstruct_result799 is not None + unwrapped800 = deconstruct_result799 + self.pretty_int_type(unwrapped800) else: - def _t1367(_dollar_dollar): + def _t1391(_dollar_dollar): if _dollar_dollar.HasField("float_type"): - _t1368 = _dollar_dollar.float_type + _t1392 = _dollar_dollar.float_type else: - _t1368 = None - return _t1368 - _t1369 = _t1367(msg) - deconstruct_result785 = _t1369 - if deconstruct_result785 is not None: - assert deconstruct_result785 is not None - unwrapped786 = deconstruct_result785 - self.pretty_float_type(unwrapped786) + _t1392 = None + return _t1392 + _t1393 = _t1391(msg) + deconstruct_result797 = _t1393 + if deconstruct_result797 is not None: + assert deconstruct_result797 is not None + unwrapped798 = deconstruct_result797 + self.pretty_float_type(unwrapped798) else: - def _t1370(_dollar_dollar): + def _t1394(_dollar_dollar): if _dollar_dollar.HasField("uint128_type"): - _t1371 = _dollar_dollar.uint128_type + _t1395 = _dollar_dollar.uint128_type else: - _t1371 = None - return _t1371 - _t1372 = _t1370(msg) - deconstruct_result783 = _t1372 - if deconstruct_result783 is not None: - assert deconstruct_result783 is not None - unwrapped784 = deconstruct_result783 - self.pretty_uint128_type(unwrapped784) + _t1395 = None + return _t1395 + _t1396 = _t1394(msg) + deconstruct_result795 = _t1396 + if deconstruct_result795 is not None: + assert deconstruct_result795 is not None + unwrapped796 = deconstruct_result795 + self.pretty_uint128_type(unwrapped796) else: - def _t1373(_dollar_dollar): + def _t1397(_dollar_dollar): if _dollar_dollar.HasField("int128_type"): - _t1374 = _dollar_dollar.int128_type + _t1398 = _dollar_dollar.int128_type else: - _t1374 = None - return _t1374 - _t1375 = _t1373(msg) - deconstruct_result781 = _t1375 - if deconstruct_result781 is not None: - assert deconstruct_result781 is not None - unwrapped782 = deconstruct_result781 - self.pretty_int128_type(unwrapped782) + _t1398 = None + return _t1398 + _t1399 = _t1397(msg) + deconstruct_result793 = _t1399 + if deconstruct_result793 is not None: + assert deconstruct_result793 is not None + unwrapped794 = deconstruct_result793 + self.pretty_int128_type(unwrapped794) else: - def _t1376(_dollar_dollar): + def _t1400(_dollar_dollar): if _dollar_dollar.HasField("date_type"): - _t1377 = _dollar_dollar.date_type + _t1401 = _dollar_dollar.date_type else: - _t1377 = None - return _t1377 - _t1378 = _t1376(msg) - deconstruct_result779 = _t1378 - if deconstruct_result779 is not None: - assert deconstruct_result779 is not None - unwrapped780 = deconstruct_result779 - self.pretty_date_type(unwrapped780) + _t1401 = None + return _t1401 + _t1402 = _t1400(msg) + deconstruct_result791 = _t1402 + if deconstruct_result791 is not None: + assert deconstruct_result791 is not None + unwrapped792 = deconstruct_result791 + self.pretty_date_type(unwrapped792) else: - def _t1379(_dollar_dollar): + def _t1403(_dollar_dollar): if _dollar_dollar.HasField("datetime_type"): - _t1380 = _dollar_dollar.datetime_type + _t1404 = _dollar_dollar.datetime_type else: - _t1380 = None - return _t1380 - _t1381 = _t1379(msg) - deconstruct_result777 = _t1381 - if deconstruct_result777 is not None: - assert deconstruct_result777 is not None - unwrapped778 = deconstruct_result777 - self.pretty_datetime_type(unwrapped778) + _t1404 = None + return _t1404 + _t1405 = _t1403(msg) + deconstruct_result789 = _t1405 + if deconstruct_result789 is not None: + assert deconstruct_result789 is not None + unwrapped790 = deconstruct_result789 + self.pretty_datetime_type(unwrapped790) else: - def _t1382(_dollar_dollar): + def _t1406(_dollar_dollar): if _dollar_dollar.HasField("missing_type"): - _t1383 = _dollar_dollar.missing_type + _t1407 = _dollar_dollar.missing_type else: - _t1383 = None - return _t1383 - _t1384 = _t1382(msg) - deconstruct_result775 = _t1384 - if deconstruct_result775 is not None: - assert deconstruct_result775 is not None - unwrapped776 = deconstruct_result775 - self.pretty_missing_type(unwrapped776) + _t1407 = None + return _t1407 + _t1408 = _t1406(msg) + deconstruct_result787 = _t1408 + if deconstruct_result787 is not None: + assert deconstruct_result787 is not None + unwrapped788 = deconstruct_result787 + self.pretty_missing_type(unwrapped788) else: - def _t1385(_dollar_dollar): + def _t1409(_dollar_dollar): if _dollar_dollar.HasField("decimal_type"): - _t1386 = _dollar_dollar.decimal_type + _t1410 = _dollar_dollar.decimal_type else: - _t1386 = None - return _t1386 - _t1387 = _t1385(msg) - deconstruct_result773 = _t1387 - if deconstruct_result773 is not None: - assert deconstruct_result773 is not None - unwrapped774 = deconstruct_result773 - self.pretty_decimal_type(unwrapped774) + _t1410 = None + return _t1410 + _t1411 = _t1409(msg) + deconstruct_result785 = _t1411 + if deconstruct_result785 is not None: + assert deconstruct_result785 is not None + unwrapped786 = deconstruct_result785 + self.pretty_decimal_type(unwrapped786) else: - def _t1388(_dollar_dollar): + def _t1412(_dollar_dollar): if _dollar_dollar.HasField("boolean_type"): - _t1389 = _dollar_dollar.boolean_type + _t1413 = _dollar_dollar.boolean_type else: - _t1389 = None - return _t1389 - _t1390 = _t1388(msg) - deconstruct_result771 = _t1390 - if deconstruct_result771 is not None: - assert deconstruct_result771 is not None - unwrapped772 = deconstruct_result771 - self.pretty_boolean_type(unwrapped772) + _t1413 = None + return _t1413 + _t1414 = _t1412(msg) + deconstruct_result783 = _t1414 + if deconstruct_result783 is not None: + assert deconstruct_result783 is not None + unwrapped784 = deconstruct_result783 + self.pretty_boolean_type(unwrapped784) else: raise ParseError("No matching rule for type") def pretty_unspecified_type(self, msg: logic_pb2.UnspecifiedType): - fields794 = msg + fields806 = msg self.write("UNKNOWN") def pretty_string_type(self, msg: logic_pb2.StringType): - fields795 = msg + fields807 = msg self.write("STRING") def pretty_int_type(self, msg: logic_pb2.IntType): - fields796 = msg + fields808 = msg self.write("INT") def pretty_float_type(self, msg: logic_pb2.FloatType): - fields797 = msg + fields809 = msg self.write("FLOAT") def pretty_uint128_type(self, msg: logic_pb2.UInt128Type): - fields798 = msg + fields810 = msg self.write("UINT128") def pretty_int128_type(self, msg: logic_pb2.Int128Type): - fields799 = msg + fields811 = msg self.write("INT128") def pretty_date_type(self, msg: logic_pb2.DateType): - fields800 = msg + fields812 = msg self.write("DATE") def pretty_datetime_type(self, msg: logic_pb2.DateTimeType): - fields801 = msg + fields813 = msg self.write("DATETIME") def pretty_missing_type(self, msg: logic_pb2.MissingType): - fields802 = msg + fields814 = msg self.write("MISSING") def pretty_decimal_type(self, msg: logic_pb2.DecimalType): - flat807 = self._try_flat(msg, self.pretty_decimal_type) - if flat807 is not None: - assert flat807 is not None - self.write(flat807) + flat819 = self._try_flat(msg, self.pretty_decimal_type) + if flat819 is not None: + assert flat819 is not None + self.write(flat819) return None else: - def _t1391(_dollar_dollar): + def _t1415(_dollar_dollar): return (int(_dollar_dollar.precision), int(_dollar_dollar.scale),) - _t1392 = _t1391(msg) - fields803 = _t1392 - assert fields803 is not None - unwrapped_fields804 = fields803 + _t1416 = _t1415(msg) + fields815 = _t1416 + assert fields815 is not None + unwrapped_fields816 = fields815 self.write("(") self.write("DECIMAL") self.indent_sexp() self.newline() - field805 = unwrapped_fields804[0] - self.write(str(field805)) + field817 = unwrapped_fields816[0] + self.write(str(field817)) self.newline() - field806 = unwrapped_fields804[1] - self.write(str(field806)) + field818 = unwrapped_fields816[1] + self.write(str(field818)) self.dedent() self.write(")") def pretty_boolean_type(self, msg: logic_pb2.BooleanType): - fields808 = msg + fields820 = msg self.write("BOOLEAN") def pretty_value_bindings(self, msg: Sequence[logic_pb2.Binding]): - flat812 = self._try_flat(msg, self.pretty_value_bindings) - if flat812 is not None: - assert flat812 is not None - self.write(flat812) + flat824 = self._try_flat(msg, self.pretty_value_bindings) + if flat824 is not None: + assert flat824 is not None + self.write(flat824) return None else: - fields809 = msg + fields821 = msg self.write("|") - if not len(fields809) == 0: + if not len(fields821) == 0: self.write(" ") - for i811, elem810 in enumerate(fields809): - if (i811 > 0): + for i823, elem822 in enumerate(fields821): + if (i823 > 0): self.newline() - self.pretty_binding(elem810) + self.pretty_binding(elem822) def pretty_formula(self, msg: logic_pb2.Formula): - flat839 = self._try_flat(msg, self.pretty_formula) - if flat839 is not None: - assert flat839 is not None - self.write(flat839) + flat851 = self._try_flat(msg, self.pretty_formula) + if flat851 is not None: + assert flat851 is not None + self.write(flat851) return None else: - def _t1393(_dollar_dollar): + def _t1417(_dollar_dollar): if (_dollar_dollar.HasField("conjunction") and len(_dollar_dollar.conjunction.args) == 0): - _t1394 = _dollar_dollar.conjunction + _t1418 = _dollar_dollar.conjunction else: - _t1394 = None - return _t1394 - _t1395 = _t1393(msg) - deconstruct_result837 = _t1395 - if deconstruct_result837 is not None: - assert deconstruct_result837 is not None - unwrapped838 = deconstruct_result837 - self.pretty_true(unwrapped838) + _t1418 = None + return _t1418 + _t1419 = _t1417(msg) + deconstruct_result849 = _t1419 + if deconstruct_result849 is not None: + assert deconstruct_result849 is not None + unwrapped850 = deconstruct_result849 + self.pretty_true(unwrapped850) else: - def _t1396(_dollar_dollar): + def _t1420(_dollar_dollar): if (_dollar_dollar.HasField("disjunction") and len(_dollar_dollar.disjunction.args) == 0): - _t1397 = _dollar_dollar.disjunction + _t1421 = _dollar_dollar.disjunction else: - _t1397 = None - return _t1397 - _t1398 = _t1396(msg) - deconstruct_result835 = _t1398 - if deconstruct_result835 is not None: - assert deconstruct_result835 is not None - unwrapped836 = deconstruct_result835 - self.pretty_false(unwrapped836) + _t1421 = None + return _t1421 + _t1422 = _t1420(msg) + deconstruct_result847 = _t1422 + if deconstruct_result847 is not None: + assert deconstruct_result847 is not None + unwrapped848 = deconstruct_result847 + self.pretty_false(unwrapped848) else: - def _t1399(_dollar_dollar): + def _t1423(_dollar_dollar): if _dollar_dollar.HasField("exists"): - _t1400 = _dollar_dollar.exists + _t1424 = _dollar_dollar.exists else: - _t1400 = None - return _t1400 - _t1401 = _t1399(msg) - deconstruct_result833 = _t1401 - if deconstruct_result833 is not None: - assert deconstruct_result833 is not None - unwrapped834 = deconstruct_result833 - self.pretty_exists(unwrapped834) + _t1424 = None + return _t1424 + _t1425 = _t1423(msg) + deconstruct_result845 = _t1425 + if deconstruct_result845 is not None: + assert deconstruct_result845 is not None + unwrapped846 = deconstruct_result845 + self.pretty_exists(unwrapped846) else: - def _t1402(_dollar_dollar): + def _t1426(_dollar_dollar): if _dollar_dollar.HasField("reduce"): - _t1403 = _dollar_dollar.reduce + _t1427 = _dollar_dollar.reduce else: - _t1403 = None - return _t1403 - _t1404 = _t1402(msg) - deconstruct_result831 = _t1404 - if deconstruct_result831 is not None: - assert deconstruct_result831 is not None - unwrapped832 = deconstruct_result831 - self.pretty_reduce(unwrapped832) + _t1427 = None + return _t1427 + _t1428 = _t1426(msg) + deconstruct_result843 = _t1428 + if deconstruct_result843 is not None: + assert deconstruct_result843 is not None + unwrapped844 = deconstruct_result843 + self.pretty_reduce(unwrapped844) else: - def _t1405(_dollar_dollar): + def _t1429(_dollar_dollar): if (_dollar_dollar.HasField("conjunction") and not len(_dollar_dollar.conjunction.args) == 0): - _t1406 = _dollar_dollar.conjunction + _t1430 = _dollar_dollar.conjunction else: - _t1406 = None - return _t1406 - _t1407 = _t1405(msg) - deconstruct_result829 = _t1407 - if deconstruct_result829 is not None: - assert deconstruct_result829 is not None - unwrapped830 = deconstruct_result829 - self.pretty_conjunction(unwrapped830) + _t1430 = None + return _t1430 + _t1431 = _t1429(msg) + deconstruct_result841 = _t1431 + if deconstruct_result841 is not None: + assert deconstruct_result841 is not None + unwrapped842 = deconstruct_result841 + self.pretty_conjunction(unwrapped842) else: - def _t1408(_dollar_dollar): + def _t1432(_dollar_dollar): if (_dollar_dollar.HasField("disjunction") and not len(_dollar_dollar.disjunction.args) == 0): - _t1409 = _dollar_dollar.disjunction + _t1433 = _dollar_dollar.disjunction else: - _t1409 = None - return _t1409 - _t1410 = _t1408(msg) - deconstruct_result827 = _t1410 - if deconstruct_result827 is not None: - assert deconstruct_result827 is not None - unwrapped828 = deconstruct_result827 - self.pretty_disjunction(unwrapped828) + _t1433 = None + return _t1433 + _t1434 = _t1432(msg) + deconstruct_result839 = _t1434 + if deconstruct_result839 is not None: + assert deconstruct_result839 is not None + unwrapped840 = deconstruct_result839 + self.pretty_disjunction(unwrapped840) else: - def _t1411(_dollar_dollar): + def _t1435(_dollar_dollar): if _dollar_dollar.HasField("not"): - _t1412 = getattr(_dollar_dollar, 'not') + _t1436 = getattr(_dollar_dollar, 'not') else: - _t1412 = None - return _t1412 - _t1413 = _t1411(msg) - deconstruct_result825 = _t1413 - if deconstruct_result825 is not None: - assert deconstruct_result825 is not None - unwrapped826 = deconstruct_result825 - self.pretty_not(unwrapped826) + _t1436 = None + return _t1436 + _t1437 = _t1435(msg) + deconstruct_result837 = _t1437 + if deconstruct_result837 is not None: + assert deconstruct_result837 is not None + unwrapped838 = deconstruct_result837 + self.pretty_not(unwrapped838) else: - def _t1414(_dollar_dollar): + def _t1438(_dollar_dollar): if _dollar_dollar.HasField("ffi"): - _t1415 = _dollar_dollar.ffi + _t1439 = _dollar_dollar.ffi else: - _t1415 = None - return _t1415 - _t1416 = _t1414(msg) - deconstruct_result823 = _t1416 - if deconstruct_result823 is not None: - assert deconstruct_result823 is not None - unwrapped824 = deconstruct_result823 - self.pretty_ffi(unwrapped824) + _t1439 = None + return _t1439 + _t1440 = _t1438(msg) + deconstruct_result835 = _t1440 + if deconstruct_result835 is not None: + assert deconstruct_result835 is not None + unwrapped836 = deconstruct_result835 + self.pretty_ffi(unwrapped836) else: - def _t1417(_dollar_dollar): + def _t1441(_dollar_dollar): if _dollar_dollar.HasField("atom"): - _t1418 = _dollar_dollar.atom + _t1442 = _dollar_dollar.atom else: - _t1418 = None - return _t1418 - _t1419 = _t1417(msg) - deconstruct_result821 = _t1419 - if deconstruct_result821 is not None: - assert deconstruct_result821 is not None - unwrapped822 = deconstruct_result821 - self.pretty_atom(unwrapped822) + _t1442 = None + return _t1442 + _t1443 = _t1441(msg) + deconstruct_result833 = _t1443 + if deconstruct_result833 is not None: + assert deconstruct_result833 is not None + unwrapped834 = deconstruct_result833 + self.pretty_atom(unwrapped834) else: - def _t1420(_dollar_dollar): + def _t1444(_dollar_dollar): if _dollar_dollar.HasField("pragma"): - _t1421 = _dollar_dollar.pragma + _t1445 = _dollar_dollar.pragma else: - _t1421 = None - return _t1421 - _t1422 = _t1420(msg) - deconstruct_result819 = _t1422 - if deconstruct_result819 is not None: - assert deconstruct_result819 is not None - unwrapped820 = deconstruct_result819 - self.pretty_pragma(unwrapped820) + _t1445 = None + return _t1445 + _t1446 = _t1444(msg) + deconstruct_result831 = _t1446 + if deconstruct_result831 is not None: + assert deconstruct_result831 is not None + unwrapped832 = deconstruct_result831 + self.pretty_pragma(unwrapped832) else: - def _t1423(_dollar_dollar): + def _t1447(_dollar_dollar): if _dollar_dollar.HasField("primitive"): - _t1424 = _dollar_dollar.primitive + _t1448 = _dollar_dollar.primitive else: - _t1424 = None - return _t1424 - _t1425 = _t1423(msg) - deconstruct_result817 = _t1425 - if deconstruct_result817 is not None: - assert deconstruct_result817 is not None - unwrapped818 = deconstruct_result817 - self.pretty_primitive(unwrapped818) + _t1448 = None + return _t1448 + _t1449 = _t1447(msg) + deconstruct_result829 = _t1449 + if deconstruct_result829 is not None: + assert deconstruct_result829 is not None + unwrapped830 = deconstruct_result829 + self.pretty_primitive(unwrapped830) else: - def _t1426(_dollar_dollar): + def _t1450(_dollar_dollar): if _dollar_dollar.HasField("rel_atom"): - _t1427 = _dollar_dollar.rel_atom + _t1451 = _dollar_dollar.rel_atom else: - _t1427 = None - return _t1427 - _t1428 = _t1426(msg) - deconstruct_result815 = _t1428 - if deconstruct_result815 is not None: - assert deconstruct_result815 is not None - unwrapped816 = deconstruct_result815 - self.pretty_rel_atom(unwrapped816) + _t1451 = None + return _t1451 + _t1452 = _t1450(msg) + deconstruct_result827 = _t1452 + if deconstruct_result827 is not None: + assert deconstruct_result827 is not None + unwrapped828 = deconstruct_result827 + self.pretty_rel_atom(unwrapped828) else: - def _t1429(_dollar_dollar): + def _t1453(_dollar_dollar): if _dollar_dollar.HasField("cast"): - _t1430 = _dollar_dollar.cast + _t1454 = _dollar_dollar.cast else: - _t1430 = None - return _t1430 - _t1431 = _t1429(msg) - deconstruct_result813 = _t1431 - if deconstruct_result813 is not None: - assert deconstruct_result813 is not None - unwrapped814 = deconstruct_result813 - self.pretty_cast(unwrapped814) + _t1454 = None + return _t1454 + _t1455 = _t1453(msg) + deconstruct_result825 = _t1455 + if deconstruct_result825 is not None: + assert deconstruct_result825 is not None + unwrapped826 = deconstruct_result825 + self.pretty_cast(unwrapped826) else: raise ParseError("No matching rule for formula") def pretty_true(self, msg: logic_pb2.Conjunction): - fields840 = msg + fields852 = msg self.write("(") self.write("true") self.write(")") def pretty_false(self, msg: logic_pb2.Disjunction): - fields841 = msg + fields853 = msg self.write("(") self.write("false") self.write(")") def pretty_exists(self, msg: logic_pb2.Exists): - flat846 = self._try_flat(msg, self.pretty_exists) - if flat846 is not None: - assert flat846 is not None - self.write(flat846) + flat858 = self._try_flat(msg, self.pretty_exists) + if flat858 is not None: + assert flat858 is not None + self.write(flat858) return None else: - def _t1432(_dollar_dollar): - _t1433 = self.deconstruct_bindings(_dollar_dollar.body) - return (_t1433, _dollar_dollar.body.value,) - _t1434 = _t1432(msg) - fields842 = _t1434 - assert fields842 is not None - unwrapped_fields843 = fields842 + def _t1456(_dollar_dollar): + _t1457 = self.deconstruct_bindings(_dollar_dollar.body) + return (_t1457, _dollar_dollar.body.value,) + _t1458 = _t1456(msg) + fields854 = _t1458 + assert fields854 is not None + unwrapped_fields855 = fields854 self.write("(") self.write("exists") self.indent_sexp() self.newline() - field844 = unwrapped_fields843[0] - self.pretty_bindings(field844) + field856 = unwrapped_fields855[0] + self.pretty_bindings(field856) self.newline() - field845 = unwrapped_fields843[1] - self.pretty_formula(field845) + field857 = unwrapped_fields855[1] + self.pretty_formula(field857) self.dedent() self.write(")") def pretty_reduce(self, msg: logic_pb2.Reduce): - flat852 = self._try_flat(msg, self.pretty_reduce) - if flat852 is not None: - assert flat852 is not None - self.write(flat852) + flat864 = self._try_flat(msg, self.pretty_reduce) + if flat864 is not None: + assert flat864 is not None + self.write(flat864) return None else: - def _t1435(_dollar_dollar): + def _t1459(_dollar_dollar): return (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) - _t1436 = _t1435(msg) - fields847 = _t1436 - assert fields847 is not None - unwrapped_fields848 = fields847 + _t1460 = _t1459(msg) + fields859 = _t1460 + assert fields859 is not None + unwrapped_fields860 = fields859 self.write("(") self.write("reduce") self.indent_sexp() self.newline() - field849 = unwrapped_fields848[0] - self.pretty_abstraction(field849) + field861 = unwrapped_fields860[0] + self.pretty_abstraction(field861) self.newline() - field850 = unwrapped_fields848[1] - self.pretty_abstraction(field850) + field862 = unwrapped_fields860[1] + self.pretty_abstraction(field862) self.newline() - field851 = unwrapped_fields848[2] - self.pretty_terms(field851) + field863 = unwrapped_fields860[2] + self.pretty_terms(field863) self.dedent() self.write(")") def pretty_terms(self, msg: Sequence[logic_pb2.Term]): - flat856 = self._try_flat(msg, self.pretty_terms) - if flat856 is not None: - assert flat856 is not None - self.write(flat856) + flat868 = self._try_flat(msg, self.pretty_terms) + if flat868 is not None: + assert flat868 is not None + self.write(flat868) return None else: - fields853 = msg + fields865 = msg self.write("(") self.write("terms") self.indent_sexp() - if not len(fields853) == 0: + if not len(fields865) == 0: self.newline() - for i855, elem854 in enumerate(fields853): - if (i855 > 0): + for i867, elem866 in enumerate(fields865): + if (i867 > 0): self.newline() - self.pretty_term(elem854) + self.pretty_term(elem866) self.dedent() self.write(")") def pretty_term(self, msg: logic_pb2.Term): - flat861 = self._try_flat(msg, self.pretty_term) - if flat861 is not None: - assert flat861 is not None - self.write(flat861) + flat873 = self._try_flat(msg, self.pretty_term) + if flat873 is not None: + assert flat873 is not None + self.write(flat873) return None else: - def _t1437(_dollar_dollar): + def _t1461(_dollar_dollar): if _dollar_dollar.HasField("var"): - _t1438 = _dollar_dollar.var + _t1462 = _dollar_dollar.var else: - _t1438 = None - return _t1438 - _t1439 = _t1437(msg) - deconstruct_result859 = _t1439 - if deconstruct_result859 is not None: - assert deconstruct_result859 is not None - unwrapped860 = deconstruct_result859 - self.pretty_var(unwrapped860) + _t1462 = None + return _t1462 + _t1463 = _t1461(msg) + deconstruct_result871 = _t1463 + if deconstruct_result871 is not None: + assert deconstruct_result871 is not None + unwrapped872 = deconstruct_result871 + self.pretty_var(unwrapped872) else: - def _t1440(_dollar_dollar): + def _t1464(_dollar_dollar): if _dollar_dollar.HasField("constant"): - _t1441 = _dollar_dollar.constant + _t1465 = _dollar_dollar.constant else: - _t1441 = None - return _t1441 - _t1442 = _t1440(msg) - deconstruct_result857 = _t1442 - if deconstruct_result857 is not None: - assert deconstruct_result857 is not None - unwrapped858 = deconstruct_result857 - self.pretty_constant(unwrapped858) + _t1465 = None + return _t1465 + _t1466 = _t1464(msg) + deconstruct_result869 = _t1466 + if deconstruct_result869 is not None: + assert deconstruct_result869 is not None + unwrapped870 = deconstruct_result869 + self.pretty_constant(unwrapped870) else: raise ParseError("No matching rule for term") def pretty_var(self, msg: logic_pb2.Var): - flat864 = self._try_flat(msg, self.pretty_var) - if flat864 is not None: - assert flat864 is not None - self.write(flat864) + flat876 = self._try_flat(msg, self.pretty_var) + if flat876 is not None: + assert flat876 is not None + self.write(flat876) return None else: - def _t1443(_dollar_dollar): + def _t1467(_dollar_dollar): return _dollar_dollar.name - _t1444 = _t1443(msg) - fields862 = _t1444 - assert fields862 is not None - unwrapped_fields863 = fields862 - self.write(unwrapped_fields863) + _t1468 = _t1467(msg) + fields874 = _t1468 + assert fields874 is not None + unwrapped_fields875 = fields874 + self.write(unwrapped_fields875) def pretty_constant(self, msg: logic_pb2.Value): - flat866 = self._try_flat(msg, self.pretty_constant) - if flat866 is not None: - assert flat866 is not None - self.write(flat866) + flat878 = self._try_flat(msg, self.pretty_constant) + if flat878 is not None: + assert flat878 is not None + self.write(flat878) return None else: - fields865 = msg - self.pretty_value(fields865) + fields877 = msg + self.pretty_value(fields877) def pretty_conjunction(self, msg: logic_pb2.Conjunction): - flat871 = self._try_flat(msg, self.pretty_conjunction) - if flat871 is not None: - assert flat871 is not None - self.write(flat871) + flat883 = self._try_flat(msg, self.pretty_conjunction) + if flat883 is not None: + assert flat883 is not None + self.write(flat883) return None else: - def _t1445(_dollar_dollar): + def _t1469(_dollar_dollar): return _dollar_dollar.args - _t1446 = _t1445(msg) - fields867 = _t1446 - assert fields867 is not None - unwrapped_fields868 = fields867 + _t1470 = _t1469(msg) + fields879 = _t1470 + assert fields879 is not None + unwrapped_fields880 = fields879 self.write("(") self.write("and") self.indent_sexp() - if not len(unwrapped_fields868) == 0: + if not len(unwrapped_fields880) == 0: self.newline() - for i870, elem869 in enumerate(unwrapped_fields868): - if (i870 > 0): + for i882, elem881 in enumerate(unwrapped_fields880): + if (i882 > 0): self.newline() - self.pretty_formula(elem869) + self.pretty_formula(elem881) self.dedent() self.write(")") def pretty_disjunction(self, msg: logic_pb2.Disjunction): - flat876 = self._try_flat(msg, self.pretty_disjunction) - if flat876 is not None: - assert flat876 is not None - self.write(flat876) + flat888 = self._try_flat(msg, self.pretty_disjunction) + if flat888 is not None: + assert flat888 is not None + self.write(flat888) return None else: - def _t1447(_dollar_dollar): + def _t1471(_dollar_dollar): return _dollar_dollar.args - _t1448 = _t1447(msg) - fields872 = _t1448 - assert fields872 is not None - unwrapped_fields873 = fields872 + _t1472 = _t1471(msg) + fields884 = _t1472 + assert fields884 is not None + unwrapped_fields885 = fields884 self.write("(") self.write("or") self.indent_sexp() - if not len(unwrapped_fields873) == 0: + if not len(unwrapped_fields885) == 0: self.newline() - for i875, elem874 in enumerate(unwrapped_fields873): - if (i875 > 0): + for i887, elem886 in enumerate(unwrapped_fields885): + if (i887 > 0): self.newline() - self.pretty_formula(elem874) + self.pretty_formula(elem886) self.dedent() self.write(")") def pretty_not(self, msg: logic_pb2.Not): - flat879 = self._try_flat(msg, self.pretty_not) - if flat879 is not None: - assert flat879 is not None - self.write(flat879) + flat891 = self._try_flat(msg, self.pretty_not) + if flat891 is not None: + assert flat891 is not None + self.write(flat891) return None else: - def _t1449(_dollar_dollar): + def _t1473(_dollar_dollar): return _dollar_dollar.arg - _t1450 = _t1449(msg) - fields877 = _t1450 - assert fields877 is not None - unwrapped_fields878 = fields877 + _t1474 = _t1473(msg) + fields889 = _t1474 + assert fields889 is not None + unwrapped_fields890 = fields889 self.write("(") self.write("not") self.indent_sexp() self.newline() - self.pretty_formula(unwrapped_fields878) + self.pretty_formula(unwrapped_fields890) self.dedent() self.write(")") def pretty_ffi(self, msg: logic_pb2.FFI): - flat885 = self._try_flat(msg, self.pretty_ffi) - if flat885 is not None: - assert flat885 is not None - self.write(flat885) + flat897 = self._try_flat(msg, self.pretty_ffi) + if flat897 is not None: + assert flat897 is not None + self.write(flat897) return None else: - def _t1451(_dollar_dollar): + def _t1475(_dollar_dollar): return (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) - _t1452 = _t1451(msg) - fields880 = _t1452 - assert fields880 is not None - unwrapped_fields881 = fields880 + _t1476 = _t1475(msg) + fields892 = _t1476 + assert fields892 is not None + unwrapped_fields893 = fields892 self.write("(") self.write("ffi") self.indent_sexp() self.newline() - field882 = unwrapped_fields881[0] - self.pretty_name(field882) + field894 = unwrapped_fields893[0] + self.pretty_name(field894) self.newline() - field883 = unwrapped_fields881[1] - self.pretty_ffi_args(field883) + field895 = unwrapped_fields893[1] + self.pretty_ffi_args(field895) self.newline() - field884 = unwrapped_fields881[2] - self.pretty_terms(field884) + field896 = unwrapped_fields893[2] + self.pretty_terms(field896) self.dedent() self.write(")") def pretty_name(self, msg: str): - flat887 = self._try_flat(msg, self.pretty_name) - if flat887 is not None: - assert flat887 is not None - self.write(flat887) + flat899 = self._try_flat(msg, self.pretty_name) + if flat899 is not None: + assert flat899 is not None + self.write(flat899) return None else: - fields886 = msg + fields898 = msg self.write(":") - self.write(fields886) + self.write(fields898) def pretty_ffi_args(self, msg: Sequence[logic_pb2.Abstraction]): - flat891 = self._try_flat(msg, self.pretty_ffi_args) - if flat891 is not None: - assert flat891 is not None - self.write(flat891) + flat903 = self._try_flat(msg, self.pretty_ffi_args) + if flat903 is not None: + assert flat903 is not None + self.write(flat903) return None else: - fields888 = msg + fields900 = msg self.write("(") self.write("args") self.indent_sexp() - if not len(fields888) == 0: + if not len(fields900) == 0: self.newline() - for i890, elem889 in enumerate(fields888): - if (i890 > 0): + for i902, elem901 in enumerate(fields900): + if (i902 > 0): self.newline() - self.pretty_abstraction(elem889) + self.pretty_abstraction(elem901) self.dedent() self.write(")") def pretty_atom(self, msg: logic_pb2.Atom): - flat898 = self._try_flat(msg, self.pretty_atom) - if flat898 is not None: - assert flat898 is not None - self.write(flat898) + flat910 = self._try_flat(msg, self.pretty_atom) + if flat910 is not None: + assert flat910 is not None + self.write(flat910) return None else: - def _t1453(_dollar_dollar): + def _t1477(_dollar_dollar): return (_dollar_dollar.name, _dollar_dollar.terms,) - _t1454 = _t1453(msg) - fields892 = _t1454 - assert fields892 is not None - unwrapped_fields893 = fields892 + _t1478 = _t1477(msg) + fields904 = _t1478 + assert fields904 is not None + unwrapped_fields905 = fields904 self.write("(") self.write("atom") self.indent_sexp() self.newline() - field894 = unwrapped_fields893[0] - self.pretty_relation_id(field894) - field895 = unwrapped_fields893[1] - if not len(field895) == 0: + field906 = unwrapped_fields905[0] + self.pretty_relation_id(field906) + field907 = unwrapped_fields905[1] + if not len(field907) == 0: self.newline() - for i897, elem896 in enumerate(field895): - if (i897 > 0): + for i909, elem908 in enumerate(field907): + if (i909 > 0): self.newline() - self.pretty_term(elem896) + self.pretty_term(elem908) self.dedent() self.write(")") def pretty_pragma(self, msg: logic_pb2.Pragma): - flat905 = self._try_flat(msg, self.pretty_pragma) - if flat905 is not None: - assert flat905 is not None - self.write(flat905) + flat917 = self._try_flat(msg, self.pretty_pragma) + if flat917 is not None: + assert flat917 is not None + self.write(flat917) return None else: - def _t1455(_dollar_dollar): + def _t1479(_dollar_dollar): return (_dollar_dollar.name, _dollar_dollar.terms,) - _t1456 = _t1455(msg) - fields899 = _t1456 - assert fields899 is not None - unwrapped_fields900 = fields899 + _t1480 = _t1479(msg) + fields911 = _t1480 + assert fields911 is not None + unwrapped_fields912 = fields911 self.write("(") self.write("pragma") self.indent_sexp() self.newline() - field901 = unwrapped_fields900[0] - self.pretty_name(field901) - field902 = unwrapped_fields900[1] - if not len(field902) == 0: + field913 = unwrapped_fields912[0] + self.pretty_name(field913) + field914 = unwrapped_fields912[1] + if not len(field914) == 0: self.newline() - for i904, elem903 in enumerate(field902): - if (i904 > 0): + for i916, elem915 in enumerate(field914): + if (i916 > 0): self.newline() - self.pretty_term(elem903) + self.pretty_term(elem915) self.dedent() self.write(")") def pretty_primitive(self, msg: logic_pb2.Primitive): - flat921 = self._try_flat(msg, self.pretty_primitive) - if flat921 is not None: - assert flat921 is not None - self.write(flat921) + flat933 = self._try_flat(msg, self.pretty_primitive) + if flat933 is not None: + assert flat933 is not None + self.write(flat933) return None else: - def _t1457(_dollar_dollar): + def _t1481(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_eq": - _t1458 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1482 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1458 = None - return _t1458 - _t1459 = _t1457(msg) - guard_result920 = _t1459 - if guard_result920 is not None: + _t1482 = None + return _t1482 + _t1483 = _t1481(msg) + guard_result932 = _t1483 + if guard_result932 is not None: self.pretty_eq(msg) else: - def _t1460(_dollar_dollar): + def _t1484(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_lt_monotype": - _t1461 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1485 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1461 = None - return _t1461 - _t1462 = _t1460(msg) - guard_result919 = _t1462 - if guard_result919 is not None: + _t1485 = None + return _t1485 + _t1486 = _t1484(msg) + guard_result931 = _t1486 + if guard_result931 is not None: self.pretty_lt(msg) else: - def _t1463(_dollar_dollar): + def _t1487(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_lt_eq_monotype": - _t1464 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1488 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1464 = None - return _t1464 - _t1465 = _t1463(msg) - guard_result918 = _t1465 - if guard_result918 is not None: + _t1488 = None + return _t1488 + _t1489 = _t1487(msg) + guard_result930 = _t1489 + if guard_result930 is not None: self.pretty_lt_eq(msg) else: - def _t1466(_dollar_dollar): + def _t1490(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_gt_monotype": - _t1467 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1491 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1467 = None - return _t1467 - _t1468 = _t1466(msg) - guard_result917 = _t1468 - if guard_result917 is not None: + _t1491 = None + return _t1491 + _t1492 = _t1490(msg) + guard_result929 = _t1492 + if guard_result929 is not None: self.pretty_gt(msg) else: - def _t1469(_dollar_dollar): + def _t1493(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_gt_eq_monotype": - _t1470 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1494 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1470 = None - return _t1470 - _t1471 = _t1469(msg) - guard_result916 = _t1471 - if guard_result916 is not None: + _t1494 = None + return _t1494 + _t1495 = _t1493(msg) + guard_result928 = _t1495 + if guard_result928 is not None: self.pretty_gt_eq(msg) else: - def _t1472(_dollar_dollar): + def _t1496(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_add_monotype": - _t1473 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1497 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1473 = None - return _t1473 - _t1474 = _t1472(msg) - guard_result915 = _t1474 - if guard_result915 is not None: + _t1497 = None + return _t1497 + _t1498 = _t1496(msg) + guard_result927 = _t1498 + if guard_result927 is not None: self.pretty_add(msg) else: - def _t1475(_dollar_dollar): + def _t1499(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_subtract_monotype": - _t1476 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1500 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1476 = None - return _t1476 - _t1477 = _t1475(msg) - guard_result914 = _t1477 - if guard_result914 is not None: + _t1500 = None + return _t1500 + _t1501 = _t1499(msg) + guard_result926 = _t1501 + if guard_result926 is not None: self.pretty_minus(msg) else: - def _t1478(_dollar_dollar): + def _t1502(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_multiply_monotype": - _t1479 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1503 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1479 = None - return _t1479 - _t1480 = _t1478(msg) - guard_result913 = _t1480 - if guard_result913 is not None: + _t1503 = None + return _t1503 + _t1504 = _t1502(msg) + guard_result925 = _t1504 + if guard_result925 is not None: self.pretty_multiply(msg) else: - def _t1481(_dollar_dollar): + def _t1505(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_divide_monotype": - _t1482 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1506 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1482 = None - return _t1482 - _t1483 = _t1481(msg) - guard_result912 = _t1483 - if guard_result912 is not None: + _t1506 = None + return _t1506 + _t1507 = _t1505(msg) + guard_result924 = _t1507 + if guard_result924 is not None: self.pretty_divide(msg) else: - def _t1484(_dollar_dollar): + def _t1508(_dollar_dollar): return (_dollar_dollar.name, _dollar_dollar.terms,) - _t1485 = _t1484(msg) - fields906 = _t1485 - assert fields906 is not None - unwrapped_fields907 = fields906 + _t1509 = _t1508(msg) + fields918 = _t1509 + assert fields918 is not None + unwrapped_fields919 = fields918 self.write("(") self.write("primitive") self.indent_sexp() self.newline() - field908 = unwrapped_fields907[0] - self.pretty_name(field908) - field909 = unwrapped_fields907[1] - if not len(field909) == 0: + field920 = unwrapped_fields919[0] + self.pretty_name(field920) + field921 = unwrapped_fields919[1] + if not len(field921) == 0: self.newline() - for i911, elem910 in enumerate(field909): - if (i911 > 0): + for i923, elem922 in enumerate(field921): + if (i923 > 0): self.newline() - self.pretty_rel_term(elem910) + self.pretty_rel_term(elem922) self.dedent() self.write(")") def pretty_eq(self, msg: logic_pb2.Primitive): - flat926 = self._try_flat(msg, self.pretty_eq) - if flat926 is not None: - assert flat926 is not None - self.write(flat926) + flat938 = self._try_flat(msg, self.pretty_eq) + if flat938 is not None: + assert flat938 is not None + self.write(flat938) return None else: - def _t1486(_dollar_dollar): + def _t1510(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_eq": - _t1487 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1511 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1487 = None - return _t1487 - _t1488 = _t1486(msg) - fields922 = _t1488 - assert fields922 is not None - unwrapped_fields923 = fields922 + _t1511 = None + return _t1511 + _t1512 = _t1510(msg) + fields934 = _t1512 + assert fields934 is not None + unwrapped_fields935 = fields934 self.write("(") self.write("=") self.indent_sexp() self.newline() - field924 = unwrapped_fields923[0] - self.pretty_term(field924) + field936 = unwrapped_fields935[0] + self.pretty_term(field936) self.newline() - field925 = unwrapped_fields923[1] - self.pretty_term(field925) + field937 = unwrapped_fields935[1] + self.pretty_term(field937) self.dedent() self.write(")") def pretty_lt(self, msg: logic_pb2.Primitive): - flat931 = self._try_flat(msg, self.pretty_lt) - if flat931 is not None: - assert flat931 is not None - self.write(flat931) + flat943 = self._try_flat(msg, self.pretty_lt) + if flat943 is not None: + assert flat943 is not None + self.write(flat943) return None else: - def _t1489(_dollar_dollar): + def _t1513(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_lt_monotype": - _t1490 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1514 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1490 = None - return _t1490 - _t1491 = _t1489(msg) - fields927 = _t1491 - assert fields927 is not None - unwrapped_fields928 = fields927 + _t1514 = None + return _t1514 + _t1515 = _t1513(msg) + fields939 = _t1515 + assert fields939 is not None + unwrapped_fields940 = fields939 self.write("(") self.write("<") self.indent_sexp() self.newline() - field929 = unwrapped_fields928[0] - self.pretty_term(field929) + field941 = unwrapped_fields940[0] + self.pretty_term(field941) self.newline() - field930 = unwrapped_fields928[1] - self.pretty_term(field930) + field942 = unwrapped_fields940[1] + self.pretty_term(field942) self.dedent() self.write(")") def pretty_lt_eq(self, msg: logic_pb2.Primitive): - flat936 = self._try_flat(msg, self.pretty_lt_eq) - if flat936 is not None: - assert flat936 is not None - self.write(flat936) + flat948 = self._try_flat(msg, self.pretty_lt_eq) + if flat948 is not None: + assert flat948 is not None + self.write(flat948) return None else: - def _t1492(_dollar_dollar): + def _t1516(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_lt_eq_monotype": - _t1493 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1517 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1493 = None - return _t1493 - _t1494 = _t1492(msg) - fields932 = _t1494 - assert fields932 is not None - unwrapped_fields933 = fields932 + _t1517 = None + return _t1517 + _t1518 = _t1516(msg) + fields944 = _t1518 + assert fields944 is not None + unwrapped_fields945 = fields944 self.write("(") self.write("<=") self.indent_sexp() self.newline() - field934 = unwrapped_fields933[0] - self.pretty_term(field934) + field946 = unwrapped_fields945[0] + self.pretty_term(field946) self.newline() - field935 = unwrapped_fields933[1] - self.pretty_term(field935) + field947 = unwrapped_fields945[1] + self.pretty_term(field947) self.dedent() self.write(")") def pretty_gt(self, msg: logic_pb2.Primitive): - flat941 = self._try_flat(msg, self.pretty_gt) - if flat941 is not None: - assert flat941 is not None - self.write(flat941) + flat953 = self._try_flat(msg, self.pretty_gt) + if flat953 is not None: + assert flat953 is not None + self.write(flat953) return None else: - def _t1495(_dollar_dollar): + def _t1519(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_gt_monotype": - _t1496 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1520 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1496 = None - return _t1496 - _t1497 = _t1495(msg) - fields937 = _t1497 - assert fields937 is not None - unwrapped_fields938 = fields937 + _t1520 = None + return _t1520 + _t1521 = _t1519(msg) + fields949 = _t1521 + assert fields949 is not None + unwrapped_fields950 = fields949 self.write("(") self.write(">") self.indent_sexp() self.newline() - field939 = unwrapped_fields938[0] - self.pretty_term(field939) + field951 = unwrapped_fields950[0] + self.pretty_term(field951) self.newline() - field940 = unwrapped_fields938[1] - self.pretty_term(field940) + field952 = unwrapped_fields950[1] + self.pretty_term(field952) self.dedent() self.write(")") def pretty_gt_eq(self, msg: logic_pb2.Primitive): - flat946 = self._try_flat(msg, self.pretty_gt_eq) - if flat946 is not None: - assert flat946 is not None - self.write(flat946) + flat958 = self._try_flat(msg, self.pretty_gt_eq) + if flat958 is not None: + assert flat958 is not None + self.write(flat958) return None else: - def _t1498(_dollar_dollar): + def _t1522(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_gt_eq_monotype": - _t1499 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1523 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1499 = None - return _t1499 - _t1500 = _t1498(msg) - fields942 = _t1500 - assert fields942 is not None - unwrapped_fields943 = fields942 + _t1523 = None + return _t1523 + _t1524 = _t1522(msg) + fields954 = _t1524 + assert fields954 is not None + unwrapped_fields955 = fields954 self.write("(") self.write(">=") self.indent_sexp() self.newline() - field944 = unwrapped_fields943[0] - self.pretty_term(field944) + field956 = unwrapped_fields955[0] + self.pretty_term(field956) self.newline() - field945 = unwrapped_fields943[1] - self.pretty_term(field945) + field957 = unwrapped_fields955[1] + self.pretty_term(field957) self.dedent() self.write(")") def pretty_add(self, msg: logic_pb2.Primitive): - flat952 = self._try_flat(msg, self.pretty_add) - if flat952 is not None: - assert flat952 is not None - self.write(flat952) + flat964 = self._try_flat(msg, self.pretty_add) + if flat964 is not None: + assert flat964 is not None + self.write(flat964) return None else: - def _t1501(_dollar_dollar): + def _t1525(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_add_monotype": - _t1502 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1526 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1502 = None - return _t1502 - _t1503 = _t1501(msg) - fields947 = _t1503 - assert fields947 is not None - unwrapped_fields948 = fields947 + _t1526 = None + return _t1526 + _t1527 = _t1525(msg) + fields959 = _t1527 + assert fields959 is not None + unwrapped_fields960 = fields959 self.write("(") self.write("+") self.indent_sexp() self.newline() - field949 = unwrapped_fields948[0] - self.pretty_term(field949) + field961 = unwrapped_fields960[0] + self.pretty_term(field961) self.newline() - field950 = unwrapped_fields948[1] - self.pretty_term(field950) + field962 = unwrapped_fields960[1] + self.pretty_term(field962) self.newline() - field951 = unwrapped_fields948[2] - self.pretty_term(field951) + field963 = unwrapped_fields960[2] + self.pretty_term(field963) self.dedent() self.write(")") def pretty_minus(self, msg: logic_pb2.Primitive): - flat958 = self._try_flat(msg, self.pretty_minus) - if flat958 is not None: - assert flat958 is not None - self.write(flat958) + flat970 = self._try_flat(msg, self.pretty_minus) + if flat970 is not None: + assert flat970 is not None + self.write(flat970) return None else: - def _t1504(_dollar_dollar): + def _t1528(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_subtract_monotype": - _t1505 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1529 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1505 = None - return _t1505 - _t1506 = _t1504(msg) - fields953 = _t1506 - assert fields953 is not None - unwrapped_fields954 = fields953 + _t1529 = None + return _t1529 + _t1530 = _t1528(msg) + fields965 = _t1530 + assert fields965 is not None + unwrapped_fields966 = fields965 self.write("(") self.write("-") self.indent_sexp() self.newline() - field955 = unwrapped_fields954[0] - self.pretty_term(field955) + field967 = unwrapped_fields966[0] + self.pretty_term(field967) self.newline() - field956 = unwrapped_fields954[1] - self.pretty_term(field956) + field968 = unwrapped_fields966[1] + self.pretty_term(field968) self.newline() - field957 = unwrapped_fields954[2] - self.pretty_term(field957) + field969 = unwrapped_fields966[2] + self.pretty_term(field969) self.dedent() self.write(")") def pretty_multiply(self, msg: logic_pb2.Primitive): - flat964 = self._try_flat(msg, self.pretty_multiply) - if flat964 is not None: - assert flat964 is not None - self.write(flat964) + flat976 = self._try_flat(msg, self.pretty_multiply) + if flat976 is not None: + assert flat976 is not None + self.write(flat976) return None else: - def _t1507(_dollar_dollar): + def _t1531(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_multiply_monotype": - _t1508 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1532 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1508 = None - return _t1508 - _t1509 = _t1507(msg) - fields959 = _t1509 - assert fields959 is not None - unwrapped_fields960 = fields959 + _t1532 = None + return _t1532 + _t1533 = _t1531(msg) + fields971 = _t1533 + assert fields971 is not None + unwrapped_fields972 = fields971 self.write("(") self.write("*") self.indent_sexp() self.newline() - field961 = unwrapped_fields960[0] - self.pretty_term(field961) + field973 = unwrapped_fields972[0] + self.pretty_term(field973) self.newline() - field962 = unwrapped_fields960[1] - self.pretty_term(field962) + field974 = unwrapped_fields972[1] + self.pretty_term(field974) self.newline() - field963 = unwrapped_fields960[2] - self.pretty_term(field963) + field975 = unwrapped_fields972[2] + self.pretty_term(field975) self.dedent() self.write(")") def pretty_divide(self, msg: logic_pb2.Primitive): - flat970 = self._try_flat(msg, self.pretty_divide) - if flat970 is not None: - assert flat970 is not None - self.write(flat970) + flat982 = self._try_flat(msg, self.pretty_divide) + if flat982 is not None: + assert flat982 is not None + self.write(flat982) return None else: - def _t1510(_dollar_dollar): + def _t1534(_dollar_dollar): if _dollar_dollar.name == "rel_primitive_divide_monotype": - _t1511 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1535 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1511 = None - return _t1511 - _t1512 = _t1510(msg) - fields965 = _t1512 - assert fields965 is not None - unwrapped_fields966 = fields965 + _t1535 = None + return _t1535 + _t1536 = _t1534(msg) + fields977 = _t1536 + assert fields977 is not None + unwrapped_fields978 = fields977 self.write("(") self.write("/") self.indent_sexp() self.newline() - field967 = unwrapped_fields966[0] - self.pretty_term(field967) + field979 = unwrapped_fields978[0] + self.pretty_term(field979) self.newline() - field968 = unwrapped_fields966[1] - self.pretty_term(field968) + field980 = unwrapped_fields978[1] + self.pretty_term(field980) self.newline() - field969 = unwrapped_fields966[2] - self.pretty_term(field969) + field981 = unwrapped_fields978[2] + self.pretty_term(field981) self.dedent() self.write(")") def pretty_rel_term(self, msg: logic_pb2.RelTerm): - flat975 = self._try_flat(msg, self.pretty_rel_term) - if flat975 is not None: - assert flat975 is not None - self.write(flat975) + flat987 = self._try_flat(msg, self.pretty_rel_term) + if flat987 is not None: + assert flat987 is not None + self.write(flat987) return None else: - def _t1513(_dollar_dollar): + def _t1537(_dollar_dollar): if _dollar_dollar.HasField("specialized_value"): - _t1514 = _dollar_dollar.specialized_value + _t1538 = _dollar_dollar.specialized_value else: - _t1514 = None - return _t1514 - _t1515 = _t1513(msg) - deconstruct_result973 = _t1515 - if deconstruct_result973 is not None: - assert deconstruct_result973 is not None - unwrapped974 = deconstruct_result973 - self.pretty_specialized_value(unwrapped974) + _t1538 = None + return _t1538 + _t1539 = _t1537(msg) + deconstruct_result985 = _t1539 + if deconstruct_result985 is not None: + assert deconstruct_result985 is not None + unwrapped986 = deconstruct_result985 + self.pretty_specialized_value(unwrapped986) else: - def _t1516(_dollar_dollar): + def _t1540(_dollar_dollar): if _dollar_dollar.HasField("term"): - _t1517 = _dollar_dollar.term + _t1541 = _dollar_dollar.term else: - _t1517 = None - return _t1517 - _t1518 = _t1516(msg) - deconstruct_result971 = _t1518 - if deconstruct_result971 is not None: - assert deconstruct_result971 is not None - unwrapped972 = deconstruct_result971 - self.pretty_term(unwrapped972) + _t1541 = None + return _t1541 + _t1542 = _t1540(msg) + deconstruct_result983 = _t1542 + if deconstruct_result983 is not None: + assert deconstruct_result983 is not None + unwrapped984 = deconstruct_result983 + self.pretty_term(unwrapped984) else: raise ParseError("No matching rule for rel_term") def pretty_specialized_value(self, msg: logic_pb2.Value): - flat977 = self._try_flat(msg, self.pretty_specialized_value) - if flat977 is not None: - assert flat977 is not None - self.write(flat977) + flat989 = self._try_flat(msg, self.pretty_specialized_value) + if flat989 is not None: + assert flat989 is not None + self.write(flat989) return None else: - fields976 = msg + fields988 = msg self.write("#") - self.pretty_value(fields976) + self.pretty_value(fields988) def pretty_rel_atom(self, msg: logic_pb2.RelAtom): - flat984 = self._try_flat(msg, self.pretty_rel_atom) - if flat984 is not None: - assert flat984 is not None - self.write(flat984) + flat996 = self._try_flat(msg, self.pretty_rel_atom) + if flat996 is not None: + assert flat996 is not None + self.write(flat996) return None else: - def _t1519(_dollar_dollar): + def _t1543(_dollar_dollar): return (_dollar_dollar.name, _dollar_dollar.terms,) - _t1520 = _t1519(msg) - fields978 = _t1520 - assert fields978 is not None - unwrapped_fields979 = fields978 + _t1544 = _t1543(msg) + fields990 = _t1544 + assert fields990 is not None + unwrapped_fields991 = fields990 self.write("(") self.write("relatom") self.indent_sexp() self.newline() - field980 = unwrapped_fields979[0] - self.pretty_name(field980) - field981 = unwrapped_fields979[1] - if not len(field981) == 0: + field992 = unwrapped_fields991[0] + self.pretty_name(field992) + field993 = unwrapped_fields991[1] + if not len(field993) == 0: self.newline() - for i983, elem982 in enumerate(field981): - if (i983 > 0): + for i995, elem994 in enumerate(field993): + if (i995 > 0): self.newline() - self.pretty_rel_term(elem982) + self.pretty_rel_term(elem994) self.dedent() self.write(")") def pretty_cast(self, msg: logic_pb2.Cast): - flat989 = self._try_flat(msg, self.pretty_cast) - if flat989 is not None: - assert flat989 is not None - self.write(flat989) + flat1001 = self._try_flat(msg, self.pretty_cast) + if flat1001 is not None: + assert flat1001 is not None + self.write(flat1001) return None else: - def _t1521(_dollar_dollar): + def _t1545(_dollar_dollar): return (_dollar_dollar.input, _dollar_dollar.result,) - _t1522 = _t1521(msg) - fields985 = _t1522 - assert fields985 is not None - unwrapped_fields986 = fields985 + _t1546 = _t1545(msg) + fields997 = _t1546 + assert fields997 is not None + unwrapped_fields998 = fields997 self.write("(") self.write("cast") self.indent_sexp() self.newline() - field987 = unwrapped_fields986[0] - self.pretty_term(field987) + field999 = unwrapped_fields998[0] + self.pretty_term(field999) self.newline() - field988 = unwrapped_fields986[1] - self.pretty_term(field988) + field1000 = unwrapped_fields998[1] + self.pretty_term(field1000) self.dedent() self.write(")") def pretty_attrs(self, msg: Sequence[logic_pb2.Attribute]): - flat993 = self._try_flat(msg, self.pretty_attrs) - if flat993 is not None: - assert flat993 is not None - self.write(flat993) + flat1005 = self._try_flat(msg, self.pretty_attrs) + if flat1005 is not None: + assert flat1005 is not None + self.write(flat1005) return None else: - fields990 = msg + fields1002 = msg self.write("(") self.write("attrs") self.indent_sexp() - if not len(fields990) == 0: + if not len(fields1002) == 0: self.newline() - for i992, elem991 in enumerate(fields990): - if (i992 > 0): + for i1004, elem1003 in enumerate(fields1002): + if (i1004 > 0): self.newline() - self.pretty_attribute(elem991) + self.pretty_attribute(elem1003) self.dedent() self.write(")") def pretty_attribute(self, msg: logic_pb2.Attribute): - flat1000 = self._try_flat(msg, self.pretty_attribute) - if flat1000 is not None: - assert flat1000 is not None - self.write(flat1000) + flat1012 = self._try_flat(msg, self.pretty_attribute) + if flat1012 is not None: + assert flat1012 is not None + self.write(flat1012) return None else: - def _t1523(_dollar_dollar): + def _t1547(_dollar_dollar): return (_dollar_dollar.name, _dollar_dollar.args,) - _t1524 = _t1523(msg) - fields994 = _t1524 - assert fields994 is not None - unwrapped_fields995 = fields994 + _t1548 = _t1547(msg) + fields1006 = _t1548 + assert fields1006 is not None + unwrapped_fields1007 = fields1006 self.write("(") self.write("attribute") self.indent_sexp() self.newline() - field996 = unwrapped_fields995[0] - self.pretty_name(field996) - field997 = unwrapped_fields995[1] - if not len(field997) == 0: + field1008 = unwrapped_fields1007[0] + self.pretty_name(field1008) + field1009 = unwrapped_fields1007[1] + if not len(field1009) == 0: self.newline() - for i999, elem998 in enumerate(field997): - if (i999 > 0): + for i1011, elem1010 in enumerate(field1009): + if (i1011 > 0): self.newline() - self.pretty_value(elem998) + self.pretty_value(elem1010) self.dedent() self.write(")") def pretty_algorithm(self, msg: logic_pb2.Algorithm): - flat1007 = self._try_flat(msg, self.pretty_algorithm) - if flat1007 is not None: - assert flat1007 is not None - self.write(flat1007) + flat1019 = self._try_flat(msg, self.pretty_algorithm) + if flat1019 is not None: + assert flat1019 is not None + self.write(flat1019) return None else: - def _t1525(_dollar_dollar): + def _t1549(_dollar_dollar): return (getattr(_dollar_dollar, 'global'), _dollar_dollar.body,) - _t1526 = _t1525(msg) - fields1001 = _t1526 - assert fields1001 is not None - unwrapped_fields1002 = fields1001 + _t1550 = _t1549(msg) + fields1013 = _t1550 + assert fields1013 is not None + unwrapped_fields1014 = fields1013 self.write("(") self.write("algorithm") self.indent_sexp() - field1003 = unwrapped_fields1002[0] - if not len(field1003) == 0: + field1015 = unwrapped_fields1014[0] + if not len(field1015) == 0: self.newline() - for i1005, elem1004 in enumerate(field1003): - if (i1005 > 0): + for i1017, elem1016 in enumerate(field1015): + if (i1017 > 0): self.newline() - self.pretty_relation_id(elem1004) + self.pretty_relation_id(elem1016) self.newline() - field1006 = unwrapped_fields1002[1] - self.pretty_script(field1006) + field1018 = unwrapped_fields1014[1] + self.pretty_script(field1018) self.dedent() self.write(")") def pretty_script(self, msg: logic_pb2.Script): - flat1012 = self._try_flat(msg, self.pretty_script) - if flat1012 is not None: - assert flat1012 is not None - self.write(flat1012) + flat1024 = self._try_flat(msg, self.pretty_script) + if flat1024 is not None: + assert flat1024 is not None + self.write(flat1024) return None else: - def _t1527(_dollar_dollar): + def _t1551(_dollar_dollar): return _dollar_dollar.constructs - _t1528 = _t1527(msg) - fields1008 = _t1528 - assert fields1008 is not None - unwrapped_fields1009 = fields1008 + _t1552 = _t1551(msg) + fields1020 = _t1552 + assert fields1020 is not None + unwrapped_fields1021 = fields1020 self.write("(") self.write("script") self.indent_sexp() - if not len(unwrapped_fields1009) == 0: + if not len(unwrapped_fields1021) == 0: self.newline() - for i1011, elem1010 in enumerate(unwrapped_fields1009): - if (i1011 > 0): + for i1023, elem1022 in enumerate(unwrapped_fields1021): + if (i1023 > 0): self.newline() - self.pretty_construct(elem1010) + self.pretty_construct(elem1022) self.dedent() self.write(")") def pretty_construct(self, msg: logic_pb2.Construct): - flat1017 = self._try_flat(msg, self.pretty_construct) - if flat1017 is not None: - assert flat1017 is not None - self.write(flat1017) + flat1029 = self._try_flat(msg, self.pretty_construct) + if flat1029 is not None: + assert flat1029 is not None + self.write(flat1029) return None else: - def _t1529(_dollar_dollar): + def _t1553(_dollar_dollar): if _dollar_dollar.HasField("loop"): - _t1530 = _dollar_dollar.loop + _t1554 = _dollar_dollar.loop else: - _t1530 = None - return _t1530 - _t1531 = _t1529(msg) - deconstruct_result1015 = _t1531 - if deconstruct_result1015 is not None: - assert deconstruct_result1015 is not None - unwrapped1016 = deconstruct_result1015 - self.pretty_loop(unwrapped1016) + _t1554 = None + return _t1554 + _t1555 = _t1553(msg) + deconstruct_result1027 = _t1555 + if deconstruct_result1027 is not None: + assert deconstruct_result1027 is not None + unwrapped1028 = deconstruct_result1027 + self.pretty_loop(unwrapped1028) else: - def _t1532(_dollar_dollar): + def _t1556(_dollar_dollar): if _dollar_dollar.HasField("instruction"): - _t1533 = _dollar_dollar.instruction + _t1557 = _dollar_dollar.instruction else: - _t1533 = None - return _t1533 - _t1534 = _t1532(msg) - deconstruct_result1013 = _t1534 - if deconstruct_result1013 is not None: - assert deconstruct_result1013 is not None - unwrapped1014 = deconstruct_result1013 - self.pretty_instruction(unwrapped1014) + _t1557 = None + return _t1557 + _t1558 = _t1556(msg) + deconstruct_result1025 = _t1558 + if deconstruct_result1025 is not None: + assert deconstruct_result1025 is not None + unwrapped1026 = deconstruct_result1025 + self.pretty_instruction(unwrapped1026) else: raise ParseError("No matching rule for construct") def pretty_loop(self, msg: logic_pb2.Loop): - flat1022 = self._try_flat(msg, self.pretty_loop) - if flat1022 is not None: - assert flat1022 is not None - self.write(flat1022) + flat1034 = self._try_flat(msg, self.pretty_loop) + if flat1034 is not None: + assert flat1034 is not None + self.write(flat1034) return None else: - def _t1535(_dollar_dollar): + def _t1559(_dollar_dollar): return (_dollar_dollar.init, _dollar_dollar.body,) - _t1536 = _t1535(msg) - fields1018 = _t1536 - assert fields1018 is not None - unwrapped_fields1019 = fields1018 + _t1560 = _t1559(msg) + fields1030 = _t1560 + assert fields1030 is not None + unwrapped_fields1031 = fields1030 self.write("(") self.write("loop") self.indent_sexp() self.newline() - field1020 = unwrapped_fields1019[0] - self.pretty_init(field1020) + field1032 = unwrapped_fields1031[0] + self.pretty_init(field1032) self.newline() - field1021 = unwrapped_fields1019[1] - self.pretty_script(field1021) + field1033 = unwrapped_fields1031[1] + self.pretty_script(field1033) self.dedent() self.write(")") def pretty_init(self, msg: Sequence[logic_pb2.Instruction]): - flat1026 = self._try_flat(msg, self.pretty_init) - if flat1026 is not None: - assert flat1026 is not None - self.write(flat1026) + flat1038 = self._try_flat(msg, self.pretty_init) + if flat1038 is not None: + assert flat1038 is not None + self.write(flat1038) return None else: - fields1023 = msg + fields1035 = msg self.write("(") self.write("init") self.indent_sexp() - if not len(fields1023) == 0: + if not len(fields1035) == 0: self.newline() - for i1025, elem1024 in enumerate(fields1023): - if (i1025 > 0): + for i1037, elem1036 in enumerate(fields1035): + if (i1037 > 0): self.newline() - self.pretty_instruction(elem1024) + self.pretty_instruction(elem1036) self.dedent() self.write(")") def pretty_instruction(self, msg: logic_pb2.Instruction): - flat1037 = self._try_flat(msg, self.pretty_instruction) - if flat1037 is not None: - assert flat1037 is not None - self.write(flat1037) + flat1049 = self._try_flat(msg, self.pretty_instruction) + if flat1049 is not None: + assert flat1049 is not None + self.write(flat1049) return None else: - def _t1537(_dollar_dollar): + def _t1561(_dollar_dollar): if _dollar_dollar.HasField("assign"): - _t1538 = _dollar_dollar.assign + _t1562 = _dollar_dollar.assign else: - _t1538 = None - return _t1538 - _t1539 = _t1537(msg) - deconstruct_result1035 = _t1539 - if deconstruct_result1035 is not None: - assert deconstruct_result1035 is not None - unwrapped1036 = deconstruct_result1035 - self.pretty_assign(unwrapped1036) + _t1562 = None + return _t1562 + _t1563 = _t1561(msg) + deconstruct_result1047 = _t1563 + if deconstruct_result1047 is not None: + assert deconstruct_result1047 is not None + unwrapped1048 = deconstruct_result1047 + self.pretty_assign(unwrapped1048) else: - def _t1540(_dollar_dollar): + def _t1564(_dollar_dollar): if _dollar_dollar.HasField("upsert"): - _t1541 = _dollar_dollar.upsert + _t1565 = _dollar_dollar.upsert else: - _t1541 = None - return _t1541 - _t1542 = _t1540(msg) - deconstruct_result1033 = _t1542 - if deconstruct_result1033 is not None: - assert deconstruct_result1033 is not None - unwrapped1034 = deconstruct_result1033 - self.pretty_upsert(unwrapped1034) + _t1565 = None + return _t1565 + _t1566 = _t1564(msg) + deconstruct_result1045 = _t1566 + if deconstruct_result1045 is not None: + assert deconstruct_result1045 is not None + unwrapped1046 = deconstruct_result1045 + self.pretty_upsert(unwrapped1046) else: - def _t1543(_dollar_dollar): + def _t1567(_dollar_dollar): if _dollar_dollar.HasField("break"): - _t1544 = getattr(_dollar_dollar, 'break') + _t1568 = getattr(_dollar_dollar, 'break') else: - _t1544 = None - return _t1544 - _t1545 = _t1543(msg) - deconstruct_result1031 = _t1545 - if deconstruct_result1031 is not None: - assert deconstruct_result1031 is not None - unwrapped1032 = deconstruct_result1031 - self.pretty_break(unwrapped1032) + _t1568 = None + return _t1568 + _t1569 = _t1567(msg) + deconstruct_result1043 = _t1569 + if deconstruct_result1043 is not None: + assert deconstruct_result1043 is not None + unwrapped1044 = deconstruct_result1043 + self.pretty_break(unwrapped1044) else: - def _t1546(_dollar_dollar): + def _t1570(_dollar_dollar): if _dollar_dollar.HasField("monoid_def"): - _t1547 = _dollar_dollar.monoid_def + _t1571 = _dollar_dollar.monoid_def else: - _t1547 = None - return _t1547 - _t1548 = _t1546(msg) - deconstruct_result1029 = _t1548 - if deconstruct_result1029 is not None: - assert deconstruct_result1029 is not None - unwrapped1030 = deconstruct_result1029 - self.pretty_monoid_def(unwrapped1030) + _t1571 = None + return _t1571 + _t1572 = _t1570(msg) + deconstruct_result1041 = _t1572 + if deconstruct_result1041 is not None: + assert deconstruct_result1041 is not None + unwrapped1042 = deconstruct_result1041 + self.pretty_monoid_def(unwrapped1042) else: - def _t1549(_dollar_dollar): + def _t1573(_dollar_dollar): if _dollar_dollar.HasField("monus_def"): - _t1550 = _dollar_dollar.monus_def + _t1574 = _dollar_dollar.monus_def else: - _t1550 = None - return _t1550 - _t1551 = _t1549(msg) - deconstruct_result1027 = _t1551 - if deconstruct_result1027 is not None: - assert deconstruct_result1027 is not None - unwrapped1028 = deconstruct_result1027 - self.pretty_monus_def(unwrapped1028) + _t1574 = None + return _t1574 + _t1575 = _t1573(msg) + deconstruct_result1039 = _t1575 + if deconstruct_result1039 is not None: + assert deconstruct_result1039 is not None + unwrapped1040 = deconstruct_result1039 + self.pretty_monus_def(unwrapped1040) else: raise ParseError("No matching rule for instruction") def pretty_assign(self, msg: logic_pb2.Assign): - flat1044 = self._try_flat(msg, self.pretty_assign) - if flat1044 is not None: - assert flat1044 is not None - self.write(flat1044) + flat1056 = self._try_flat(msg, self.pretty_assign) + if flat1056 is not None: + assert flat1056 is not None + self.write(flat1056) return None else: - def _t1552(_dollar_dollar): + def _t1576(_dollar_dollar): if not len(_dollar_dollar.attrs) == 0: - _t1553 = _dollar_dollar.attrs + _t1577 = _dollar_dollar.attrs else: - _t1553 = None - return (_dollar_dollar.name, _dollar_dollar.body, _t1553,) - _t1554 = _t1552(msg) - fields1038 = _t1554 - assert fields1038 is not None - unwrapped_fields1039 = fields1038 + _t1577 = None + return (_dollar_dollar.name, _dollar_dollar.body, _t1577,) + _t1578 = _t1576(msg) + fields1050 = _t1578 + assert fields1050 is not None + unwrapped_fields1051 = fields1050 self.write("(") self.write("assign") self.indent_sexp() self.newline() - field1040 = unwrapped_fields1039[0] - self.pretty_relation_id(field1040) + field1052 = unwrapped_fields1051[0] + self.pretty_relation_id(field1052) self.newline() - field1041 = unwrapped_fields1039[1] - self.pretty_abstraction(field1041) - field1042 = unwrapped_fields1039[2] - if field1042 is not None: + field1053 = unwrapped_fields1051[1] + self.pretty_abstraction(field1053) + field1054 = unwrapped_fields1051[2] + if field1054 is not None: self.newline() - assert field1042 is not None - opt_val1043 = field1042 - self.pretty_attrs(opt_val1043) + assert field1054 is not None + opt_val1055 = field1054 + self.pretty_attrs(opt_val1055) self.dedent() self.write(")") def pretty_upsert(self, msg: logic_pb2.Upsert): - flat1051 = self._try_flat(msg, self.pretty_upsert) - if flat1051 is not None: - assert flat1051 is not None - self.write(flat1051) + flat1063 = self._try_flat(msg, self.pretty_upsert) + if flat1063 is not None: + assert flat1063 is not None + self.write(flat1063) return None else: - def _t1555(_dollar_dollar): + def _t1579(_dollar_dollar): if not len(_dollar_dollar.attrs) == 0: - _t1556 = _dollar_dollar.attrs + _t1580 = _dollar_dollar.attrs else: - _t1556 = None - return (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1556,) - _t1557 = _t1555(msg) - fields1045 = _t1557 - assert fields1045 is not None - unwrapped_fields1046 = fields1045 + _t1580 = None + return (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1580,) + _t1581 = _t1579(msg) + fields1057 = _t1581 + assert fields1057 is not None + unwrapped_fields1058 = fields1057 self.write("(") self.write("upsert") self.indent_sexp() self.newline() - field1047 = unwrapped_fields1046[0] - self.pretty_relation_id(field1047) + field1059 = unwrapped_fields1058[0] + self.pretty_relation_id(field1059) self.newline() - field1048 = unwrapped_fields1046[1] - self.pretty_abstraction_with_arity(field1048) - field1049 = unwrapped_fields1046[2] - if field1049 is not None: + field1060 = unwrapped_fields1058[1] + self.pretty_abstraction_with_arity(field1060) + field1061 = unwrapped_fields1058[2] + if field1061 is not None: self.newline() - assert field1049 is not None - opt_val1050 = field1049 - self.pretty_attrs(opt_val1050) + assert field1061 is not None + opt_val1062 = field1061 + self.pretty_attrs(opt_val1062) self.dedent() self.write(")") def pretty_abstraction_with_arity(self, msg: tuple[logic_pb2.Abstraction, int]): - flat1056 = self._try_flat(msg, self.pretty_abstraction_with_arity) - if flat1056 is not None: - assert flat1056 is not None - self.write(flat1056) + flat1068 = self._try_flat(msg, self.pretty_abstraction_with_arity) + if flat1068 is not None: + assert flat1068 is not None + self.write(flat1068) return None else: - def _t1558(_dollar_dollar): - _t1559 = self.deconstruct_bindings_with_arity(_dollar_dollar[0], _dollar_dollar[1]) - return (_t1559, _dollar_dollar[0].value,) - _t1560 = _t1558(msg) - fields1052 = _t1560 - assert fields1052 is not None - unwrapped_fields1053 = fields1052 + def _t1582(_dollar_dollar): + _t1583 = self.deconstruct_bindings_with_arity(_dollar_dollar[0], _dollar_dollar[1]) + return (_t1583, _dollar_dollar[0].value,) + _t1584 = _t1582(msg) + fields1064 = _t1584 + assert fields1064 is not None + unwrapped_fields1065 = fields1064 self.write("(") self.indent() - field1054 = unwrapped_fields1053[0] - self.pretty_bindings(field1054) + field1066 = unwrapped_fields1065[0] + self.pretty_bindings(field1066) self.newline() - field1055 = unwrapped_fields1053[1] - self.pretty_formula(field1055) + field1067 = unwrapped_fields1065[1] + self.pretty_formula(field1067) self.dedent() self.write(")") def pretty_break(self, msg: logic_pb2.Break): - flat1063 = self._try_flat(msg, self.pretty_break) - if flat1063 is not None: - assert flat1063 is not None - self.write(flat1063) + flat1075 = self._try_flat(msg, self.pretty_break) + if flat1075 is not None: + assert flat1075 is not None + self.write(flat1075) return None else: - def _t1561(_dollar_dollar): + def _t1585(_dollar_dollar): if not len(_dollar_dollar.attrs) == 0: - _t1562 = _dollar_dollar.attrs + _t1586 = _dollar_dollar.attrs else: - _t1562 = None - return (_dollar_dollar.name, _dollar_dollar.body, _t1562,) - _t1563 = _t1561(msg) - fields1057 = _t1563 - assert fields1057 is not None - unwrapped_fields1058 = fields1057 + _t1586 = None + return (_dollar_dollar.name, _dollar_dollar.body, _t1586,) + _t1587 = _t1585(msg) + fields1069 = _t1587 + assert fields1069 is not None + unwrapped_fields1070 = fields1069 self.write("(") self.write("break") self.indent_sexp() self.newline() - field1059 = unwrapped_fields1058[0] - self.pretty_relation_id(field1059) + field1071 = unwrapped_fields1070[0] + self.pretty_relation_id(field1071) self.newline() - field1060 = unwrapped_fields1058[1] - self.pretty_abstraction(field1060) - field1061 = unwrapped_fields1058[2] - if field1061 is not None: + field1072 = unwrapped_fields1070[1] + self.pretty_abstraction(field1072) + field1073 = unwrapped_fields1070[2] + if field1073 is not None: self.newline() - assert field1061 is not None - opt_val1062 = field1061 - self.pretty_attrs(opt_val1062) + assert field1073 is not None + opt_val1074 = field1073 + self.pretty_attrs(opt_val1074) self.dedent() self.write(")") def pretty_monoid_def(self, msg: logic_pb2.MonoidDef): - flat1071 = self._try_flat(msg, self.pretty_monoid_def) - if flat1071 is not None: - assert flat1071 is not None - self.write(flat1071) + flat1083 = self._try_flat(msg, self.pretty_monoid_def) + if flat1083 is not None: + assert flat1083 is not None + self.write(flat1083) return None else: - def _t1564(_dollar_dollar): + def _t1588(_dollar_dollar): if not len(_dollar_dollar.attrs) == 0: - _t1565 = _dollar_dollar.attrs + _t1589 = _dollar_dollar.attrs else: - _t1565 = None - return (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1565,) - _t1566 = _t1564(msg) - fields1064 = _t1566 - assert fields1064 is not None - unwrapped_fields1065 = fields1064 + _t1589 = None + return (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1589,) + _t1590 = _t1588(msg) + fields1076 = _t1590 + assert fields1076 is not None + unwrapped_fields1077 = fields1076 self.write("(") self.write("monoid") self.indent_sexp() self.newline() - field1066 = unwrapped_fields1065[0] - self.pretty_monoid(field1066) + field1078 = unwrapped_fields1077[0] + self.pretty_monoid(field1078) self.newline() - field1067 = unwrapped_fields1065[1] - self.pretty_relation_id(field1067) + field1079 = unwrapped_fields1077[1] + self.pretty_relation_id(field1079) self.newline() - field1068 = unwrapped_fields1065[2] - self.pretty_abstraction_with_arity(field1068) - field1069 = unwrapped_fields1065[3] - if field1069 is not None: + field1080 = unwrapped_fields1077[2] + self.pretty_abstraction_with_arity(field1080) + field1081 = unwrapped_fields1077[3] + if field1081 is not None: self.newline() - assert field1069 is not None - opt_val1070 = field1069 - self.pretty_attrs(opt_val1070) + assert field1081 is not None + opt_val1082 = field1081 + self.pretty_attrs(opt_val1082) self.dedent() self.write(")") def pretty_monoid(self, msg: logic_pb2.Monoid): - flat1080 = self._try_flat(msg, self.pretty_monoid) - if flat1080 is not None: - assert flat1080 is not None - self.write(flat1080) + flat1092 = self._try_flat(msg, self.pretty_monoid) + if flat1092 is not None: + assert flat1092 is not None + self.write(flat1092) return None else: - def _t1567(_dollar_dollar): + def _t1591(_dollar_dollar): if _dollar_dollar.HasField("or_monoid"): - _t1568 = _dollar_dollar.or_monoid + _t1592 = _dollar_dollar.or_monoid else: - _t1568 = None - return _t1568 - _t1569 = _t1567(msg) - deconstruct_result1078 = _t1569 - if deconstruct_result1078 is not None: - assert deconstruct_result1078 is not None - unwrapped1079 = deconstruct_result1078 - self.pretty_or_monoid(unwrapped1079) + _t1592 = None + return _t1592 + _t1593 = _t1591(msg) + deconstruct_result1090 = _t1593 + if deconstruct_result1090 is not None: + assert deconstruct_result1090 is not None + unwrapped1091 = deconstruct_result1090 + self.pretty_or_monoid(unwrapped1091) else: - def _t1570(_dollar_dollar): + def _t1594(_dollar_dollar): if _dollar_dollar.HasField("min_monoid"): - _t1571 = _dollar_dollar.min_monoid + _t1595 = _dollar_dollar.min_monoid else: - _t1571 = None - return _t1571 - _t1572 = _t1570(msg) - deconstruct_result1076 = _t1572 - if deconstruct_result1076 is not None: - assert deconstruct_result1076 is not None - unwrapped1077 = deconstruct_result1076 - self.pretty_min_monoid(unwrapped1077) + _t1595 = None + return _t1595 + _t1596 = _t1594(msg) + deconstruct_result1088 = _t1596 + if deconstruct_result1088 is not None: + assert deconstruct_result1088 is not None + unwrapped1089 = deconstruct_result1088 + self.pretty_min_monoid(unwrapped1089) else: - def _t1573(_dollar_dollar): + def _t1597(_dollar_dollar): if _dollar_dollar.HasField("max_monoid"): - _t1574 = _dollar_dollar.max_monoid + _t1598 = _dollar_dollar.max_monoid else: - _t1574 = None - return _t1574 - _t1575 = _t1573(msg) - deconstruct_result1074 = _t1575 - if deconstruct_result1074 is not None: - assert deconstruct_result1074 is not None - unwrapped1075 = deconstruct_result1074 - self.pretty_max_monoid(unwrapped1075) + _t1598 = None + return _t1598 + _t1599 = _t1597(msg) + deconstruct_result1086 = _t1599 + if deconstruct_result1086 is not None: + assert deconstruct_result1086 is not None + unwrapped1087 = deconstruct_result1086 + self.pretty_max_monoid(unwrapped1087) else: - def _t1576(_dollar_dollar): + def _t1600(_dollar_dollar): if _dollar_dollar.HasField("sum_monoid"): - _t1577 = _dollar_dollar.sum_monoid + _t1601 = _dollar_dollar.sum_monoid else: - _t1577 = None - return _t1577 - _t1578 = _t1576(msg) - deconstruct_result1072 = _t1578 - if deconstruct_result1072 is not None: - assert deconstruct_result1072 is not None - unwrapped1073 = deconstruct_result1072 - self.pretty_sum_monoid(unwrapped1073) + _t1601 = None + return _t1601 + _t1602 = _t1600(msg) + deconstruct_result1084 = _t1602 + if deconstruct_result1084 is not None: + assert deconstruct_result1084 is not None + unwrapped1085 = deconstruct_result1084 + self.pretty_sum_monoid(unwrapped1085) else: raise ParseError("No matching rule for monoid") def pretty_or_monoid(self, msg: logic_pb2.OrMonoid): - fields1081 = msg + fields1093 = msg self.write("(") self.write("or") self.write(")") def pretty_min_monoid(self, msg: logic_pb2.MinMonoid): - flat1084 = self._try_flat(msg, self.pretty_min_monoid) - if flat1084 is not None: - assert flat1084 is not None - self.write(flat1084) + flat1096 = self._try_flat(msg, self.pretty_min_monoid) + if flat1096 is not None: + assert flat1096 is not None + self.write(flat1096) return None else: - def _t1579(_dollar_dollar): + def _t1603(_dollar_dollar): return _dollar_dollar.type - _t1580 = _t1579(msg) - fields1082 = _t1580 - assert fields1082 is not None - unwrapped_fields1083 = fields1082 + _t1604 = _t1603(msg) + fields1094 = _t1604 + assert fields1094 is not None + unwrapped_fields1095 = fields1094 self.write("(") self.write("min") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1083) + self.pretty_type(unwrapped_fields1095) self.dedent() self.write(")") def pretty_max_monoid(self, msg: logic_pb2.MaxMonoid): - flat1087 = self._try_flat(msg, self.pretty_max_monoid) - if flat1087 is not None: - assert flat1087 is not None - self.write(flat1087) + flat1099 = self._try_flat(msg, self.pretty_max_monoid) + if flat1099 is not None: + assert flat1099 is not None + self.write(flat1099) return None else: - def _t1581(_dollar_dollar): + def _t1605(_dollar_dollar): return _dollar_dollar.type - _t1582 = _t1581(msg) - fields1085 = _t1582 - assert fields1085 is not None - unwrapped_fields1086 = fields1085 + _t1606 = _t1605(msg) + fields1097 = _t1606 + assert fields1097 is not None + unwrapped_fields1098 = fields1097 self.write("(") self.write("max") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1086) + self.pretty_type(unwrapped_fields1098) self.dedent() self.write(")") def pretty_sum_monoid(self, msg: logic_pb2.SumMonoid): - flat1090 = self._try_flat(msg, self.pretty_sum_monoid) - if flat1090 is not None: - assert flat1090 is not None - self.write(flat1090) + flat1102 = self._try_flat(msg, self.pretty_sum_monoid) + if flat1102 is not None: + assert flat1102 is not None + self.write(flat1102) return None else: - def _t1583(_dollar_dollar): + def _t1607(_dollar_dollar): return _dollar_dollar.type - _t1584 = _t1583(msg) - fields1088 = _t1584 - assert fields1088 is not None - unwrapped_fields1089 = fields1088 + _t1608 = _t1607(msg) + fields1100 = _t1608 + assert fields1100 is not None + unwrapped_fields1101 = fields1100 self.write("(") self.write("sum") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1089) + self.pretty_type(unwrapped_fields1101) self.dedent() self.write(")") def pretty_monus_def(self, msg: logic_pb2.MonusDef): - flat1098 = self._try_flat(msg, self.pretty_monus_def) - if flat1098 is not None: - assert flat1098 is not None - self.write(flat1098) + flat1110 = self._try_flat(msg, self.pretty_monus_def) + if flat1110 is not None: + assert flat1110 is not None + self.write(flat1110) return None else: - def _t1585(_dollar_dollar): + def _t1609(_dollar_dollar): if not len(_dollar_dollar.attrs) == 0: - _t1586 = _dollar_dollar.attrs + _t1610 = _dollar_dollar.attrs else: - _t1586 = None - return (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1586,) - _t1587 = _t1585(msg) - fields1091 = _t1587 - assert fields1091 is not None - unwrapped_fields1092 = fields1091 + _t1610 = None + return (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1610,) + _t1611 = _t1609(msg) + fields1103 = _t1611 + assert fields1103 is not None + unwrapped_fields1104 = fields1103 self.write("(") self.write("monus") self.indent_sexp() self.newline() - field1093 = unwrapped_fields1092[0] - self.pretty_monoid(field1093) + field1105 = unwrapped_fields1104[0] + self.pretty_monoid(field1105) self.newline() - field1094 = unwrapped_fields1092[1] - self.pretty_relation_id(field1094) + field1106 = unwrapped_fields1104[1] + self.pretty_relation_id(field1106) self.newline() - field1095 = unwrapped_fields1092[2] - self.pretty_abstraction_with_arity(field1095) - field1096 = unwrapped_fields1092[3] - if field1096 is not None: + field1107 = unwrapped_fields1104[2] + self.pretty_abstraction_with_arity(field1107) + field1108 = unwrapped_fields1104[3] + if field1108 is not None: self.newline() - assert field1096 is not None - opt_val1097 = field1096 - self.pretty_attrs(opt_val1097) + assert field1108 is not None + opt_val1109 = field1108 + self.pretty_attrs(opt_val1109) self.dedent() self.write(")") def pretty_constraint(self, msg: logic_pb2.Constraint): - flat1105 = self._try_flat(msg, self.pretty_constraint) - if flat1105 is not None: - assert flat1105 is not None - self.write(flat1105) + flat1117 = self._try_flat(msg, self.pretty_constraint) + if flat1117 is not None: + assert flat1117 is not None + self.write(flat1117) return None else: - def _t1588(_dollar_dollar): + def _t1612(_dollar_dollar): return (_dollar_dollar.name, _dollar_dollar.functional_dependency.guard, _dollar_dollar.functional_dependency.keys, _dollar_dollar.functional_dependency.values,) - _t1589 = _t1588(msg) - fields1099 = _t1589 - assert fields1099 is not None - unwrapped_fields1100 = fields1099 + _t1613 = _t1612(msg) + fields1111 = _t1613 + assert fields1111 is not None + unwrapped_fields1112 = fields1111 self.write("(") self.write("functional_dependency") self.indent_sexp() self.newline() - field1101 = unwrapped_fields1100[0] - self.pretty_relation_id(field1101) + field1113 = unwrapped_fields1112[0] + self.pretty_relation_id(field1113) self.newline() - field1102 = unwrapped_fields1100[1] - self.pretty_abstraction(field1102) + field1114 = unwrapped_fields1112[1] + self.pretty_abstraction(field1114) self.newline() - field1103 = unwrapped_fields1100[2] - self.pretty_functional_dependency_keys(field1103) + field1115 = unwrapped_fields1112[2] + self.pretty_functional_dependency_keys(field1115) self.newline() - field1104 = unwrapped_fields1100[3] - self.pretty_functional_dependency_values(field1104) + field1116 = unwrapped_fields1112[3] + self.pretty_functional_dependency_values(field1116) self.dedent() self.write(")") def pretty_functional_dependency_keys(self, msg: Sequence[logic_pb2.Var]): - flat1109 = self._try_flat(msg, self.pretty_functional_dependency_keys) - if flat1109 is not None: - assert flat1109 is not None - self.write(flat1109) + flat1121 = self._try_flat(msg, self.pretty_functional_dependency_keys) + if flat1121 is not None: + assert flat1121 is not None + self.write(flat1121) return None else: - fields1106 = msg + fields1118 = msg self.write("(") self.write("keys") self.indent_sexp() - if not len(fields1106) == 0: + if not len(fields1118) == 0: self.newline() - for i1108, elem1107 in enumerate(fields1106): - if (i1108 > 0): + for i1120, elem1119 in enumerate(fields1118): + if (i1120 > 0): self.newline() - self.pretty_var(elem1107) + self.pretty_var(elem1119) self.dedent() self.write(")") def pretty_functional_dependency_values(self, msg: Sequence[logic_pb2.Var]): - flat1113 = self._try_flat(msg, self.pretty_functional_dependency_values) - if flat1113 is not None: - assert flat1113 is not None - self.write(flat1113) + flat1125 = self._try_flat(msg, self.pretty_functional_dependency_values) + if flat1125 is not None: + assert flat1125 is not None + self.write(flat1125) return None else: - fields1110 = msg + fields1122 = msg self.write("(") self.write("values") self.indent_sexp() - if not len(fields1110) == 0: + if not len(fields1122) == 0: self.newline() - for i1112, elem1111 in enumerate(fields1110): - if (i1112 > 0): + for i1124, elem1123 in enumerate(fields1122): + if (i1124 > 0): self.newline() - self.pretty_var(elem1111) + self.pretty_var(elem1123) self.dedent() self.write(")") def pretty_data(self, msg: logic_pb2.Data): - flat1120 = self._try_flat(msg, self.pretty_data) - if flat1120 is not None: - assert flat1120 is not None - self.write(flat1120) + flat1132 = self._try_flat(msg, self.pretty_data) + if flat1132 is not None: + assert flat1132 is not None + self.write(flat1132) return None else: - def _t1590(_dollar_dollar): + def _t1614(_dollar_dollar): if _dollar_dollar.HasField("rel_edb"): - _t1591 = _dollar_dollar.rel_edb + _t1615 = _dollar_dollar.rel_edb else: - _t1591 = None - return _t1591 - _t1592 = _t1590(msg) - deconstruct_result1118 = _t1592 - if deconstruct_result1118 is not None: - assert deconstruct_result1118 is not None - unwrapped1119 = deconstruct_result1118 - self.pretty_rel_edb(unwrapped1119) + _t1615 = None + return _t1615 + _t1616 = _t1614(msg) + deconstruct_result1130 = _t1616 + if deconstruct_result1130 is not None: + assert deconstruct_result1130 is not None + unwrapped1131 = deconstruct_result1130 + self.pretty_rel_edb(unwrapped1131) else: - def _t1593(_dollar_dollar): + def _t1617(_dollar_dollar): if _dollar_dollar.HasField("betree_relation"): - _t1594 = _dollar_dollar.betree_relation + _t1618 = _dollar_dollar.betree_relation else: - _t1594 = None - return _t1594 - _t1595 = _t1593(msg) - deconstruct_result1116 = _t1595 - if deconstruct_result1116 is not None: - assert deconstruct_result1116 is not None - unwrapped1117 = deconstruct_result1116 - self.pretty_betree_relation(unwrapped1117) + _t1618 = None + return _t1618 + _t1619 = _t1617(msg) + deconstruct_result1128 = _t1619 + if deconstruct_result1128 is not None: + assert deconstruct_result1128 is not None + unwrapped1129 = deconstruct_result1128 + self.pretty_betree_relation(unwrapped1129) else: - def _t1596(_dollar_dollar): + def _t1620(_dollar_dollar): if _dollar_dollar.HasField("csv_data"): - _t1597 = _dollar_dollar.csv_data + _t1621 = _dollar_dollar.csv_data else: - _t1597 = None - return _t1597 - _t1598 = _t1596(msg) - deconstruct_result1114 = _t1598 - if deconstruct_result1114 is not None: - assert deconstruct_result1114 is not None - unwrapped1115 = deconstruct_result1114 - self.pretty_csv_data(unwrapped1115) + _t1621 = None + return _t1621 + _t1622 = _t1620(msg) + deconstruct_result1126 = _t1622 + if deconstruct_result1126 is not None: + assert deconstruct_result1126 is not None + unwrapped1127 = deconstruct_result1126 + self.pretty_csv_data(unwrapped1127) else: raise ParseError("No matching rule for data") def pretty_rel_edb(self, msg: logic_pb2.RelEDB): - flat1126 = self._try_flat(msg, self.pretty_rel_edb) - if flat1126 is not None: - assert flat1126 is not None - self.write(flat1126) + flat1138 = self._try_flat(msg, self.pretty_rel_edb) + if flat1138 is not None: + assert flat1138 is not None + self.write(flat1138) return None else: - def _t1599(_dollar_dollar): + def _t1623(_dollar_dollar): return (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) - _t1600 = _t1599(msg) - fields1121 = _t1600 - assert fields1121 is not None - unwrapped_fields1122 = fields1121 + _t1624 = _t1623(msg) + fields1133 = _t1624 + assert fields1133 is not None + unwrapped_fields1134 = fields1133 self.write("(") self.write("rel_edb") self.indent_sexp() self.newline() - field1123 = unwrapped_fields1122[0] - self.pretty_relation_id(field1123) + field1135 = unwrapped_fields1134[0] + self.pretty_relation_id(field1135) self.newline() - field1124 = unwrapped_fields1122[1] - self.pretty_rel_edb_path(field1124) + field1136 = unwrapped_fields1134[1] + self.pretty_rel_edb_path(field1136) self.newline() - field1125 = unwrapped_fields1122[2] - self.pretty_rel_edb_types(field1125) + field1137 = unwrapped_fields1134[2] + self.pretty_rel_edb_types(field1137) self.dedent() self.write(")") def pretty_rel_edb_path(self, msg: Sequence[str]): - flat1130 = self._try_flat(msg, self.pretty_rel_edb_path) - if flat1130 is not None: - assert flat1130 is not None - self.write(flat1130) + flat1142 = self._try_flat(msg, self.pretty_rel_edb_path) + if flat1142 is not None: + assert flat1142 is not None + self.write(flat1142) return None else: - fields1127 = msg + fields1139 = msg self.write("[") self.indent() - for i1129, elem1128 in enumerate(fields1127): - if (i1129 > 0): + for i1141, elem1140 in enumerate(fields1139): + if (i1141 > 0): self.newline() - self.write(self.format_string_value(elem1128)) + self.write(self.format_string_value(elem1140)) self.dedent() self.write("]") def pretty_rel_edb_types(self, msg: Sequence[logic_pb2.Type]): - flat1134 = self._try_flat(msg, self.pretty_rel_edb_types) - if flat1134 is not None: - assert flat1134 is not None - self.write(flat1134) + flat1146 = self._try_flat(msg, self.pretty_rel_edb_types) + if flat1146 is not None: + assert flat1146 is not None + self.write(flat1146) return None else: - fields1131 = msg + fields1143 = msg self.write("[") self.indent() - for i1133, elem1132 in enumerate(fields1131): - if (i1133 > 0): + for i1145, elem1144 in enumerate(fields1143): + if (i1145 > 0): self.newline() - self.pretty_type(elem1132) + self.pretty_type(elem1144) self.dedent() self.write("]") def pretty_betree_relation(self, msg: logic_pb2.BeTreeRelation): - flat1139 = self._try_flat(msg, self.pretty_betree_relation) - if flat1139 is not None: - assert flat1139 is not None - self.write(flat1139) + flat1151 = self._try_flat(msg, self.pretty_betree_relation) + if flat1151 is not None: + assert flat1151 is not None + self.write(flat1151) return None else: - def _t1601(_dollar_dollar): + def _t1625(_dollar_dollar): return (_dollar_dollar.name, _dollar_dollar.relation_info,) - _t1602 = _t1601(msg) - fields1135 = _t1602 - assert fields1135 is not None - unwrapped_fields1136 = fields1135 + _t1626 = _t1625(msg) + fields1147 = _t1626 + assert fields1147 is not None + unwrapped_fields1148 = fields1147 self.write("(") self.write("betree_relation") self.indent_sexp() self.newline() - field1137 = unwrapped_fields1136[0] - self.pretty_relation_id(field1137) + field1149 = unwrapped_fields1148[0] + self.pretty_relation_id(field1149) self.newline() - field1138 = unwrapped_fields1136[1] - self.pretty_betree_info(field1138) + field1150 = unwrapped_fields1148[1] + self.pretty_betree_info(field1150) self.dedent() self.write(")") def pretty_betree_info(self, msg: logic_pb2.BeTreeInfo): - flat1145 = self._try_flat(msg, self.pretty_betree_info) - if flat1145 is not None: - assert flat1145 is not None - self.write(flat1145) + flat1157 = self._try_flat(msg, self.pretty_betree_info) + if flat1157 is not None: + assert flat1157 is not None + self.write(flat1157) return None else: - def _t1603(_dollar_dollar): - _t1604 = self.deconstruct_betree_info_config(_dollar_dollar) - return (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1604,) - _t1605 = _t1603(msg) - fields1140 = _t1605 - assert fields1140 is not None - unwrapped_fields1141 = fields1140 + def _t1627(_dollar_dollar): + _t1628 = self.deconstruct_betree_info_config(_dollar_dollar) + return (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1628,) + _t1629 = _t1627(msg) + fields1152 = _t1629 + assert fields1152 is not None + unwrapped_fields1153 = fields1152 self.write("(") self.write("betree_info") self.indent_sexp() self.newline() - field1142 = unwrapped_fields1141[0] - self.pretty_betree_info_key_types(field1142) + field1154 = unwrapped_fields1153[0] + self.pretty_betree_info_key_types(field1154) self.newline() - field1143 = unwrapped_fields1141[1] - self.pretty_betree_info_value_types(field1143) + field1155 = unwrapped_fields1153[1] + self.pretty_betree_info_value_types(field1155) self.newline() - field1144 = unwrapped_fields1141[2] - self.pretty_config_dict(field1144) + field1156 = unwrapped_fields1153[2] + self.pretty_config_dict(field1156) self.dedent() self.write(")") def pretty_betree_info_key_types(self, msg: Sequence[logic_pb2.Type]): - flat1149 = self._try_flat(msg, self.pretty_betree_info_key_types) - if flat1149 is not None: - assert flat1149 is not None - self.write(flat1149) + flat1161 = self._try_flat(msg, self.pretty_betree_info_key_types) + if flat1161 is not None: + assert flat1161 is not None + self.write(flat1161) return None else: - fields1146 = msg + fields1158 = msg self.write("(") self.write("key_types") self.indent_sexp() - if not len(fields1146) == 0: + if not len(fields1158) == 0: self.newline() - for i1148, elem1147 in enumerate(fields1146): - if (i1148 > 0): + for i1160, elem1159 in enumerate(fields1158): + if (i1160 > 0): self.newline() - self.pretty_type(elem1147) + self.pretty_type(elem1159) self.dedent() self.write(")") def pretty_betree_info_value_types(self, msg: Sequence[logic_pb2.Type]): - flat1153 = self._try_flat(msg, self.pretty_betree_info_value_types) - if flat1153 is not None: - assert flat1153 is not None - self.write(flat1153) + flat1165 = self._try_flat(msg, self.pretty_betree_info_value_types) + if flat1165 is not None: + assert flat1165 is not None + self.write(flat1165) return None else: - fields1150 = msg + fields1162 = msg self.write("(") self.write("value_types") self.indent_sexp() - if not len(fields1150) == 0: + if not len(fields1162) == 0: self.newline() - for i1152, elem1151 in enumerate(fields1150): - if (i1152 > 0): + for i1164, elem1163 in enumerate(fields1162): + if (i1164 > 0): self.newline() - self.pretty_type(elem1151) + self.pretty_type(elem1163) self.dedent() self.write(")") def pretty_csv_data(self, msg: logic_pb2.CSVData): - flat1160 = self._try_flat(msg, self.pretty_csv_data) - if flat1160 is not None: - assert flat1160 is not None - self.write(flat1160) + flat1172 = self._try_flat(msg, self.pretty_csv_data) + if flat1172 is not None: + assert flat1172 is not None + self.write(flat1172) return None else: - def _t1606(_dollar_dollar): + def _t1630(_dollar_dollar): return (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) - _t1607 = _t1606(msg) - fields1154 = _t1607 - assert fields1154 is not None - unwrapped_fields1155 = fields1154 + _t1631 = _t1630(msg) + fields1166 = _t1631 + assert fields1166 is not None + unwrapped_fields1167 = fields1166 self.write("(") self.write("csv_data") self.indent_sexp() self.newline() - field1156 = unwrapped_fields1155[0] - self.pretty_csvlocator(field1156) + field1168 = unwrapped_fields1167[0] + self.pretty_csvlocator(field1168) self.newline() - field1157 = unwrapped_fields1155[1] - self.pretty_csv_config(field1157) + field1169 = unwrapped_fields1167[1] + self.pretty_csv_config(field1169) self.newline() - field1158 = unwrapped_fields1155[2] - self.pretty_csv_columns(field1158) + field1170 = unwrapped_fields1167[2] + self.pretty_csv_columns(field1170) self.newline() - field1159 = unwrapped_fields1155[3] - self.pretty_csv_asof(field1159) + field1171 = unwrapped_fields1167[3] + self.pretty_csv_asof(field1171) self.dedent() self.write(")") def pretty_csvlocator(self, msg: logic_pb2.CSVLocator): - flat1167 = self._try_flat(msg, self.pretty_csvlocator) - if flat1167 is not None: - assert flat1167 is not None - self.write(flat1167) + flat1179 = self._try_flat(msg, self.pretty_csvlocator) + if flat1179 is not None: + assert flat1179 is not None + self.write(flat1179) return None else: - def _t1608(_dollar_dollar): + def _t1632(_dollar_dollar): if not len(_dollar_dollar.paths) == 0: - _t1609 = _dollar_dollar.paths + _t1633 = _dollar_dollar.paths else: - _t1609 = None + _t1633 = None if _dollar_dollar.inline_data.decode('utf-8') != "": - _t1610 = _dollar_dollar.inline_data.decode('utf-8') + _t1634 = _dollar_dollar.inline_data.decode('utf-8') else: - _t1610 = None - return (_t1609, _t1610,) - _t1611 = _t1608(msg) - fields1161 = _t1611 - assert fields1161 is not None - unwrapped_fields1162 = fields1161 + _t1634 = None + return (_t1633, _t1634,) + _t1635 = _t1632(msg) + fields1173 = _t1635 + assert fields1173 is not None + unwrapped_fields1174 = fields1173 self.write("(") self.write("csv_locator") self.indent_sexp() - field1163 = unwrapped_fields1162[0] - if field1163 is not None: + field1175 = unwrapped_fields1174[0] + if field1175 is not None: self.newline() - assert field1163 is not None - opt_val1164 = field1163 - self.pretty_csv_locator_paths(opt_val1164) - field1165 = unwrapped_fields1162[1] - if field1165 is not None: + assert field1175 is not None + opt_val1176 = field1175 + self.pretty_csv_locator_paths(opt_val1176) + field1177 = unwrapped_fields1174[1] + if field1177 is not None: self.newline() - assert field1165 is not None - opt_val1166 = field1165 - self.pretty_csv_locator_inline_data(opt_val1166) + assert field1177 is not None + opt_val1178 = field1177 + self.pretty_csv_locator_inline_data(opt_val1178) self.dedent() self.write(")") def pretty_csv_locator_paths(self, msg: Sequence[str]): - flat1171 = self._try_flat(msg, self.pretty_csv_locator_paths) - if flat1171 is not None: - assert flat1171 is not None - self.write(flat1171) + flat1183 = self._try_flat(msg, self.pretty_csv_locator_paths) + if flat1183 is not None: + assert flat1183 is not None + self.write(flat1183) return None else: - fields1168 = msg + fields1180 = msg self.write("(") self.write("paths") self.indent_sexp() - if not len(fields1168) == 0: + if not len(fields1180) == 0: self.newline() - for i1170, elem1169 in enumerate(fields1168): - if (i1170 > 0): + for i1182, elem1181 in enumerate(fields1180): + if (i1182 > 0): self.newline() - self.write(self.format_string_value(elem1169)) + self.write(self.format_string_value(elem1181)) self.dedent() self.write(")") def pretty_csv_locator_inline_data(self, msg: str): - flat1173 = self._try_flat(msg, self.pretty_csv_locator_inline_data) - if flat1173 is not None: - assert flat1173 is not None - self.write(flat1173) + flat1185 = self._try_flat(msg, self.pretty_csv_locator_inline_data) + if flat1185 is not None: + assert flat1185 is not None + self.write(flat1185) return None else: - fields1172 = msg + fields1184 = msg self.write("(") self.write("inline_data") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1172)) + self.write(self.format_string_value(fields1184)) self.dedent() self.write(")") def pretty_csv_config(self, msg: logic_pb2.CSVConfig): - flat1176 = self._try_flat(msg, self.pretty_csv_config) - if flat1176 is not None: - assert flat1176 is not None - self.write(flat1176) + flat1188 = self._try_flat(msg, self.pretty_csv_config) + if flat1188 is not None: + assert flat1188 is not None + self.write(flat1188) return None else: - def _t1612(_dollar_dollar): - _t1613 = self.deconstruct_csv_config(_dollar_dollar) - return _t1613 - _t1614 = _t1612(msg) - fields1174 = _t1614 - assert fields1174 is not None - unwrapped_fields1175 = fields1174 + def _t1636(_dollar_dollar): + _t1637 = self.deconstruct_csv_config(_dollar_dollar) + return _t1637 + _t1638 = _t1636(msg) + fields1186 = _t1638 + assert fields1186 is not None + unwrapped_fields1187 = fields1186 self.write("(") self.write("csv_config") self.indent_sexp() self.newline() - self.pretty_config_dict(unwrapped_fields1175) + self.pretty_config_dict(unwrapped_fields1187) self.dedent() self.write(")") def pretty_csv_columns(self, msg: Sequence[logic_pb2.CSVColumn]): - flat1180 = self._try_flat(msg, self.pretty_csv_columns) - if flat1180 is not None: - assert flat1180 is not None - self.write(flat1180) + flat1192 = self._try_flat(msg, self.pretty_csv_columns) + if flat1192 is not None: + assert flat1192 is not None + self.write(flat1192) return None else: - fields1177 = msg + fields1189 = msg self.write("(") self.write("columns") self.indent_sexp() - if not len(fields1177) == 0: + if not len(fields1189) == 0: self.newline() - for i1179, elem1178 in enumerate(fields1177): - if (i1179 > 0): + for i1191, elem1190 in enumerate(fields1189): + if (i1191 > 0): self.newline() - self.pretty_csv_column(elem1178) + self.pretty_csv_column(elem1190) self.dedent() self.write(")") def pretty_csv_column(self, msg: logic_pb2.CSVColumn): - flat1188 = self._try_flat(msg, self.pretty_csv_column) - if flat1188 is not None: - assert flat1188 is not None - self.write(flat1188) + flat1200 = self._try_flat(msg, self.pretty_csv_column) + if flat1200 is not None: + assert flat1200 is not None + self.write(flat1200) return None else: - def _t1615(_dollar_dollar): + def _t1639(_dollar_dollar): return (_dollar_dollar.column_name, _dollar_dollar.target_id, _dollar_dollar.types,) - _t1616 = _t1615(msg) - fields1181 = _t1616 - assert fields1181 is not None - unwrapped_fields1182 = fields1181 + _t1640 = _t1639(msg) + fields1193 = _t1640 + assert fields1193 is not None + unwrapped_fields1194 = fields1193 self.write("(") self.write("column") self.indent_sexp() self.newline() - field1183 = unwrapped_fields1182[0] - self.write(self.format_string_value(field1183)) + field1195 = unwrapped_fields1194[0] + self.write(self.format_string_value(field1195)) self.newline() - field1184 = unwrapped_fields1182[1] - self.pretty_relation_id(field1184) + field1196 = unwrapped_fields1194[1] + self.pretty_relation_id(field1196) self.newline() self.write("[") - field1185 = unwrapped_fields1182[2] - for i1187, elem1186 in enumerate(field1185): - if (i1187 > 0): + field1197 = unwrapped_fields1194[2] + for i1199, elem1198 in enumerate(field1197): + if (i1199 > 0): self.newline() - self.pretty_type(elem1186) + self.pretty_type(elem1198) self.write("]") self.dedent() self.write(")") def pretty_csv_asof(self, msg: str): - flat1190 = self._try_flat(msg, self.pretty_csv_asof) - if flat1190 is not None: - assert flat1190 is not None - self.write(flat1190) + flat1202 = self._try_flat(msg, self.pretty_csv_asof) + if flat1202 is not None: + assert flat1202 is not None + self.write(flat1202) return None else: - fields1189 = msg + fields1201 = msg self.write("(") self.write("asof") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1189)) + self.write(self.format_string_value(fields1201)) self.dedent() self.write(")") def pretty_undefine(self, msg: transactions_pb2.Undefine): - flat1193 = self._try_flat(msg, self.pretty_undefine) - if flat1193 is not None: - assert flat1193 is not None - self.write(flat1193) + flat1205 = self._try_flat(msg, self.pretty_undefine) + if flat1205 is not None: + assert flat1205 is not None + self.write(flat1205) return None else: - def _t1617(_dollar_dollar): + def _t1641(_dollar_dollar): return _dollar_dollar.fragment_id - _t1618 = _t1617(msg) - fields1191 = _t1618 - assert fields1191 is not None - unwrapped_fields1192 = fields1191 + _t1642 = _t1641(msg) + fields1203 = _t1642 + assert fields1203 is not None + unwrapped_fields1204 = fields1203 self.write("(") self.write("undefine") self.indent_sexp() self.newline() - self.pretty_fragment_id(unwrapped_fields1192) + self.pretty_fragment_id(unwrapped_fields1204) self.dedent() self.write(")") def pretty_context(self, msg: transactions_pb2.Context): - flat1198 = self._try_flat(msg, self.pretty_context) - if flat1198 is not None: - assert flat1198 is not None - self.write(flat1198) + flat1210 = self._try_flat(msg, self.pretty_context) + if flat1210 is not None: + assert flat1210 is not None + self.write(flat1210) return None else: - def _t1619(_dollar_dollar): + def _t1643(_dollar_dollar): return _dollar_dollar.relations - _t1620 = _t1619(msg) - fields1194 = _t1620 - assert fields1194 is not None - unwrapped_fields1195 = fields1194 + _t1644 = _t1643(msg) + fields1206 = _t1644 + assert fields1206 is not None + unwrapped_fields1207 = fields1206 self.write("(") self.write("context") self.indent_sexp() - if not len(unwrapped_fields1195) == 0: + if not len(unwrapped_fields1207) == 0: self.newline() - for i1197, elem1196 in enumerate(unwrapped_fields1195): - if (i1197 > 0): + for i1209, elem1208 in enumerate(unwrapped_fields1207): + if (i1209 > 0): self.newline() - self.pretty_relation_id(elem1196) + self.pretty_relation_id(elem1208) self.dedent() self.write(")") def pretty_snapshot(self, msg: transactions_pb2.Snapshot): - flat1203 = self._try_flat(msg, self.pretty_snapshot) - if flat1203 is not None: - assert flat1203 is not None - self.write(flat1203) + flat1215 = self._try_flat(msg, self.pretty_snapshot) + if flat1215 is not None: + assert flat1215 is not None + self.write(flat1215) return None else: - def _t1621(_dollar_dollar): + def _t1645(_dollar_dollar): return (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) - _t1622 = _t1621(msg) - fields1199 = _t1622 - assert fields1199 is not None - unwrapped_fields1200 = fields1199 + _t1646 = _t1645(msg) + fields1211 = _t1646 + assert fields1211 is not None + unwrapped_fields1212 = fields1211 self.write("(") self.write("snapshot") self.indent_sexp() self.newline() - field1201 = unwrapped_fields1200[0] - self.pretty_rel_edb_path(field1201) + field1213 = unwrapped_fields1212[0] + self.pretty_rel_edb_path(field1213) self.newline() - field1202 = unwrapped_fields1200[1] - self.pretty_relation_id(field1202) + field1214 = unwrapped_fields1212[1] + self.pretty_relation_id(field1214) self.dedent() self.write(")") def pretty_epoch_reads(self, msg: Sequence[transactions_pb2.Read]): - flat1207 = self._try_flat(msg, self.pretty_epoch_reads) - if flat1207 is not None: - assert flat1207 is not None - self.write(flat1207) + flat1219 = self._try_flat(msg, self.pretty_epoch_reads) + if flat1219 is not None: + assert flat1219 is not None + self.write(flat1219) return None else: - fields1204 = msg + fields1216 = msg self.write("(") self.write("reads") self.indent_sexp() - if not len(fields1204) == 0: + if not len(fields1216) == 0: self.newline() - for i1206, elem1205 in enumerate(fields1204): - if (i1206 > 0): + for i1218, elem1217 in enumerate(fields1216): + if (i1218 > 0): self.newline() - self.pretty_read(elem1205) + self.pretty_read(elem1217) self.dedent() self.write(")") def pretty_read(self, msg: transactions_pb2.Read): - flat1218 = self._try_flat(msg, self.pretty_read) - if flat1218 is not None: - assert flat1218 is not None - self.write(flat1218) + flat1230 = self._try_flat(msg, self.pretty_read) + if flat1230 is not None: + assert flat1230 is not None + self.write(flat1230) return None else: - def _t1623(_dollar_dollar): + def _t1647(_dollar_dollar): if _dollar_dollar.HasField("demand"): - _t1624 = _dollar_dollar.demand + _t1648 = _dollar_dollar.demand else: - _t1624 = None - return _t1624 - _t1625 = _t1623(msg) - deconstruct_result1216 = _t1625 - if deconstruct_result1216 is not None: - assert deconstruct_result1216 is not None - unwrapped1217 = deconstruct_result1216 - self.pretty_demand(unwrapped1217) + _t1648 = None + return _t1648 + _t1649 = _t1647(msg) + deconstruct_result1228 = _t1649 + if deconstruct_result1228 is not None: + assert deconstruct_result1228 is not None + unwrapped1229 = deconstruct_result1228 + self.pretty_demand(unwrapped1229) else: - def _t1626(_dollar_dollar): + def _t1650(_dollar_dollar): if _dollar_dollar.HasField("output"): - _t1627 = _dollar_dollar.output + _t1651 = _dollar_dollar.output else: - _t1627 = None - return _t1627 - _t1628 = _t1626(msg) - deconstruct_result1214 = _t1628 - if deconstruct_result1214 is not None: - assert deconstruct_result1214 is not None - unwrapped1215 = deconstruct_result1214 - self.pretty_output(unwrapped1215) + _t1651 = None + return _t1651 + _t1652 = _t1650(msg) + deconstruct_result1226 = _t1652 + if deconstruct_result1226 is not None: + assert deconstruct_result1226 is not None + unwrapped1227 = deconstruct_result1226 + self.pretty_output(unwrapped1227) else: - def _t1629(_dollar_dollar): + def _t1653(_dollar_dollar): if _dollar_dollar.HasField("what_if"): - _t1630 = _dollar_dollar.what_if + _t1654 = _dollar_dollar.what_if else: - _t1630 = None - return _t1630 - _t1631 = _t1629(msg) - deconstruct_result1212 = _t1631 - if deconstruct_result1212 is not None: - assert deconstruct_result1212 is not None - unwrapped1213 = deconstruct_result1212 - self.pretty_what_if(unwrapped1213) + _t1654 = None + return _t1654 + _t1655 = _t1653(msg) + deconstruct_result1224 = _t1655 + if deconstruct_result1224 is not None: + assert deconstruct_result1224 is not None + unwrapped1225 = deconstruct_result1224 + self.pretty_what_if(unwrapped1225) else: - def _t1632(_dollar_dollar): + def _t1656(_dollar_dollar): if _dollar_dollar.HasField("abort"): - _t1633 = _dollar_dollar.abort + _t1657 = _dollar_dollar.abort else: - _t1633 = None - return _t1633 - _t1634 = _t1632(msg) - deconstruct_result1210 = _t1634 - if deconstruct_result1210 is not None: - assert deconstruct_result1210 is not None - unwrapped1211 = deconstruct_result1210 - self.pretty_abort(unwrapped1211) + _t1657 = None + return _t1657 + _t1658 = _t1656(msg) + deconstruct_result1222 = _t1658 + if deconstruct_result1222 is not None: + assert deconstruct_result1222 is not None + unwrapped1223 = deconstruct_result1222 + self.pretty_abort(unwrapped1223) else: - def _t1635(_dollar_dollar): + def _t1659(_dollar_dollar): if _dollar_dollar.HasField("export"): - _t1636 = _dollar_dollar.export + _t1660 = _dollar_dollar.export else: - _t1636 = None - return _t1636 - _t1637 = _t1635(msg) - deconstruct_result1208 = _t1637 - if deconstruct_result1208 is not None: - assert deconstruct_result1208 is not None - unwrapped1209 = deconstruct_result1208 - self.pretty_export(unwrapped1209) + _t1660 = None + return _t1660 + _t1661 = _t1659(msg) + deconstruct_result1220 = _t1661 + if deconstruct_result1220 is not None: + assert deconstruct_result1220 is not None + unwrapped1221 = deconstruct_result1220 + self.pretty_export(unwrapped1221) else: raise ParseError("No matching rule for read") def pretty_demand(self, msg: transactions_pb2.Demand): - flat1221 = self._try_flat(msg, self.pretty_demand) - if flat1221 is not None: - assert flat1221 is not None - self.write(flat1221) + flat1233 = self._try_flat(msg, self.pretty_demand) + if flat1233 is not None: + assert flat1233 is not None + self.write(flat1233) return None else: - def _t1638(_dollar_dollar): + def _t1662(_dollar_dollar): return _dollar_dollar.relation_id - _t1639 = _t1638(msg) - fields1219 = _t1639 - assert fields1219 is not None - unwrapped_fields1220 = fields1219 + _t1663 = _t1662(msg) + fields1231 = _t1663 + assert fields1231 is not None + unwrapped_fields1232 = fields1231 self.write("(") self.write("demand") self.indent_sexp() self.newline() - self.pretty_relation_id(unwrapped_fields1220) + self.pretty_relation_id(unwrapped_fields1232) self.dedent() self.write(")") def pretty_output(self, msg: transactions_pb2.Output): - flat1226 = self._try_flat(msg, self.pretty_output) - if flat1226 is not None: - assert flat1226 is not None - self.write(flat1226) + flat1238 = self._try_flat(msg, self.pretty_output) + if flat1238 is not None: + assert flat1238 is not None + self.write(flat1238) return None else: - def _t1640(_dollar_dollar): + def _t1664(_dollar_dollar): return (_dollar_dollar.name, _dollar_dollar.relation_id,) - _t1641 = _t1640(msg) - fields1222 = _t1641 - assert fields1222 is not None - unwrapped_fields1223 = fields1222 + _t1665 = _t1664(msg) + fields1234 = _t1665 + assert fields1234 is not None + unwrapped_fields1235 = fields1234 self.write("(") self.write("output") self.indent_sexp() self.newline() - field1224 = unwrapped_fields1223[0] - self.pretty_name(field1224) + field1236 = unwrapped_fields1235[0] + self.pretty_name(field1236) self.newline() - field1225 = unwrapped_fields1223[1] - self.pretty_relation_id(field1225) + field1237 = unwrapped_fields1235[1] + self.pretty_relation_id(field1237) self.dedent() self.write(")") def pretty_what_if(self, msg: transactions_pb2.WhatIf): - flat1231 = self._try_flat(msg, self.pretty_what_if) - if flat1231 is not None: - assert flat1231 is not None - self.write(flat1231) + flat1243 = self._try_flat(msg, self.pretty_what_if) + if flat1243 is not None: + assert flat1243 is not None + self.write(flat1243) return None else: - def _t1642(_dollar_dollar): + def _t1666(_dollar_dollar): return (_dollar_dollar.branch, _dollar_dollar.epoch,) - _t1643 = _t1642(msg) - fields1227 = _t1643 - assert fields1227 is not None - unwrapped_fields1228 = fields1227 + _t1667 = _t1666(msg) + fields1239 = _t1667 + assert fields1239 is not None + unwrapped_fields1240 = fields1239 self.write("(") self.write("what_if") self.indent_sexp() self.newline() - field1229 = unwrapped_fields1228[0] - self.pretty_name(field1229) + field1241 = unwrapped_fields1240[0] + self.pretty_name(field1241) self.newline() - field1230 = unwrapped_fields1228[1] - self.pretty_epoch(field1230) + field1242 = unwrapped_fields1240[1] + self.pretty_epoch(field1242) self.dedent() self.write(")") def pretty_abort(self, msg: transactions_pb2.Abort): - flat1237 = self._try_flat(msg, self.pretty_abort) - if flat1237 is not None: - assert flat1237 is not None - self.write(flat1237) + flat1249 = self._try_flat(msg, self.pretty_abort) + if flat1249 is not None: + assert flat1249 is not None + self.write(flat1249) return None else: - def _t1644(_dollar_dollar): + def _t1668(_dollar_dollar): if _dollar_dollar.name != "abort": - _t1645 = _dollar_dollar.name + _t1669 = _dollar_dollar.name else: - _t1645 = None - return (_t1645, _dollar_dollar.relation_id,) - _t1646 = _t1644(msg) - fields1232 = _t1646 - assert fields1232 is not None - unwrapped_fields1233 = fields1232 + _t1669 = None + return (_t1669, _dollar_dollar.relation_id,) + _t1670 = _t1668(msg) + fields1244 = _t1670 + assert fields1244 is not None + unwrapped_fields1245 = fields1244 self.write("(") self.write("abort") self.indent_sexp() - field1234 = unwrapped_fields1233[0] - if field1234 is not None: + field1246 = unwrapped_fields1245[0] + if field1246 is not None: self.newline() - assert field1234 is not None - opt_val1235 = field1234 - self.pretty_name(opt_val1235) + assert field1246 is not None + opt_val1247 = field1246 + self.pretty_name(opt_val1247) self.newline() - field1236 = unwrapped_fields1233[1] - self.pretty_relation_id(field1236) + field1248 = unwrapped_fields1245[1] + self.pretty_relation_id(field1248) self.dedent() self.write(")") def pretty_export(self, msg: transactions_pb2.Export): - flat1240 = self._try_flat(msg, self.pretty_export) - if flat1240 is not None: - assert flat1240 is not None - self.write(flat1240) + flat1252 = self._try_flat(msg, self.pretty_export) + if flat1252 is not None: + assert flat1252 is not None + self.write(flat1252) return None else: - def _t1647(_dollar_dollar): + def _t1671(_dollar_dollar): return _dollar_dollar.csv_config - _t1648 = _t1647(msg) - fields1238 = _t1648 - assert fields1238 is not None - unwrapped_fields1239 = fields1238 + _t1672 = _t1671(msg) + fields1250 = _t1672 + assert fields1250 is not None + unwrapped_fields1251 = fields1250 self.write("(") self.write("export") self.indent_sexp() self.newline() - self.pretty_export_csv_config(unwrapped_fields1239) + self.pretty_export_csv_config(unwrapped_fields1251) self.dedent() self.write(")") def pretty_export_csv_config(self, msg: transactions_pb2.ExportCSVConfig): - flat1246 = self._try_flat(msg, self.pretty_export_csv_config) - if flat1246 is not None: - assert flat1246 is not None - self.write(flat1246) + flat1263 = self._try_flat(msg, self.pretty_export_csv_config) + if flat1263 is not None: + assert flat1263 is not None + self.write(flat1263) return None else: - def _t1649(_dollar_dollar): - _t1650 = self.deconstruct_export_csv_config(_dollar_dollar) - return (_dollar_dollar.path, _dollar_dollar.data_columns, _t1650,) - _t1651 = _t1649(msg) - fields1241 = _t1651 - assert fields1241 is not None - unwrapped_fields1242 = fields1241 - self.write("(") - self.write("export_csv_config") - self.indent_sexp() - self.newline() - field1243 = unwrapped_fields1242[0] - self.pretty_export_csv_path(field1243) - self.newline() - field1244 = unwrapped_fields1242[1] - self.pretty_export_csv_columns(field1244) - self.newline() - field1245 = unwrapped_fields1242[2] - self.pretty_config_dict(field1245) - self.dedent() - self.write(")") + def _t1673(_dollar_dollar): + if len(_dollar_dollar.data_columns) == 0: + _t1674 = (_dollar_dollar.path, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) + else: + _t1674 = None + return _t1674 + _t1675 = _t1673(msg) + deconstruct_result1258 = _t1675 + if deconstruct_result1258 is not None: + assert deconstruct_result1258 is not None + unwrapped1259 = deconstruct_result1258 + self.write("(") + self.write("export_csv_config_v2") + self.indent_sexp() + self.newline() + field1260 = unwrapped1259[0] + self.pretty_export_csv_path(field1260) + self.newline() + field1261 = unwrapped1259[1] + self.pretty_export_csv_source(field1261) + self.newline() + field1262 = unwrapped1259[2] + self.pretty_csv_config(field1262) + self.dedent() + self.write(")") + else: + def _t1676(_dollar_dollar): + if len(_dollar_dollar.data_columns) != 0: + _t1678 = self.deconstruct_export_csv_config(_dollar_dollar) + _t1677 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1678,) + else: + _t1677 = None + return _t1677 + _t1679 = _t1676(msg) + deconstruct_result1253 = _t1679 + if deconstruct_result1253 is not None: + assert deconstruct_result1253 is not None + unwrapped1254 = deconstruct_result1253 + self.write("(") + self.write("export_csv_config") + self.indent_sexp() + self.newline() + field1255 = unwrapped1254[0] + self.pretty_export_csv_path(field1255) + self.newline() + field1256 = unwrapped1254[1] + self.pretty_export_csv_columns_list(field1256) + self.newline() + field1257 = unwrapped1254[2] + self.pretty_config_dict(field1257) + self.dedent() + self.write(")") + else: + raise ParseError("No matching rule for export_csv_config") def pretty_export_csv_path(self, msg: str): - flat1248 = self._try_flat(msg, self.pretty_export_csv_path) - if flat1248 is not None: - assert flat1248 is not None - self.write(flat1248) + flat1265 = self._try_flat(msg, self.pretty_export_csv_path) + if flat1265 is not None: + assert flat1265 is not None + self.write(flat1265) return None else: - fields1247 = msg + fields1264 = msg self.write("(") self.write("path") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1247)) + self.write(self.format_string_value(fields1264)) self.dedent() self.write(")") - def pretty_export_csv_columns(self, msg: Sequence[transactions_pb2.ExportCSVColumn]): - flat1252 = self._try_flat(msg, self.pretty_export_csv_columns) - if flat1252 is not None: - assert flat1252 is not None - self.write(flat1252) + def pretty_export_csv_source(self, msg: transactions_pb2.ExportCSVSource): + flat1272 = self._try_flat(msg, self.pretty_export_csv_source) + if flat1272 is not None: + assert flat1272 is not None + self.write(flat1272) return None else: - fields1249 = msg - self.write("(") - self.write("columns") - self.indent_sexp() - if not len(fields1249) == 0: - self.newline() - for i1251, elem1250 in enumerate(fields1249): - if (i1251 > 0): - self.newline() - self.pretty_export_csv_column(elem1250) - self.dedent() - self.write(")") + def _t1680(_dollar_dollar): + if _dollar_dollar.HasField("gnf_columns"): + _t1681 = _dollar_dollar.gnf_columns.columns + else: + _t1681 = None + return _t1681 + _t1682 = _t1680(msg) + deconstruct_result1268 = _t1682 + if deconstruct_result1268 is not None: + assert deconstruct_result1268 is not None + unwrapped1269 = deconstruct_result1268 + self.write("(") + self.write("gnf_columns") + self.indent_sexp() + if not len(unwrapped1269) == 0: + self.newline() + for i1271, elem1270 in enumerate(unwrapped1269): + if (i1271 > 0): + self.newline() + self.pretty_export_csv_column(elem1270) + self.dedent() + self.write(")") + else: + def _t1683(_dollar_dollar): + if _dollar_dollar.HasField("table_def"): + _t1684 = _dollar_dollar.table_def + else: + _t1684 = None + return _t1684 + _t1685 = _t1683(msg) + deconstruct_result1266 = _t1685 + if deconstruct_result1266 is not None: + assert deconstruct_result1266 is not None + unwrapped1267 = deconstruct_result1266 + self.write("(") + self.write("table_def") + self.indent_sexp() + self.newline() + self.pretty_relation_id(unwrapped1267) + self.dedent() + self.write(")") + else: + raise ParseError("No matching rule for export_csv_source") def pretty_export_csv_column(self, msg: transactions_pb2.ExportCSVColumn): - flat1257 = self._try_flat(msg, self.pretty_export_csv_column) - if flat1257 is not None: - assert flat1257 is not None - self.write(flat1257) + flat1277 = self._try_flat(msg, self.pretty_export_csv_column) + if flat1277 is not None: + assert flat1277 is not None + self.write(flat1277) return None else: - def _t1652(_dollar_dollar): + def _t1686(_dollar_dollar): return (_dollar_dollar.column_name, _dollar_dollar.column_data,) - _t1653 = _t1652(msg) - fields1253 = _t1653 - assert fields1253 is not None - unwrapped_fields1254 = fields1253 + _t1687 = _t1686(msg) + fields1273 = _t1687 + assert fields1273 is not None + unwrapped_fields1274 = fields1273 self.write("(") self.write("column") self.indent_sexp() self.newline() - field1255 = unwrapped_fields1254[0] - self.write(self.format_string_value(field1255)) + field1275 = unwrapped_fields1274[0] + self.write(self.format_string_value(field1275)) self.newline() - field1256 = unwrapped_fields1254[1] - self.pretty_relation_id(field1256) + field1276 = unwrapped_fields1274[1] + self.pretty_relation_id(field1276) + self.dedent() + self.write(")") + + def pretty_export_csv_columns_list(self, msg: Sequence[transactions_pb2.ExportCSVColumn]): + flat1281 = self._try_flat(msg, self.pretty_export_csv_columns_list) + if flat1281 is not None: + assert flat1281 is not None + self.write(flat1281) + return None + else: + fields1278 = msg + self.write("(") + self.write("columns") + self.indent_sexp() + if not len(fields1278) == 0: + self.newline() + for i1280, elem1279 in enumerate(fields1278): + if (i1280 > 0): + self.newline() + self.pretty_export_csv_column(elem1279) self.dedent() self.write(")") @@ -3804,8 +3891,8 @@ def pretty_debug_info(self, msg: fragments_pb2.DebugInfo): for _idx, _rid in enumerate(msg.ids): self.newline() self.write("(") - _t1691 = logic_pb2.UInt128Value(low=_rid.id_low, high=_rid.id_high) - self.pprint_dispatch(_t1691) + _t1726 = logic_pb2.UInt128Value(low=_rid.id_low, high=_rid.id_high) + self.pprint_dispatch(_t1726) self.write(" ") self.write(self.format_string_value(msg.orig_names[_idx])) self.write(")") @@ -3892,6 +3979,20 @@ 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 ") + self.write("(") + for _idx, _elem in enumerate(msg.columns): + if (_idx > 0): + self.write(" ") + self.pprint_dispatch(_elem) + self.write(")") + self.write(")") + self.dedent() + def pretty_ivm_config(self, msg: transactions_pb2.IVMConfig): self.write("(ivm_config") self.indent_sexp() @@ -4077,6 +4178,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): @@ -4095,6 +4198,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 3f02d031..530a03a8 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\"\xd6\x01\n\x04\x44\x61ta\x12\x36\n\x07rel_edb\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.RelEDBH\x00R\x06relEdb\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\"\x8b\x01\n\x06RelEDB\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.CSVColumnR\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\"\x9b\x01\n\tCSVColumn\x12\x1f\n\x0b\x63olumn_name\x18\x01 \x01(\tR\ncolumnName\x12<\n\ttarget_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08targetId\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05types\"<\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\x05valueB\x1fZ\x1dlogical-query-protocol/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\"\xd6\x01\n\x04\x44\x61ta\x12\x36\n\x07rel_edb\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.RelEDBH\x00R\x06relEdb\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\"\x8b\x01\n\x06RelEDB\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.CSVColumnR\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\"\x9b\x01\n\tCSVColumn\x12\x1f\n\x0b\x63olumn_name\x18\x01 \x01(\tR\ncolumnName\x12<\n\ttarget_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08targetId\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05types\"<\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\x05valueB\x1fZ\x1dlogical-query-protocol/lqp/v1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -113,47 +113,47 @@ _globals['_CSVLOCATOR']._serialized_start=6760 _globals['_CSVLOCATOR']._serialized_end=6827 _globals['_CSVCONFIG']._serialized_start=6830 - _globals['_CSVCONFIG']._serialized_end=7185 - _globals['_CSVCOLUMN']._serialized_start=7188 - _globals['_CSVCOLUMN']._serialized_end=7343 - _globals['_RELATIONID']._serialized_start=7345 - _globals['_RELATIONID']._serialized_end=7405 - _globals['_TYPE']._serialized_start=7408 - _globals['_TYPE']._serialized_end=8185 - _globals['_UNSPECIFIEDTYPE']._serialized_start=8187 - _globals['_UNSPECIFIEDTYPE']._serialized_end=8204 - _globals['_STRINGTYPE']._serialized_start=8206 - _globals['_STRINGTYPE']._serialized_end=8218 - _globals['_INTTYPE']._serialized_start=8220 - _globals['_INTTYPE']._serialized_end=8229 - _globals['_FLOATTYPE']._serialized_start=8231 - _globals['_FLOATTYPE']._serialized_end=8242 - _globals['_UINT128TYPE']._serialized_start=8244 - _globals['_UINT128TYPE']._serialized_end=8257 - _globals['_INT128TYPE']._serialized_start=8259 - _globals['_INT128TYPE']._serialized_end=8271 - _globals['_DATETYPE']._serialized_start=8273 - _globals['_DATETYPE']._serialized_end=8283 - _globals['_DATETIMETYPE']._serialized_start=8285 - _globals['_DATETIMETYPE']._serialized_end=8299 - _globals['_MISSINGTYPE']._serialized_start=8301 - _globals['_MISSINGTYPE']._serialized_end=8314 - _globals['_DECIMALTYPE']._serialized_start=8316 - _globals['_DECIMALTYPE']._serialized_end=8381 - _globals['_BOOLEANTYPE']._serialized_start=8383 - _globals['_BOOLEANTYPE']._serialized_end=8396 - _globals['_VALUE']._serialized_start=8399 - _globals['_VALUE']._serialized_end=8992 - _globals['_UINT128VALUE']._serialized_start=8994 - _globals['_UINT128VALUE']._serialized_end=9046 - _globals['_INT128VALUE']._serialized_start=9048 - _globals['_INT128VALUE']._serialized_end=9099 - _globals['_MISSINGVALUE']._serialized_start=9101 - _globals['_MISSINGVALUE']._serialized_end=9115 - _globals['_DATEVALUE']._serialized_start=9117 - _globals['_DATEVALUE']._serialized_end=9188 - _globals['_DATETIMEVALUE']._serialized_start=9191 - _globals['_DATETIMEVALUE']._serialized_end=9368 - _globals['_DECIMALVALUE']._serialized_start=9370 - _globals['_DECIMALVALUE']._serialized_end=9492 + _globals['_CSVCONFIG']._serialized_end=7229 + _globals['_CSVCOLUMN']._serialized_start=7232 + _globals['_CSVCOLUMN']._serialized_end=7387 + _globals['_RELATIONID']._serialized_start=7389 + _globals['_RELATIONID']._serialized_end=7449 + _globals['_TYPE']._serialized_start=7452 + _globals['_TYPE']._serialized_end=8229 + _globals['_UNSPECIFIEDTYPE']._serialized_start=8231 + _globals['_UNSPECIFIEDTYPE']._serialized_end=8248 + _globals['_STRINGTYPE']._serialized_start=8250 + _globals['_STRINGTYPE']._serialized_end=8262 + _globals['_INTTYPE']._serialized_start=8264 + _globals['_INTTYPE']._serialized_end=8273 + _globals['_FLOATTYPE']._serialized_start=8275 + _globals['_FLOATTYPE']._serialized_end=8286 + _globals['_UINT128TYPE']._serialized_start=8288 + _globals['_UINT128TYPE']._serialized_end=8301 + _globals['_INT128TYPE']._serialized_start=8303 + _globals['_INT128TYPE']._serialized_end=8315 + _globals['_DATETYPE']._serialized_start=8317 + _globals['_DATETYPE']._serialized_end=8327 + _globals['_DATETIMETYPE']._serialized_start=8329 + _globals['_DATETIMETYPE']._serialized_end=8343 + _globals['_MISSINGTYPE']._serialized_start=8345 + _globals['_MISSINGTYPE']._serialized_end=8358 + _globals['_DECIMALTYPE']._serialized_start=8360 + _globals['_DECIMALTYPE']._serialized_end=8425 + _globals['_BOOLEANTYPE']._serialized_start=8427 + _globals['_BOOLEANTYPE']._serialized_end=8440 + _globals['_VALUE']._serialized_start=8443 + _globals['_VALUE']._serialized_end=9036 + _globals['_UINT128VALUE']._serialized_start=9038 + _globals['_UINT128VALUE']._serialized_end=9090 + _globals['_INT128VALUE']._serialized_start=9092 + _globals['_INT128VALUE']._serialized_end=9143 + _globals['_MISSINGVALUE']._serialized_start=9145 + _globals['_MISSINGVALUE']._serialized_end=9159 + _globals['_DATEVALUE']._serialized_start=9161 + _globals['_DATEVALUE']._serialized_end=9232 + _globals['_DATETIMEVALUE']._serialized_start=9235 + _globals['_DATETIMEVALUE']._serialized_end=9412 + _globals['_DECIMALVALUE']._serialized_start=9414 + _globals['_DECIMALVALUE']._serialized_end=9536 # @@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 7f98bbcf..507faa57 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 CSVColumn(_message.Message): __slots__ = ("column_name", "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 fdca81c0..371ec8d0 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\"\x7f\n\x08Snapshot\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\"\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\x1fZ\x1dlogical-query-protocol/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\"\x7f\n\x08Snapshot\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\"\xc8\x05\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\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\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\x1fZ\x1dlogical-query-protocol/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'Z\035logical-query-protocol/lqp/v1' - _globals['_MAINTENANCELEVEL']._serialized_start=2761 - _globals['_MAINTENANCELEVEL']._serialized_end=2896 + _globals['_MAINTENANCELEVEL']._serialized_start=3149 + _globals['_MAINTENANCELEVEL']._serialized_end=3284 _globals['_TRANSACTION']._serialized_start=134 _globals['_TRANSACTION']._serialized_end=322 _globals['_CONFIGURE']._serialized_start=324 @@ -47,19 +47,23 @@ _globals['_SNAPSHOT']._serialized_start=1186 _globals['_SNAPSHOT']._serialized_end=1313 _globals['_EXPORTCSVCONFIG']._serialized_start=1316 - _globals['_EXPORTCSVCONFIG']._serialized_end=1896 - _globals['_EXPORTCSVCOLUMN']._serialized_start=1898 - _globals['_EXPORTCSVCOLUMN']._serialized_end=2014 - _globals['_READ']._serialized_start=2017 - _globals['_READ']._serialized_end=2309 - _globals['_DEMAND']._serialized_start=2311 - _globals['_DEMAND']._serialized_end=2385 - _globals['_OUTPUT']._serialized_start=2387 - _globals['_OUTPUT']._serialized_end=2481 - _globals['_EXPORT']._serialized_start=2483 - _globals['_EXPORT']._serialized_end=2579 - _globals['_WHATIF']._serialized_start=2581 - _globals['_WHATIF']._serialized_end=2663 - _globals['_ABORT']._serialized_start=2665 - _globals['_ABORT']._serialized_end=2758 + _globals['_EXPORTCSVCONFIG']._serialized_end=2028 + _globals['_EXPORTCSVCOLUMN']._serialized_start=2030 + _globals['_EXPORTCSVCOLUMN']._serialized_end=2146 + _globals['_EXPORTCSVCOLUMNS']._serialized_start=2148 + _globals['_EXPORTCSVCOLUMNS']._serialized_end=2230 + _globals['_EXPORTCSVSOURCE']._serialized_start=2233 + _globals['_EXPORTCSVSOURCE']._serialized_end=2402 + _globals['_READ']._serialized_start=2405 + _globals['_READ']._serialized_end=2697 + _globals['_DEMAND']._serialized_start=2699 + _globals['_DEMAND']._serialized_end=2773 + _globals['_OUTPUT']._serialized_start=2775 + _globals['_OUTPUT']._serialized_end=2869 + _globals['_EXPORT']._serialized_start=2871 + _globals['_EXPORT']._serialized_end=2967 + _globals['_WHATIF']._serialized_start=2969 + _globals['_WHATIF']._serialized_end=3051 + _globals['_ABORT']._serialized_start=3053 + _globals['_ABORT']._serialized_end=3146 # @@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 7af683a7..be3042f2 100644 --- a/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi +++ b/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi @@ -97,9 +97,11 @@ class Snapshot(_message.Message): def __init__(self, destination_path: _Optional[_Iterable[str]] = ..., source_relation: _Optional[_Union[_logic_pb2.RelationId, _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", "data_columns", "csv_source", "csv_config", "partition_size", "compression", "syntax_header_row", "syntax_missing_string", "syntax_delim", "syntax_quotechar", "syntax_escapechar") PATH_FIELD_NUMBER: _ClassVar[int] DATA_COLUMNS_FIELD_NUMBER: _ClassVar[int] + CSV_SOURCE_FIELD_NUMBER: _ClassVar[int] + CSV_CONFIG_FIELD_NUMBER: _ClassVar[int] PARTITION_SIZE_FIELD_NUMBER: _ClassVar[int] COMPRESSION_FIELD_NUMBER: _ClassVar[int] SYNTAX_HEADER_ROW_FIELD_NUMBER: _ClassVar[int] @@ -109,6 +111,8 @@ class ExportCSVConfig(_message.Message): SYNTAX_ESCAPECHAR_FIELD_NUMBER: _ClassVar[int] path: str data_columns: _containers.RepeatedCompositeFieldContainer[ExportCSVColumn] + csv_source: ExportCSVSource + csv_config: _logic_pb2.CSVConfig partition_size: int compression: str syntax_header_row: bool @@ -116,7 +120,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] = ..., data_columns: _Optional[_Iterable[_Union[ExportCSVColumn, _Mapping]]] = ..., csv_source: _Optional[_Union[ExportCSVSource, _Mapping]] = ..., csv_config: _Optional[_Union[_logic_pb2.CSVConfig, _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") @@ -126,6 +130,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`