diff --git a/meta/src/meta/codegen_templates.py b/meta/src/meta/codegen_templates.py index 940a87ac..633a27f4 100644 --- a/meta/src/meta/codegen_templates.py +++ b/meta/src/meta/codegen_templates.py @@ -34,6 +34,7 @@ class BuiltinTemplate: "make_empty_bytes": BuiltinTemplate('b""'), "dict_from_list": BuiltinTemplate("dict({0})"), "dict_get": BuiltinTemplate("{0}.get({1})"), + "dict_to_pairs": BuiltinTemplate("sorted({0}.items())"), "has_proto_field": BuiltinTemplate("{0}.HasField({1})"), "string_to_upper": BuiltinTemplate("{0}.upper()"), "string_in_list": BuiltinTemplate("{0} in {1}"), @@ -134,6 +135,7 @@ class BuiltinTemplate: "make_empty_bytes": BuiltinTemplate("UInt8[]"), "dict_from_list": BuiltinTemplate("Dict({0})"), "dict_get": BuiltinTemplate("get({0}, {1}, nothing)"), + "dict_to_pairs": BuiltinTemplate("sort([(k, v) for (k, v) in {0}])"), "has_proto_field": BuiltinTemplate("_has_proto_field({0}, Symbol({1}))"), "string_to_upper": BuiltinTemplate("uppercase({0})"), "string_in_list": BuiltinTemplate("({0} in {1})"), @@ -231,6 +233,7 @@ class BuiltinTemplate: "make_empty_bytes": BuiltinTemplate("[]byte{}"), "dict_from_list": BuiltinTemplate("dictFromList({0})"), "dict_get": BuiltinTemplate("dictGetValue({0}, {1})"), + "dict_to_pairs": BuiltinTemplate("dictToPairs({0})"), "has_proto_field": BuiltinTemplate("hasProtoField({0}, {1})"), "string_to_upper": BuiltinTemplate("strings.ToUpper({0})"), "string_in_list": BuiltinTemplate("stringInList({0}, {1})"), diff --git a/meta/src/meta/grammar.y b/meta/src/meta/grammar.y index 72732151..c4379c24 100644 --- a/meta/src/meta/grammar.y +++ b/meta/src/meta/grammar.y @@ -83,6 +83,15 @@ %nonterm csv_locator_paths Sequence[String] %nonterm csvlocator logic.CSVLocator %nonterm data logic.Data +%nonterm iceberg_config logic.IcebergConfig +%nonterm iceberg_config_credentials Sequence[Tuple[String, String]] +%nonterm iceberg_config_properties Sequence[Tuple[String, String]] +%nonterm iceberg_config_scope String +%nonterm iceberg_data logic.IcebergData +%nonterm iceberg_kv_pair Tuple[String, String] +%nonterm iceberg_locator logic.IcebergLocator +%nonterm iceberg_locator_namespace Sequence[String] +%nonterm iceberg_to_snapshot String %nonterm date logic.DateValue %nonterm date_type logic.DateType %nonterm datetime logic.DateTimeValue @@ -957,6 +966,10 @@ data construct: $$ = logic.Data(csv_data=$1) deconstruct if builtin.has_proto_field($$, 'csv_data'): $1: logic.CSVData = $$.csv_data + | iceberg_data + construct: $$ = logic.Data(iceberg_data=$1) + deconstruct if builtin.has_proto_field($$, 'iceberg_data'): + $1: logic.IcebergData = $$.iceberg_data edb_path : "[" STRING* "]" @@ -1026,6 +1039,54 @@ csv_config construct: $$ = construct_csv_config($3) deconstruct: $3: Sequence[Tuple[String, logic.Value]] = deconstruct_csv_config($$) +iceberg_data + : "(" "iceberg_data" iceberg_locator iceberg_config gnf_columns iceberg_to_snapshot? ")" + construct: $$ = logic.IcebergData(locator=$3, config=$4, columns=$5, to_snapshot=$6) + deconstruct: + $3: logic.IcebergLocator = $$.locator + $4: logic.IcebergConfig = $$.config + $5: Sequence[logic.GNFColumn] = $$.columns + $6: Optional[String] = $$.to_snapshot + +iceberg_locator_namespace + : "(" "namespace" STRING* ")" + +iceberg_locator + : "(" "iceberg_locator" STRING iceberg_locator_namespace STRING ")" + construct: $$ = logic.IcebergLocator(table_name=$3, namespace=$4, warehouse=$5) + deconstruct: + $3: String = $$.table_name + $4: Sequence[String] = $$.namespace + $5: String = $$.warehouse + +iceberg_config + : "(" "iceberg_config" STRING iceberg_config_scope? iceberg_config_properties? iceberg_config_credentials? ")" + construct: $$ = construct_iceberg_config($3, $4, $5, $6) + deconstruct: + $3: String = $$.catalog_uri + $4: Optional[String] = $$.scope if $$.scope != "" else None + $5: Optional[Sequence[Tuple[String, String]]] = builtin.dict_to_pairs($$.properties) if not builtin.is_empty(builtin.dict_to_pairs($$.properties)) else None + $6: Optional[Sequence[Tuple[String, String]]] = builtin.none() + +iceberg_config_scope + : "(" "scope" STRING ")" + +iceberg_config_properties + : "(" "properties" iceberg_kv_pair* ")" + +iceberg_config_credentials + : "(" "credentials" iceberg_kv_pair* ")" + +iceberg_kv_pair + : "(" STRING STRING ")" + construct: $$ = builtin.tuple($2, $3) + deconstruct: + $2: String = $$[0] + $3: String = $$[1] + +iceberg_to_snapshot + : "(" "to_snapshot" STRING ")" + gnf_column_path : STRING construct: $$ = [$1] @@ -1439,6 +1500,23 @@ def deconstruct_csv_config(msg: logic.CSVConfig) -> List[Tuple[String, logic.Val return builtin.list_sort(result) +def construct_iceberg_config( + catalog_uri: String, + scope: Optional[String], + properties: Optional[Sequence[Tuple[String, String]]], + credentials: Optional[Sequence[Tuple[String, String]]], +) -> logic.IcebergConfig: + props: Dict[String, String] = builtin.dict_from_list(builtin.unwrap_option_or(properties, list[Tuple[String, String]]())) + creds: Dict[String, String] = builtin.dict_from_list(builtin.unwrap_option_or(credentials, list[Tuple[String, String]]())) + return logic.IcebergConfig( + catalog_uri=catalog_uri, + scope=builtin.unwrap_option_or(scope, ""), + properties=props, + credentials=creds, + ) + + + def deconstruct_betree_info_config(msg: logic.BeTreeInfo) -> List[Tuple[String, logic.Value]]: result: List[Tuple[String, logic.Value]] = list[Tuple[String, logic.Value]]() diff --git a/meta/src/meta/proto_ast.py b/meta/src/meta/proto_ast.py index 99a60036..209038dc 100644 --- a/meta/src/meta/proto_ast.py +++ b/meta/src/meta/proto_ast.py @@ -56,6 +56,9 @@ class ProtoField: number: int is_repeated: bool = False is_optional: bool = False + is_map: bool = False + map_key_type: str = "" + map_value_type: str = "" @dataclass diff --git a/meta/src/meta/proto_parser.py b/meta/src/meta/proto_parser.py index f79dd286..4679aaa9 100644 --- a/meta/src/meta/proto_parser.py +++ b/meta/src/meta/proto_parser.py @@ -40,6 +40,7 @@ _NESTED_ENUM_PATTERN = re.compile(r"enum\s+(\w+)\s*\{([^}]+)\}") _ONEOF_PATTERN = re.compile(r"oneof\s+(\w+)\s*\{((?:[^{}]|\{[^}]*\})*)\}") _FIELD_PATTERN = re.compile(r"(repeated|optional)?\s*(\w+)\s+(\w+)\s*=\s*(\d+);") +_MAP_FIELD_PATTERN = re.compile(r"map<\s*(\w+)\s*,\s*(\w+)\s*>\s+(\w+)\s*=\s*(\d+);") _ONEOF_FIELD_PATTERN = re.compile(r"(\w+)\s+(\w+)\s*=\s*(\d+);") _ENUM_VALUE_PATTERN = re.compile(r"(\w+)\s*=\s*(\d+);") _RESERVED_PATTERN = re.compile(r"reserved\s+([^;]+);") @@ -193,6 +194,29 @@ def _parse_message(self, name: str, body: str) -> ProtoMessage: ) message.fields.append(proto_field) + # Parse map fields + for match in _MAP_FIELD_PATTERN.finditer(body): + if any( + start <= match.start() and match.end() <= end + for start, end in excluded_spans + ): + continue + + key_type = match.group(1) + value_type = match.group(2) + field_name = match.group(3) + field_number = int(match.group(4)) + + proto_field = ProtoField( + name=field_name, + type=f"map<{key_type},{value_type}>", + number=field_number, + is_map=True, + map_key_type=key_type, + map_value_type=value_type, + ) + message.fields.append(proto_field) + # Parse nested enums for match in _NESTED_ENUM_PATTERN.finditer(body): enum_name = match.group(1) diff --git a/meta/src/meta/target_builtins.py b/meta/src/meta/target_builtins.py index e8c74462..2d93a700 100644 --- a/meta/src/meta/target_builtins.py +++ b/meta/src/meta/target_builtins.py @@ -218,6 +218,7 @@ def is_builtin(name: str) -> bool: # === Dict operations === register_builtin("dict_from_list", [SequenceType(TupleType([K, V]))], DictType(K, V)) register_builtin("dict_get", [DictType(K, V), K], OptionType(V)) +register_builtin("dict_to_pairs", [DictType(K, V)], ListType(TupleType([K, V]))) # === Protobuf operations === register_builtin("has_proto_field", [T, STRING], BOOLEAN) # msg.HasField(field_name) diff --git a/meta/src/meta/type_env.py b/meta/src/meta/type_env.py index 3f7061f6..c86e5436 100644 --- a/meta/src/meta/type_env.py +++ b/meta/src/meta/type_env.py @@ -4,6 +4,7 @@ from .proto_parser import ProtoParser from .target import ( BaseType, + DictType, FunctionType, MessageType, OptionType, @@ -27,6 +28,13 @@ } +def _scalar_to_target(type_name: str) -> TargetType: + """Convert a scalar proto type name to a TargetType.""" + if type_name in _PRIMITIVE_TO_BASE_TYPE: + return BaseType(_PRIMITIVE_TO_BASE_TYPE[type_name]) + raise ValueError(f"Unknown scalar proto type for map: {type_name}") + + class TypeEnv: """Type environment for validating grammar expressions. @@ -87,6 +95,12 @@ def _is_enum_type(self, type_name: str) -> bool: def _proto_type_to_target(self, proto_field: ProtoField) -> TargetType: """Convert a protobuf field to its target type.""" + # Handle map fields + if proto_field.is_map: + key_type = _scalar_to_target(proto_field.map_key_type) + value_type = _scalar_to_target(proto_field.map_value_type) + return DictType(key_type, value_type) + # Get base type base_type: TargetType if proto_field.type in _PRIMITIVE_TO_BASE_TYPE: diff --git a/meta/src/meta/yacc_parser.py b/meta/src/meta/yacc_parser.py index f2e3b0ba..48d6c48c 100644 --- a/meta/src/meta/yacc_parser.py +++ b/meta/src/meta/yacc_parser.py @@ -70,6 +70,7 @@ ) from .target import ( BaseType, + DictType, ListType, MessageType, OptionType, @@ -739,10 +740,19 @@ def _make_field_type_lookup( for (module, msg_name), proto_msg in proto_messages.items(): for field in proto_msg.fields: - field_type = _proto_type_to_target_type( - field.type, field.is_repeated, field.is_optional, name_to_module - ) - field_types[(module, msg_name, field.name)] = field_type + if field.is_map: + key_type = _proto_type_to_target_type( + field.map_key_type, False, name_to_module=name_to_module + ) + value_type = _proto_type_to_target_type( + field.map_value_type, False, name_to_module=name_to_module + ) + field_types[(module, msg_name, field.name)] = DictType(key_type, value_type) + else: + field_type = _proto_type_to_target_type( + field.type, field.is_repeated, field.is_optional, name_to_module + ) + field_types[(module, msg_name, field.name)] = field_type # Also add oneof fields for oneof in proto_msg.oneofs: diff --git a/proto/relationalai/lqp/v1/logic.proto b/proto/relationalai/lqp/v1/logic.proto index e4034c87..51758856 100644 --- a/proto/relationalai/lqp/v1/logic.proto +++ b/proto/relationalai/lqp/v1/logic.proto @@ -228,14 +228,14 @@ message Attribute { } // -// Input data (base relations, CSVs) +// Input data (base relations, CSVs, Iceberg) // message Data { oneof data_type { EDB edb = 1; BeTreeRelation betree_relation = 2; CSVData csv_data = 3; - // IcebergData iceberg_data = 4; + IcebergData iceberg_data = 4; } } @@ -314,6 +314,26 @@ message CSVConfig { int64 partition_size_mb = 12; } +message IcebergData { + IcebergLocator locator = 1; + IcebergConfig config = 2; + repeated GNFColumn columns = 3; + optional string to_snapshot = 4; +} + +message IcebergLocator { + string table_name = 1; + repeated string namespace = 2; + string warehouse = 3; +} + +message IcebergConfig { + string catalog_uri = 1; + optional string scope = 2; + map properties = 3; + map credentials = 4; +} + message GNFColumn { repeated string column_path = 1; // Column identifier path (was: string column_name) optional RelationId target_id = 2; // Target relation (now explicit optional) diff --git a/sdks/go/src/lqp/v1/logic.pb.go b/sdks/go/src/lqp/v1/logic.pb.go index 2665dce0..552e57ac 100644 --- a/sdks/go/src/lqp/v1/logic.pb.go +++ b/sdks/go/src/lqp/v1/logic.pb.go @@ -2459,7 +2459,7 @@ func (x *Attribute) GetArgs() []*Value { return nil } -// Input data (base relations, CSVs) +// Input data (base relations, CSVs, Iceberg) type Data struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to DataType: @@ -2467,6 +2467,7 @@ type Data struct { // *Data_Edb // *Data_BetreeRelation // *Data_CsvData + // *Data_IcebergData DataType isData_DataType `protobuf_oneof:"data_type"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -2536,6 +2537,15 @@ func (x *Data) GetCsvData() *CSVData { return nil } +func (x *Data) GetIcebergData() *IcebergData { + if x != nil { + if x, ok := x.DataType.(*Data_IcebergData); ok { + return x.IcebergData + } + } + return nil +} + type isData_DataType interface { isData_DataType() } @@ -2549,7 +2559,11 @@ type Data_BetreeRelation struct { } type Data_CsvData struct { - CsvData *CSVData `protobuf:"bytes,3,opt,name=csv_data,json=csvData,proto3,oneof"` // IcebergData iceberg_data = 4; + CsvData *CSVData `protobuf:"bytes,3,opt,name=csv_data,json=csvData,proto3,oneof"` +} + +type Data_IcebergData struct { + IcebergData *IcebergData `protobuf:"bytes,4,opt,name=iceberg_data,json=icebergData,proto3,oneof"` } func (*Data_Edb) isData_DataType() {} @@ -2558,6 +2572,8 @@ func (*Data_BetreeRelation) isData_DataType() {} func (*Data_CsvData) isData_DataType() {} +func (*Data_IcebergData) isData_DataType() {} + type EDB struct { state protoimpl.MessageState `protogen:"open.v1"` TargetId *RelationId `protobuf:"bytes,1,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` @@ -3163,6 +3179,202 @@ func (x *CSVConfig) GetPartitionSizeMb() int64 { return 0 } +type IcebergData struct { + state protoimpl.MessageState `protogen:"open.v1"` + Locator *IcebergLocator `protobuf:"bytes,1,opt,name=locator,proto3" json:"locator,omitempty"` + Config *IcebergConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + Columns []*GNFColumn `protobuf:"bytes,3,rep,name=columns,proto3" json:"columns,omitempty"` + ToSnapshot *string `protobuf:"bytes,4,opt,name=to_snapshot,json=toSnapshot,proto3,oneof" json:"to_snapshot,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *IcebergData) Reset() { + *x = IcebergData{} + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IcebergData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IcebergData) ProtoMessage() {} + +func (x *IcebergData) ProtoReflect() protoreflect.Message { + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[46] + 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 IcebergData.ProtoReflect.Descriptor instead. +func (*IcebergData) Descriptor() ([]byte, []int) { + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{46} +} + +func (x *IcebergData) GetLocator() *IcebergLocator { + if x != nil { + return x.Locator + } + return nil +} + +func (x *IcebergData) GetConfig() *IcebergConfig { + if x != nil { + return x.Config + } + return nil +} + +func (x *IcebergData) GetColumns() []*GNFColumn { + if x != nil { + return x.Columns + } + return nil +} + +func (x *IcebergData) GetToSnapshot() string { + if x != nil && x.ToSnapshot != nil { + return *x.ToSnapshot + } + return "" +} + +type IcebergLocator struct { + state protoimpl.MessageState `protogen:"open.v1"` + TableName string `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + Namespace []string `protobuf:"bytes,2,rep,name=namespace,proto3" json:"namespace,omitempty"` + Warehouse string `protobuf:"bytes,3,opt,name=warehouse,proto3" json:"warehouse,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *IcebergLocator) Reset() { + *x = IcebergLocator{} + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IcebergLocator) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IcebergLocator) ProtoMessage() {} + +func (x *IcebergLocator) ProtoReflect() protoreflect.Message { + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[47] + 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 IcebergLocator.ProtoReflect.Descriptor instead. +func (*IcebergLocator) Descriptor() ([]byte, []int) { + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{47} +} + +func (x *IcebergLocator) GetTableName() string { + if x != nil { + return x.TableName + } + return "" +} + +func (x *IcebergLocator) GetNamespace() []string { + if x != nil { + return x.Namespace + } + return nil +} + +func (x *IcebergLocator) GetWarehouse() string { + if x != nil { + return x.Warehouse + } + return "" +} + +type IcebergConfig struct { + state protoimpl.MessageState `protogen:"open.v1"` + CatalogUri string `protobuf:"bytes,1,opt,name=catalog_uri,json=catalogUri,proto3" json:"catalog_uri,omitempty"` + Scope *string `protobuf:"bytes,2,opt,name=scope,proto3,oneof" json:"scope,omitempty"` + Properties map[string]string `protobuf:"bytes,3,rep,name=properties,proto3" json:"properties,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Credentials map[string]string `protobuf:"bytes,4,rep,name=credentials,proto3" json:"credentials,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *IcebergConfig) Reset() { + *x = IcebergConfig{} + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IcebergConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IcebergConfig) ProtoMessage() {} + +func (x *IcebergConfig) ProtoReflect() protoreflect.Message { + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[48] + 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 IcebergConfig.ProtoReflect.Descriptor instead. +func (*IcebergConfig) Descriptor() ([]byte, []int) { + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{48} +} + +func (x *IcebergConfig) GetCatalogUri() string { + if x != nil { + return x.CatalogUri + } + return "" +} + +func (x *IcebergConfig) GetScope() string { + if x != nil && x.Scope != nil { + return *x.Scope + } + return "" +} + +func (x *IcebergConfig) GetProperties() map[string]string { + if x != nil { + return x.Properties + } + return nil +} + +func (x *IcebergConfig) GetCredentials() map[string]string { + if x != nil { + return x.Credentials + } + return nil +} + type GNFColumn struct { state protoimpl.MessageState `protogen:"open.v1"` ColumnPath []string `protobuf:"bytes,1,rep,name=column_path,json=columnPath,proto3" json:"column_path,omitempty"` // Column identifier path (was: string column_name) @@ -3174,7 +3386,7 @@ type GNFColumn struct { func (x *GNFColumn) Reset() { *x = GNFColumn{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[46] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3186,7 +3398,7 @@ func (x *GNFColumn) String() string { func (*GNFColumn) ProtoMessage() {} func (x *GNFColumn) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[46] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[49] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3199,7 +3411,7 @@ func (x *GNFColumn) ProtoReflect() protoreflect.Message { // Deprecated: Use GNFColumn.ProtoReflect.Descriptor instead. func (*GNFColumn) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{46} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{49} } func (x *GNFColumn) GetColumnPath() []string { @@ -3234,7 +3446,7 @@ type RelationId struct { func (x *RelationId) Reset() { *x = RelationId{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[47] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3246,7 +3458,7 @@ func (x *RelationId) String() string { func (*RelationId) ProtoMessage() {} func (x *RelationId) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[47] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[50] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3259,7 +3471,7 @@ func (x *RelationId) ProtoReflect() protoreflect.Message { // Deprecated: Use RelationId.ProtoReflect.Descriptor instead. func (*RelationId) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{47} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{50} } func (x *RelationId) GetIdLow() uint64 { @@ -3301,7 +3513,7 @@ type Type struct { func (x *Type) Reset() { *x = Type{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[48] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3313,7 +3525,7 @@ func (x *Type) String() string { func (*Type) ProtoMessage() {} func (x *Type) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[48] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[51] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3326,7 +3538,7 @@ func (x *Type) ProtoReflect() protoreflect.Message { // Deprecated: Use Type.ProtoReflect.Descriptor instead. func (*Type) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{48} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{51} } func (x *Type) GetType() isType_Type { @@ -3558,7 +3770,7 @@ type UnspecifiedType struct { func (x *UnspecifiedType) Reset() { *x = UnspecifiedType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[49] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3570,7 +3782,7 @@ func (x *UnspecifiedType) String() string { func (*UnspecifiedType) ProtoMessage() {} func (x *UnspecifiedType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[49] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[52] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3583,7 +3795,7 @@ func (x *UnspecifiedType) ProtoReflect() protoreflect.Message { // Deprecated: Use UnspecifiedType.ProtoReflect.Descriptor instead. func (*UnspecifiedType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{49} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{52} } type StringType struct { @@ -3594,7 +3806,7 @@ type StringType struct { func (x *StringType) Reset() { *x = StringType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[50] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3606,7 +3818,7 @@ func (x *StringType) String() string { func (*StringType) ProtoMessage() {} func (x *StringType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[50] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[53] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3619,7 +3831,7 @@ func (x *StringType) ProtoReflect() protoreflect.Message { // Deprecated: Use StringType.ProtoReflect.Descriptor instead. func (*StringType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{50} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{53} } type IntType struct { @@ -3630,7 +3842,7 @@ type IntType struct { func (x *IntType) Reset() { *x = IntType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[51] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3642,7 +3854,7 @@ func (x *IntType) String() string { func (*IntType) ProtoMessage() {} func (x *IntType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[51] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[54] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3655,7 +3867,7 @@ func (x *IntType) ProtoReflect() protoreflect.Message { // Deprecated: Use IntType.ProtoReflect.Descriptor instead. func (*IntType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{51} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{54} } type FloatType struct { @@ -3666,7 +3878,7 @@ type FloatType struct { func (x *FloatType) Reset() { *x = FloatType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[52] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3678,7 +3890,7 @@ func (x *FloatType) String() string { func (*FloatType) ProtoMessage() {} func (x *FloatType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[52] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[55] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3691,7 +3903,7 @@ func (x *FloatType) ProtoReflect() protoreflect.Message { // Deprecated: Use FloatType.ProtoReflect.Descriptor instead. func (*FloatType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{52} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{55} } type UInt128Type struct { @@ -3702,7 +3914,7 @@ type UInt128Type struct { func (x *UInt128Type) Reset() { *x = UInt128Type{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[53] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3714,7 +3926,7 @@ func (x *UInt128Type) String() string { func (*UInt128Type) ProtoMessage() {} func (x *UInt128Type) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[53] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[56] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3727,7 +3939,7 @@ func (x *UInt128Type) ProtoReflect() protoreflect.Message { // Deprecated: Use UInt128Type.ProtoReflect.Descriptor instead. func (*UInt128Type) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{53} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{56} } type Int128Type struct { @@ -3738,7 +3950,7 @@ type Int128Type struct { func (x *Int128Type) Reset() { *x = Int128Type{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[54] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3750,7 +3962,7 @@ func (x *Int128Type) String() string { func (*Int128Type) ProtoMessage() {} func (x *Int128Type) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[54] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[57] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3763,7 +3975,7 @@ func (x *Int128Type) ProtoReflect() protoreflect.Message { // Deprecated: Use Int128Type.ProtoReflect.Descriptor instead. func (*Int128Type) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{54} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{57} } type DateType struct { @@ -3774,7 +3986,7 @@ type DateType struct { func (x *DateType) Reset() { *x = DateType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[55] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3786,7 +3998,7 @@ func (x *DateType) String() string { func (*DateType) ProtoMessage() {} func (x *DateType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[55] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[58] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3799,7 +4011,7 @@ func (x *DateType) ProtoReflect() protoreflect.Message { // Deprecated: Use DateType.ProtoReflect.Descriptor instead. func (*DateType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{55} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{58} } type DateTimeType struct { @@ -3810,7 +4022,7 @@ type DateTimeType struct { func (x *DateTimeType) Reset() { *x = DateTimeType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[56] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3822,7 +4034,7 @@ func (x *DateTimeType) String() string { func (*DateTimeType) ProtoMessage() {} func (x *DateTimeType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[56] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[59] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3835,7 +4047,7 @@ func (x *DateTimeType) ProtoReflect() protoreflect.Message { // Deprecated: Use DateTimeType.ProtoReflect.Descriptor instead. func (*DateTimeType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{56} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{59} } type MissingType struct { @@ -3846,7 +4058,7 @@ type MissingType struct { func (x *MissingType) Reset() { *x = MissingType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[57] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3858,7 +4070,7 @@ func (x *MissingType) String() string { func (*MissingType) ProtoMessage() {} func (x *MissingType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[57] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[60] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3871,7 +4083,7 @@ func (x *MissingType) ProtoReflect() protoreflect.Message { // Deprecated: Use MissingType.ProtoReflect.Descriptor instead. func (*MissingType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{57} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{60} } type DecimalType struct { @@ -3884,7 +4096,7 @@ type DecimalType struct { func (x *DecimalType) Reset() { *x = DecimalType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[58] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3896,7 +4108,7 @@ func (x *DecimalType) String() string { func (*DecimalType) ProtoMessage() {} func (x *DecimalType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[58] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[61] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3909,7 +4121,7 @@ func (x *DecimalType) ProtoReflect() protoreflect.Message { // Deprecated: Use DecimalType.ProtoReflect.Descriptor instead. func (*DecimalType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{58} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{61} } func (x *DecimalType) GetPrecision() int32 { @@ -3934,7 +4146,7 @@ type BooleanType struct { func (x *BooleanType) Reset() { *x = BooleanType{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[59] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3946,7 +4158,7 @@ func (x *BooleanType) String() string { func (*BooleanType) ProtoMessage() {} func (x *BooleanType) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[59] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[62] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3959,7 +4171,7 @@ func (x *BooleanType) ProtoReflect() protoreflect.Message { // Deprecated: Use BooleanType.ProtoReflect.Descriptor instead. func (*BooleanType) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{59} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{62} } type Int32Type struct { @@ -3970,7 +4182,7 @@ type Int32Type struct { func (x *Int32Type) Reset() { *x = Int32Type{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[60] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3982,7 +4194,7 @@ func (x *Int32Type) String() string { func (*Int32Type) ProtoMessage() {} func (x *Int32Type) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[60] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[63] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3995,7 +4207,7 @@ func (x *Int32Type) ProtoReflect() protoreflect.Message { // Deprecated: Use Int32Type.ProtoReflect.Descriptor instead. func (*Int32Type) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{60} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{63} } type Float32Type struct { @@ -4006,7 +4218,7 @@ type Float32Type struct { func (x *Float32Type) Reset() { *x = Float32Type{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[61] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4018,7 +4230,7 @@ func (x *Float32Type) String() string { func (*Float32Type) ProtoMessage() {} func (x *Float32Type) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[61] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[64] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4031,7 +4243,7 @@ func (x *Float32Type) ProtoReflect() protoreflect.Message { // Deprecated: Use Float32Type.ProtoReflect.Descriptor instead. func (*Float32Type) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{61} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{64} } type UInt32Type struct { @@ -4042,7 +4254,7 @@ type UInt32Type struct { func (x *UInt32Type) Reset() { *x = UInt32Type{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[62] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4054,7 +4266,7 @@ func (x *UInt32Type) String() string { func (*UInt32Type) ProtoMessage() {} func (x *UInt32Type) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[62] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[65] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4067,7 +4279,7 @@ func (x *UInt32Type) ProtoReflect() protoreflect.Message { // Deprecated: Use UInt32Type.ProtoReflect.Descriptor instead. func (*UInt32Type) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{62} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{65} } type Value struct { @@ -4094,7 +4306,7 @@ type Value struct { func (x *Value) Reset() { *x = Value{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[63] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4106,7 +4318,7 @@ func (x *Value) String() string { func (*Value) ProtoMessage() {} func (x *Value) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[63] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[66] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4119,7 +4331,7 @@ func (x *Value) ProtoReflect() protoreflect.Message { // Deprecated: Use Value.ProtoReflect.Descriptor instead. func (*Value) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{63} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{66} } func (x *Value) GetValue() isValue_Value { @@ -4338,7 +4550,7 @@ type UInt128Value struct { func (x *UInt128Value) Reset() { *x = UInt128Value{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[64] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4350,7 +4562,7 @@ func (x *UInt128Value) String() string { func (*UInt128Value) ProtoMessage() {} func (x *UInt128Value) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[64] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[67] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4363,7 +4575,7 @@ func (x *UInt128Value) ProtoReflect() protoreflect.Message { // Deprecated: Use UInt128Value.ProtoReflect.Descriptor instead. func (*UInt128Value) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{64} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{67} } func (x *UInt128Value) GetLow() uint64 { @@ -4390,7 +4602,7 @@ type Int128Value struct { func (x *Int128Value) Reset() { *x = Int128Value{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[65] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4402,7 +4614,7 @@ func (x *Int128Value) String() string { func (*Int128Value) ProtoMessage() {} func (x *Int128Value) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[65] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[68] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4415,7 +4627,7 @@ func (x *Int128Value) ProtoReflect() protoreflect.Message { // Deprecated: Use Int128Value.ProtoReflect.Descriptor instead. func (*Int128Value) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{65} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{68} } func (x *Int128Value) GetLow() uint64 { @@ -4440,7 +4652,7 @@ type MissingValue struct { func (x *MissingValue) Reset() { *x = MissingValue{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[66] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4452,7 +4664,7 @@ func (x *MissingValue) String() string { func (*MissingValue) ProtoMessage() {} func (x *MissingValue) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[66] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[69] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4465,7 +4677,7 @@ func (x *MissingValue) ProtoReflect() protoreflect.Message { // Deprecated: Use MissingValue.ProtoReflect.Descriptor instead. func (*MissingValue) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{66} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{69} } type DateValue struct { @@ -4479,7 +4691,7 @@ type DateValue struct { func (x *DateValue) Reset() { *x = DateValue{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[67] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4491,7 +4703,7 @@ func (x *DateValue) String() string { func (*DateValue) ProtoMessage() {} func (x *DateValue) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[67] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[70] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4504,7 +4716,7 @@ func (x *DateValue) ProtoReflect() protoreflect.Message { // Deprecated: Use DateValue.ProtoReflect.Descriptor instead. func (*DateValue) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{67} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{70} } func (x *DateValue) GetYear() int32 { @@ -4545,7 +4757,7 @@ type DateTimeValue struct { func (x *DateTimeValue) Reset() { *x = DateTimeValue{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[68] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4557,7 +4769,7 @@ func (x *DateTimeValue) String() string { func (*DateTimeValue) ProtoMessage() {} func (x *DateTimeValue) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[68] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[71] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4570,7 +4782,7 @@ func (x *DateTimeValue) ProtoReflect() protoreflect.Message { // Deprecated: Use DateTimeValue.ProtoReflect.Descriptor instead. func (*DateTimeValue) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{68} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{71} } func (x *DateTimeValue) GetYear() int32 { @@ -4633,7 +4845,7 @@ type DecimalValue struct { func (x *DecimalValue) Reset() { *x = DecimalValue{} - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[69] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4645,7 +4857,7 @@ func (x *DecimalValue) String() string { func (*DecimalValue) ProtoMessage() {} func (x *DecimalValue) ProtoReflect() protoreflect.Message { - mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[69] + mi := &file_relationalai_lqp_v1_logic_proto_msgTypes[72] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4658,7 +4870,7 @@ func (x *DecimalValue) ProtoReflect() protoreflect.Message { // Deprecated: Use DecimalValue.ProtoReflect.Descriptor instead. func (*DecimalValue) Descriptor() ([]byte, []int) { - return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{69} + return file_relationalai_lqp_v1_logic_proto_rawDescGZIP(), []int{72} } func (x *DecimalValue) GetPrecision() int32 { @@ -5024,7 +5236,7 @@ var file_relationalai_lqp_v1_logic_proto_rawDesc = string([]byte{ 0x65, 0x12, 0x2e, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 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, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x61, 0x72, 0x67, - 0x73, 0x22, 0xcc, 0x01, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2c, 0x0a, 0x03, 0x65, 0x64, + 0x73, 0x22, 0x93, 0x02, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2c, 0x0a, 0x03, 0x65, 0x64, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x44, 0x42, 0x48, 0x00, 0x52, 0x03, 0x65, 0x64, 0x62, 0x12, 0x4e, 0x0a, 0x0f, 0x62, 0x65, 0x74, 0x72, @@ -5036,279 +5248,330 @@ var file_relationalai_lqp_v1_logic_proto_rawDesc = string([]byte{ 0x64, 0x61, 0x74, 0x61, 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, 0x43, 0x53, 0x56, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x07, 0x63, 0x73, 0x76, 0x44, - 0x61, 0x74, 0x61, 0x42, 0x0b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x22, 0x88, 0x01, 0x0a, 0x03, 0x45, 0x44, 0x42, 0x12, 0x3c, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 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, 0x08, 0x74, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 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, 0x8b, 0x01, 0x0a, 0x0e, - 0x42, 0x65, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 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, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x69, 0x6e, 0x66, 0x6f, 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, 0x42, 0x65, 0x54, 0x72, 0x65, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x72, 0x65, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x9f, 0x02, 0x0a, 0x0a, 0x42, 0x65, - 0x54, 0x72, 0x65, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x36, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 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, 0x08, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x73, - 0x12, 0x3a, 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, - 0x02, 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, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x0e, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 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, 0x42, 0x65, 0x54, 0x72, 0x65, - 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4d, 0x0a, 0x10, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x05, 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, 0x42, 0x65, 0x54, 0x72, 0x65, 0x65, 0x4c, 0x6f, 0x63, - 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0f, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x6f, - 0x63, 0x61, 0x74, 0x6f, 0x72, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0x81, 0x01, 0x0a, 0x0c, - 0x42, 0x65, 0x54, 0x72, 0x65, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, - 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x65, - 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x69, - 0x76, 0x6f, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x50, - 0x69, 0x76, 0x6f, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x65, 0x6c, - 0x74, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x44, 0x65, - 0x6c, 0x74, 0x61, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x61, 0x78, 0x5f, 0x6c, 0x65, 0x61, 0x66, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x4c, 0x65, 0x61, 0x66, 0x22, - 0xca, 0x01, 0x0a, 0x0d, 0x42, 0x65, 0x54, 0x72, 0x65, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, - 0x72, 0x12, 0x44, 0x0a, 0x0b, 0x72, 0x6f, 0x6f, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x69, 0x64, - 0x18, 0x01, 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, 0x0a, 0x72, 0x6f, 0x6f, - 0x74, 0x50, 0x61, 0x67, 0x65, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x6c, 0x69, 0x6e, - 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, - 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x6c, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0c, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x1f, 0x0a, 0x0b, 0x74, 0x72, 0x65, 0x65, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x72, 0x65, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x42, 0x0a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xca, 0x01, 0x0a, - 0x07, 0x43, 0x53, 0x56, 0x44, 0x61, 0x74, 0x61, 0x12, 0x39, 0x0a, 0x07, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, + 0x61, 0x74, 0x61, 0x12, 0x45, 0x0a, 0x0c, 0x69, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x04, 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, - 0x43, 0x53, 0x56, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x07, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x6f, 0x72, 0x12, 0x36, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 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, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x38, 0x0a, 0x07, 0x63, - 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 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, 0x47, 0x4e, 0x46, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x73, 0x6f, 0x66, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x73, 0x6f, 0x66, 0x22, 0x43, 0x0a, 0x0a, 0x43, 0x53, 0x56, - 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x12, 0x1f, 0x0a, - 0x0b, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x0a, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, 0x61, 0x22, 0x8f, - 0x03, 0x0a, 0x09, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x72, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x09, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x73, - 0x6b, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x6b, 0x69, 0x70, 0x12, - 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, - 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x71, 0x75, 0x6f, 0x74, - 0x65, 0x63, 0x68, 0x61, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x71, 0x75, 0x6f, - 0x74, 0x65, 0x63, 0x68, 0x61, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, - 0x63, 0x68, 0x61, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x73, 0x63, 0x61, - 0x70, 0x65, 0x63, 0x68, 0x61, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, - 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, - 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6e, 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x63, - 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x53, 0x65, 0x70, - 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, - 0x6e, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, - 0x6e, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x6d, 0x62, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0f, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x69, 0x7a, 0x65, 0x4d, 0x62, - 0x22, 0xae, 0x01, 0x0a, 0x09, 0x47, 0x4e, 0x46, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1f, - 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x50, 0x61, 0x74, 0x68, 0x12, - 0x41, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x44, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x0b, 0x69, + 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x44, 0x61, 0x74, 0x61, 0x42, 0x0b, 0x0a, 0x09, 0x64, 0x61, + 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x03, 0x45, 0x44, 0x42, 0x12, + 0x3c, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 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, 0x48, 0x00, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 0x88, - 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, - 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, - 0x64, 0x22, 0x3c, 0x0a, 0x0a, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x15, 0x0a, 0x06, 0x69, 0x64, 0x5f, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, - 0x05, 0x69, 0x64, 0x4c, 0x6f, 0x77, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x68, 0x69, 0x67, - 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x69, 0x64, 0x48, 0x69, 0x67, 0x68, 0x22, - 0xd5, 0x07, 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, 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, + 0x6e, 0x49, 0x64, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, + 0x68, 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, 0x8b, 0x01, 0x0a, 0x0e, 0x42, 0x65, 0x54, 0x72, 0x65, 0x65, 0x52, 0x65, 0x6c, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 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, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x72, 0x65, + 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 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, 0x42, 0x65, 0x54, 0x72, 0x65, 0x65, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, + 0x22, 0x9f, 0x02, 0x0a, 0x0a, 0x42, 0x65, 0x54, 0x72, 0x65, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x36, 0x0a, 0x09, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 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, 0x08, 0x6b, + 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x3a, 0x0a, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x02, 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, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, + 0x70, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x0e, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 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, 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, + 0x31, 0x2e, 0x42, 0x65, 0x54, 0x72, 0x65, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, + 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4d, 0x0a, + 0x10, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x6f, + 0x72, 0x18, 0x05, 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, 0x42, 0x65, + 0x54, 0x72, 0x65, 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x0f, 0x72, 0x65, 0x6c, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x4a, 0x04, 0x08, 0x03, + 0x10, 0x04, 0x22, 0x81, 0x01, 0x0a, 0x0c, 0x42, 0x65, 0x54, 0x72, 0x65, 0x65, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, + 0x0a, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x69, 0x76, 0x6f, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x50, 0x69, 0x76, 0x6f, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, + 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x09, 0x6d, 0x61, 0x78, 0x44, 0x65, 0x6c, 0x74, 0x61, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6d, + 0x61, 0x78, 0x5f, 0x6c, 0x65, 0x61, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, + 0x61, 0x78, 0x4c, 0x65, 0x61, 0x66, 0x22, 0xca, 0x01, 0x0a, 0x0d, 0x42, 0x65, 0x54, 0x72, 0x65, + 0x65, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x44, 0x0a, 0x0b, 0x72, 0x6f, 0x6f, 0x74, + 0x5f, 0x70, 0x61, 0x67, 0x65, 0x69, 0x64, 0x18, 0x01, 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, 0x0a, 0x72, 0x6f, 0x6f, 0x74, 0x50, 0x61, 0x67, 0x65, 0x69, 0x64, 0x12, 0x21, + 0x0a, 0x0b, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x44, 0x61, 0x74, + 0x61, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x72, 0x65, 0x65, 0x5f, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x72, 0x65, + 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x0a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0xca, 0x01, 0x0a, 0x07, 0x43, 0x53, 0x56, 0x44, 0x61, 0x74, 0x61, 0x12, + 0x39, 0x0a, 0x07, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 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, 0x43, 0x53, 0x56, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, + 0x72, 0x52, 0x07, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x36, 0x0a, 0x06, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 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, 0x06, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x38, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, + 0x03, 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, 0x47, 0x4e, 0x46, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, + 0x61, 0x73, 0x6f, 0x66, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x73, 0x6f, 0x66, + 0x22, 0x43, 0x0a, 0x0a, 0x43, 0x53, 0x56, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x14, + 0x0a, 0x05, 0x70, 0x61, 0x74, 0x68, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x70, + 0x61, 0x74, 0x68, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x69, 0x6e, 0x6c, 0x69, 0x6e, + 0x65, 0x44, 0x61, 0x74, 0x61, 0x22, 0x8f, 0x03, 0x0a, 0x09, 0x43, 0x53, 0x56, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x72, 0x6f, + 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, + 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6b, 0x69, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x04, 0x73, 0x6b, 0x69, 0x70, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x65, 0x77, 0x5f, 0x6c, 0x69, + 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x77, 0x4c, 0x69, 0x6e, + 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x12, + 0x1c, 0x0a, 0x09, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x63, 0x68, 0x61, 0x72, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x71, 0x75, 0x6f, 0x74, 0x65, 0x63, 0x68, 0x61, 0x72, 0x12, 0x1e, 0x0a, + 0x0a, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x63, 0x68, 0x61, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x65, 0x73, 0x63, 0x61, 0x70, 0x65, 0x63, 0x68, 0x61, 0x72, 0x12, 0x18, 0x0a, + 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0e, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, + 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x70, 0x61, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, 0x63, + 0x69, 0x6d, 0x61, 0x6c, 0x53, 0x65, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, + 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, + 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 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, 0xf8, 0x01, 0x0a, 0x0b, 0x49, 0x63, 0x65, 0x62, + 0x65, 0x72, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3d, 0x0a, 0x07, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, + 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x07, 0x6c, + 0x6f, 0x63, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x3a, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x18, 0x02, 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, 0x49, 0x63, 0x65, + 0x62, 0x65, 0x72, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x38, 0x0a, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x03, 0x20, + 0x03, 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, 0x47, 0x4e, 0x46, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x52, 0x07, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x24, 0x0a, 0x0b, + 0x74, 0x6f, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x6f, 0x53, 0x6e, 0x61, 0x70, 0x73, 0x68, 0x6f, 0x74, 0x88, + 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x6e, 0x61, 0x70, 0x73, 0x68, + 0x6f, 0x74, 0x22, 0x6b, 0x0a, 0x0e, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x4c, 0x6f, 0x63, + 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x77, 0x61, 0x72, 0x65, 0x68, 0x6f, 0x75, 0x73, 0x65, 0x22, + 0xff, 0x02, 0x0a, 0x0d, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x75, 0x72, 0x69, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x55, + 0x72, 0x69, 0x12, 0x19, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x52, 0x0a, + 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x32, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, + 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x63, 0x65, 0x62, 0x65, 0x72, 0x67, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x69, 0x65, + 0x73, 0x12, 0x55, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x63, 0x65, + 0x62, 0x65, 0x72, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x63, 0x72, 0x65, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x70, + 0x65, 0x72, 0x74, 0x69, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x63, 0x6f, 0x70, + 0x65, 0x22, 0xae, 0x01, 0x0a, 0x09, 0x47, 0x4e, 0x46, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, + 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x50, 0x61, 0x74, 0x68, + 0x12, 0x41, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x48, 0x00, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, + 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, + 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, + 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x0a, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, + 0x12, 0x15, 0x0a, 0x06, 0x69, 0x64, 0x5f, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, + 0x52, 0x05, 0x69, 0x64, 0x4c, 0x6f, 0x77, 0x12, 0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x68, 0x69, + 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x06, 0x69, 0x64, 0x48, 0x69, 0x67, 0x68, + 0x22, 0xd5, 0x07, 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, 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, 0x12, 0x3f, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x0c, 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, 0x49, 0x6e, - 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x33, 0x32, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, + 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, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, - 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0b, 0x75, - 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 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, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, - 0x65, 0x48, 0x00, 0x52, 0x0a, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 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, 0x0b, 0x0a, 0x09, 0x49, 0x6e, - 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x46, 0x6c, 0x6f, 0x61, 0x74, - 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, - 0x54, 0x79, 0x70, 0x65, 0x22, 0xc0, 0x05, 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, + 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, 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, + 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x48, + 0x00, 0x52, 0x0c, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x45, 0x0a, 0x0c, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x73, 0x73, + 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, + 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, + 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, + 0x52, 0x0b, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, + 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x65, 0x61, + 0x6e, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x0c, 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, 0x49, + 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x33, + 0x32, 0x54, 0x79, 0x70, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0d, 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, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, + 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x12, 0x42, 0x0a, 0x0b, + 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 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, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, + 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 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, 0x0b, 0x0a, 0x09, 0x49, + 0x6e, 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0d, 0x0a, 0x0b, 0x46, 0x6c, 0x6f, 0x61, + 0x74, 0x33, 0x32, 0x54, 0x79, 0x70, 0x65, 0x22, 0x0c, 0x0a, 0x0a, 0x55, 0x49, 0x6e, 0x74, 0x33, + 0x32, 0x54, 0x79, 0x70, 0x65, 0x22, 0xc0, 0x05, 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, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x3f, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, - 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x72, 0x65, 0x6c, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, - 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, - 0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x48, - 0x0a, 0x0d, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, - 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x65, 0x63, 0x69, - 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, 0x6c, - 0x65, 0x61, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x48, - 0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, - 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0c, 0x66, 0x6c, 0x6f, - 0x61, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x75, 0x69, 0x6e, - 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x48, - 0x00, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x07, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x34, 0x0a, 0x0c, 0x55, 0x49, 0x6e, 0x74, 0x31, - 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, 0x67, - 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x04, 0x68, 0x69, 0x67, 0x68, 0x22, 0x33, 0x0a, - 0x0b, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, - 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x12, - 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x04, 0x68, 0x69, - 0x67, 0x68, 0x22, 0x0e, 0x0a, 0x0c, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x22, 0x47, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x79, 0x65, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x79, - 0x65, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x79, 0x22, 0xb1, 0x01, 0x0a, 0x0d, - 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x79, 0x65, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x79, 0x65, 0x61, - 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x75, - 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x68, 0x6f, 0x75, 0x72, 0x12, 0x16, 0x0a, - 0x06, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, - 0x69, 0x6e, 0x75, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x12, 0x20, 0x0a, - 0x0b, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x22, - 0x7a, 0x0a, 0x0c, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, - 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, - 0x61, 0x6c, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, - 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x43, 0x5a, 0x41, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x61, 0x6c, 0x41, 0x49, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2d, 0x71, - 0x75, 0x65, 0x72, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, 0x64, - 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x6c, 0x71, 0x70, 0x2f, 0x76, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x48, 0x00, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x45, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, + 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x69, 0x6e, 0x74, 0x31, + 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x48, 0x0a, 0x0d, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, + 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x48, 0x00, 0x52, 0x0c, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x61, 0x74, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x72, 0x65, 0x6c, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, + 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x48, 0x0a, 0x0d, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, + 0x69, 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x65, 0x63, + 0x69, 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x62, 0x6f, 0x6f, + 0x6c, 0x65, 0x61, 0x6e, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, + 0x48, 0x00, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x21, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0d, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x33, 0x32, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0c, 0x66, 0x6c, + 0x6f, 0x61, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x75, 0x69, + 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, + 0x48, 0x00, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, + 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x34, 0x0a, 0x0c, 0x55, 0x49, 0x6e, 0x74, + 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x77, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x69, + 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x04, 0x68, 0x69, 0x67, 0x68, 0x22, 0x33, + 0x0a, 0x0b, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, + 0x03, 0x6c, 0x6f, 0x77, 0x18, 0x01, 0x20, 0x01, 0x28, 0x06, 0x52, 0x03, 0x6c, 0x6f, 0x77, 0x12, + 0x12, 0x0a, 0x04, 0x68, 0x69, 0x67, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x52, 0x04, 0x68, + 0x69, 0x67, 0x68, 0x22, 0x0e, 0x0a, 0x0c, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x22, 0x47, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x79, 0x65, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, + 0x79, 0x65, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, + 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x79, 0x22, 0xb1, 0x01, 0x0a, + 0x0d, 0x44, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x79, 0x65, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x79, 0x65, + 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x05, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, + 0x75, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x68, 0x6f, 0x75, 0x72, 0x12, 0x16, + 0x0a, 0x06, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, + 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x12, 0x20, + 0x0a, 0x0b, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, + 0x22, 0x7a, 0x0a, 0x0c, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, + 0x0a, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, + 0x63, 0x61, 0x6c, 0x65, 0x12, 0x36, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x61, 0x69, 0x2e, 0x6c, 0x71, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x31, 0x32, 0x38, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x43, 0x5a, 0x41, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x6c, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x41, 0x49, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x2d, + 0x71, 0x75, 0x65, 0x72, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x73, + 0x64, 0x6b, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x6c, 0x71, 0x70, 0x2f, 0x76, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, }) var ( @@ -5323,7 +5586,7 @@ func file_relationalai_lqp_v1_logic_proto_rawDescGZIP() []byte { return file_relationalai_lqp_v1_logic_proto_rawDescData } -var file_relationalai_lqp_v1_logic_proto_msgTypes = make([]protoimpl.MessageInfo, 70) +var file_relationalai_lqp_v1_logic_proto_msgTypes = make([]protoimpl.MessageInfo, 75) var file_relationalai_lqp_v1_logic_proto_goTypes = []any{ (*Declaration)(nil), // 0: relationalai.lqp.v1.Declaration (*Def)(nil), // 1: relationalai.lqp.v1.Def @@ -5371,45 +5634,50 @@ var file_relationalai_lqp_v1_logic_proto_goTypes = []any{ (*CSVData)(nil), // 43: relationalai.lqp.v1.CSVData (*CSVLocator)(nil), // 44: relationalai.lqp.v1.CSVLocator (*CSVConfig)(nil), // 45: relationalai.lqp.v1.CSVConfig - (*GNFColumn)(nil), // 46: relationalai.lqp.v1.GNFColumn - (*RelationId)(nil), // 47: relationalai.lqp.v1.RelationId - (*Type)(nil), // 48: relationalai.lqp.v1.Type - (*UnspecifiedType)(nil), // 49: relationalai.lqp.v1.UnspecifiedType - (*StringType)(nil), // 50: relationalai.lqp.v1.StringType - (*IntType)(nil), // 51: relationalai.lqp.v1.IntType - (*FloatType)(nil), // 52: relationalai.lqp.v1.FloatType - (*UInt128Type)(nil), // 53: relationalai.lqp.v1.UInt128Type - (*Int128Type)(nil), // 54: relationalai.lqp.v1.Int128Type - (*DateType)(nil), // 55: relationalai.lqp.v1.DateType - (*DateTimeType)(nil), // 56: relationalai.lqp.v1.DateTimeType - (*MissingType)(nil), // 57: relationalai.lqp.v1.MissingType - (*DecimalType)(nil), // 58: relationalai.lqp.v1.DecimalType - (*BooleanType)(nil), // 59: relationalai.lqp.v1.BooleanType - (*Int32Type)(nil), // 60: relationalai.lqp.v1.Int32Type - (*Float32Type)(nil), // 61: relationalai.lqp.v1.Float32Type - (*UInt32Type)(nil), // 62: relationalai.lqp.v1.UInt32Type - (*Value)(nil), // 63: relationalai.lqp.v1.Value - (*UInt128Value)(nil), // 64: relationalai.lqp.v1.UInt128Value - (*Int128Value)(nil), // 65: relationalai.lqp.v1.Int128Value - (*MissingValue)(nil), // 66: relationalai.lqp.v1.MissingValue - (*DateValue)(nil), // 67: relationalai.lqp.v1.DateValue - (*DateTimeValue)(nil), // 68: relationalai.lqp.v1.DateTimeValue - (*DecimalValue)(nil), // 69: relationalai.lqp.v1.DecimalValue + (*IcebergData)(nil), // 46: relationalai.lqp.v1.IcebergData + (*IcebergLocator)(nil), // 47: relationalai.lqp.v1.IcebergLocator + (*IcebergConfig)(nil), // 48: relationalai.lqp.v1.IcebergConfig + (*GNFColumn)(nil), // 49: relationalai.lqp.v1.GNFColumn + (*RelationId)(nil), // 50: relationalai.lqp.v1.RelationId + (*Type)(nil), // 51: relationalai.lqp.v1.Type + (*UnspecifiedType)(nil), // 52: relationalai.lqp.v1.UnspecifiedType + (*StringType)(nil), // 53: relationalai.lqp.v1.StringType + (*IntType)(nil), // 54: relationalai.lqp.v1.IntType + (*FloatType)(nil), // 55: relationalai.lqp.v1.FloatType + (*UInt128Type)(nil), // 56: relationalai.lqp.v1.UInt128Type + (*Int128Type)(nil), // 57: relationalai.lqp.v1.Int128Type + (*DateType)(nil), // 58: relationalai.lqp.v1.DateType + (*DateTimeType)(nil), // 59: relationalai.lqp.v1.DateTimeType + (*MissingType)(nil), // 60: relationalai.lqp.v1.MissingType + (*DecimalType)(nil), // 61: relationalai.lqp.v1.DecimalType + (*BooleanType)(nil), // 62: relationalai.lqp.v1.BooleanType + (*Int32Type)(nil), // 63: relationalai.lqp.v1.Int32Type + (*Float32Type)(nil), // 64: relationalai.lqp.v1.Float32Type + (*UInt32Type)(nil), // 65: relationalai.lqp.v1.UInt32Type + (*Value)(nil), // 66: relationalai.lqp.v1.Value + (*UInt128Value)(nil), // 67: relationalai.lqp.v1.UInt128Value + (*Int128Value)(nil), // 68: relationalai.lqp.v1.Int128Value + (*MissingValue)(nil), // 69: relationalai.lqp.v1.MissingValue + (*DateValue)(nil), // 70: relationalai.lqp.v1.DateValue + (*DateTimeValue)(nil), // 71: relationalai.lqp.v1.DateTimeValue + (*DecimalValue)(nil), // 72: relationalai.lqp.v1.DecimalValue + nil, // 73: relationalai.lqp.v1.IcebergConfig.PropertiesEntry + nil, // 74: relationalai.lqp.v1.IcebergConfig.CredentialsEntry } var file_relationalai_lqp_v1_logic_proto_depIdxs = []int32{ 1, // 0: relationalai.lqp.v1.Declaration.def:type_name -> relationalai.lqp.v1.Def 4, // 1: relationalai.lqp.v1.Declaration.algorithm:type_name -> relationalai.lqp.v1.Algorithm 2, // 2: relationalai.lqp.v1.Declaration.constraint:type_name -> relationalai.lqp.v1.Constraint 37, // 3: relationalai.lqp.v1.Declaration.data:type_name -> relationalai.lqp.v1.Data - 47, // 4: relationalai.lqp.v1.Def.name:type_name -> relationalai.lqp.v1.RelationId + 50, // 4: relationalai.lqp.v1.Def.name:type_name -> relationalai.lqp.v1.RelationId 20, // 5: relationalai.lqp.v1.Def.body:type_name -> relationalai.lqp.v1.Abstraction 36, // 6: relationalai.lqp.v1.Def.attrs:type_name -> relationalai.lqp.v1.Attribute - 47, // 7: relationalai.lqp.v1.Constraint.name:type_name -> relationalai.lqp.v1.RelationId + 50, // 7: relationalai.lqp.v1.Constraint.name:type_name -> relationalai.lqp.v1.RelationId 3, // 8: relationalai.lqp.v1.Constraint.functional_dependency:type_name -> relationalai.lqp.v1.FunctionalDependency 20, // 9: relationalai.lqp.v1.FunctionalDependency.guard:type_name -> relationalai.lqp.v1.Abstraction 35, // 10: relationalai.lqp.v1.FunctionalDependency.keys:type_name -> relationalai.lqp.v1.Var 35, // 11: relationalai.lqp.v1.FunctionalDependency.values:type_name -> relationalai.lqp.v1.Var - 47, // 12: relationalai.lqp.v1.Algorithm.global:type_name -> relationalai.lqp.v1.RelationId + 50, // 12: relationalai.lqp.v1.Algorithm.global:type_name -> relationalai.lqp.v1.RelationId 5, // 13: relationalai.lqp.v1.Algorithm.body:type_name -> relationalai.lqp.v1.Script 6, // 14: relationalai.lqp.v1.Script.constructs:type_name -> relationalai.lqp.v1.Construct 7, // 15: relationalai.lqp.v1.Construct.loop:type_name -> relationalai.lqp.v1.Loop @@ -5421,32 +5689,32 @@ var file_relationalai_lqp_v1_logic_proto_depIdxs = []int32{ 11, // 21: relationalai.lqp.v1.Instruction.break:type_name -> relationalai.lqp.v1.Break 12, // 22: relationalai.lqp.v1.Instruction.monoid_def:type_name -> relationalai.lqp.v1.MonoidDef 13, // 23: relationalai.lqp.v1.Instruction.monus_def:type_name -> relationalai.lqp.v1.MonusDef - 47, // 24: relationalai.lqp.v1.Assign.name:type_name -> relationalai.lqp.v1.RelationId + 50, // 24: relationalai.lqp.v1.Assign.name:type_name -> relationalai.lqp.v1.RelationId 20, // 25: relationalai.lqp.v1.Assign.body:type_name -> relationalai.lqp.v1.Abstraction 36, // 26: relationalai.lqp.v1.Assign.attrs:type_name -> relationalai.lqp.v1.Attribute - 47, // 27: relationalai.lqp.v1.Upsert.name:type_name -> relationalai.lqp.v1.RelationId + 50, // 27: relationalai.lqp.v1.Upsert.name:type_name -> relationalai.lqp.v1.RelationId 20, // 28: relationalai.lqp.v1.Upsert.body:type_name -> relationalai.lqp.v1.Abstraction 36, // 29: relationalai.lqp.v1.Upsert.attrs:type_name -> relationalai.lqp.v1.Attribute - 47, // 30: relationalai.lqp.v1.Break.name:type_name -> relationalai.lqp.v1.RelationId + 50, // 30: relationalai.lqp.v1.Break.name:type_name -> relationalai.lqp.v1.RelationId 20, // 31: relationalai.lqp.v1.Break.body:type_name -> relationalai.lqp.v1.Abstraction 36, // 32: relationalai.lqp.v1.Break.attrs:type_name -> relationalai.lqp.v1.Attribute 14, // 33: relationalai.lqp.v1.MonoidDef.monoid:type_name -> relationalai.lqp.v1.Monoid - 47, // 34: relationalai.lqp.v1.MonoidDef.name:type_name -> relationalai.lqp.v1.RelationId + 50, // 34: relationalai.lqp.v1.MonoidDef.name:type_name -> relationalai.lqp.v1.RelationId 20, // 35: relationalai.lqp.v1.MonoidDef.body:type_name -> relationalai.lqp.v1.Abstraction 36, // 36: relationalai.lqp.v1.MonoidDef.attrs:type_name -> relationalai.lqp.v1.Attribute 14, // 37: relationalai.lqp.v1.MonusDef.monoid:type_name -> relationalai.lqp.v1.Monoid - 47, // 38: relationalai.lqp.v1.MonusDef.name:type_name -> relationalai.lqp.v1.RelationId + 50, // 38: relationalai.lqp.v1.MonusDef.name:type_name -> relationalai.lqp.v1.RelationId 20, // 39: relationalai.lqp.v1.MonusDef.body:type_name -> relationalai.lqp.v1.Abstraction 36, // 40: relationalai.lqp.v1.MonusDef.attrs:type_name -> relationalai.lqp.v1.Attribute 15, // 41: relationalai.lqp.v1.Monoid.or_monoid:type_name -> relationalai.lqp.v1.OrMonoid 16, // 42: relationalai.lqp.v1.Monoid.min_monoid:type_name -> relationalai.lqp.v1.MinMonoid 17, // 43: relationalai.lqp.v1.Monoid.max_monoid:type_name -> relationalai.lqp.v1.MaxMonoid 18, // 44: relationalai.lqp.v1.Monoid.sum_monoid:type_name -> relationalai.lqp.v1.SumMonoid - 48, // 45: relationalai.lqp.v1.MinMonoid.type:type_name -> relationalai.lqp.v1.Type - 48, // 46: relationalai.lqp.v1.MaxMonoid.type:type_name -> relationalai.lqp.v1.Type - 48, // 47: relationalai.lqp.v1.SumMonoid.type:type_name -> relationalai.lqp.v1.Type + 51, // 45: relationalai.lqp.v1.MinMonoid.type:type_name -> relationalai.lqp.v1.Type + 51, // 46: relationalai.lqp.v1.MaxMonoid.type:type_name -> relationalai.lqp.v1.Type + 51, // 47: relationalai.lqp.v1.SumMonoid.type:type_name -> relationalai.lqp.v1.Type 35, // 48: relationalai.lqp.v1.Binding.var:type_name -> relationalai.lqp.v1.Var - 48, // 49: relationalai.lqp.v1.Binding.type:type_name -> relationalai.lqp.v1.Type + 51, // 49: relationalai.lqp.v1.Binding.type:type_name -> relationalai.lqp.v1.Type 19, // 50: relationalai.lqp.v1.Abstraction.vars:type_name -> relationalai.lqp.v1.Binding 21, // 51: relationalai.lqp.v1.Abstraction.value:type_name -> relationalai.lqp.v1.Formula 22, // 52: relationalai.lqp.v1.Formula.exists:type_name -> relationalai.lqp.v1.Exists @@ -5469,61 +5737,67 @@ var file_relationalai_lqp_v1_logic_proto_depIdxs = []int32{ 21, // 69: relationalai.lqp.v1.Not.arg:type_name -> relationalai.lqp.v1.Formula 20, // 70: relationalai.lqp.v1.FFI.args:type_name -> relationalai.lqp.v1.Abstraction 34, // 71: relationalai.lqp.v1.FFI.terms:type_name -> relationalai.lqp.v1.Term - 47, // 72: relationalai.lqp.v1.Atom.name:type_name -> relationalai.lqp.v1.RelationId + 50, // 72: relationalai.lqp.v1.Atom.name:type_name -> relationalai.lqp.v1.RelationId 34, // 73: relationalai.lqp.v1.Atom.terms:type_name -> relationalai.lqp.v1.Term 34, // 74: relationalai.lqp.v1.Pragma.terms:type_name -> relationalai.lqp.v1.Term 33, // 75: relationalai.lqp.v1.Primitive.terms:type_name -> relationalai.lqp.v1.RelTerm 33, // 76: relationalai.lqp.v1.RelAtom.terms:type_name -> relationalai.lqp.v1.RelTerm 34, // 77: relationalai.lqp.v1.Cast.input:type_name -> relationalai.lqp.v1.Term 34, // 78: relationalai.lqp.v1.Cast.result:type_name -> relationalai.lqp.v1.Term - 63, // 79: relationalai.lqp.v1.RelTerm.specialized_value:type_name -> relationalai.lqp.v1.Value + 66, // 79: relationalai.lqp.v1.RelTerm.specialized_value:type_name -> relationalai.lqp.v1.Value 34, // 80: relationalai.lqp.v1.RelTerm.term:type_name -> relationalai.lqp.v1.Term 35, // 81: relationalai.lqp.v1.Term.var:type_name -> relationalai.lqp.v1.Var - 63, // 82: relationalai.lqp.v1.Term.constant:type_name -> relationalai.lqp.v1.Value - 63, // 83: relationalai.lqp.v1.Attribute.args:type_name -> relationalai.lqp.v1.Value + 66, // 82: relationalai.lqp.v1.Term.constant:type_name -> relationalai.lqp.v1.Value + 66, // 83: relationalai.lqp.v1.Attribute.args:type_name -> relationalai.lqp.v1.Value 38, // 84: relationalai.lqp.v1.Data.edb:type_name -> relationalai.lqp.v1.EDB 39, // 85: relationalai.lqp.v1.Data.betree_relation:type_name -> relationalai.lqp.v1.BeTreeRelation 43, // 86: relationalai.lqp.v1.Data.csv_data:type_name -> relationalai.lqp.v1.CSVData - 47, // 87: relationalai.lqp.v1.EDB.target_id:type_name -> relationalai.lqp.v1.RelationId - 48, // 88: relationalai.lqp.v1.EDB.types:type_name -> relationalai.lqp.v1.Type - 47, // 89: relationalai.lqp.v1.BeTreeRelation.name:type_name -> relationalai.lqp.v1.RelationId - 40, // 90: relationalai.lqp.v1.BeTreeRelation.relation_info:type_name -> relationalai.lqp.v1.BeTreeInfo - 48, // 91: relationalai.lqp.v1.BeTreeInfo.key_types:type_name -> relationalai.lqp.v1.Type - 48, // 92: relationalai.lqp.v1.BeTreeInfo.value_types:type_name -> relationalai.lqp.v1.Type - 41, // 93: relationalai.lqp.v1.BeTreeInfo.storage_config:type_name -> relationalai.lqp.v1.BeTreeConfig - 42, // 94: relationalai.lqp.v1.BeTreeInfo.relation_locator:type_name -> relationalai.lqp.v1.BeTreeLocator - 64, // 95: relationalai.lqp.v1.BeTreeLocator.root_pageid:type_name -> relationalai.lqp.v1.UInt128Value - 44, // 96: relationalai.lqp.v1.CSVData.locator:type_name -> relationalai.lqp.v1.CSVLocator - 45, // 97: relationalai.lqp.v1.CSVData.config:type_name -> relationalai.lqp.v1.CSVConfig - 46, // 98: relationalai.lqp.v1.CSVData.columns:type_name -> relationalai.lqp.v1.GNFColumn - 47, // 99: relationalai.lqp.v1.GNFColumn.target_id:type_name -> relationalai.lqp.v1.RelationId - 48, // 100: relationalai.lqp.v1.GNFColumn.types:type_name -> relationalai.lqp.v1.Type - 49, // 101: relationalai.lqp.v1.Type.unspecified_type:type_name -> relationalai.lqp.v1.UnspecifiedType - 50, // 102: relationalai.lqp.v1.Type.string_type:type_name -> relationalai.lqp.v1.StringType - 51, // 103: relationalai.lqp.v1.Type.int_type:type_name -> relationalai.lqp.v1.IntType - 52, // 104: relationalai.lqp.v1.Type.float_type:type_name -> relationalai.lqp.v1.FloatType - 53, // 105: relationalai.lqp.v1.Type.uint128_type:type_name -> relationalai.lqp.v1.UInt128Type - 54, // 106: relationalai.lqp.v1.Type.int128_type:type_name -> relationalai.lqp.v1.Int128Type - 55, // 107: relationalai.lqp.v1.Type.date_type:type_name -> relationalai.lqp.v1.DateType - 56, // 108: relationalai.lqp.v1.Type.datetime_type:type_name -> relationalai.lqp.v1.DateTimeType - 57, // 109: relationalai.lqp.v1.Type.missing_type:type_name -> relationalai.lqp.v1.MissingType - 58, // 110: relationalai.lqp.v1.Type.decimal_type:type_name -> relationalai.lqp.v1.DecimalType - 59, // 111: relationalai.lqp.v1.Type.boolean_type:type_name -> relationalai.lqp.v1.BooleanType - 60, // 112: relationalai.lqp.v1.Type.int32_type:type_name -> relationalai.lqp.v1.Int32Type - 61, // 113: relationalai.lqp.v1.Type.float32_type:type_name -> relationalai.lqp.v1.Float32Type - 62, // 114: relationalai.lqp.v1.Type.uint32_type:type_name -> relationalai.lqp.v1.UInt32Type - 64, // 115: relationalai.lqp.v1.Value.uint128_value:type_name -> relationalai.lqp.v1.UInt128Value - 65, // 116: relationalai.lqp.v1.Value.int128_value:type_name -> relationalai.lqp.v1.Int128Value - 66, // 117: relationalai.lqp.v1.Value.missing_value:type_name -> relationalai.lqp.v1.MissingValue - 67, // 118: relationalai.lqp.v1.Value.date_value:type_name -> relationalai.lqp.v1.DateValue - 68, // 119: relationalai.lqp.v1.Value.datetime_value:type_name -> relationalai.lqp.v1.DateTimeValue - 69, // 120: relationalai.lqp.v1.Value.decimal_value:type_name -> relationalai.lqp.v1.DecimalValue - 65, // 121: relationalai.lqp.v1.DecimalValue.value:type_name -> relationalai.lqp.v1.Int128Value - 122, // [122:122] is the sub-list for method output_type - 122, // [122:122] is the sub-list for method input_type - 122, // [122:122] is the sub-list for extension type_name - 122, // [122:122] is the sub-list for extension extendee - 0, // [0:122] is the sub-list for field type_name + 46, // 87: relationalai.lqp.v1.Data.iceberg_data:type_name -> relationalai.lqp.v1.IcebergData + 50, // 88: relationalai.lqp.v1.EDB.target_id:type_name -> relationalai.lqp.v1.RelationId + 51, // 89: relationalai.lqp.v1.EDB.types:type_name -> relationalai.lqp.v1.Type + 50, // 90: relationalai.lqp.v1.BeTreeRelation.name:type_name -> relationalai.lqp.v1.RelationId + 40, // 91: relationalai.lqp.v1.BeTreeRelation.relation_info:type_name -> relationalai.lqp.v1.BeTreeInfo + 51, // 92: relationalai.lqp.v1.BeTreeInfo.key_types:type_name -> relationalai.lqp.v1.Type + 51, // 93: relationalai.lqp.v1.BeTreeInfo.value_types:type_name -> relationalai.lqp.v1.Type + 41, // 94: relationalai.lqp.v1.BeTreeInfo.storage_config:type_name -> relationalai.lqp.v1.BeTreeConfig + 42, // 95: relationalai.lqp.v1.BeTreeInfo.relation_locator:type_name -> relationalai.lqp.v1.BeTreeLocator + 67, // 96: relationalai.lqp.v1.BeTreeLocator.root_pageid:type_name -> relationalai.lqp.v1.UInt128Value + 44, // 97: relationalai.lqp.v1.CSVData.locator:type_name -> relationalai.lqp.v1.CSVLocator + 45, // 98: relationalai.lqp.v1.CSVData.config:type_name -> relationalai.lqp.v1.CSVConfig + 49, // 99: relationalai.lqp.v1.CSVData.columns:type_name -> relationalai.lqp.v1.GNFColumn + 47, // 100: relationalai.lqp.v1.IcebergData.locator:type_name -> relationalai.lqp.v1.IcebergLocator + 48, // 101: relationalai.lqp.v1.IcebergData.config:type_name -> relationalai.lqp.v1.IcebergConfig + 49, // 102: relationalai.lqp.v1.IcebergData.columns:type_name -> relationalai.lqp.v1.GNFColumn + 73, // 103: relationalai.lqp.v1.IcebergConfig.properties:type_name -> relationalai.lqp.v1.IcebergConfig.PropertiesEntry + 74, // 104: relationalai.lqp.v1.IcebergConfig.credentials:type_name -> relationalai.lqp.v1.IcebergConfig.CredentialsEntry + 50, // 105: relationalai.lqp.v1.GNFColumn.target_id:type_name -> relationalai.lqp.v1.RelationId + 51, // 106: relationalai.lqp.v1.GNFColumn.types:type_name -> relationalai.lqp.v1.Type + 52, // 107: relationalai.lqp.v1.Type.unspecified_type:type_name -> relationalai.lqp.v1.UnspecifiedType + 53, // 108: relationalai.lqp.v1.Type.string_type:type_name -> relationalai.lqp.v1.StringType + 54, // 109: relationalai.lqp.v1.Type.int_type:type_name -> relationalai.lqp.v1.IntType + 55, // 110: relationalai.lqp.v1.Type.float_type:type_name -> relationalai.lqp.v1.FloatType + 56, // 111: relationalai.lqp.v1.Type.uint128_type:type_name -> relationalai.lqp.v1.UInt128Type + 57, // 112: relationalai.lqp.v1.Type.int128_type:type_name -> relationalai.lqp.v1.Int128Type + 58, // 113: relationalai.lqp.v1.Type.date_type:type_name -> relationalai.lqp.v1.DateType + 59, // 114: relationalai.lqp.v1.Type.datetime_type:type_name -> relationalai.lqp.v1.DateTimeType + 60, // 115: relationalai.lqp.v1.Type.missing_type:type_name -> relationalai.lqp.v1.MissingType + 61, // 116: relationalai.lqp.v1.Type.decimal_type:type_name -> relationalai.lqp.v1.DecimalType + 62, // 117: relationalai.lqp.v1.Type.boolean_type:type_name -> relationalai.lqp.v1.BooleanType + 63, // 118: relationalai.lqp.v1.Type.int32_type:type_name -> relationalai.lqp.v1.Int32Type + 64, // 119: relationalai.lqp.v1.Type.float32_type:type_name -> relationalai.lqp.v1.Float32Type + 65, // 120: relationalai.lqp.v1.Type.uint32_type:type_name -> relationalai.lqp.v1.UInt32Type + 67, // 121: relationalai.lqp.v1.Value.uint128_value:type_name -> relationalai.lqp.v1.UInt128Value + 68, // 122: relationalai.lqp.v1.Value.int128_value:type_name -> relationalai.lqp.v1.Int128Value + 69, // 123: relationalai.lqp.v1.Value.missing_value:type_name -> relationalai.lqp.v1.MissingValue + 70, // 124: relationalai.lqp.v1.Value.date_value:type_name -> relationalai.lqp.v1.DateValue + 71, // 125: relationalai.lqp.v1.Value.datetime_value:type_name -> relationalai.lqp.v1.DateTimeValue + 72, // 126: relationalai.lqp.v1.Value.decimal_value:type_name -> relationalai.lqp.v1.DecimalValue + 68, // 127: relationalai.lqp.v1.DecimalValue.value:type_name -> relationalai.lqp.v1.Int128Value + 128, // [128:128] is the sub-list for method output_type + 128, // [128:128] is the sub-list for method input_type + 128, // [128:128] is the sub-list for extension type_name + 128, // [128:128] is the sub-list for extension extendee + 0, // [0:128] is the sub-list for field type_name } func init() { file_relationalai_lqp_v1_logic_proto_init() } @@ -5582,13 +5856,16 @@ func file_relationalai_lqp_v1_logic_proto_init() { (*Data_Edb)(nil), (*Data_BetreeRelation)(nil), (*Data_CsvData)(nil), + (*Data_IcebergData)(nil), } file_relationalai_lqp_v1_logic_proto_msgTypes[42].OneofWrappers = []any{ (*BeTreeLocator_RootPageid)(nil), (*BeTreeLocator_InlineData)(nil), } file_relationalai_lqp_v1_logic_proto_msgTypes[46].OneofWrappers = []any{} - file_relationalai_lqp_v1_logic_proto_msgTypes[48].OneofWrappers = []any{ + file_relationalai_lqp_v1_logic_proto_msgTypes[48].OneofWrappers = []any{} + file_relationalai_lqp_v1_logic_proto_msgTypes[49].OneofWrappers = []any{} + file_relationalai_lqp_v1_logic_proto_msgTypes[51].OneofWrappers = []any{ (*Type_UnspecifiedType)(nil), (*Type_StringType)(nil), (*Type_IntType)(nil), @@ -5604,7 +5881,7 @@ func file_relationalai_lqp_v1_logic_proto_init() { (*Type_Float32Type)(nil), (*Type_Uint32Type)(nil), } - file_relationalai_lqp_v1_logic_proto_msgTypes[63].OneofWrappers = []any{ + file_relationalai_lqp_v1_logic_proto_msgTypes[66].OneofWrappers = []any{ (*Value_StringValue)(nil), (*Value_IntValue)(nil), (*Value_FloatValue)(nil), @@ -5625,7 +5902,7 @@ func file_relationalai_lqp_v1_logic_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_relationalai_lqp_v1_logic_proto_rawDesc), len(file_relationalai_lqp_v1_logic_proto_rawDesc)), NumEnums: 0, - NumMessages: 70, + NumMessages: 75, NumExtensions: 0, NumServices: 0, }, diff --git a/sdks/go/src/parser.go b/sdks/go/src/parser.go index 442d9d95..ea108bd9 100644 --- a/sdks/go/src/parser.go +++ b/sdks/go/src/parser.go @@ -631,152 +631,152 @@ func toPascalCase(s string) string { // --- Helper functions --- func (p *Parser) _extract_value_int32(value *pb.Value, default_ int64) int32 { - var _t1823 interface{} + var _t1913 interface{} if (value != nil && hasProtoField(value, "int32_value")) { return value.GetInt32Value() } - _ = _t1823 + _ = _t1913 return int32(default_) } func (p *Parser) _extract_value_int64(value *pb.Value, default_ int64) int64 { - var _t1824 interface{} + var _t1914 interface{} if (value != nil && hasProtoField(value, "int_value")) { return value.GetIntValue() } - _ = _t1824 + _ = _t1914 return default_ } func (p *Parser) _extract_value_string(value *pb.Value, default_ string) string { - var _t1825 interface{} + var _t1915 interface{} if (value != nil && hasProtoField(value, "string_value")) { return value.GetStringValue() } - _ = _t1825 + _ = _t1915 return default_ } func (p *Parser) _extract_value_boolean(value *pb.Value, default_ bool) bool { - var _t1826 interface{} + var _t1916 interface{} if (value != nil && hasProtoField(value, "boolean_value")) { return value.GetBooleanValue() } - _ = _t1826 + _ = _t1916 return default_ } func (p *Parser) _extract_value_string_list(value *pb.Value, default_ []string) []string { - var _t1827 interface{} + var _t1917 interface{} if (value != nil && hasProtoField(value, "string_value")) { return []string{value.GetStringValue()} } - _ = _t1827 + _ = _t1917 return default_ } func (p *Parser) _try_extract_value_int64(value *pb.Value) *int64 { - var _t1828 interface{} + var _t1918 interface{} if (value != nil && hasProtoField(value, "int_value")) { return ptr(value.GetIntValue()) } - _ = _t1828 + _ = _t1918 return nil } func (p *Parser) _try_extract_value_float64(value *pb.Value) *float64 { - var _t1829 interface{} + var _t1919 interface{} if (value != nil && hasProtoField(value, "float_value")) { return ptr(value.GetFloatValue()) } - _ = _t1829 + _ = _t1919 return nil } func (p *Parser) _try_extract_value_bytes(value *pb.Value) []byte { - var _t1830 interface{} + var _t1920 interface{} if (value != nil && hasProtoField(value, "string_value")) { return []byte(value.GetStringValue()) } - _ = _t1830 + _ = _t1920 return nil } func (p *Parser) _try_extract_value_uint128(value *pb.Value) *pb.UInt128Value { - var _t1831 interface{} + var _t1921 interface{} if (value != nil && hasProtoField(value, "uint128_value")) { return value.GetUint128Value() } - _ = _t1831 + _ = _t1921 return nil } func (p *Parser) construct_csv_config(config_dict [][]interface{}) *pb.CSVConfig { config := dictFromList(config_dict) - _t1832 := p._extract_value_int32(dictGetValue(config, "csv_header_row"), 1) - header_row := _t1832 - _t1833 := p._extract_value_int64(dictGetValue(config, "csv_skip"), 0) - skip := _t1833 - _t1834 := p._extract_value_string(dictGetValue(config, "csv_new_line"), "") - new_line := _t1834 - _t1835 := p._extract_value_string(dictGetValue(config, "csv_delimiter"), ",") - delimiter := _t1835 - _t1836 := p._extract_value_string(dictGetValue(config, "csv_quotechar"), "\"") - quotechar := _t1836 - _t1837 := p._extract_value_string(dictGetValue(config, "csv_escapechar"), "\"") - escapechar := _t1837 - _t1838 := p._extract_value_string(dictGetValue(config, "csv_comment"), "") - comment := _t1838 - _t1839 := p._extract_value_string_list(dictGetValue(config, "csv_missing_strings"), []string{}) - missing_strings := _t1839 - _t1840 := p._extract_value_string(dictGetValue(config, "csv_decimal_separator"), ".") - decimal_separator := _t1840 - _t1841 := p._extract_value_string(dictGetValue(config, "csv_encoding"), "utf-8") - encoding := _t1841 - _t1842 := p._extract_value_string(dictGetValue(config, "csv_compression"), "auto") - compression := _t1842 - _t1843 := p._extract_value_int64(dictGetValue(config, "csv_partition_size_mb"), 0) - partition_size_mb := _t1843 - _t1844 := &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 _t1844 + _t1922 := p._extract_value_int32(dictGetValue(config, "csv_header_row"), 1) + header_row := _t1922 + _t1923 := p._extract_value_int64(dictGetValue(config, "csv_skip"), 0) + skip := _t1923 + _t1924 := p._extract_value_string(dictGetValue(config, "csv_new_line"), "") + new_line := _t1924 + _t1925 := p._extract_value_string(dictGetValue(config, "csv_delimiter"), ",") + delimiter := _t1925 + _t1926 := p._extract_value_string(dictGetValue(config, "csv_quotechar"), "\"") + quotechar := _t1926 + _t1927 := p._extract_value_string(dictGetValue(config, "csv_escapechar"), "\"") + escapechar := _t1927 + _t1928 := p._extract_value_string(dictGetValue(config, "csv_comment"), "") + comment := _t1928 + _t1929 := p._extract_value_string_list(dictGetValue(config, "csv_missing_strings"), []string{}) + missing_strings := _t1929 + _t1930 := p._extract_value_string(dictGetValue(config, "csv_decimal_separator"), ".") + decimal_separator := _t1930 + _t1931 := p._extract_value_string(dictGetValue(config, "csv_encoding"), "utf-8") + encoding := _t1931 + _t1932 := p._extract_value_string(dictGetValue(config, "csv_compression"), "auto") + compression := _t1932 + _t1933 := p._extract_value_int64(dictGetValue(config, "csv_partition_size_mb"), 0) + partition_size_mb := _t1933 + _t1934 := &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 _t1934 } func (p *Parser) construct_betree_info(key_types []*pb.Type, value_types []*pb.Type, config_dict [][]interface{}) *pb.BeTreeInfo { config := dictFromList(config_dict) - _t1845 := p._try_extract_value_float64(dictGetValue(config, "betree_config_epsilon")) - epsilon := _t1845 - _t1846 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_pivots")) - max_pivots := _t1846 - _t1847 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_deltas")) - max_deltas := _t1847 - _t1848 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_leaf")) - max_leaf := _t1848 - _t1849 := &pb.BeTreeConfig{Epsilon: deref(epsilon, 0.0), MaxPivots: deref(max_pivots, 0), MaxDeltas: deref(max_deltas, 0), MaxLeaf: deref(max_leaf, 0)} - storage_config := _t1849 - _t1850 := p._try_extract_value_uint128(dictGetValue(config, "betree_locator_root_pageid")) - root_pageid := _t1850 - _t1851 := p._try_extract_value_bytes(dictGetValue(config, "betree_locator_inline_data")) - inline_data := _t1851 - _t1852 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_element_count")) - element_count := _t1852 - _t1853 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_tree_height")) - tree_height := _t1853 - _t1854 := &pb.BeTreeLocator{ElementCount: deref(element_count, 0), TreeHeight: deref(tree_height, 0)} + _t1935 := p._try_extract_value_float64(dictGetValue(config, "betree_config_epsilon")) + epsilon := _t1935 + _t1936 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_pivots")) + max_pivots := _t1936 + _t1937 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_deltas")) + max_deltas := _t1937 + _t1938 := p._try_extract_value_int64(dictGetValue(config, "betree_config_max_leaf")) + max_leaf := _t1938 + _t1939 := &pb.BeTreeConfig{Epsilon: deref(epsilon, 0.0), MaxPivots: deref(max_pivots, 0), MaxDeltas: deref(max_deltas, 0), MaxLeaf: deref(max_leaf, 0)} + storage_config := _t1939 + _t1940 := p._try_extract_value_uint128(dictGetValue(config, "betree_locator_root_pageid")) + root_pageid := _t1940 + _t1941 := p._try_extract_value_bytes(dictGetValue(config, "betree_locator_inline_data")) + inline_data := _t1941 + _t1942 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_element_count")) + element_count := _t1942 + _t1943 := p._try_extract_value_int64(dictGetValue(config, "betree_locator_tree_height")) + tree_height := _t1943 + _t1944 := &pb.BeTreeLocator{ElementCount: deref(element_count, 0), TreeHeight: deref(tree_height, 0)} if root_pageid != nil { - _t1854.Location = &pb.BeTreeLocator_RootPageid{RootPageid: root_pageid} + _t1944.Location = &pb.BeTreeLocator_RootPageid{RootPageid: root_pageid} } else { - _t1854.Location = &pb.BeTreeLocator_InlineData{InlineData: inline_data} + _t1944.Location = &pb.BeTreeLocator_InlineData{InlineData: inline_data} } - relation_locator := _t1854 - _t1855 := &pb.BeTreeInfo{KeyTypes: key_types, ValueTypes: value_types, StorageConfig: storage_config, RelationLocator: relation_locator} - return _t1855 + relation_locator := _t1944 + _t1945 := &pb.BeTreeInfo{KeyTypes: key_types, ValueTypes: value_types, StorageConfig: storage_config, RelationLocator: relation_locator} + return _t1945 } func (p *Parser) default_configure() *pb.Configure { - _t1856 := &pb.IVMConfig{Level: pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF} - ivm_config := _t1856 - _t1857 := &pb.Configure{SemanticsVersion: 0, IvmConfig: ivm_config} - return _t1857 + _t1946 := &pb.IVMConfig{Level: pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF} + ivm_config := _t1946 + _t1947 := &pb.Configure{SemanticsVersion: 0, IvmConfig: ivm_config} + return _t1947 } func (p *Parser) construct_configure(config_dict [][]interface{}) *pb.Configure { @@ -798,3659 +798,3835 @@ func (p *Parser) construct_configure(config_dict [][]interface{}) *pb.Configure } } } - _t1858 := &pb.IVMConfig{Level: maintenance_level} - ivm_config := _t1858 - _t1859 := p._extract_value_int64(dictGetValue(config, "semantics_version"), 0) - semantics_version := _t1859 - _t1860 := &pb.Configure{SemanticsVersion: semantics_version, IvmConfig: ivm_config} - return _t1860 + _t1948 := &pb.IVMConfig{Level: maintenance_level} + ivm_config := _t1948 + _t1949 := p._extract_value_int64(dictGetValue(config, "semantics_version"), 0) + semantics_version := _t1949 + _t1950 := &pb.Configure{SemanticsVersion: semantics_version, IvmConfig: ivm_config} + return _t1950 } func (p *Parser) construct_export_csv_config(path string, columns []*pb.ExportCSVColumn, config_dict [][]interface{}) *pb.ExportCSVConfig { config := dictFromList(config_dict) - _t1861 := p._extract_value_int64(dictGetValue(config, "partition_size"), 0) - partition_size := _t1861 - _t1862 := p._extract_value_string(dictGetValue(config, "compression"), "") - compression := _t1862 - _t1863 := p._extract_value_boolean(dictGetValue(config, "syntax_header_row"), true) - syntax_header_row := _t1863 - _t1864 := p._extract_value_string(dictGetValue(config, "syntax_missing_string"), "") - syntax_missing_string := _t1864 - _t1865 := p._extract_value_string(dictGetValue(config, "syntax_delim"), ",") - syntax_delim := _t1865 - _t1866 := p._extract_value_string(dictGetValue(config, "syntax_quotechar"), "\"") - syntax_quotechar := _t1866 - _t1867 := p._extract_value_string(dictGetValue(config, "syntax_escapechar"), "\\") - syntax_escapechar := _t1867 - _t1868 := &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 _t1868 + _t1951 := p._extract_value_int64(dictGetValue(config, "partition_size"), 0) + partition_size := _t1951 + _t1952 := p._extract_value_string(dictGetValue(config, "compression"), "") + compression := _t1952 + _t1953 := p._extract_value_boolean(dictGetValue(config, "syntax_header_row"), true) + syntax_header_row := _t1953 + _t1954 := p._extract_value_string(dictGetValue(config, "syntax_missing_string"), "") + syntax_missing_string := _t1954 + _t1955 := p._extract_value_string(dictGetValue(config, "syntax_delim"), ",") + syntax_delim := _t1955 + _t1956 := p._extract_value_string(dictGetValue(config, "syntax_quotechar"), "\"") + syntax_quotechar := _t1956 + _t1957 := p._extract_value_string(dictGetValue(config, "syntax_escapechar"), "\\") + syntax_escapechar := _t1957 + _t1958 := &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 _t1958 } func (p *Parser) construct_export_csv_config_with_source(path string, csv_source *pb.ExportCSVSource, csv_config *pb.CSVConfig) *pb.ExportCSVConfig { - _t1869 := &pb.ExportCSVConfig{Path: path, CsvSource: csv_source, CsvConfig: csv_config} - return _t1869 + _t1959 := &pb.ExportCSVConfig{Path: path, CsvSource: csv_source, CsvConfig: csv_config} + return _t1959 +} + +func (p *Parser) construct_iceberg_config(catalog_uri string, scope *string, properties [][]interface{}, credentials [][]interface{}) *pb.IcebergConfig { + _t1960 := properties + if properties == nil { + _t1960 = [][]interface{}{} + } + props := dictFromList(_t1960) + _t1961 := credentials + if credentials == nil { + _t1961 = [][]interface{}{} + } + creds := dictFromList(_t1961) + _t1962 := &pb.IcebergConfig{CatalogUri: catalog_uri, Scope: deref(scope, ""), Properties: props, Credentials: creds} + return _t1962 } // --- Parse functions --- func (p *Parser) parse_transaction() *pb.Transaction { - span_start584 := int64(p.spanStart()) + span_start618 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("transaction") - var _t1156 *pb.Configure + var _t1224 *pb.Configure if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("configure", 1)) { - _t1157 := p.parse_configure() - _t1156 = _t1157 + _t1225 := p.parse_configure() + _t1224 = _t1225 } - configure578 := _t1156 - var _t1158 *pb.Sync + configure612 := _t1224 + var _t1226 *pb.Sync if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("sync", 1)) { - _t1159 := p.parse_sync() - _t1158 = _t1159 - } - sync579 := _t1158 - xs580 := []*pb.Epoch{} - cond581 := p.matchLookaheadLiteral("(", 0) - for cond581 { - _t1160 := p.parse_epoch() - item582 := _t1160 - xs580 = append(xs580, item582) - cond581 = p.matchLookaheadLiteral("(", 0) - } - epochs583 := xs580 + _t1227 := p.parse_sync() + _t1226 = _t1227 + } + sync613 := _t1226 + xs614 := []*pb.Epoch{} + cond615 := p.matchLookaheadLiteral("(", 0) + for cond615 { + _t1228 := p.parse_epoch() + item616 := _t1228 + xs614 = append(xs614, item616) + cond615 = p.matchLookaheadLiteral("(", 0) + } + epochs617 := xs614 p.consumeLiteral(")") - _t1161 := p.default_configure() - _t1162 := configure578 - if configure578 == nil { - _t1162 = _t1161 + _t1229 := p.default_configure() + _t1230 := configure612 + if configure612 == nil { + _t1230 = _t1229 } - _t1163 := &pb.Transaction{Epochs: epochs583, Configure: _t1162, Sync: sync579} - result585 := _t1163 - p.recordSpan(int(span_start584), "Transaction") - return result585 + _t1231 := &pb.Transaction{Epochs: epochs617, Configure: _t1230, Sync: sync613} + result619 := _t1231 + p.recordSpan(int(span_start618), "Transaction") + return result619 } func (p *Parser) parse_configure() *pb.Configure { - span_start587 := int64(p.spanStart()) + span_start621 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("configure") - _t1164 := p.parse_config_dict() - config_dict586 := _t1164 + _t1232 := p.parse_config_dict() + config_dict620 := _t1232 p.consumeLiteral(")") - _t1165 := p.construct_configure(config_dict586) - result588 := _t1165 - p.recordSpan(int(span_start587), "Configure") - return result588 + _t1233 := p.construct_configure(config_dict620) + result622 := _t1233 + p.recordSpan(int(span_start621), "Configure") + return result622 } func (p *Parser) parse_config_dict() [][]interface{} { p.consumeLiteral("{") - xs589 := [][]interface{}{} - cond590 := p.matchLookaheadLiteral(":", 0) - for cond590 { - _t1166 := p.parse_config_key_value() - item591 := _t1166 - xs589 = append(xs589, item591) - cond590 = p.matchLookaheadLiteral(":", 0) - } - config_key_values592 := xs589 + xs623 := [][]interface{}{} + cond624 := p.matchLookaheadLiteral(":", 0) + for cond624 { + _t1234 := p.parse_config_key_value() + item625 := _t1234 + xs623 = append(xs623, item625) + cond624 = p.matchLookaheadLiteral(":", 0) + } + config_key_values626 := xs623 p.consumeLiteral("}") - return config_key_values592 + return config_key_values626 } func (p *Parser) parse_config_key_value() []interface{} { p.consumeLiteral(":") - symbol593 := p.consumeTerminal("SYMBOL").Value.str - _t1167 := p.parse_value() - value594 := _t1167 - return []interface{}{symbol593, value594} + symbol627 := p.consumeTerminal("SYMBOL").Value.str + _t1235 := p.parse_value() + value628 := _t1235 + return []interface{}{symbol627, value628} } func (p *Parser) parse_value() *pb.Value { - span_start608 := int64(p.spanStart()) - var _t1168 int64 + span_start642 := int64(p.spanStart()) + var _t1236 int64 if p.matchLookaheadLiteral("true", 0) { - _t1168 = 9 + _t1236 = 9 } else { - var _t1169 int64 + var _t1237 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1169 = 8 + _t1237 = 8 } else { - var _t1170 int64 + var _t1238 int64 if p.matchLookaheadLiteral("false", 0) { - _t1170 = 9 + _t1238 = 9 } else { - var _t1171 int64 + var _t1239 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1172 int64 + var _t1240 int64 if p.matchLookaheadLiteral("datetime", 1) { - _t1172 = 1 + _t1240 = 1 } else { - var _t1173 int64 + var _t1241 int64 if p.matchLookaheadLiteral("date", 1) { - _t1173 = 0 + _t1241 = 0 } else { - _t1173 = -1 + _t1241 = -1 } - _t1172 = _t1173 + _t1240 = _t1241 } - _t1171 = _t1172 + _t1239 = _t1240 } else { - var _t1174 int64 + var _t1242 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1174 = 12 + _t1242 = 12 } else { - var _t1175 int64 + var _t1243 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1175 = 5 + _t1243 = 5 } else { - var _t1176 int64 + var _t1244 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1176 = 2 + _t1244 = 2 } else { - var _t1177 int64 + var _t1245 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1177 = 10 + _t1245 = 10 } else { - var _t1178 int64 + var _t1246 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1178 = 6 + _t1246 = 6 } else { - var _t1179 int64 + var _t1247 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1179 = 3 + _t1247 = 3 } else { - var _t1180 int64 + var _t1248 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1180 = 11 + _t1248 = 11 } else { - var _t1181 int64 + var _t1249 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1181 = 4 + _t1249 = 4 } else { - var _t1182 int64 + var _t1250 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1182 = 7 + _t1250 = 7 } else { - _t1182 = -1 + _t1250 = -1 } - _t1181 = _t1182 + _t1249 = _t1250 } - _t1180 = _t1181 + _t1248 = _t1249 } - _t1179 = _t1180 + _t1247 = _t1248 } - _t1178 = _t1179 + _t1246 = _t1247 } - _t1177 = _t1178 + _t1245 = _t1246 } - _t1176 = _t1177 + _t1244 = _t1245 } - _t1175 = _t1176 + _t1243 = _t1244 } - _t1174 = _t1175 + _t1242 = _t1243 } - _t1171 = _t1174 + _t1239 = _t1242 } - _t1170 = _t1171 + _t1238 = _t1239 } - _t1169 = _t1170 + _t1237 = _t1238 } - _t1168 = _t1169 - } - prediction595 := _t1168 - var _t1183 *pb.Value - if prediction595 == 12 { - uint32607 := p.consumeTerminal("UINT32").Value.u32 - _t1184 := &pb.Value{} - _t1184.Value = &pb.Value_Uint32Value{Uint32Value: uint32607} - _t1183 = _t1184 + _t1236 = _t1237 + } + prediction629 := _t1236 + var _t1251 *pb.Value + if prediction629 == 12 { + uint32641 := p.consumeTerminal("UINT32").Value.u32 + _t1252 := &pb.Value{} + _t1252.Value = &pb.Value_Uint32Value{Uint32Value: uint32641} + _t1251 = _t1252 } else { - var _t1185 *pb.Value - if prediction595 == 11 { - float32606 := p.consumeTerminal("FLOAT32").Value.f32 - _t1186 := &pb.Value{} - _t1186.Value = &pb.Value_Float32Value{Float32Value: float32606} - _t1185 = _t1186 + var _t1253 *pb.Value + if prediction629 == 11 { + float32640 := p.consumeTerminal("FLOAT32").Value.f32 + _t1254 := &pb.Value{} + _t1254.Value = &pb.Value_Float32Value{Float32Value: float32640} + _t1253 = _t1254 } else { - var _t1187 *pb.Value - if prediction595 == 10 { - int32605 := p.consumeTerminal("INT32").Value.i32 - _t1188 := &pb.Value{} - _t1188.Value = &pb.Value_Int32Value{Int32Value: int32605} - _t1187 = _t1188 + var _t1255 *pb.Value + if prediction629 == 10 { + int32639 := p.consumeTerminal("INT32").Value.i32 + _t1256 := &pb.Value{} + _t1256.Value = &pb.Value_Int32Value{Int32Value: int32639} + _t1255 = _t1256 } else { - var _t1189 *pb.Value - if prediction595 == 9 { - _t1190 := p.parse_boolean_value() - boolean_value604 := _t1190 - _t1191 := &pb.Value{} - _t1191.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value604} - _t1189 = _t1191 + var _t1257 *pb.Value + if prediction629 == 9 { + _t1258 := p.parse_boolean_value() + boolean_value638 := _t1258 + _t1259 := &pb.Value{} + _t1259.Value = &pb.Value_BooleanValue{BooleanValue: boolean_value638} + _t1257 = _t1259 } else { - var _t1192 *pb.Value - if prediction595 == 8 { + var _t1260 *pb.Value + if prediction629 == 8 { p.consumeLiteral("missing") - _t1193 := &pb.MissingValue{} - _t1194 := &pb.Value{} - _t1194.Value = &pb.Value_MissingValue{MissingValue: _t1193} - _t1192 = _t1194 + _t1261 := &pb.MissingValue{} + _t1262 := &pb.Value{} + _t1262.Value = &pb.Value_MissingValue{MissingValue: _t1261} + _t1260 = _t1262 } else { - var _t1195 *pb.Value - if prediction595 == 7 { - decimal603 := p.consumeTerminal("DECIMAL").Value.decimal - _t1196 := &pb.Value{} - _t1196.Value = &pb.Value_DecimalValue{DecimalValue: decimal603} - _t1195 = _t1196 + var _t1263 *pb.Value + if prediction629 == 7 { + decimal637 := p.consumeTerminal("DECIMAL").Value.decimal + _t1264 := &pb.Value{} + _t1264.Value = &pb.Value_DecimalValue{DecimalValue: decimal637} + _t1263 = _t1264 } else { - var _t1197 *pb.Value - if prediction595 == 6 { - int128602 := p.consumeTerminal("INT128").Value.int128 - _t1198 := &pb.Value{} - _t1198.Value = &pb.Value_Int128Value{Int128Value: int128602} - _t1197 = _t1198 + var _t1265 *pb.Value + if prediction629 == 6 { + int128636 := p.consumeTerminal("INT128").Value.int128 + _t1266 := &pb.Value{} + _t1266.Value = &pb.Value_Int128Value{Int128Value: int128636} + _t1265 = _t1266 } else { - var _t1199 *pb.Value - if prediction595 == 5 { - uint128601 := p.consumeTerminal("UINT128").Value.uint128 - _t1200 := &pb.Value{} - _t1200.Value = &pb.Value_Uint128Value{Uint128Value: uint128601} - _t1199 = _t1200 + var _t1267 *pb.Value + if prediction629 == 5 { + uint128635 := p.consumeTerminal("UINT128").Value.uint128 + _t1268 := &pb.Value{} + _t1268.Value = &pb.Value_Uint128Value{Uint128Value: uint128635} + _t1267 = _t1268 } else { - var _t1201 *pb.Value - if prediction595 == 4 { - float600 := p.consumeTerminal("FLOAT").Value.f64 - _t1202 := &pb.Value{} - _t1202.Value = &pb.Value_FloatValue{FloatValue: float600} - _t1201 = _t1202 + var _t1269 *pb.Value + if prediction629 == 4 { + float634 := p.consumeTerminal("FLOAT").Value.f64 + _t1270 := &pb.Value{} + _t1270.Value = &pb.Value_FloatValue{FloatValue: float634} + _t1269 = _t1270 } else { - var _t1203 *pb.Value - if prediction595 == 3 { - int599 := p.consumeTerminal("INT").Value.i64 - _t1204 := &pb.Value{} - _t1204.Value = &pb.Value_IntValue{IntValue: int599} - _t1203 = _t1204 + var _t1271 *pb.Value + if prediction629 == 3 { + int633 := p.consumeTerminal("INT").Value.i64 + _t1272 := &pb.Value{} + _t1272.Value = &pb.Value_IntValue{IntValue: int633} + _t1271 = _t1272 } else { - var _t1205 *pb.Value - if prediction595 == 2 { - string598 := p.consumeTerminal("STRING").Value.str - _t1206 := &pb.Value{} - _t1206.Value = &pb.Value_StringValue{StringValue: string598} - _t1205 = _t1206 + var _t1273 *pb.Value + if prediction629 == 2 { + string632 := p.consumeTerminal("STRING").Value.str + _t1274 := &pb.Value{} + _t1274.Value = &pb.Value_StringValue{StringValue: string632} + _t1273 = _t1274 } else { - var _t1207 *pb.Value - if prediction595 == 1 { - _t1208 := p.parse_datetime() - datetime597 := _t1208 - _t1209 := &pb.Value{} - _t1209.Value = &pb.Value_DatetimeValue{DatetimeValue: datetime597} - _t1207 = _t1209 + var _t1275 *pb.Value + if prediction629 == 1 { + _t1276 := p.parse_datetime() + datetime631 := _t1276 + _t1277 := &pb.Value{} + _t1277.Value = &pb.Value_DatetimeValue{DatetimeValue: datetime631} + _t1275 = _t1277 } else { - var _t1210 *pb.Value - if prediction595 == 0 { - _t1211 := p.parse_date() - date596 := _t1211 - _t1212 := &pb.Value{} - _t1212.Value = &pb.Value_DateValue{DateValue: date596} - _t1210 = _t1212 + var _t1278 *pb.Value + if prediction629 == 0 { + _t1279 := p.parse_date() + date630 := _t1279 + _t1280 := &pb.Value{} + _t1280.Value = &pb.Value_DateValue{DateValue: date630} + _t1278 = _t1280 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1207 = _t1210 + _t1275 = _t1278 } - _t1205 = _t1207 + _t1273 = _t1275 } - _t1203 = _t1205 + _t1271 = _t1273 } - _t1201 = _t1203 + _t1269 = _t1271 } - _t1199 = _t1201 + _t1267 = _t1269 } - _t1197 = _t1199 + _t1265 = _t1267 } - _t1195 = _t1197 + _t1263 = _t1265 } - _t1192 = _t1195 + _t1260 = _t1263 } - _t1189 = _t1192 + _t1257 = _t1260 } - _t1187 = _t1189 + _t1255 = _t1257 } - _t1185 = _t1187 + _t1253 = _t1255 } - _t1183 = _t1185 + _t1251 = _t1253 } - result609 := _t1183 - p.recordSpan(int(span_start608), "Value") - return result609 + result643 := _t1251 + p.recordSpan(int(span_start642), "Value") + return result643 } func (p *Parser) parse_date() *pb.DateValue { - span_start613 := int64(p.spanStart()) + span_start647 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("date") - int610 := p.consumeTerminal("INT").Value.i64 - int_3611 := p.consumeTerminal("INT").Value.i64 - int_4612 := p.consumeTerminal("INT").Value.i64 + int644 := p.consumeTerminal("INT").Value.i64 + int_3645 := p.consumeTerminal("INT").Value.i64 + int_4646 := p.consumeTerminal("INT").Value.i64 p.consumeLiteral(")") - _t1213 := &pb.DateValue{Year: int32(int610), Month: int32(int_3611), Day: int32(int_4612)} - result614 := _t1213 - p.recordSpan(int(span_start613), "DateValue") - return result614 + _t1281 := &pb.DateValue{Year: int32(int644), Month: int32(int_3645), Day: int32(int_4646)} + result648 := _t1281 + p.recordSpan(int(span_start647), "DateValue") + return result648 } func (p *Parser) parse_datetime() *pb.DateTimeValue { - span_start622 := int64(p.spanStart()) + span_start656 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("datetime") - int615 := p.consumeTerminal("INT").Value.i64 - int_3616 := p.consumeTerminal("INT").Value.i64 - int_4617 := p.consumeTerminal("INT").Value.i64 - int_5618 := p.consumeTerminal("INT").Value.i64 - int_6619 := p.consumeTerminal("INT").Value.i64 - int_7620 := p.consumeTerminal("INT").Value.i64 - var _t1214 *int64 + int649 := p.consumeTerminal("INT").Value.i64 + int_3650 := p.consumeTerminal("INT").Value.i64 + int_4651 := p.consumeTerminal("INT").Value.i64 + int_5652 := p.consumeTerminal("INT").Value.i64 + int_6653 := p.consumeTerminal("INT").Value.i64 + int_7654 := p.consumeTerminal("INT").Value.i64 + var _t1282 *int64 if p.matchLookaheadTerminal("INT", 0) { - _t1214 = ptr(p.consumeTerminal("INT").Value.i64) + _t1282 = ptr(p.consumeTerminal("INT").Value.i64) } - int_8621 := _t1214 + int_8655 := _t1282 p.consumeLiteral(")") - _t1215 := &pb.DateTimeValue{Year: int32(int615), Month: int32(int_3616), Day: int32(int_4617), Hour: int32(int_5618), Minute: int32(int_6619), Second: int32(int_7620), Microsecond: int32(deref(int_8621, 0))} - result623 := _t1215 - p.recordSpan(int(span_start622), "DateTimeValue") - return result623 + _t1283 := &pb.DateTimeValue{Year: int32(int649), Month: int32(int_3650), Day: int32(int_4651), Hour: int32(int_5652), Minute: int32(int_6653), Second: int32(int_7654), Microsecond: int32(deref(int_8655, 0))} + result657 := _t1283 + p.recordSpan(int(span_start656), "DateTimeValue") + return result657 } func (p *Parser) parse_boolean_value() bool { - var _t1216 int64 + var _t1284 int64 if p.matchLookaheadLiteral("true", 0) { - _t1216 = 0 + _t1284 = 0 } else { - var _t1217 int64 + var _t1285 int64 if p.matchLookaheadLiteral("false", 0) { - _t1217 = 1 + _t1285 = 1 } else { - _t1217 = -1 + _t1285 = -1 } - _t1216 = _t1217 + _t1284 = _t1285 } - prediction624 := _t1216 - var _t1218 bool - if prediction624 == 1 { + prediction658 := _t1284 + var _t1286 bool + if prediction658 == 1 { p.consumeLiteral("false") - _t1218 = false + _t1286 = false } else { - var _t1219 bool - if prediction624 == 0 { + var _t1287 bool + if prediction658 == 0 { p.consumeLiteral("true") - _t1219 = true + _t1287 = true } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in boolean_value", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1218 = _t1219 + _t1286 = _t1287 } - return _t1218 + return _t1286 } func (p *Parser) parse_sync() *pb.Sync { - span_start629 := int64(p.spanStart()) + span_start663 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("sync") - xs625 := []*pb.FragmentId{} - cond626 := p.matchLookaheadLiteral(":", 0) - for cond626 { - _t1220 := p.parse_fragment_id() - item627 := _t1220 - xs625 = append(xs625, item627) - cond626 = p.matchLookaheadLiteral(":", 0) - } - fragment_ids628 := xs625 + xs659 := []*pb.FragmentId{} + cond660 := p.matchLookaheadLiteral(":", 0) + for cond660 { + _t1288 := p.parse_fragment_id() + item661 := _t1288 + xs659 = append(xs659, item661) + cond660 = p.matchLookaheadLiteral(":", 0) + } + fragment_ids662 := xs659 p.consumeLiteral(")") - _t1221 := &pb.Sync{Fragments: fragment_ids628} - result630 := _t1221 - p.recordSpan(int(span_start629), "Sync") - return result630 + _t1289 := &pb.Sync{Fragments: fragment_ids662} + result664 := _t1289 + p.recordSpan(int(span_start663), "Sync") + return result664 } func (p *Parser) parse_fragment_id() *pb.FragmentId { - span_start632 := int64(p.spanStart()) + span_start666 := int64(p.spanStart()) p.consumeLiteral(":") - symbol631 := p.consumeTerminal("SYMBOL").Value.str - result633 := &pb.FragmentId{Id: []byte(symbol631)} - p.recordSpan(int(span_start632), "FragmentId") - return result633 + symbol665 := p.consumeTerminal("SYMBOL").Value.str + result667 := &pb.FragmentId{Id: []byte(symbol665)} + p.recordSpan(int(span_start666), "FragmentId") + return result667 } func (p *Parser) parse_epoch() *pb.Epoch { - span_start636 := int64(p.spanStart()) + span_start670 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("epoch") - var _t1222 []*pb.Write + var _t1290 []*pb.Write if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("writes", 1)) { - _t1223 := p.parse_epoch_writes() - _t1222 = _t1223 + _t1291 := p.parse_epoch_writes() + _t1290 = _t1291 } - epoch_writes634 := _t1222 - var _t1224 []*pb.Read + epoch_writes668 := _t1290 + var _t1292 []*pb.Read if p.matchLookaheadLiteral("(", 0) { - _t1225 := p.parse_epoch_reads() - _t1224 = _t1225 + _t1293 := p.parse_epoch_reads() + _t1292 = _t1293 } - epoch_reads635 := _t1224 + epoch_reads669 := _t1292 p.consumeLiteral(")") - _t1226 := epoch_writes634 - if epoch_writes634 == nil { - _t1226 = []*pb.Write{} + _t1294 := epoch_writes668 + if epoch_writes668 == nil { + _t1294 = []*pb.Write{} } - _t1227 := epoch_reads635 - if epoch_reads635 == nil { - _t1227 = []*pb.Read{} + _t1295 := epoch_reads669 + if epoch_reads669 == nil { + _t1295 = []*pb.Read{} } - _t1228 := &pb.Epoch{Writes: _t1226, Reads: _t1227} - result637 := _t1228 - p.recordSpan(int(span_start636), "Epoch") - return result637 + _t1296 := &pb.Epoch{Writes: _t1294, Reads: _t1295} + result671 := _t1296 + p.recordSpan(int(span_start670), "Epoch") + return result671 } func (p *Parser) parse_epoch_writes() []*pb.Write { p.consumeLiteral("(") p.consumeLiteral("writes") - xs638 := []*pb.Write{} - cond639 := p.matchLookaheadLiteral("(", 0) - for cond639 { - _t1229 := p.parse_write() - item640 := _t1229 - xs638 = append(xs638, item640) - cond639 = p.matchLookaheadLiteral("(", 0) - } - writes641 := xs638 + xs672 := []*pb.Write{} + cond673 := p.matchLookaheadLiteral("(", 0) + for cond673 { + _t1297 := p.parse_write() + item674 := _t1297 + xs672 = append(xs672, item674) + cond673 = p.matchLookaheadLiteral("(", 0) + } + writes675 := xs672 p.consumeLiteral(")") - return writes641 + return writes675 } func (p *Parser) parse_write() *pb.Write { - span_start647 := int64(p.spanStart()) - var _t1230 int64 + span_start681 := int64(p.spanStart()) + var _t1298 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1231 int64 + var _t1299 int64 if p.matchLookaheadLiteral("undefine", 1) { - _t1231 = 1 + _t1299 = 1 } else { - var _t1232 int64 + var _t1300 int64 if p.matchLookaheadLiteral("snapshot", 1) { - _t1232 = 3 + _t1300 = 3 } else { - var _t1233 int64 + var _t1301 int64 if p.matchLookaheadLiteral("define", 1) { - _t1233 = 0 + _t1301 = 0 } else { - var _t1234 int64 + var _t1302 int64 if p.matchLookaheadLiteral("context", 1) { - _t1234 = 2 + _t1302 = 2 } else { - _t1234 = -1 + _t1302 = -1 } - _t1233 = _t1234 + _t1301 = _t1302 } - _t1232 = _t1233 + _t1300 = _t1301 } - _t1231 = _t1232 + _t1299 = _t1300 } - _t1230 = _t1231 + _t1298 = _t1299 } else { - _t1230 = -1 - } - prediction642 := _t1230 - var _t1235 *pb.Write - if prediction642 == 3 { - _t1236 := p.parse_snapshot() - snapshot646 := _t1236 - _t1237 := &pb.Write{} - _t1237.WriteType = &pb.Write_Snapshot{Snapshot: snapshot646} - _t1235 = _t1237 + _t1298 = -1 + } + prediction676 := _t1298 + var _t1303 *pb.Write + if prediction676 == 3 { + _t1304 := p.parse_snapshot() + snapshot680 := _t1304 + _t1305 := &pb.Write{} + _t1305.WriteType = &pb.Write_Snapshot{Snapshot: snapshot680} + _t1303 = _t1305 } else { - var _t1238 *pb.Write - if prediction642 == 2 { - _t1239 := p.parse_context() - context645 := _t1239 - _t1240 := &pb.Write{} - _t1240.WriteType = &pb.Write_Context{Context: context645} - _t1238 = _t1240 + var _t1306 *pb.Write + if prediction676 == 2 { + _t1307 := p.parse_context() + context679 := _t1307 + _t1308 := &pb.Write{} + _t1308.WriteType = &pb.Write_Context{Context: context679} + _t1306 = _t1308 } else { - var _t1241 *pb.Write - if prediction642 == 1 { - _t1242 := p.parse_undefine() - undefine644 := _t1242 - _t1243 := &pb.Write{} - _t1243.WriteType = &pb.Write_Undefine{Undefine: undefine644} - _t1241 = _t1243 + var _t1309 *pb.Write + if prediction676 == 1 { + _t1310 := p.parse_undefine() + undefine678 := _t1310 + _t1311 := &pb.Write{} + _t1311.WriteType = &pb.Write_Undefine{Undefine: undefine678} + _t1309 = _t1311 } else { - var _t1244 *pb.Write - if prediction642 == 0 { - _t1245 := p.parse_define() - define643 := _t1245 - _t1246 := &pb.Write{} - _t1246.WriteType = &pb.Write_Define{Define: define643} - _t1244 = _t1246 + var _t1312 *pb.Write + if prediction676 == 0 { + _t1313 := p.parse_define() + define677 := _t1313 + _t1314 := &pb.Write{} + _t1314.WriteType = &pb.Write_Define{Define: define677} + _t1312 = _t1314 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in write", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1241 = _t1244 + _t1309 = _t1312 } - _t1238 = _t1241 + _t1306 = _t1309 } - _t1235 = _t1238 + _t1303 = _t1306 } - result648 := _t1235 - p.recordSpan(int(span_start647), "Write") - return result648 + result682 := _t1303 + p.recordSpan(int(span_start681), "Write") + return result682 } func (p *Parser) parse_define() *pb.Define { - span_start650 := int64(p.spanStart()) + span_start684 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("define") - _t1247 := p.parse_fragment() - fragment649 := _t1247 + _t1315 := p.parse_fragment() + fragment683 := _t1315 p.consumeLiteral(")") - _t1248 := &pb.Define{Fragment: fragment649} - result651 := _t1248 - p.recordSpan(int(span_start650), "Define") - return result651 + _t1316 := &pb.Define{Fragment: fragment683} + result685 := _t1316 + p.recordSpan(int(span_start684), "Define") + return result685 } func (p *Parser) parse_fragment() *pb.Fragment { - span_start657 := int64(p.spanStart()) + span_start691 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("fragment") - _t1249 := p.parse_new_fragment_id() - new_fragment_id652 := _t1249 - xs653 := []*pb.Declaration{} - cond654 := p.matchLookaheadLiteral("(", 0) - for cond654 { - _t1250 := p.parse_declaration() - item655 := _t1250 - xs653 = append(xs653, item655) - cond654 = p.matchLookaheadLiteral("(", 0) - } - declarations656 := xs653 + _t1317 := p.parse_new_fragment_id() + new_fragment_id686 := _t1317 + xs687 := []*pb.Declaration{} + cond688 := p.matchLookaheadLiteral("(", 0) + for cond688 { + _t1318 := p.parse_declaration() + item689 := _t1318 + xs687 = append(xs687, item689) + cond688 = p.matchLookaheadLiteral("(", 0) + } + declarations690 := xs687 p.consumeLiteral(")") - result658 := p.constructFragment(new_fragment_id652, declarations656) - p.recordSpan(int(span_start657), "Fragment") - return result658 + result692 := p.constructFragment(new_fragment_id686, declarations690) + p.recordSpan(int(span_start691), "Fragment") + return result692 } func (p *Parser) parse_new_fragment_id() *pb.FragmentId { - span_start660 := int64(p.spanStart()) - _t1251 := p.parse_fragment_id() - fragment_id659 := _t1251 - p.startFragment(fragment_id659) - result661 := fragment_id659 - p.recordSpan(int(span_start660), "FragmentId") - return result661 + span_start694 := int64(p.spanStart()) + _t1319 := p.parse_fragment_id() + fragment_id693 := _t1319 + p.startFragment(fragment_id693) + result695 := fragment_id693 + p.recordSpan(int(span_start694), "FragmentId") + return result695 } func (p *Parser) parse_declaration() *pb.Declaration { - span_start667 := int64(p.spanStart()) - var _t1252 int64 + span_start701 := int64(p.spanStart()) + var _t1320 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1253 int64 - if p.matchLookaheadLiteral("functional_dependency", 1) { - _t1253 = 2 + var _t1321 int64 + if p.matchLookaheadLiteral("iceberg_data", 1) { + _t1321 = 3 } else { - var _t1254 int64 - if p.matchLookaheadLiteral("edb", 1) { - _t1254 = 3 + var _t1322 int64 + if p.matchLookaheadLiteral("functional_dependency", 1) { + _t1322 = 2 } else { - var _t1255 int64 - if p.matchLookaheadLiteral("def", 1) { - _t1255 = 0 + var _t1323 int64 + if p.matchLookaheadLiteral("edb", 1) { + _t1323 = 3 } else { - var _t1256 int64 - if p.matchLookaheadLiteral("csv_data", 1) { - _t1256 = 3 + var _t1324 int64 + if p.matchLookaheadLiteral("def", 1) { + _t1324 = 0 } else { - var _t1257 int64 - if p.matchLookaheadLiteral("betree_relation", 1) { - _t1257 = 3 + var _t1325 int64 + if p.matchLookaheadLiteral("csv_data", 1) { + _t1325 = 3 } else { - var _t1258 int64 - if p.matchLookaheadLiteral("algorithm", 1) { - _t1258 = 1 + var _t1326 int64 + if p.matchLookaheadLiteral("betree_relation", 1) { + _t1326 = 3 } else { - _t1258 = -1 + var _t1327 int64 + if p.matchLookaheadLiteral("algorithm", 1) { + _t1327 = 1 + } else { + _t1327 = -1 + } + _t1326 = _t1327 } - _t1257 = _t1258 + _t1325 = _t1326 } - _t1256 = _t1257 + _t1324 = _t1325 } - _t1255 = _t1256 + _t1323 = _t1324 } - _t1254 = _t1255 + _t1322 = _t1323 } - _t1253 = _t1254 + _t1321 = _t1322 } - _t1252 = _t1253 + _t1320 = _t1321 } else { - _t1252 = -1 - } - prediction662 := _t1252 - var _t1259 *pb.Declaration - if prediction662 == 3 { - _t1260 := p.parse_data() - data666 := _t1260 - _t1261 := &pb.Declaration{} - _t1261.DeclarationType = &pb.Declaration_Data{Data: data666} - _t1259 = _t1261 + _t1320 = -1 + } + prediction696 := _t1320 + var _t1328 *pb.Declaration + if prediction696 == 3 { + _t1329 := p.parse_data() + data700 := _t1329 + _t1330 := &pb.Declaration{} + _t1330.DeclarationType = &pb.Declaration_Data{Data: data700} + _t1328 = _t1330 } else { - var _t1262 *pb.Declaration - if prediction662 == 2 { - _t1263 := p.parse_constraint() - constraint665 := _t1263 - _t1264 := &pb.Declaration{} - _t1264.DeclarationType = &pb.Declaration_Constraint{Constraint: constraint665} - _t1262 = _t1264 + var _t1331 *pb.Declaration + if prediction696 == 2 { + _t1332 := p.parse_constraint() + constraint699 := _t1332 + _t1333 := &pb.Declaration{} + _t1333.DeclarationType = &pb.Declaration_Constraint{Constraint: constraint699} + _t1331 = _t1333 } else { - var _t1265 *pb.Declaration - if prediction662 == 1 { - _t1266 := p.parse_algorithm() - algorithm664 := _t1266 - _t1267 := &pb.Declaration{} - _t1267.DeclarationType = &pb.Declaration_Algorithm{Algorithm: algorithm664} - _t1265 = _t1267 + var _t1334 *pb.Declaration + if prediction696 == 1 { + _t1335 := p.parse_algorithm() + algorithm698 := _t1335 + _t1336 := &pb.Declaration{} + _t1336.DeclarationType = &pb.Declaration_Algorithm{Algorithm: algorithm698} + _t1334 = _t1336 } else { - var _t1268 *pb.Declaration - if prediction662 == 0 { - _t1269 := p.parse_def() - def663 := _t1269 - _t1270 := &pb.Declaration{} - _t1270.DeclarationType = &pb.Declaration_Def{Def: def663} - _t1268 = _t1270 + var _t1337 *pb.Declaration + if prediction696 == 0 { + _t1338 := p.parse_def() + def697 := _t1338 + _t1339 := &pb.Declaration{} + _t1339.DeclarationType = &pb.Declaration_Def{Def: def697} + _t1337 = _t1339 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in declaration", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1265 = _t1268 + _t1334 = _t1337 } - _t1262 = _t1265 + _t1331 = _t1334 } - _t1259 = _t1262 + _t1328 = _t1331 } - result668 := _t1259 - p.recordSpan(int(span_start667), "Declaration") - return result668 + result702 := _t1328 + p.recordSpan(int(span_start701), "Declaration") + return result702 } func (p *Parser) parse_def() *pb.Def { - span_start672 := int64(p.spanStart()) + span_start706 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("def") - _t1271 := p.parse_relation_id() - relation_id669 := _t1271 - _t1272 := p.parse_abstraction() - abstraction670 := _t1272 - var _t1273 []*pb.Attribute + _t1340 := p.parse_relation_id() + relation_id703 := _t1340 + _t1341 := p.parse_abstraction() + abstraction704 := _t1341 + var _t1342 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1274 := p.parse_attrs() - _t1273 = _t1274 + _t1343 := p.parse_attrs() + _t1342 = _t1343 } - attrs671 := _t1273 + attrs705 := _t1342 p.consumeLiteral(")") - _t1275 := attrs671 - if attrs671 == nil { - _t1275 = []*pb.Attribute{} + _t1344 := attrs705 + if attrs705 == nil { + _t1344 = []*pb.Attribute{} } - _t1276 := &pb.Def{Name: relation_id669, Body: abstraction670, Attrs: _t1275} - result673 := _t1276 - p.recordSpan(int(span_start672), "Def") - return result673 + _t1345 := &pb.Def{Name: relation_id703, Body: abstraction704, Attrs: _t1344} + result707 := _t1345 + p.recordSpan(int(span_start706), "Def") + return result707 } func (p *Parser) parse_relation_id() *pb.RelationId { - span_start677 := int64(p.spanStart()) - var _t1277 int64 + span_start711 := int64(p.spanStart()) + var _t1346 int64 if p.matchLookaheadLiteral(":", 0) { - _t1277 = 0 + _t1346 = 0 } else { - var _t1278 int64 + var _t1347 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1278 = 1 + _t1347 = 1 } else { - _t1278 = -1 + _t1347 = -1 } - _t1277 = _t1278 - } - prediction674 := _t1277 - var _t1279 *pb.RelationId - if prediction674 == 1 { - uint128676 := p.consumeTerminal("UINT128").Value.uint128 - _ = uint128676 - _t1279 = &pb.RelationId{IdLow: uint128676.Low, IdHigh: uint128676.High} + _t1346 = _t1347 + } + prediction708 := _t1346 + var _t1348 *pb.RelationId + if prediction708 == 1 { + uint128710 := p.consumeTerminal("UINT128").Value.uint128 + _ = uint128710 + _t1348 = &pb.RelationId{IdLow: uint128710.Low, IdHigh: uint128710.High} } else { - var _t1280 *pb.RelationId - if prediction674 == 0 { + var _t1349 *pb.RelationId + if prediction708 == 0 { p.consumeLiteral(":") - symbol675 := p.consumeTerminal("SYMBOL").Value.str - _t1280 = p.relationIdFromString(symbol675) + symbol709 := p.consumeTerminal("SYMBOL").Value.str + _t1349 = p.relationIdFromString(symbol709) } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in relation_id", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1279 = _t1280 + _t1348 = _t1349 } - result678 := _t1279 - p.recordSpan(int(span_start677), "RelationId") - return result678 + result712 := _t1348 + p.recordSpan(int(span_start711), "RelationId") + return result712 } func (p *Parser) parse_abstraction() *pb.Abstraction { - span_start681 := int64(p.spanStart()) + span_start715 := int64(p.spanStart()) p.consumeLiteral("(") - _t1281 := p.parse_bindings() - bindings679 := _t1281 - _t1282 := p.parse_formula() - formula680 := _t1282 + _t1350 := p.parse_bindings() + bindings713 := _t1350 + _t1351 := p.parse_formula() + formula714 := _t1351 p.consumeLiteral(")") - _t1283 := &pb.Abstraction{Vars: listConcat(bindings679[0].([]*pb.Binding), bindings679[1].([]*pb.Binding)), Value: formula680} - result682 := _t1283 - p.recordSpan(int(span_start681), "Abstraction") - return result682 + _t1352 := &pb.Abstraction{Vars: listConcat(bindings713[0].([]*pb.Binding), bindings713[1].([]*pb.Binding)), Value: formula714} + result716 := _t1352 + p.recordSpan(int(span_start715), "Abstraction") + return result716 } func (p *Parser) parse_bindings() []interface{} { p.consumeLiteral("[") - xs683 := []*pb.Binding{} - cond684 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond684 { - _t1284 := p.parse_binding() - item685 := _t1284 - xs683 = append(xs683, item685) - cond684 = p.matchLookaheadTerminal("SYMBOL", 0) - } - bindings686 := xs683 - var _t1285 []*pb.Binding + xs717 := []*pb.Binding{} + cond718 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond718 { + _t1353 := p.parse_binding() + item719 := _t1353 + xs717 = append(xs717, item719) + cond718 = p.matchLookaheadTerminal("SYMBOL", 0) + } + bindings720 := xs717 + var _t1354 []*pb.Binding if p.matchLookaheadLiteral("|", 0) { - _t1286 := p.parse_value_bindings() - _t1285 = _t1286 + _t1355 := p.parse_value_bindings() + _t1354 = _t1355 } - value_bindings687 := _t1285 + value_bindings721 := _t1354 p.consumeLiteral("]") - _t1287 := value_bindings687 - if value_bindings687 == nil { - _t1287 = []*pb.Binding{} + _t1356 := value_bindings721 + if value_bindings721 == nil { + _t1356 = []*pb.Binding{} } - return []interface{}{bindings686, _t1287} + return []interface{}{bindings720, _t1356} } func (p *Parser) parse_binding() *pb.Binding { - span_start690 := int64(p.spanStart()) - symbol688 := p.consumeTerminal("SYMBOL").Value.str + span_start724 := int64(p.spanStart()) + symbol722 := p.consumeTerminal("SYMBOL").Value.str p.consumeLiteral("::") - _t1288 := p.parse_type() - type689 := _t1288 - _t1289 := &pb.Var{Name: symbol688} - _t1290 := &pb.Binding{Var: _t1289, Type: type689} - result691 := _t1290 - p.recordSpan(int(span_start690), "Binding") - return result691 + _t1357 := p.parse_type() + type723 := _t1357 + _t1358 := &pb.Var{Name: symbol722} + _t1359 := &pb.Binding{Var: _t1358, Type: type723} + result725 := _t1359 + p.recordSpan(int(span_start724), "Binding") + return result725 } func (p *Parser) parse_type() *pb.Type { - span_start707 := int64(p.spanStart()) - var _t1291 int64 + span_start741 := int64(p.spanStart()) + var _t1360 int64 if p.matchLookaheadLiteral("UNKNOWN", 0) { - _t1291 = 0 + _t1360 = 0 } else { - var _t1292 int64 + var _t1361 int64 if p.matchLookaheadLiteral("UINT32", 0) { - _t1292 = 13 + _t1361 = 13 } else { - var _t1293 int64 + var _t1362 int64 if p.matchLookaheadLiteral("UINT128", 0) { - _t1293 = 4 + _t1362 = 4 } else { - var _t1294 int64 + var _t1363 int64 if p.matchLookaheadLiteral("STRING", 0) { - _t1294 = 1 + _t1363 = 1 } else { - var _t1295 int64 + var _t1364 int64 if p.matchLookaheadLiteral("MISSING", 0) { - _t1295 = 8 + _t1364 = 8 } else { - var _t1296 int64 + var _t1365 int64 if p.matchLookaheadLiteral("INT32", 0) { - _t1296 = 11 + _t1365 = 11 } else { - var _t1297 int64 + var _t1366 int64 if p.matchLookaheadLiteral("INT128", 0) { - _t1297 = 5 + _t1366 = 5 } else { - var _t1298 int64 + var _t1367 int64 if p.matchLookaheadLiteral("INT", 0) { - _t1298 = 2 + _t1367 = 2 } else { - var _t1299 int64 + var _t1368 int64 if p.matchLookaheadLiteral("FLOAT32", 0) { - _t1299 = 12 + _t1368 = 12 } else { - var _t1300 int64 + var _t1369 int64 if p.matchLookaheadLiteral("FLOAT", 0) { - _t1300 = 3 + _t1369 = 3 } else { - var _t1301 int64 + var _t1370 int64 if p.matchLookaheadLiteral("DATETIME", 0) { - _t1301 = 7 + _t1370 = 7 } else { - var _t1302 int64 + var _t1371 int64 if p.matchLookaheadLiteral("DATE", 0) { - _t1302 = 6 + _t1371 = 6 } else { - var _t1303 int64 + var _t1372 int64 if p.matchLookaheadLiteral("BOOLEAN", 0) { - _t1303 = 10 + _t1372 = 10 } else { - var _t1304 int64 + var _t1373 int64 if p.matchLookaheadLiteral("(", 0) { - _t1304 = 9 + _t1373 = 9 } else { - _t1304 = -1 + _t1373 = -1 } - _t1303 = _t1304 + _t1372 = _t1373 } - _t1302 = _t1303 + _t1371 = _t1372 } - _t1301 = _t1302 + _t1370 = _t1371 } - _t1300 = _t1301 + _t1369 = _t1370 } - _t1299 = _t1300 + _t1368 = _t1369 } - _t1298 = _t1299 + _t1367 = _t1368 } - _t1297 = _t1298 + _t1366 = _t1367 } - _t1296 = _t1297 + _t1365 = _t1366 } - _t1295 = _t1296 + _t1364 = _t1365 } - _t1294 = _t1295 + _t1363 = _t1364 } - _t1293 = _t1294 + _t1362 = _t1363 } - _t1292 = _t1293 + _t1361 = _t1362 } - _t1291 = _t1292 - } - prediction692 := _t1291 - var _t1305 *pb.Type - if prediction692 == 13 { - _t1306 := p.parse_uint32_type() - uint32_type706 := _t1306 - _t1307 := &pb.Type{} - _t1307.Type = &pb.Type_Uint32Type{Uint32Type: uint32_type706} - _t1305 = _t1307 + _t1360 = _t1361 + } + prediction726 := _t1360 + var _t1374 *pb.Type + if prediction726 == 13 { + _t1375 := p.parse_uint32_type() + uint32_type740 := _t1375 + _t1376 := &pb.Type{} + _t1376.Type = &pb.Type_Uint32Type{Uint32Type: uint32_type740} + _t1374 = _t1376 } else { - var _t1308 *pb.Type - if prediction692 == 12 { - _t1309 := p.parse_float32_type() - float32_type705 := _t1309 - _t1310 := &pb.Type{} - _t1310.Type = &pb.Type_Float32Type{Float32Type: float32_type705} - _t1308 = _t1310 + var _t1377 *pb.Type + if prediction726 == 12 { + _t1378 := p.parse_float32_type() + float32_type739 := _t1378 + _t1379 := &pb.Type{} + _t1379.Type = &pb.Type_Float32Type{Float32Type: float32_type739} + _t1377 = _t1379 } else { - var _t1311 *pb.Type - if prediction692 == 11 { - _t1312 := p.parse_int32_type() - int32_type704 := _t1312 - _t1313 := &pb.Type{} - _t1313.Type = &pb.Type_Int32Type{Int32Type: int32_type704} - _t1311 = _t1313 + var _t1380 *pb.Type + if prediction726 == 11 { + _t1381 := p.parse_int32_type() + int32_type738 := _t1381 + _t1382 := &pb.Type{} + _t1382.Type = &pb.Type_Int32Type{Int32Type: int32_type738} + _t1380 = _t1382 } else { - var _t1314 *pb.Type - if prediction692 == 10 { - _t1315 := p.parse_boolean_type() - boolean_type703 := _t1315 - _t1316 := &pb.Type{} - _t1316.Type = &pb.Type_BooleanType{BooleanType: boolean_type703} - _t1314 = _t1316 + var _t1383 *pb.Type + if prediction726 == 10 { + _t1384 := p.parse_boolean_type() + boolean_type737 := _t1384 + _t1385 := &pb.Type{} + _t1385.Type = &pb.Type_BooleanType{BooleanType: boolean_type737} + _t1383 = _t1385 } else { - var _t1317 *pb.Type - if prediction692 == 9 { - _t1318 := p.parse_decimal_type() - decimal_type702 := _t1318 - _t1319 := &pb.Type{} - _t1319.Type = &pb.Type_DecimalType{DecimalType: decimal_type702} - _t1317 = _t1319 + var _t1386 *pb.Type + if prediction726 == 9 { + _t1387 := p.parse_decimal_type() + decimal_type736 := _t1387 + _t1388 := &pb.Type{} + _t1388.Type = &pb.Type_DecimalType{DecimalType: decimal_type736} + _t1386 = _t1388 } else { - var _t1320 *pb.Type - if prediction692 == 8 { - _t1321 := p.parse_missing_type() - missing_type701 := _t1321 - _t1322 := &pb.Type{} - _t1322.Type = &pb.Type_MissingType{MissingType: missing_type701} - _t1320 = _t1322 + var _t1389 *pb.Type + if prediction726 == 8 { + _t1390 := p.parse_missing_type() + missing_type735 := _t1390 + _t1391 := &pb.Type{} + _t1391.Type = &pb.Type_MissingType{MissingType: missing_type735} + _t1389 = _t1391 } else { - var _t1323 *pb.Type - if prediction692 == 7 { - _t1324 := p.parse_datetime_type() - datetime_type700 := _t1324 - _t1325 := &pb.Type{} - _t1325.Type = &pb.Type_DatetimeType{DatetimeType: datetime_type700} - _t1323 = _t1325 + var _t1392 *pb.Type + if prediction726 == 7 { + _t1393 := p.parse_datetime_type() + datetime_type734 := _t1393 + _t1394 := &pb.Type{} + _t1394.Type = &pb.Type_DatetimeType{DatetimeType: datetime_type734} + _t1392 = _t1394 } else { - var _t1326 *pb.Type - if prediction692 == 6 { - _t1327 := p.parse_date_type() - date_type699 := _t1327 - _t1328 := &pb.Type{} - _t1328.Type = &pb.Type_DateType{DateType: date_type699} - _t1326 = _t1328 + var _t1395 *pb.Type + if prediction726 == 6 { + _t1396 := p.parse_date_type() + date_type733 := _t1396 + _t1397 := &pb.Type{} + _t1397.Type = &pb.Type_DateType{DateType: date_type733} + _t1395 = _t1397 } else { - var _t1329 *pb.Type - if prediction692 == 5 { - _t1330 := p.parse_int128_type() - int128_type698 := _t1330 - _t1331 := &pb.Type{} - _t1331.Type = &pb.Type_Int128Type{Int128Type: int128_type698} - _t1329 = _t1331 + var _t1398 *pb.Type + if prediction726 == 5 { + _t1399 := p.parse_int128_type() + int128_type732 := _t1399 + _t1400 := &pb.Type{} + _t1400.Type = &pb.Type_Int128Type{Int128Type: int128_type732} + _t1398 = _t1400 } else { - var _t1332 *pb.Type - if prediction692 == 4 { - _t1333 := p.parse_uint128_type() - uint128_type697 := _t1333 - _t1334 := &pb.Type{} - _t1334.Type = &pb.Type_Uint128Type{Uint128Type: uint128_type697} - _t1332 = _t1334 + var _t1401 *pb.Type + if prediction726 == 4 { + _t1402 := p.parse_uint128_type() + uint128_type731 := _t1402 + _t1403 := &pb.Type{} + _t1403.Type = &pb.Type_Uint128Type{Uint128Type: uint128_type731} + _t1401 = _t1403 } else { - var _t1335 *pb.Type - if prediction692 == 3 { - _t1336 := p.parse_float_type() - float_type696 := _t1336 - _t1337 := &pb.Type{} - _t1337.Type = &pb.Type_FloatType{FloatType: float_type696} - _t1335 = _t1337 + var _t1404 *pb.Type + if prediction726 == 3 { + _t1405 := p.parse_float_type() + float_type730 := _t1405 + _t1406 := &pb.Type{} + _t1406.Type = &pb.Type_FloatType{FloatType: float_type730} + _t1404 = _t1406 } else { - var _t1338 *pb.Type - if prediction692 == 2 { - _t1339 := p.parse_int_type() - int_type695 := _t1339 - _t1340 := &pb.Type{} - _t1340.Type = &pb.Type_IntType{IntType: int_type695} - _t1338 = _t1340 + var _t1407 *pb.Type + if prediction726 == 2 { + _t1408 := p.parse_int_type() + int_type729 := _t1408 + _t1409 := &pb.Type{} + _t1409.Type = &pb.Type_IntType{IntType: int_type729} + _t1407 = _t1409 } else { - var _t1341 *pb.Type - if prediction692 == 1 { - _t1342 := p.parse_string_type() - string_type694 := _t1342 - _t1343 := &pb.Type{} - _t1343.Type = &pb.Type_StringType{StringType: string_type694} - _t1341 = _t1343 + var _t1410 *pb.Type + if prediction726 == 1 { + _t1411 := p.parse_string_type() + string_type728 := _t1411 + _t1412 := &pb.Type{} + _t1412.Type = &pb.Type_StringType{StringType: string_type728} + _t1410 = _t1412 } else { - var _t1344 *pb.Type - if prediction692 == 0 { - _t1345 := p.parse_unspecified_type() - unspecified_type693 := _t1345 - _t1346 := &pb.Type{} - _t1346.Type = &pb.Type_UnspecifiedType{UnspecifiedType: unspecified_type693} - _t1344 = _t1346 + var _t1413 *pb.Type + if prediction726 == 0 { + _t1414 := p.parse_unspecified_type() + unspecified_type727 := _t1414 + _t1415 := &pb.Type{} + _t1415.Type = &pb.Type_UnspecifiedType{UnspecifiedType: unspecified_type727} + _t1413 = _t1415 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in type", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1341 = _t1344 + _t1410 = _t1413 } - _t1338 = _t1341 + _t1407 = _t1410 } - _t1335 = _t1338 + _t1404 = _t1407 } - _t1332 = _t1335 + _t1401 = _t1404 } - _t1329 = _t1332 + _t1398 = _t1401 } - _t1326 = _t1329 + _t1395 = _t1398 } - _t1323 = _t1326 + _t1392 = _t1395 } - _t1320 = _t1323 + _t1389 = _t1392 } - _t1317 = _t1320 + _t1386 = _t1389 } - _t1314 = _t1317 + _t1383 = _t1386 } - _t1311 = _t1314 + _t1380 = _t1383 } - _t1308 = _t1311 + _t1377 = _t1380 } - _t1305 = _t1308 + _t1374 = _t1377 } - result708 := _t1305 - p.recordSpan(int(span_start707), "Type") - return result708 + result742 := _t1374 + p.recordSpan(int(span_start741), "Type") + return result742 } func (p *Parser) parse_unspecified_type() *pb.UnspecifiedType { - span_start709 := int64(p.spanStart()) + span_start743 := int64(p.spanStart()) p.consumeLiteral("UNKNOWN") - _t1347 := &pb.UnspecifiedType{} - result710 := _t1347 - p.recordSpan(int(span_start709), "UnspecifiedType") - return result710 + _t1416 := &pb.UnspecifiedType{} + result744 := _t1416 + p.recordSpan(int(span_start743), "UnspecifiedType") + return result744 } func (p *Parser) parse_string_type() *pb.StringType { - span_start711 := int64(p.spanStart()) + span_start745 := int64(p.spanStart()) p.consumeLiteral("STRING") - _t1348 := &pb.StringType{} - result712 := _t1348 - p.recordSpan(int(span_start711), "StringType") - return result712 + _t1417 := &pb.StringType{} + result746 := _t1417 + p.recordSpan(int(span_start745), "StringType") + return result746 } func (p *Parser) parse_int_type() *pb.IntType { - span_start713 := int64(p.spanStart()) + span_start747 := int64(p.spanStart()) p.consumeLiteral("INT") - _t1349 := &pb.IntType{} - result714 := _t1349 - p.recordSpan(int(span_start713), "IntType") - return result714 + _t1418 := &pb.IntType{} + result748 := _t1418 + p.recordSpan(int(span_start747), "IntType") + return result748 } func (p *Parser) parse_float_type() *pb.FloatType { - span_start715 := int64(p.spanStart()) + span_start749 := int64(p.spanStart()) p.consumeLiteral("FLOAT") - _t1350 := &pb.FloatType{} - result716 := _t1350 - p.recordSpan(int(span_start715), "FloatType") - return result716 + _t1419 := &pb.FloatType{} + result750 := _t1419 + p.recordSpan(int(span_start749), "FloatType") + return result750 } func (p *Parser) parse_uint128_type() *pb.UInt128Type { - span_start717 := int64(p.spanStart()) + span_start751 := int64(p.spanStart()) p.consumeLiteral("UINT128") - _t1351 := &pb.UInt128Type{} - result718 := _t1351 - p.recordSpan(int(span_start717), "UInt128Type") - return result718 + _t1420 := &pb.UInt128Type{} + result752 := _t1420 + p.recordSpan(int(span_start751), "UInt128Type") + return result752 } func (p *Parser) parse_int128_type() *pb.Int128Type { - span_start719 := int64(p.spanStart()) + span_start753 := int64(p.spanStart()) p.consumeLiteral("INT128") - _t1352 := &pb.Int128Type{} - result720 := _t1352 - p.recordSpan(int(span_start719), "Int128Type") - return result720 + _t1421 := &pb.Int128Type{} + result754 := _t1421 + p.recordSpan(int(span_start753), "Int128Type") + return result754 } func (p *Parser) parse_date_type() *pb.DateType { - span_start721 := int64(p.spanStart()) + span_start755 := int64(p.spanStart()) p.consumeLiteral("DATE") - _t1353 := &pb.DateType{} - result722 := _t1353 - p.recordSpan(int(span_start721), "DateType") - return result722 + _t1422 := &pb.DateType{} + result756 := _t1422 + p.recordSpan(int(span_start755), "DateType") + return result756 } func (p *Parser) parse_datetime_type() *pb.DateTimeType { - span_start723 := int64(p.spanStart()) + span_start757 := int64(p.spanStart()) p.consumeLiteral("DATETIME") - _t1354 := &pb.DateTimeType{} - result724 := _t1354 - p.recordSpan(int(span_start723), "DateTimeType") - return result724 + _t1423 := &pb.DateTimeType{} + result758 := _t1423 + p.recordSpan(int(span_start757), "DateTimeType") + return result758 } func (p *Parser) parse_missing_type() *pb.MissingType { - span_start725 := int64(p.spanStart()) + span_start759 := int64(p.spanStart()) p.consumeLiteral("MISSING") - _t1355 := &pb.MissingType{} - result726 := _t1355 - p.recordSpan(int(span_start725), "MissingType") - return result726 + _t1424 := &pb.MissingType{} + result760 := _t1424 + p.recordSpan(int(span_start759), "MissingType") + return result760 } func (p *Parser) parse_decimal_type() *pb.DecimalType { - span_start729 := int64(p.spanStart()) + span_start763 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("DECIMAL") - int727 := p.consumeTerminal("INT").Value.i64 - int_3728 := p.consumeTerminal("INT").Value.i64 + int761 := p.consumeTerminal("INT").Value.i64 + int_3762 := p.consumeTerminal("INT").Value.i64 p.consumeLiteral(")") - _t1356 := &pb.DecimalType{Precision: int32(int727), Scale: int32(int_3728)} - result730 := _t1356 - p.recordSpan(int(span_start729), "DecimalType") - return result730 + _t1425 := &pb.DecimalType{Precision: int32(int761), Scale: int32(int_3762)} + result764 := _t1425 + p.recordSpan(int(span_start763), "DecimalType") + return result764 } func (p *Parser) parse_boolean_type() *pb.BooleanType { - span_start731 := int64(p.spanStart()) + span_start765 := int64(p.spanStart()) p.consumeLiteral("BOOLEAN") - _t1357 := &pb.BooleanType{} - result732 := _t1357 - p.recordSpan(int(span_start731), "BooleanType") - return result732 + _t1426 := &pb.BooleanType{} + result766 := _t1426 + p.recordSpan(int(span_start765), "BooleanType") + return result766 } func (p *Parser) parse_int32_type() *pb.Int32Type { - span_start733 := int64(p.spanStart()) + span_start767 := int64(p.spanStart()) p.consumeLiteral("INT32") - _t1358 := &pb.Int32Type{} - result734 := _t1358 - p.recordSpan(int(span_start733), "Int32Type") - return result734 + _t1427 := &pb.Int32Type{} + result768 := _t1427 + p.recordSpan(int(span_start767), "Int32Type") + return result768 } func (p *Parser) parse_float32_type() *pb.Float32Type { - span_start735 := int64(p.spanStart()) + span_start769 := int64(p.spanStart()) p.consumeLiteral("FLOAT32") - _t1359 := &pb.Float32Type{} - result736 := _t1359 - p.recordSpan(int(span_start735), "Float32Type") - return result736 + _t1428 := &pb.Float32Type{} + result770 := _t1428 + p.recordSpan(int(span_start769), "Float32Type") + return result770 } func (p *Parser) parse_uint32_type() *pb.UInt32Type { - span_start737 := int64(p.spanStart()) + span_start771 := int64(p.spanStart()) p.consumeLiteral("UINT32") - _t1360 := &pb.UInt32Type{} - result738 := _t1360 - p.recordSpan(int(span_start737), "UInt32Type") - return result738 + _t1429 := &pb.UInt32Type{} + result772 := _t1429 + p.recordSpan(int(span_start771), "UInt32Type") + return result772 } func (p *Parser) parse_value_bindings() []*pb.Binding { p.consumeLiteral("|") - xs739 := []*pb.Binding{} - cond740 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond740 { - _t1361 := p.parse_binding() - item741 := _t1361 - xs739 = append(xs739, item741) - cond740 = p.matchLookaheadTerminal("SYMBOL", 0) + xs773 := []*pb.Binding{} + cond774 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond774 { + _t1430 := p.parse_binding() + item775 := _t1430 + xs773 = append(xs773, item775) + cond774 = p.matchLookaheadTerminal("SYMBOL", 0) } - bindings742 := xs739 - return bindings742 + bindings776 := xs773 + return bindings776 } func (p *Parser) parse_formula() *pb.Formula { - span_start757 := int64(p.spanStart()) - var _t1362 int64 + span_start791 := int64(p.spanStart()) + var _t1431 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1363 int64 + var _t1432 int64 if p.matchLookaheadLiteral("true", 1) { - _t1363 = 0 + _t1432 = 0 } else { - var _t1364 int64 + var _t1433 int64 if p.matchLookaheadLiteral("relatom", 1) { - _t1364 = 11 + _t1433 = 11 } else { - var _t1365 int64 + var _t1434 int64 if p.matchLookaheadLiteral("reduce", 1) { - _t1365 = 3 + _t1434 = 3 } else { - var _t1366 int64 + var _t1435 int64 if p.matchLookaheadLiteral("primitive", 1) { - _t1366 = 10 + _t1435 = 10 } else { - var _t1367 int64 + var _t1436 int64 if p.matchLookaheadLiteral("pragma", 1) { - _t1367 = 9 + _t1436 = 9 } else { - var _t1368 int64 + var _t1437 int64 if p.matchLookaheadLiteral("or", 1) { - _t1368 = 5 + _t1437 = 5 } else { - var _t1369 int64 + var _t1438 int64 if p.matchLookaheadLiteral("not", 1) { - _t1369 = 6 + _t1438 = 6 } else { - var _t1370 int64 + var _t1439 int64 if p.matchLookaheadLiteral("ffi", 1) { - _t1370 = 7 + _t1439 = 7 } else { - var _t1371 int64 + var _t1440 int64 if p.matchLookaheadLiteral("false", 1) { - _t1371 = 1 + _t1440 = 1 } else { - var _t1372 int64 + var _t1441 int64 if p.matchLookaheadLiteral("exists", 1) { - _t1372 = 2 + _t1441 = 2 } else { - var _t1373 int64 + var _t1442 int64 if p.matchLookaheadLiteral("cast", 1) { - _t1373 = 12 + _t1442 = 12 } else { - var _t1374 int64 + var _t1443 int64 if p.matchLookaheadLiteral("atom", 1) { - _t1374 = 8 + _t1443 = 8 } else { - var _t1375 int64 + var _t1444 int64 if p.matchLookaheadLiteral("and", 1) { - _t1375 = 4 + _t1444 = 4 } else { - var _t1376 int64 + var _t1445 int64 if p.matchLookaheadLiteral(">=", 1) { - _t1376 = 10 + _t1445 = 10 } else { - var _t1377 int64 + var _t1446 int64 if p.matchLookaheadLiteral(">", 1) { - _t1377 = 10 + _t1446 = 10 } else { - var _t1378 int64 + var _t1447 int64 if p.matchLookaheadLiteral("=", 1) { - _t1378 = 10 + _t1447 = 10 } else { - var _t1379 int64 + var _t1448 int64 if p.matchLookaheadLiteral("<=", 1) { - _t1379 = 10 + _t1448 = 10 } else { - var _t1380 int64 + var _t1449 int64 if p.matchLookaheadLiteral("<", 1) { - _t1380 = 10 + _t1449 = 10 } else { - var _t1381 int64 + var _t1450 int64 if p.matchLookaheadLiteral("/", 1) { - _t1381 = 10 + _t1450 = 10 } else { - var _t1382 int64 + var _t1451 int64 if p.matchLookaheadLiteral("-", 1) { - _t1382 = 10 + _t1451 = 10 } else { - var _t1383 int64 + var _t1452 int64 if p.matchLookaheadLiteral("+", 1) { - _t1383 = 10 + _t1452 = 10 } else { - var _t1384 int64 + var _t1453 int64 if p.matchLookaheadLiteral("*", 1) { - _t1384 = 10 + _t1453 = 10 } else { - _t1384 = -1 + _t1453 = -1 } - _t1383 = _t1384 + _t1452 = _t1453 } - _t1382 = _t1383 + _t1451 = _t1452 } - _t1381 = _t1382 + _t1450 = _t1451 } - _t1380 = _t1381 + _t1449 = _t1450 } - _t1379 = _t1380 + _t1448 = _t1449 } - _t1378 = _t1379 + _t1447 = _t1448 } - _t1377 = _t1378 + _t1446 = _t1447 } - _t1376 = _t1377 + _t1445 = _t1446 } - _t1375 = _t1376 + _t1444 = _t1445 } - _t1374 = _t1375 + _t1443 = _t1444 } - _t1373 = _t1374 + _t1442 = _t1443 } - _t1372 = _t1373 + _t1441 = _t1442 } - _t1371 = _t1372 + _t1440 = _t1441 } - _t1370 = _t1371 + _t1439 = _t1440 } - _t1369 = _t1370 + _t1438 = _t1439 } - _t1368 = _t1369 + _t1437 = _t1438 } - _t1367 = _t1368 + _t1436 = _t1437 } - _t1366 = _t1367 + _t1435 = _t1436 } - _t1365 = _t1366 + _t1434 = _t1435 } - _t1364 = _t1365 + _t1433 = _t1434 } - _t1363 = _t1364 + _t1432 = _t1433 } - _t1362 = _t1363 + _t1431 = _t1432 } else { - _t1362 = -1 - } - prediction743 := _t1362 - var _t1385 *pb.Formula - if prediction743 == 12 { - _t1386 := p.parse_cast() - cast756 := _t1386 - _t1387 := &pb.Formula{} - _t1387.FormulaType = &pb.Formula_Cast{Cast: cast756} - _t1385 = _t1387 + _t1431 = -1 + } + prediction777 := _t1431 + var _t1454 *pb.Formula + if prediction777 == 12 { + _t1455 := p.parse_cast() + cast790 := _t1455 + _t1456 := &pb.Formula{} + _t1456.FormulaType = &pb.Formula_Cast{Cast: cast790} + _t1454 = _t1456 } else { - var _t1388 *pb.Formula - if prediction743 == 11 { - _t1389 := p.parse_rel_atom() - rel_atom755 := _t1389 - _t1390 := &pb.Formula{} - _t1390.FormulaType = &pb.Formula_RelAtom{RelAtom: rel_atom755} - _t1388 = _t1390 + var _t1457 *pb.Formula + if prediction777 == 11 { + _t1458 := p.parse_rel_atom() + rel_atom789 := _t1458 + _t1459 := &pb.Formula{} + _t1459.FormulaType = &pb.Formula_RelAtom{RelAtom: rel_atom789} + _t1457 = _t1459 } else { - var _t1391 *pb.Formula - if prediction743 == 10 { - _t1392 := p.parse_primitive() - primitive754 := _t1392 - _t1393 := &pb.Formula{} - _t1393.FormulaType = &pb.Formula_Primitive{Primitive: primitive754} - _t1391 = _t1393 + var _t1460 *pb.Formula + if prediction777 == 10 { + _t1461 := p.parse_primitive() + primitive788 := _t1461 + _t1462 := &pb.Formula{} + _t1462.FormulaType = &pb.Formula_Primitive{Primitive: primitive788} + _t1460 = _t1462 } else { - var _t1394 *pb.Formula - if prediction743 == 9 { - _t1395 := p.parse_pragma() - pragma753 := _t1395 - _t1396 := &pb.Formula{} - _t1396.FormulaType = &pb.Formula_Pragma{Pragma: pragma753} - _t1394 = _t1396 + var _t1463 *pb.Formula + if prediction777 == 9 { + _t1464 := p.parse_pragma() + pragma787 := _t1464 + _t1465 := &pb.Formula{} + _t1465.FormulaType = &pb.Formula_Pragma{Pragma: pragma787} + _t1463 = _t1465 } else { - var _t1397 *pb.Formula - if prediction743 == 8 { - _t1398 := p.parse_atom() - atom752 := _t1398 - _t1399 := &pb.Formula{} - _t1399.FormulaType = &pb.Formula_Atom{Atom: atom752} - _t1397 = _t1399 + var _t1466 *pb.Formula + if prediction777 == 8 { + _t1467 := p.parse_atom() + atom786 := _t1467 + _t1468 := &pb.Formula{} + _t1468.FormulaType = &pb.Formula_Atom{Atom: atom786} + _t1466 = _t1468 } else { - var _t1400 *pb.Formula - if prediction743 == 7 { - _t1401 := p.parse_ffi() - ffi751 := _t1401 - _t1402 := &pb.Formula{} - _t1402.FormulaType = &pb.Formula_Ffi{Ffi: ffi751} - _t1400 = _t1402 + var _t1469 *pb.Formula + if prediction777 == 7 { + _t1470 := p.parse_ffi() + ffi785 := _t1470 + _t1471 := &pb.Formula{} + _t1471.FormulaType = &pb.Formula_Ffi{Ffi: ffi785} + _t1469 = _t1471 } else { - var _t1403 *pb.Formula - if prediction743 == 6 { - _t1404 := p.parse_not() - not750 := _t1404 - _t1405 := &pb.Formula{} - _t1405.FormulaType = &pb.Formula_Not{Not: not750} - _t1403 = _t1405 + var _t1472 *pb.Formula + if prediction777 == 6 { + _t1473 := p.parse_not() + not784 := _t1473 + _t1474 := &pb.Formula{} + _t1474.FormulaType = &pb.Formula_Not{Not: not784} + _t1472 = _t1474 } else { - var _t1406 *pb.Formula - if prediction743 == 5 { - _t1407 := p.parse_disjunction() - disjunction749 := _t1407 - _t1408 := &pb.Formula{} - _t1408.FormulaType = &pb.Formula_Disjunction{Disjunction: disjunction749} - _t1406 = _t1408 + var _t1475 *pb.Formula + if prediction777 == 5 { + _t1476 := p.parse_disjunction() + disjunction783 := _t1476 + _t1477 := &pb.Formula{} + _t1477.FormulaType = &pb.Formula_Disjunction{Disjunction: disjunction783} + _t1475 = _t1477 } else { - var _t1409 *pb.Formula - if prediction743 == 4 { - _t1410 := p.parse_conjunction() - conjunction748 := _t1410 - _t1411 := &pb.Formula{} - _t1411.FormulaType = &pb.Formula_Conjunction{Conjunction: conjunction748} - _t1409 = _t1411 + var _t1478 *pb.Formula + if prediction777 == 4 { + _t1479 := p.parse_conjunction() + conjunction782 := _t1479 + _t1480 := &pb.Formula{} + _t1480.FormulaType = &pb.Formula_Conjunction{Conjunction: conjunction782} + _t1478 = _t1480 } else { - var _t1412 *pb.Formula - if prediction743 == 3 { - _t1413 := p.parse_reduce() - reduce747 := _t1413 - _t1414 := &pb.Formula{} - _t1414.FormulaType = &pb.Formula_Reduce{Reduce: reduce747} - _t1412 = _t1414 + var _t1481 *pb.Formula + if prediction777 == 3 { + _t1482 := p.parse_reduce() + reduce781 := _t1482 + _t1483 := &pb.Formula{} + _t1483.FormulaType = &pb.Formula_Reduce{Reduce: reduce781} + _t1481 = _t1483 } else { - var _t1415 *pb.Formula - if prediction743 == 2 { - _t1416 := p.parse_exists() - exists746 := _t1416 - _t1417 := &pb.Formula{} - _t1417.FormulaType = &pb.Formula_Exists{Exists: exists746} - _t1415 = _t1417 + var _t1484 *pb.Formula + if prediction777 == 2 { + _t1485 := p.parse_exists() + exists780 := _t1485 + _t1486 := &pb.Formula{} + _t1486.FormulaType = &pb.Formula_Exists{Exists: exists780} + _t1484 = _t1486 } else { - var _t1418 *pb.Formula - if prediction743 == 1 { - _t1419 := p.parse_false() - false745 := _t1419 - _t1420 := &pb.Formula{} - _t1420.FormulaType = &pb.Formula_Disjunction{Disjunction: false745} - _t1418 = _t1420 + var _t1487 *pb.Formula + if prediction777 == 1 { + _t1488 := p.parse_false() + false779 := _t1488 + _t1489 := &pb.Formula{} + _t1489.FormulaType = &pb.Formula_Disjunction{Disjunction: false779} + _t1487 = _t1489 } else { - var _t1421 *pb.Formula - if prediction743 == 0 { - _t1422 := p.parse_true() - true744 := _t1422 - _t1423 := &pb.Formula{} - _t1423.FormulaType = &pb.Formula_Conjunction{Conjunction: true744} - _t1421 = _t1423 + var _t1490 *pb.Formula + if prediction777 == 0 { + _t1491 := p.parse_true() + true778 := _t1491 + _t1492 := &pb.Formula{} + _t1492.FormulaType = &pb.Formula_Conjunction{Conjunction: true778} + _t1490 = _t1492 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in formula", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1418 = _t1421 + _t1487 = _t1490 } - _t1415 = _t1418 + _t1484 = _t1487 } - _t1412 = _t1415 + _t1481 = _t1484 } - _t1409 = _t1412 + _t1478 = _t1481 } - _t1406 = _t1409 + _t1475 = _t1478 } - _t1403 = _t1406 + _t1472 = _t1475 } - _t1400 = _t1403 + _t1469 = _t1472 } - _t1397 = _t1400 + _t1466 = _t1469 } - _t1394 = _t1397 + _t1463 = _t1466 } - _t1391 = _t1394 + _t1460 = _t1463 } - _t1388 = _t1391 + _t1457 = _t1460 } - _t1385 = _t1388 + _t1454 = _t1457 } - result758 := _t1385 - p.recordSpan(int(span_start757), "Formula") - return result758 + result792 := _t1454 + p.recordSpan(int(span_start791), "Formula") + return result792 } func (p *Parser) parse_true() *pb.Conjunction { - span_start759 := int64(p.spanStart()) + span_start793 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("true") p.consumeLiteral(")") - _t1424 := &pb.Conjunction{Args: []*pb.Formula{}} - result760 := _t1424 - p.recordSpan(int(span_start759), "Conjunction") - return result760 + _t1493 := &pb.Conjunction{Args: []*pb.Formula{}} + result794 := _t1493 + p.recordSpan(int(span_start793), "Conjunction") + return result794 } func (p *Parser) parse_false() *pb.Disjunction { - span_start761 := int64(p.spanStart()) + span_start795 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("false") p.consumeLiteral(")") - _t1425 := &pb.Disjunction{Args: []*pb.Formula{}} - result762 := _t1425 - p.recordSpan(int(span_start761), "Disjunction") - return result762 + _t1494 := &pb.Disjunction{Args: []*pb.Formula{}} + result796 := _t1494 + p.recordSpan(int(span_start795), "Disjunction") + return result796 } func (p *Parser) parse_exists() *pb.Exists { - span_start765 := int64(p.spanStart()) + span_start799 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("exists") - _t1426 := p.parse_bindings() - bindings763 := _t1426 - _t1427 := p.parse_formula() - formula764 := _t1427 + _t1495 := p.parse_bindings() + bindings797 := _t1495 + _t1496 := p.parse_formula() + formula798 := _t1496 p.consumeLiteral(")") - _t1428 := &pb.Abstraction{Vars: listConcat(bindings763[0].([]*pb.Binding), bindings763[1].([]*pb.Binding)), Value: formula764} - _t1429 := &pb.Exists{Body: _t1428} - result766 := _t1429 - p.recordSpan(int(span_start765), "Exists") - return result766 + _t1497 := &pb.Abstraction{Vars: listConcat(bindings797[0].([]*pb.Binding), bindings797[1].([]*pb.Binding)), Value: formula798} + _t1498 := &pb.Exists{Body: _t1497} + result800 := _t1498 + p.recordSpan(int(span_start799), "Exists") + return result800 } func (p *Parser) parse_reduce() *pb.Reduce { - span_start770 := int64(p.spanStart()) + span_start804 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("reduce") - _t1430 := p.parse_abstraction() - abstraction767 := _t1430 - _t1431 := p.parse_abstraction() - abstraction_3768 := _t1431 - _t1432 := p.parse_terms() - terms769 := _t1432 + _t1499 := p.parse_abstraction() + abstraction801 := _t1499 + _t1500 := p.parse_abstraction() + abstraction_3802 := _t1500 + _t1501 := p.parse_terms() + terms803 := _t1501 p.consumeLiteral(")") - _t1433 := &pb.Reduce{Op: abstraction767, Body: abstraction_3768, Terms: terms769} - result771 := _t1433 - p.recordSpan(int(span_start770), "Reduce") - return result771 + _t1502 := &pb.Reduce{Op: abstraction801, Body: abstraction_3802, Terms: terms803} + result805 := _t1502 + p.recordSpan(int(span_start804), "Reduce") + return result805 } func (p *Parser) parse_terms() []*pb.Term { p.consumeLiteral("(") p.consumeLiteral("terms") - xs772 := []*pb.Term{} - cond773 := (((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) - for cond773 { - _t1434 := p.parse_term() - item774 := _t1434 - xs772 = append(xs772, item774) - cond773 = (((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) - } - terms775 := xs772 + xs806 := []*pb.Term{} + cond807 := (((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + for cond807 { + _t1503 := p.parse_term() + item808 := _t1503 + xs806 = append(xs806, item808) + cond807 = (((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + } + terms809 := xs806 p.consumeLiteral(")") - return terms775 + return terms809 } func (p *Parser) parse_term() *pb.Term { - span_start779 := int64(p.spanStart()) - var _t1435 int64 + span_start813 := int64(p.spanStart()) + var _t1504 int64 if p.matchLookaheadLiteral("true", 0) { - _t1435 = 1 + _t1504 = 1 } else { - var _t1436 int64 + var _t1505 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1436 = 1 + _t1505 = 1 } else { - var _t1437 int64 + var _t1506 int64 if p.matchLookaheadLiteral("false", 0) { - _t1437 = 1 + _t1506 = 1 } else { - var _t1438 int64 + var _t1507 int64 if p.matchLookaheadLiteral("(", 0) { - _t1438 = 1 + _t1507 = 1 } else { - var _t1439 int64 + var _t1508 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1439 = 1 + _t1508 = 1 } else { - var _t1440 int64 + var _t1509 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1440 = 1 + _t1509 = 1 } else { - var _t1441 int64 + var _t1510 int64 if p.matchLookaheadTerminal("SYMBOL", 0) { - _t1441 = 0 + _t1510 = 0 } else { - var _t1442 int64 + var _t1511 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1442 = 1 + _t1511 = 1 } else { - var _t1443 int64 + var _t1512 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1443 = 1 + _t1512 = 1 } else { - var _t1444 int64 + var _t1513 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1444 = 1 + _t1513 = 1 } else { - var _t1445 int64 + var _t1514 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1445 = 1 + _t1514 = 1 } else { - var _t1446 int64 + var _t1515 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1446 = 1 + _t1515 = 1 } else { - var _t1447 int64 + var _t1516 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1447 = 1 + _t1516 = 1 } else { - var _t1448 int64 + var _t1517 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1448 = 1 + _t1517 = 1 } else { - _t1448 = -1 + _t1517 = -1 } - _t1447 = _t1448 + _t1516 = _t1517 } - _t1446 = _t1447 + _t1515 = _t1516 } - _t1445 = _t1446 + _t1514 = _t1515 } - _t1444 = _t1445 + _t1513 = _t1514 } - _t1443 = _t1444 + _t1512 = _t1513 } - _t1442 = _t1443 + _t1511 = _t1512 } - _t1441 = _t1442 + _t1510 = _t1511 } - _t1440 = _t1441 + _t1509 = _t1510 } - _t1439 = _t1440 + _t1508 = _t1509 } - _t1438 = _t1439 + _t1507 = _t1508 } - _t1437 = _t1438 + _t1506 = _t1507 } - _t1436 = _t1437 + _t1505 = _t1506 } - _t1435 = _t1436 - } - prediction776 := _t1435 - var _t1449 *pb.Term - if prediction776 == 1 { - _t1450 := p.parse_constant() - constant778 := _t1450 - _t1451 := &pb.Term{} - _t1451.TermType = &pb.Term_Constant{Constant: constant778} - _t1449 = _t1451 + _t1504 = _t1505 + } + prediction810 := _t1504 + var _t1518 *pb.Term + if prediction810 == 1 { + _t1519 := p.parse_constant() + constant812 := _t1519 + _t1520 := &pb.Term{} + _t1520.TermType = &pb.Term_Constant{Constant: constant812} + _t1518 = _t1520 } else { - var _t1452 *pb.Term - if prediction776 == 0 { - _t1453 := p.parse_var() - var777 := _t1453 - _t1454 := &pb.Term{} - _t1454.TermType = &pb.Term_Var{Var: var777} - _t1452 = _t1454 + var _t1521 *pb.Term + if prediction810 == 0 { + _t1522 := p.parse_var() + var811 := _t1522 + _t1523 := &pb.Term{} + _t1523.TermType = &pb.Term_Var{Var: var811} + _t1521 = _t1523 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in term", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1449 = _t1452 + _t1518 = _t1521 } - result780 := _t1449 - p.recordSpan(int(span_start779), "Term") - return result780 + result814 := _t1518 + p.recordSpan(int(span_start813), "Term") + return result814 } func (p *Parser) parse_var() *pb.Var { - span_start782 := int64(p.spanStart()) - symbol781 := p.consumeTerminal("SYMBOL").Value.str - _t1455 := &pb.Var{Name: symbol781} - result783 := _t1455 - p.recordSpan(int(span_start782), "Var") - return result783 + span_start816 := int64(p.spanStart()) + symbol815 := p.consumeTerminal("SYMBOL").Value.str + _t1524 := &pb.Var{Name: symbol815} + result817 := _t1524 + p.recordSpan(int(span_start816), "Var") + return result817 } func (p *Parser) parse_constant() *pb.Value { - span_start785 := int64(p.spanStart()) - _t1456 := p.parse_value() - value784 := _t1456 - result786 := value784 - p.recordSpan(int(span_start785), "Value") - return result786 + span_start819 := int64(p.spanStart()) + _t1525 := p.parse_value() + value818 := _t1525 + result820 := value818 + p.recordSpan(int(span_start819), "Value") + return result820 } func (p *Parser) parse_conjunction() *pb.Conjunction { - span_start791 := int64(p.spanStart()) + span_start825 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("and") - xs787 := []*pb.Formula{} - cond788 := p.matchLookaheadLiteral("(", 0) - for cond788 { - _t1457 := p.parse_formula() - item789 := _t1457 - xs787 = append(xs787, item789) - cond788 = p.matchLookaheadLiteral("(", 0) - } - formulas790 := xs787 + xs821 := []*pb.Formula{} + cond822 := p.matchLookaheadLiteral("(", 0) + for cond822 { + _t1526 := p.parse_formula() + item823 := _t1526 + xs821 = append(xs821, item823) + cond822 = p.matchLookaheadLiteral("(", 0) + } + formulas824 := xs821 p.consumeLiteral(")") - _t1458 := &pb.Conjunction{Args: formulas790} - result792 := _t1458 - p.recordSpan(int(span_start791), "Conjunction") - return result792 + _t1527 := &pb.Conjunction{Args: formulas824} + result826 := _t1527 + p.recordSpan(int(span_start825), "Conjunction") + return result826 } func (p *Parser) parse_disjunction() *pb.Disjunction { - span_start797 := int64(p.spanStart()) + span_start831 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("or") - xs793 := []*pb.Formula{} - cond794 := p.matchLookaheadLiteral("(", 0) - for cond794 { - _t1459 := p.parse_formula() - item795 := _t1459 - xs793 = append(xs793, item795) - cond794 = p.matchLookaheadLiteral("(", 0) - } - formulas796 := xs793 + xs827 := []*pb.Formula{} + cond828 := p.matchLookaheadLiteral("(", 0) + for cond828 { + _t1528 := p.parse_formula() + item829 := _t1528 + xs827 = append(xs827, item829) + cond828 = p.matchLookaheadLiteral("(", 0) + } + formulas830 := xs827 p.consumeLiteral(")") - _t1460 := &pb.Disjunction{Args: formulas796} - result798 := _t1460 - p.recordSpan(int(span_start797), "Disjunction") - return result798 + _t1529 := &pb.Disjunction{Args: formulas830} + result832 := _t1529 + p.recordSpan(int(span_start831), "Disjunction") + return result832 } func (p *Parser) parse_not() *pb.Not { - span_start800 := int64(p.spanStart()) + span_start834 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("not") - _t1461 := p.parse_formula() - formula799 := _t1461 + _t1530 := p.parse_formula() + formula833 := _t1530 p.consumeLiteral(")") - _t1462 := &pb.Not{Arg: formula799} - result801 := _t1462 - p.recordSpan(int(span_start800), "Not") - return result801 + _t1531 := &pb.Not{Arg: formula833} + result835 := _t1531 + p.recordSpan(int(span_start834), "Not") + return result835 } func (p *Parser) parse_ffi() *pb.FFI { - span_start805 := int64(p.spanStart()) + span_start839 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("ffi") - _t1463 := p.parse_name() - name802 := _t1463 - _t1464 := p.parse_ffi_args() - ffi_args803 := _t1464 - _t1465 := p.parse_terms() - terms804 := _t1465 + _t1532 := p.parse_name() + name836 := _t1532 + _t1533 := p.parse_ffi_args() + ffi_args837 := _t1533 + _t1534 := p.parse_terms() + terms838 := _t1534 p.consumeLiteral(")") - _t1466 := &pb.FFI{Name: name802, Args: ffi_args803, Terms: terms804} - result806 := _t1466 - p.recordSpan(int(span_start805), "FFI") - return result806 + _t1535 := &pb.FFI{Name: name836, Args: ffi_args837, Terms: terms838} + result840 := _t1535 + p.recordSpan(int(span_start839), "FFI") + return result840 } func (p *Parser) parse_name() string { p.consumeLiteral(":") - symbol807 := p.consumeTerminal("SYMBOL").Value.str - return symbol807 + symbol841 := p.consumeTerminal("SYMBOL").Value.str + return symbol841 } func (p *Parser) parse_ffi_args() []*pb.Abstraction { p.consumeLiteral("(") p.consumeLiteral("args") - xs808 := []*pb.Abstraction{} - cond809 := p.matchLookaheadLiteral("(", 0) - for cond809 { - _t1467 := p.parse_abstraction() - item810 := _t1467 - xs808 = append(xs808, item810) - cond809 = p.matchLookaheadLiteral("(", 0) - } - abstractions811 := xs808 + xs842 := []*pb.Abstraction{} + cond843 := p.matchLookaheadLiteral("(", 0) + for cond843 { + _t1536 := p.parse_abstraction() + item844 := _t1536 + xs842 = append(xs842, item844) + cond843 = p.matchLookaheadLiteral("(", 0) + } + abstractions845 := xs842 p.consumeLiteral(")") - return abstractions811 + return abstractions845 } func (p *Parser) parse_atom() *pb.Atom { - span_start817 := int64(p.spanStart()) + span_start851 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("atom") - _t1468 := p.parse_relation_id() - relation_id812 := _t1468 - xs813 := []*pb.Term{} - cond814 := (((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) - for cond814 { - _t1469 := p.parse_term() - item815 := _t1469 - xs813 = append(xs813, item815) - cond814 = (((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) - } - terms816 := xs813 + _t1537 := p.parse_relation_id() + relation_id846 := _t1537 + xs847 := []*pb.Term{} + cond848 := (((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + for cond848 { + _t1538 := p.parse_term() + item849 := _t1538 + xs847 = append(xs847, item849) + cond848 = (((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + } + terms850 := xs847 p.consumeLiteral(")") - _t1470 := &pb.Atom{Name: relation_id812, Terms: terms816} - result818 := _t1470 - p.recordSpan(int(span_start817), "Atom") - return result818 + _t1539 := &pb.Atom{Name: relation_id846, Terms: terms850} + result852 := _t1539 + p.recordSpan(int(span_start851), "Atom") + return result852 } func (p *Parser) parse_pragma() *pb.Pragma { - span_start824 := int64(p.spanStart()) + span_start858 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("pragma") - _t1471 := p.parse_name() - name819 := _t1471 - xs820 := []*pb.Term{} - cond821 := (((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) - for cond821 { - _t1472 := p.parse_term() - item822 := _t1472 - xs820 = append(xs820, item822) - cond821 = (((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) - } - terms823 := xs820 + _t1540 := p.parse_name() + name853 := _t1540 + xs854 := []*pb.Term{} + cond855 := (((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + for cond855 { + _t1541 := p.parse_term() + item856 := _t1541 + xs854 = append(xs854, item856) + cond855 = (((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + } + terms857 := xs854 p.consumeLiteral(")") - _t1473 := &pb.Pragma{Name: name819, Terms: terms823} - result825 := _t1473 - p.recordSpan(int(span_start824), "Pragma") - return result825 + _t1542 := &pb.Pragma{Name: name853, Terms: terms857} + result859 := _t1542 + p.recordSpan(int(span_start858), "Pragma") + return result859 } func (p *Parser) parse_primitive() *pb.Primitive { - span_start841 := int64(p.spanStart()) - var _t1474 int64 + span_start875 := int64(p.spanStart()) + var _t1543 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1475 int64 + var _t1544 int64 if p.matchLookaheadLiteral("primitive", 1) { - _t1475 = 9 + _t1544 = 9 } else { - var _t1476 int64 + var _t1545 int64 if p.matchLookaheadLiteral(">=", 1) { - _t1476 = 4 + _t1545 = 4 } else { - var _t1477 int64 + var _t1546 int64 if p.matchLookaheadLiteral(">", 1) { - _t1477 = 3 + _t1546 = 3 } else { - var _t1478 int64 + var _t1547 int64 if p.matchLookaheadLiteral("=", 1) { - _t1478 = 0 + _t1547 = 0 } else { - var _t1479 int64 + var _t1548 int64 if p.matchLookaheadLiteral("<=", 1) { - _t1479 = 2 + _t1548 = 2 } else { - var _t1480 int64 + var _t1549 int64 if p.matchLookaheadLiteral("<", 1) { - _t1480 = 1 + _t1549 = 1 } else { - var _t1481 int64 + var _t1550 int64 if p.matchLookaheadLiteral("/", 1) { - _t1481 = 8 + _t1550 = 8 } else { - var _t1482 int64 + var _t1551 int64 if p.matchLookaheadLiteral("-", 1) { - _t1482 = 6 + _t1551 = 6 } else { - var _t1483 int64 + var _t1552 int64 if p.matchLookaheadLiteral("+", 1) { - _t1483 = 5 + _t1552 = 5 } else { - var _t1484 int64 + var _t1553 int64 if p.matchLookaheadLiteral("*", 1) { - _t1484 = 7 + _t1553 = 7 } else { - _t1484 = -1 + _t1553 = -1 } - _t1483 = _t1484 + _t1552 = _t1553 } - _t1482 = _t1483 + _t1551 = _t1552 } - _t1481 = _t1482 + _t1550 = _t1551 } - _t1480 = _t1481 + _t1549 = _t1550 } - _t1479 = _t1480 + _t1548 = _t1549 } - _t1478 = _t1479 + _t1547 = _t1548 } - _t1477 = _t1478 + _t1546 = _t1547 } - _t1476 = _t1477 + _t1545 = _t1546 } - _t1475 = _t1476 + _t1544 = _t1545 } - _t1474 = _t1475 + _t1543 = _t1544 } else { - _t1474 = -1 + _t1543 = -1 } - prediction826 := _t1474 - var _t1485 *pb.Primitive - if prediction826 == 9 { + prediction860 := _t1543 + var _t1554 *pb.Primitive + if prediction860 == 9 { p.consumeLiteral("(") p.consumeLiteral("primitive") - _t1486 := p.parse_name() - name836 := _t1486 - xs837 := []*pb.RelTerm{} - cond838 := ((((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) - for cond838 { - _t1487 := p.parse_rel_term() - item839 := _t1487 - xs837 = append(xs837, item839) - cond838 = ((((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + _t1555 := p.parse_name() + name870 := _t1555 + xs871 := []*pb.RelTerm{} + cond872 := ((((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + for cond872 { + _t1556 := p.parse_rel_term() + item873 := _t1556 + xs871 = append(xs871, item873) + cond872 = ((((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) } - rel_terms840 := xs837 + rel_terms874 := xs871 p.consumeLiteral(")") - _t1488 := &pb.Primitive{Name: name836, Terms: rel_terms840} - _t1485 = _t1488 + _t1557 := &pb.Primitive{Name: name870, Terms: rel_terms874} + _t1554 = _t1557 } else { - var _t1489 *pb.Primitive - if prediction826 == 8 { - _t1490 := p.parse_divide() - divide835 := _t1490 - _t1489 = divide835 + var _t1558 *pb.Primitive + if prediction860 == 8 { + _t1559 := p.parse_divide() + divide869 := _t1559 + _t1558 = divide869 } else { - var _t1491 *pb.Primitive - if prediction826 == 7 { - _t1492 := p.parse_multiply() - multiply834 := _t1492 - _t1491 = multiply834 + var _t1560 *pb.Primitive + if prediction860 == 7 { + _t1561 := p.parse_multiply() + multiply868 := _t1561 + _t1560 = multiply868 } else { - var _t1493 *pb.Primitive - if prediction826 == 6 { - _t1494 := p.parse_minus() - minus833 := _t1494 - _t1493 = minus833 + var _t1562 *pb.Primitive + if prediction860 == 6 { + _t1563 := p.parse_minus() + minus867 := _t1563 + _t1562 = minus867 } else { - var _t1495 *pb.Primitive - if prediction826 == 5 { - _t1496 := p.parse_add() - add832 := _t1496 - _t1495 = add832 + var _t1564 *pb.Primitive + if prediction860 == 5 { + _t1565 := p.parse_add() + add866 := _t1565 + _t1564 = add866 } else { - var _t1497 *pb.Primitive - if prediction826 == 4 { - _t1498 := p.parse_gt_eq() - gt_eq831 := _t1498 - _t1497 = gt_eq831 + var _t1566 *pb.Primitive + if prediction860 == 4 { + _t1567 := p.parse_gt_eq() + gt_eq865 := _t1567 + _t1566 = gt_eq865 } else { - var _t1499 *pb.Primitive - if prediction826 == 3 { - _t1500 := p.parse_gt() - gt830 := _t1500 - _t1499 = gt830 + var _t1568 *pb.Primitive + if prediction860 == 3 { + _t1569 := p.parse_gt() + gt864 := _t1569 + _t1568 = gt864 } else { - var _t1501 *pb.Primitive - if prediction826 == 2 { - _t1502 := p.parse_lt_eq() - lt_eq829 := _t1502 - _t1501 = lt_eq829 + var _t1570 *pb.Primitive + if prediction860 == 2 { + _t1571 := p.parse_lt_eq() + lt_eq863 := _t1571 + _t1570 = lt_eq863 } else { - var _t1503 *pb.Primitive - if prediction826 == 1 { - _t1504 := p.parse_lt() - lt828 := _t1504 - _t1503 = lt828 + var _t1572 *pb.Primitive + if prediction860 == 1 { + _t1573 := p.parse_lt() + lt862 := _t1573 + _t1572 = lt862 } else { - var _t1505 *pb.Primitive - if prediction826 == 0 { - _t1506 := p.parse_eq() - eq827 := _t1506 - _t1505 = eq827 + var _t1574 *pb.Primitive + if prediction860 == 0 { + _t1575 := p.parse_eq() + eq861 := _t1575 + _t1574 = eq861 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in primitive", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1503 = _t1505 + _t1572 = _t1574 } - _t1501 = _t1503 + _t1570 = _t1572 } - _t1499 = _t1501 + _t1568 = _t1570 } - _t1497 = _t1499 + _t1566 = _t1568 } - _t1495 = _t1497 + _t1564 = _t1566 } - _t1493 = _t1495 + _t1562 = _t1564 } - _t1491 = _t1493 + _t1560 = _t1562 } - _t1489 = _t1491 + _t1558 = _t1560 } - _t1485 = _t1489 + _t1554 = _t1558 } - result842 := _t1485 - p.recordSpan(int(span_start841), "Primitive") - return result842 + result876 := _t1554 + p.recordSpan(int(span_start875), "Primitive") + return result876 } func (p *Parser) parse_eq() *pb.Primitive { - span_start845 := int64(p.spanStart()) + span_start879 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("=") - _t1507 := p.parse_term() - term843 := _t1507 - _t1508 := p.parse_term() - term_3844 := _t1508 + _t1576 := p.parse_term() + term877 := _t1576 + _t1577 := p.parse_term() + term_3878 := _t1577 p.consumeLiteral(")") - _t1509 := &pb.RelTerm{} - _t1509.RelTermType = &pb.RelTerm_Term{Term: term843} - _t1510 := &pb.RelTerm{} - _t1510.RelTermType = &pb.RelTerm_Term{Term: term_3844} - _t1511 := &pb.Primitive{Name: "rel_primitive_eq", Terms: []*pb.RelTerm{_t1509, _t1510}} - result846 := _t1511 - p.recordSpan(int(span_start845), "Primitive") - return result846 + _t1578 := &pb.RelTerm{} + _t1578.RelTermType = &pb.RelTerm_Term{Term: term877} + _t1579 := &pb.RelTerm{} + _t1579.RelTermType = &pb.RelTerm_Term{Term: term_3878} + _t1580 := &pb.Primitive{Name: "rel_primitive_eq", Terms: []*pb.RelTerm{_t1578, _t1579}} + result880 := _t1580 + p.recordSpan(int(span_start879), "Primitive") + return result880 } func (p *Parser) parse_lt() *pb.Primitive { - span_start849 := int64(p.spanStart()) + span_start883 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("<") - _t1512 := p.parse_term() - term847 := _t1512 - _t1513 := p.parse_term() - term_3848 := _t1513 + _t1581 := p.parse_term() + term881 := _t1581 + _t1582 := p.parse_term() + term_3882 := _t1582 p.consumeLiteral(")") - _t1514 := &pb.RelTerm{} - _t1514.RelTermType = &pb.RelTerm_Term{Term: term847} - _t1515 := &pb.RelTerm{} - _t1515.RelTermType = &pb.RelTerm_Term{Term: term_3848} - _t1516 := &pb.Primitive{Name: "rel_primitive_lt_monotype", Terms: []*pb.RelTerm{_t1514, _t1515}} - result850 := _t1516 - p.recordSpan(int(span_start849), "Primitive") - return result850 + _t1583 := &pb.RelTerm{} + _t1583.RelTermType = &pb.RelTerm_Term{Term: term881} + _t1584 := &pb.RelTerm{} + _t1584.RelTermType = &pb.RelTerm_Term{Term: term_3882} + _t1585 := &pb.Primitive{Name: "rel_primitive_lt_monotype", Terms: []*pb.RelTerm{_t1583, _t1584}} + result884 := _t1585 + p.recordSpan(int(span_start883), "Primitive") + return result884 } func (p *Parser) parse_lt_eq() *pb.Primitive { - span_start853 := int64(p.spanStart()) + span_start887 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("<=") - _t1517 := p.parse_term() - term851 := _t1517 - _t1518 := p.parse_term() - term_3852 := _t1518 + _t1586 := p.parse_term() + term885 := _t1586 + _t1587 := p.parse_term() + term_3886 := _t1587 p.consumeLiteral(")") - _t1519 := &pb.RelTerm{} - _t1519.RelTermType = &pb.RelTerm_Term{Term: term851} - _t1520 := &pb.RelTerm{} - _t1520.RelTermType = &pb.RelTerm_Term{Term: term_3852} - _t1521 := &pb.Primitive{Name: "rel_primitive_lt_eq_monotype", Terms: []*pb.RelTerm{_t1519, _t1520}} - result854 := _t1521 - p.recordSpan(int(span_start853), "Primitive") - return result854 + _t1588 := &pb.RelTerm{} + _t1588.RelTermType = &pb.RelTerm_Term{Term: term885} + _t1589 := &pb.RelTerm{} + _t1589.RelTermType = &pb.RelTerm_Term{Term: term_3886} + _t1590 := &pb.Primitive{Name: "rel_primitive_lt_eq_monotype", Terms: []*pb.RelTerm{_t1588, _t1589}} + result888 := _t1590 + p.recordSpan(int(span_start887), "Primitive") + return result888 } func (p *Parser) parse_gt() *pb.Primitive { - span_start857 := int64(p.spanStart()) + span_start891 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral(">") - _t1522 := p.parse_term() - term855 := _t1522 - _t1523 := p.parse_term() - term_3856 := _t1523 + _t1591 := p.parse_term() + term889 := _t1591 + _t1592 := p.parse_term() + term_3890 := _t1592 p.consumeLiteral(")") - _t1524 := &pb.RelTerm{} - _t1524.RelTermType = &pb.RelTerm_Term{Term: term855} - _t1525 := &pb.RelTerm{} - _t1525.RelTermType = &pb.RelTerm_Term{Term: term_3856} - _t1526 := &pb.Primitive{Name: "rel_primitive_gt_monotype", Terms: []*pb.RelTerm{_t1524, _t1525}} - result858 := _t1526 - p.recordSpan(int(span_start857), "Primitive") - return result858 + _t1593 := &pb.RelTerm{} + _t1593.RelTermType = &pb.RelTerm_Term{Term: term889} + _t1594 := &pb.RelTerm{} + _t1594.RelTermType = &pb.RelTerm_Term{Term: term_3890} + _t1595 := &pb.Primitive{Name: "rel_primitive_gt_monotype", Terms: []*pb.RelTerm{_t1593, _t1594}} + result892 := _t1595 + p.recordSpan(int(span_start891), "Primitive") + return result892 } func (p *Parser) parse_gt_eq() *pb.Primitive { - span_start861 := int64(p.spanStart()) + span_start895 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral(">=") - _t1527 := p.parse_term() - term859 := _t1527 - _t1528 := p.parse_term() - term_3860 := _t1528 + _t1596 := p.parse_term() + term893 := _t1596 + _t1597 := p.parse_term() + term_3894 := _t1597 p.consumeLiteral(")") - _t1529 := &pb.RelTerm{} - _t1529.RelTermType = &pb.RelTerm_Term{Term: term859} - _t1530 := &pb.RelTerm{} - _t1530.RelTermType = &pb.RelTerm_Term{Term: term_3860} - _t1531 := &pb.Primitive{Name: "rel_primitive_gt_eq_monotype", Terms: []*pb.RelTerm{_t1529, _t1530}} - result862 := _t1531 - p.recordSpan(int(span_start861), "Primitive") - return result862 + _t1598 := &pb.RelTerm{} + _t1598.RelTermType = &pb.RelTerm_Term{Term: term893} + _t1599 := &pb.RelTerm{} + _t1599.RelTermType = &pb.RelTerm_Term{Term: term_3894} + _t1600 := &pb.Primitive{Name: "rel_primitive_gt_eq_monotype", Terms: []*pb.RelTerm{_t1598, _t1599}} + result896 := _t1600 + p.recordSpan(int(span_start895), "Primitive") + return result896 } func (p *Parser) parse_add() *pb.Primitive { - span_start866 := int64(p.spanStart()) + span_start900 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("+") - _t1532 := p.parse_term() - term863 := _t1532 - _t1533 := p.parse_term() - term_3864 := _t1533 - _t1534 := p.parse_term() - term_4865 := _t1534 + _t1601 := p.parse_term() + term897 := _t1601 + _t1602 := p.parse_term() + term_3898 := _t1602 + _t1603 := p.parse_term() + term_4899 := _t1603 p.consumeLiteral(")") - _t1535 := &pb.RelTerm{} - _t1535.RelTermType = &pb.RelTerm_Term{Term: term863} - _t1536 := &pb.RelTerm{} - _t1536.RelTermType = &pb.RelTerm_Term{Term: term_3864} - _t1537 := &pb.RelTerm{} - _t1537.RelTermType = &pb.RelTerm_Term{Term: term_4865} - _t1538 := &pb.Primitive{Name: "rel_primitive_add_monotype", Terms: []*pb.RelTerm{_t1535, _t1536, _t1537}} - result867 := _t1538 - p.recordSpan(int(span_start866), "Primitive") - return result867 + _t1604 := &pb.RelTerm{} + _t1604.RelTermType = &pb.RelTerm_Term{Term: term897} + _t1605 := &pb.RelTerm{} + _t1605.RelTermType = &pb.RelTerm_Term{Term: term_3898} + _t1606 := &pb.RelTerm{} + _t1606.RelTermType = &pb.RelTerm_Term{Term: term_4899} + _t1607 := &pb.Primitive{Name: "rel_primitive_add_monotype", Terms: []*pb.RelTerm{_t1604, _t1605, _t1606}} + result901 := _t1607 + p.recordSpan(int(span_start900), "Primitive") + return result901 } func (p *Parser) parse_minus() *pb.Primitive { - span_start871 := int64(p.spanStart()) + span_start905 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("-") - _t1539 := p.parse_term() - term868 := _t1539 - _t1540 := p.parse_term() - term_3869 := _t1540 - _t1541 := p.parse_term() - term_4870 := _t1541 + _t1608 := p.parse_term() + term902 := _t1608 + _t1609 := p.parse_term() + term_3903 := _t1609 + _t1610 := p.parse_term() + term_4904 := _t1610 p.consumeLiteral(")") - _t1542 := &pb.RelTerm{} - _t1542.RelTermType = &pb.RelTerm_Term{Term: term868} - _t1543 := &pb.RelTerm{} - _t1543.RelTermType = &pb.RelTerm_Term{Term: term_3869} - _t1544 := &pb.RelTerm{} - _t1544.RelTermType = &pb.RelTerm_Term{Term: term_4870} - _t1545 := &pb.Primitive{Name: "rel_primitive_subtract_monotype", Terms: []*pb.RelTerm{_t1542, _t1543, _t1544}} - result872 := _t1545 - p.recordSpan(int(span_start871), "Primitive") - return result872 + _t1611 := &pb.RelTerm{} + _t1611.RelTermType = &pb.RelTerm_Term{Term: term902} + _t1612 := &pb.RelTerm{} + _t1612.RelTermType = &pb.RelTerm_Term{Term: term_3903} + _t1613 := &pb.RelTerm{} + _t1613.RelTermType = &pb.RelTerm_Term{Term: term_4904} + _t1614 := &pb.Primitive{Name: "rel_primitive_subtract_monotype", Terms: []*pb.RelTerm{_t1611, _t1612, _t1613}} + result906 := _t1614 + p.recordSpan(int(span_start905), "Primitive") + return result906 } func (p *Parser) parse_multiply() *pb.Primitive { - span_start876 := int64(p.spanStart()) + span_start910 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("*") - _t1546 := p.parse_term() - term873 := _t1546 - _t1547 := p.parse_term() - term_3874 := _t1547 - _t1548 := p.parse_term() - term_4875 := _t1548 + _t1615 := p.parse_term() + term907 := _t1615 + _t1616 := p.parse_term() + term_3908 := _t1616 + _t1617 := p.parse_term() + term_4909 := _t1617 p.consumeLiteral(")") - _t1549 := &pb.RelTerm{} - _t1549.RelTermType = &pb.RelTerm_Term{Term: term873} - _t1550 := &pb.RelTerm{} - _t1550.RelTermType = &pb.RelTerm_Term{Term: term_3874} - _t1551 := &pb.RelTerm{} - _t1551.RelTermType = &pb.RelTerm_Term{Term: term_4875} - _t1552 := &pb.Primitive{Name: "rel_primitive_multiply_monotype", Terms: []*pb.RelTerm{_t1549, _t1550, _t1551}} - result877 := _t1552 - p.recordSpan(int(span_start876), "Primitive") - return result877 + _t1618 := &pb.RelTerm{} + _t1618.RelTermType = &pb.RelTerm_Term{Term: term907} + _t1619 := &pb.RelTerm{} + _t1619.RelTermType = &pb.RelTerm_Term{Term: term_3908} + _t1620 := &pb.RelTerm{} + _t1620.RelTermType = &pb.RelTerm_Term{Term: term_4909} + _t1621 := &pb.Primitive{Name: "rel_primitive_multiply_monotype", Terms: []*pb.RelTerm{_t1618, _t1619, _t1620}} + result911 := _t1621 + p.recordSpan(int(span_start910), "Primitive") + return result911 } func (p *Parser) parse_divide() *pb.Primitive { - span_start881 := int64(p.spanStart()) + span_start915 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("/") - _t1553 := p.parse_term() - term878 := _t1553 - _t1554 := p.parse_term() - term_3879 := _t1554 - _t1555 := p.parse_term() - term_4880 := _t1555 + _t1622 := p.parse_term() + term912 := _t1622 + _t1623 := p.parse_term() + term_3913 := _t1623 + _t1624 := p.parse_term() + term_4914 := _t1624 p.consumeLiteral(")") - _t1556 := &pb.RelTerm{} - _t1556.RelTermType = &pb.RelTerm_Term{Term: term878} - _t1557 := &pb.RelTerm{} - _t1557.RelTermType = &pb.RelTerm_Term{Term: term_3879} - _t1558 := &pb.RelTerm{} - _t1558.RelTermType = &pb.RelTerm_Term{Term: term_4880} - _t1559 := &pb.Primitive{Name: "rel_primitive_divide_monotype", Terms: []*pb.RelTerm{_t1556, _t1557, _t1558}} - result882 := _t1559 - p.recordSpan(int(span_start881), "Primitive") - return result882 + _t1625 := &pb.RelTerm{} + _t1625.RelTermType = &pb.RelTerm_Term{Term: term912} + _t1626 := &pb.RelTerm{} + _t1626.RelTermType = &pb.RelTerm_Term{Term: term_3913} + _t1627 := &pb.RelTerm{} + _t1627.RelTermType = &pb.RelTerm_Term{Term: term_4914} + _t1628 := &pb.Primitive{Name: "rel_primitive_divide_monotype", Terms: []*pb.RelTerm{_t1625, _t1626, _t1627}} + result916 := _t1628 + p.recordSpan(int(span_start915), "Primitive") + return result916 } func (p *Parser) parse_rel_term() *pb.RelTerm { - span_start886 := int64(p.spanStart()) - var _t1560 int64 + span_start920 := int64(p.spanStart()) + var _t1629 int64 if p.matchLookaheadLiteral("true", 0) { - _t1560 = 1 + _t1629 = 1 } else { - var _t1561 int64 + var _t1630 int64 if p.matchLookaheadLiteral("missing", 0) { - _t1561 = 1 + _t1630 = 1 } else { - var _t1562 int64 + var _t1631 int64 if p.matchLookaheadLiteral("false", 0) { - _t1562 = 1 + _t1631 = 1 } else { - var _t1563 int64 + var _t1632 int64 if p.matchLookaheadLiteral("(", 0) { - _t1563 = 1 + _t1632 = 1 } else { - var _t1564 int64 + var _t1633 int64 if p.matchLookaheadLiteral("#", 0) { - _t1564 = 0 + _t1633 = 0 } else { - var _t1565 int64 + var _t1634 int64 if p.matchLookaheadTerminal("UINT32", 0) { - _t1565 = 1 + _t1634 = 1 } else { - var _t1566 int64 + var _t1635 int64 if p.matchLookaheadTerminal("UINT128", 0) { - _t1566 = 1 + _t1635 = 1 } else { - var _t1567 int64 + var _t1636 int64 if p.matchLookaheadTerminal("SYMBOL", 0) { - _t1567 = 1 + _t1636 = 1 } else { - var _t1568 int64 + var _t1637 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1568 = 1 + _t1637 = 1 } else { - var _t1569 int64 + var _t1638 int64 if p.matchLookaheadTerminal("INT32", 0) { - _t1569 = 1 + _t1638 = 1 } else { - var _t1570 int64 + var _t1639 int64 if p.matchLookaheadTerminal("INT128", 0) { - _t1570 = 1 + _t1639 = 1 } else { - var _t1571 int64 + var _t1640 int64 if p.matchLookaheadTerminal("INT", 0) { - _t1571 = 1 + _t1640 = 1 } else { - var _t1572 int64 + var _t1641 int64 if p.matchLookaheadTerminal("FLOAT32", 0) { - _t1572 = 1 + _t1641 = 1 } else { - var _t1573 int64 + var _t1642 int64 if p.matchLookaheadTerminal("FLOAT", 0) { - _t1573 = 1 + _t1642 = 1 } else { - var _t1574 int64 + var _t1643 int64 if p.matchLookaheadTerminal("DECIMAL", 0) { - _t1574 = 1 + _t1643 = 1 } else { - _t1574 = -1 + _t1643 = -1 } - _t1573 = _t1574 + _t1642 = _t1643 } - _t1572 = _t1573 + _t1641 = _t1642 } - _t1571 = _t1572 + _t1640 = _t1641 } - _t1570 = _t1571 + _t1639 = _t1640 } - _t1569 = _t1570 + _t1638 = _t1639 } - _t1568 = _t1569 + _t1637 = _t1638 } - _t1567 = _t1568 + _t1636 = _t1637 } - _t1566 = _t1567 + _t1635 = _t1636 } - _t1565 = _t1566 + _t1634 = _t1635 } - _t1564 = _t1565 + _t1633 = _t1634 } - _t1563 = _t1564 + _t1632 = _t1633 } - _t1562 = _t1563 + _t1631 = _t1632 } - _t1561 = _t1562 + _t1630 = _t1631 } - _t1560 = _t1561 - } - prediction883 := _t1560 - var _t1575 *pb.RelTerm - if prediction883 == 1 { - _t1576 := p.parse_term() - term885 := _t1576 - _t1577 := &pb.RelTerm{} - _t1577.RelTermType = &pb.RelTerm_Term{Term: term885} - _t1575 = _t1577 + _t1629 = _t1630 + } + prediction917 := _t1629 + var _t1644 *pb.RelTerm + if prediction917 == 1 { + _t1645 := p.parse_term() + term919 := _t1645 + _t1646 := &pb.RelTerm{} + _t1646.RelTermType = &pb.RelTerm_Term{Term: term919} + _t1644 = _t1646 } else { - var _t1578 *pb.RelTerm - if prediction883 == 0 { - _t1579 := p.parse_specialized_value() - specialized_value884 := _t1579 - _t1580 := &pb.RelTerm{} - _t1580.RelTermType = &pb.RelTerm_SpecializedValue{SpecializedValue: specialized_value884} - _t1578 = _t1580 + var _t1647 *pb.RelTerm + if prediction917 == 0 { + _t1648 := p.parse_specialized_value() + specialized_value918 := _t1648 + _t1649 := &pb.RelTerm{} + _t1649.RelTermType = &pb.RelTerm_SpecializedValue{SpecializedValue: specialized_value918} + _t1647 = _t1649 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in rel_term", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1575 = _t1578 + _t1644 = _t1647 } - result887 := _t1575 - p.recordSpan(int(span_start886), "RelTerm") - return result887 + result921 := _t1644 + p.recordSpan(int(span_start920), "RelTerm") + return result921 } func (p *Parser) parse_specialized_value() *pb.Value { - span_start889 := int64(p.spanStart()) + span_start923 := int64(p.spanStart()) p.consumeLiteral("#") - _t1581 := p.parse_value() - value888 := _t1581 - result890 := value888 - p.recordSpan(int(span_start889), "Value") - return result890 + _t1650 := p.parse_value() + value922 := _t1650 + result924 := value922 + p.recordSpan(int(span_start923), "Value") + return result924 } func (p *Parser) parse_rel_atom() *pb.RelAtom { - span_start896 := int64(p.spanStart()) + span_start930 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("relatom") - _t1582 := p.parse_name() - name891 := _t1582 - xs892 := []*pb.RelTerm{} - cond893 := ((((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) - for cond893 { - _t1583 := p.parse_rel_term() - item894 := _t1583 - xs892 = append(xs892, item894) - cond893 = ((((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) - } - rel_terms895 := xs892 + _t1651 := p.parse_name() + name925 := _t1651 + xs926 := []*pb.RelTerm{} + cond927 := ((((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + for cond927 { + _t1652 := p.parse_rel_term() + item928 := _t1652 + xs926 = append(xs926, item928) + cond927 = ((((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("SYMBOL", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + } + rel_terms929 := xs926 p.consumeLiteral(")") - _t1584 := &pb.RelAtom{Name: name891, Terms: rel_terms895} - result897 := _t1584 - p.recordSpan(int(span_start896), "RelAtom") - return result897 + _t1653 := &pb.RelAtom{Name: name925, Terms: rel_terms929} + result931 := _t1653 + p.recordSpan(int(span_start930), "RelAtom") + return result931 } func (p *Parser) parse_cast() *pb.Cast { - span_start900 := int64(p.spanStart()) + span_start934 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("cast") - _t1585 := p.parse_term() - term898 := _t1585 - _t1586 := p.parse_term() - term_3899 := _t1586 + _t1654 := p.parse_term() + term932 := _t1654 + _t1655 := p.parse_term() + term_3933 := _t1655 p.consumeLiteral(")") - _t1587 := &pb.Cast{Input: term898, Result: term_3899} - result901 := _t1587 - p.recordSpan(int(span_start900), "Cast") - return result901 + _t1656 := &pb.Cast{Input: term932, Result: term_3933} + result935 := _t1656 + p.recordSpan(int(span_start934), "Cast") + return result935 } func (p *Parser) parse_attrs() []*pb.Attribute { p.consumeLiteral("(") p.consumeLiteral("attrs") - xs902 := []*pb.Attribute{} - cond903 := p.matchLookaheadLiteral("(", 0) - for cond903 { - _t1588 := p.parse_attribute() - item904 := _t1588 - xs902 = append(xs902, item904) - cond903 = p.matchLookaheadLiteral("(", 0) - } - attributes905 := xs902 + xs936 := []*pb.Attribute{} + cond937 := p.matchLookaheadLiteral("(", 0) + for cond937 { + _t1657 := p.parse_attribute() + item938 := _t1657 + xs936 = append(xs936, item938) + cond937 = p.matchLookaheadLiteral("(", 0) + } + attributes939 := xs936 p.consumeLiteral(")") - return attributes905 + return attributes939 } func (p *Parser) parse_attribute() *pb.Attribute { - span_start911 := int64(p.spanStart()) + span_start945 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("attribute") - _t1589 := p.parse_name() - name906 := _t1589 - xs907 := []*pb.Value{} - cond908 := ((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) - for cond908 { - _t1590 := p.parse_value() - item909 := _t1590 - xs907 = append(xs907, item909) - cond908 = ((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) - } - values910 := xs907 + _t1658 := p.parse_name() + name940 := _t1658 + xs941 := []*pb.Value{} + cond942 := ((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + for cond942 { + _t1659 := p.parse_value() + item943 := _t1659 + xs941 = append(xs941, item943) + cond942 = ((((((((((((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("FLOAT32", 0)) || p.matchLookaheadTerminal("INT", 0)) || p.matchLookaheadTerminal("INT128", 0)) || p.matchLookaheadTerminal("INT32", 0)) || p.matchLookaheadTerminal("STRING", 0)) || p.matchLookaheadTerminal("UINT128", 0)) || p.matchLookaheadTerminal("UINT32", 0)) + } + values944 := xs941 p.consumeLiteral(")") - _t1591 := &pb.Attribute{Name: name906, Args: values910} - result912 := _t1591 - p.recordSpan(int(span_start911), "Attribute") - return result912 + _t1660 := &pb.Attribute{Name: name940, Args: values944} + result946 := _t1660 + p.recordSpan(int(span_start945), "Attribute") + return result946 } func (p *Parser) parse_algorithm() *pb.Algorithm { - span_start918 := int64(p.spanStart()) + span_start952 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("algorithm") - xs913 := []*pb.RelationId{} - cond914 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - for cond914 { - _t1592 := p.parse_relation_id() - item915 := _t1592 - xs913 = append(xs913, item915) - cond914 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - } - relation_ids916 := xs913 - _t1593 := p.parse_script() - script917 := _t1593 + xs947 := []*pb.RelationId{} + cond948 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + for cond948 { + _t1661 := p.parse_relation_id() + item949 := _t1661 + xs947 = append(xs947, item949) + cond948 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + } + relation_ids950 := xs947 + _t1662 := p.parse_script() + script951 := _t1662 p.consumeLiteral(")") - _t1594 := &pb.Algorithm{Global: relation_ids916, Body: script917} - result919 := _t1594 - p.recordSpan(int(span_start918), "Algorithm") - return result919 + _t1663 := &pb.Algorithm{Global: relation_ids950, Body: script951} + result953 := _t1663 + p.recordSpan(int(span_start952), "Algorithm") + return result953 } func (p *Parser) parse_script() *pb.Script { - span_start924 := int64(p.spanStart()) + span_start958 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("script") - xs920 := []*pb.Construct{} - cond921 := p.matchLookaheadLiteral("(", 0) - for cond921 { - _t1595 := p.parse_construct() - item922 := _t1595 - xs920 = append(xs920, item922) - cond921 = p.matchLookaheadLiteral("(", 0) - } - constructs923 := xs920 + xs954 := []*pb.Construct{} + cond955 := p.matchLookaheadLiteral("(", 0) + for cond955 { + _t1664 := p.parse_construct() + item956 := _t1664 + xs954 = append(xs954, item956) + cond955 = p.matchLookaheadLiteral("(", 0) + } + constructs957 := xs954 p.consumeLiteral(")") - _t1596 := &pb.Script{Constructs: constructs923} - result925 := _t1596 - p.recordSpan(int(span_start924), "Script") - return result925 + _t1665 := &pb.Script{Constructs: constructs957} + result959 := _t1665 + p.recordSpan(int(span_start958), "Script") + return result959 } func (p *Parser) parse_construct() *pb.Construct { - span_start929 := int64(p.spanStart()) - var _t1597 int64 + span_start963 := int64(p.spanStart()) + var _t1666 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1598 int64 + var _t1667 int64 if p.matchLookaheadLiteral("upsert", 1) { - _t1598 = 1 + _t1667 = 1 } else { - var _t1599 int64 + var _t1668 int64 if p.matchLookaheadLiteral("monus", 1) { - _t1599 = 1 + _t1668 = 1 } else { - var _t1600 int64 + var _t1669 int64 if p.matchLookaheadLiteral("monoid", 1) { - _t1600 = 1 + _t1669 = 1 } else { - var _t1601 int64 + var _t1670 int64 if p.matchLookaheadLiteral("loop", 1) { - _t1601 = 0 + _t1670 = 0 } else { - var _t1602 int64 + var _t1671 int64 if p.matchLookaheadLiteral("break", 1) { - _t1602 = 1 + _t1671 = 1 } else { - var _t1603 int64 + var _t1672 int64 if p.matchLookaheadLiteral("assign", 1) { - _t1603 = 1 + _t1672 = 1 } else { - _t1603 = -1 + _t1672 = -1 } - _t1602 = _t1603 + _t1671 = _t1672 } - _t1601 = _t1602 + _t1670 = _t1671 } - _t1600 = _t1601 + _t1669 = _t1670 } - _t1599 = _t1600 + _t1668 = _t1669 } - _t1598 = _t1599 + _t1667 = _t1668 } - _t1597 = _t1598 + _t1666 = _t1667 } else { - _t1597 = -1 - } - prediction926 := _t1597 - var _t1604 *pb.Construct - if prediction926 == 1 { - _t1605 := p.parse_instruction() - instruction928 := _t1605 - _t1606 := &pb.Construct{} - _t1606.ConstructType = &pb.Construct_Instruction{Instruction: instruction928} - _t1604 = _t1606 + _t1666 = -1 + } + prediction960 := _t1666 + var _t1673 *pb.Construct + if prediction960 == 1 { + _t1674 := p.parse_instruction() + instruction962 := _t1674 + _t1675 := &pb.Construct{} + _t1675.ConstructType = &pb.Construct_Instruction{Instruction: instruction962} + _t1673 = _t1675 } else { - var _t1607 *pb.Construct - if prediction926 == 0 { - _t1608 := p.parse_loop() - loop927 := _t1608 - _t1609 := &pb.Construct{} - _t1609.ConstructType = &pb.Construct_Loop{Loop: loop927} - _t1607 = _t1609 + var _t1676 *pb.Construct + if prediction960 == 0 { + _t1677 := p.parse_loop() + loop961 := _t1677 + _t1678 := &pb.Construct{} + _t1678.ConstructType = &pb.Construct_Loop{Loop: loop961} + _t1676 = _t1678 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in construct", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1604 = _t1607 + _t1673 = _t1676 } - result930 := _t1604 - p.recordSpan(int(span_start929), "Construct") - return result930 + result964 := _t1673 + p.recordSpan(int(span_start963), "Construct") + return result964 } func (p *Parser) parse_loop() *pb.Loop { - span_start933 := int64(p.spanStart()) + span_start967 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("loop") - _t1610 := p.parse_init() - init931 := _t1610 - _t1611 := p.parse_script() - script932 := _t1611 + _t1679 := p.parse_init() + init965 := _t1679 + _t1680 := p.parse_script() + script966 := _t1680 p.consumeLiteral(")") - _t1612 := &pb.Loop{Init: init931, Body: script932} - result934 := _t1612 - p.recordSpan(int(span_start933), "Loop") - return result934 + _t1681 := &pb.Loop{Init: init965, Body: script966} + result968 := _t1681 + p.recordSpan(int(span_start967), "Loop") + return result968 } func (p *Parser) parse_init() []*pb.Instruction { p.consumeLiteral("(") p.consumeLiteral("init") - xs935 := []*pb.Instruction{} - cond936 := p.matchLookaheadLiteral("(", 0) - for cond936 { - _t1613 := p.parse_instruction() - item937 := _t1613 - xs935 = append(xs935, item937) - cond936 = p.matchLookaheadLiteral("(", 0) - } - instructions938 := xs935 + xs969 := []*pb.Instruction{} + cond970 := p.matchLookaheadLiteral("(", 0) + for cond970 { + _t1682 := p.parse_instruction() + item971 := _t1682 + xs969 = append(xs969, item971) + cond970 = p.matchLookaheadLiteral("(", 0) + } + instructions972 := xs969 p.consumeLiteral(")") - return instructions938 + return instructions972 } func (p *Parser) parse_instruction() *pb.Instruction { - span_start945 := int64(p.spanStart()) - var _t1614 int64 + span_start979 := int64(p.spanStart()) + var _t1683 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1615 int64 + var _t1684 int64 if p.matchLookaheadLiteral("upsert", 1) { - _t1615 = 1 + _t1684 = 1 } else { - var _t1616 int64 + var _t1685 int64 if p.matchLookaheadLiteral("monus", 1) { - _t1616 = 4 + _t1685 = 4 } else { - var _t1617 int64 + var _t1686 int64 if p.matchLookaheadLiteral("monoid", 1) { - _t1617 = 3 + _t1686 = 3 } else { - var _t1618 int64 + var _t1687 int64 if p.matchLookaheadLiteral("break", 1) { - _t1618 = 2 + _t1687 = 2 } else { - var _t1619 int64 + var _t1688 int64 if p.matchLookaheadLiteral("assign", 1) { - _t1619 = 0 + _t1688 = 0 } else { - _t1619 = -1 + _t1688 = -1 } - _t1618 = _t1619 + _t1687 = _t1688 } - _t1617 = _t1618 + _t1686 = _t1687 } - _t1616 = _t1617 + _t1685 = _t1686 } - _t1615 = _t1616 + _t1684 = _t1685 } - _t1614 = _t1615 + _t1683 = _t1684 } else { - _t1614 = -1 - } - prediction939 := _t1614 - var _t1620 *pb.Instruction - if prediction939 == 4 { - _t1621 := p.parse_monus_def() - monus_def944 := _t1621 - _t1622 := &pb.Instruction{} - _t1622.InstrType = &pb.Instruction_MonusDef{MonusDef: monus_def944} - _t1620 = _t1622 + _t1683 = -1 + } + prediction973 := _t1683 + var _t1689 *pb.Instruction + if prediction973 == 4 { + _t1690 := p.parse_monus_def() + monus_def978 := _t1690 + _t1691 := &pb.Instruction{} + _t1691.InstrType = &pb.Instruction_MonusDef{MonusDef: monus_def978} + _t1689 = _t1691 } else { - var _t1623 *pb.Instruction - if prediction939 == 3 { - _t1624 := p.parse_monoid_def() - monoid_def943 := _t1624 - _t1625 := &pb.Instruction{} - _t1625.InstrType = &pb.Instruction_MonoidDef{MonoidDef: monoid_def943} - _t1623 = _t1625 + var _t1692 *pb.Instruction + if prediction973 == 3 { + _t1693 := p.parse_monoid_def() + monoid_def977 := _t1693 + _t1694 := &pb.Instruction{} + _t1694.InstrType = &pb.Instruction_MonoidDef{MonoidDef: monoid_def977} + _t1692 = _t1694 } else { - var _t1626 *pb.Instruction - if prediction939 == 2 { - _t1627 := p.parse_break() - break942 := _t1627 - _t1628 := &pb.Instruction{} - _t1628.InstrType = &pb.Instruction_Break{Break: break942} - _t1626 = _t1628 + var _t1695 *pb.Instruction + if prediction973 == 2 { + _t1696 := p.parse_break() + break976 := _t1696 + _t1697 := &pb.Instruction{} + _t1697.InstrType = &pb.Instruction_Break{Break: break976} + _t1695 = _t1697 } else { - var _t1629 *pb.Instruction - if prediction939 == 1 { - _t1630 := p.parse_upsert() - upsert941 := _t1630 - _t1631 := &pb.Instruction{} - _t1631.InstrType = &pb.Instruction_Upsert{Upsert: upsert941} - _t1629 = _t1631 + var _t1698 *pb.Instruction + if prediction973 == 1 { + _t1699 := p.parse_upsert() + upsert975 := _t1699 + _t1700 := &pb.Instruction{} + _t1700.InstrType = &pb.Instruction_Upsert{Upsert: upsert975} + _t1698 = _t1700 } else { - var _t1632 *pb.Instruction - if prediction939 == 0 { - _t1633 := p.parse_assign() - assign940 := _t1633 - _t1634 := &pb.Instruction{} - _t1634.InstrType = &pb.Instruction_Assign{Assign: assign940} - _t1632 = _t1634 + var _t1701 *pb.Instruction + if prediction973 == 0 { + _t1702 := p.parse_assign() + assign974 := _t1702 + _t1703 := &pb.Instruction{} + _t1703.InstrType = &pb.Instruction_Assign{Assign: assign974} + _t1701 = _t1703 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in instruction", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1629 = _t1632 + _t1698 = _t1701 } - _t1626 = _t1629 + _t1695 = _t1698 } - _t1623 = _t1626 + _t1692 = _t1695 } - _t1620 = _t1623 + _t1689 = _t1692 } - result946 := _t1620 - p.recordSpan(int(span_start945), "Instruction") - return result946 + result980 := _t1689 + p.recordSpan(int(span_start979), "Instruction") + return result980 } func (p *Parser) parse_assign() *pb.Assign { - span_start950 := int64(p.spanStart()) + span_start984 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("assign") - _t1635 := p.parse_relation_id() - relation_id947 := _t1635 - _t1636 := p.parse_abstraction() - abstraction948 := _t1636 - var _t1637 []*pb.Attribute + _t1704 := p.parse_relation_id() + relation_id981 := _t1704 + _t1705 := p.parse_abstraction() + abstraction982 := _t1705 + var _t1706 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1638 := p.parse_attrs() - _t1637 = _t1638 + _t1707 := p.parse_attrs() + _t1706 = _t1707 } - attrs949 := _t1637 + attrs983 := _t1706 p.consumeLiteral(")") - _t1639 := attrs949 - if attrs949 == nil { - _t1639 = []*pb.Attribute{} + _t1708 := attrs983 + if attrs983 == nil { + _t1708 = []*pb.Attribute{} } - _t1640 := &pb.Assign{Name: relation_id947, Body: abstraction948, Attrs: _t1639} - result951 := _t1640 - p.recordSpan(int(span_start950), "Assign") - return result951 + _t1709 := &pb.Assign{Name: relation_id981, Body: abstraction982, Attrs: _t1708} + result985 := _t1709 + p.recordSpan(int(span_start984), "Assign") + return result985 } func (p *Parser) parse_upsert() *pb.Upsert { - span_start955 := int64(p.spanStart()) + span_start989 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("upsert") - _t1641 := p.parse_relation_id() - relation_id952 := _t1641 - _t1642 := p.parse_abstraction_with_arity() - abstraction_with_arity953 := _t1642 - var _t1643 []*pb.Attribute + _t1710 := p.parse_relation_id() + relation_id986 := _t1710 + _t1711 := p.parse_abstraction_with_arity() + abstraction_with_arity987 := _t1711 + var _t1712 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1644 := p.parse_attrs() - _t1643 = _t1644 + _t1713 := p.parse_attrs() + _t1712 = _t1713 } - attrs954 := _t1643 + attrs988 := _t1712 p.consumeLiteral(")") - _t1645 := attrs954 - if attrs954 == nil { - _t1645 = []*pb.Attribute{} + _t1714 := attrs988 + if attrs988 == nil { + _t1714 = []*pb.Attribute{} } - _t1646 := &pb.Upsert{Name: relation_id952, Body: abstraction_with_arity953[0].(*pb.Abstraction), Attrs: _t1645, ValueArity: abstraction_with_arity953[1].(int64)} - result956 := _t1646 - p.recordSpan(int(span_start955), "Upsert") - return result956 + _t1715 := &pb.Upsert{Name: relation_id986, Body: abstraction_with_arity987[0].(*pb.Abstraction), Attrs: _t1714, ValueArity: abstraction_with_arity987[1].(int64)} + result990 := _t1715 + p.recordSpan(int(span_start989), "Upsert") + return result990 } func (p *Parser) parse_abstraction_with_arity() []interface{} { p.consumeLiteral("(") - _t1647 := p.parse_bindings() - bindings957 := _t1647 - _t1648 := p.parse_formula() - formula958 := _t1648 + _t1716 := p.parse_bindings() + bindings991 := _t1716 + _t1717 := p.parse_formula() + formula992 := _t1717 p.consumeLiteral(")") - _t1649 := &pb.Abstraction{Vars: listConcat(bindings957[0].([]*pb.Binding), bindings957[1].([]*pb.Binding)), Value: formula958} - return []interface{}{_t1649, int64(len(bindings957[1].([]*pb.Binding)))} + _t1718 := &pb.Abstraction{Vars: listConcat(bindings991[0].([]*pb.Binding), bindings991[1].([]*pb.Binding)), Value: formula992} + return []interface{}{_t1718, int64(len(bindings991[1].([]*pb.Binding)))} } func (p *Parser) parse_break() *pb.Break { - span_start962 := int64(p.spanStart()) + span_start996 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("break") - _t1650 := p.parse_relation_id() - relation_id959 := _t1650 - _t1651 := p.parse_abstraction() - abstraction960 := _t1651 - var _t1652 []*pb.Attribute + _t1719 := p.parse_relation_id() + relation_id993 := _t1719 + _t1720 := p.parse_abstraction() + abstraction994 := _t1720 + var _t1721 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1653 := p.parse_attrs() - _t1652 = _t1653 + _t1722 := p.parse_attrs() + _t1721 = _t1722 } - attrs961 := _t1652 + attrs995 := _t1721 p.consumeLiteral(")") - _t1654 := attrs961 - if attrs961 == nil { - _t1654 = []*pb.Attribute{} + _t1723 := attrs995 + if attrs995 == nil { + _t1723 = []*pb.Attribute{} } - _t1655 := &pb.Break{Name: relation_id959, Body: abstraction960, Attrs: _t1654} - result963 := _t1655 - p.recordSpan(int(span_start962), "Break") - return result963 + _t1724 := &pb.Break{Name: relation_id993, Body: abstraction994, Attrs: _t1723} + result997 := _t1724 + p.recordSpan(int(span_start996), "Break") + return result997 } func (p *Parser) parse_monoid_def() *pb.MonoidDef { - span_start968 := int64(p.spanStart()) + span_start1002 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("monoid") - _t1656 := p.parse_monoid() - monoid964 := _t1656 - _t1657 := p.parse_relation_id() - relation_id965 := _t1657 - _t1658 := p.parse_abstraction_with_arity() - abstraction_with_arity966 := _t1658 - var _t1659 []*pb.Attribute + _t1725 := p.parse_monoid() + monoid998 := _t1725 + _t1726 := p.parse_relation_id() + relation_id999 := _t1726 + _t1727 := p.parse_abstraction_with_arity() + abstraction_with_arity1000 := _t1727 + var _t1728 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1660 := p.parse_attrs() - _t1659 = _t1660 + _t1729 := p.parse_attrs() + _t1728 = _t1729 } - attrs967 := _t1659 + attrs1001 := _t1728 p.consumeLiteral(")") - _t1661 := attrs967 - if attrs967 == nil { - _t1661 = []*pb.Attribute{} + _t1730 := attrs1001 + if attrs1001 == nil { + _t1730 = []*pb.Attribute{} } - _t1662 := &pb.MonoidDef{Monoid: monoid964, Name: relation_id965, Body: abstraction_with_arity966[0].(*pb.Abstraction), Attrs: _t1661, ValueArity: abstraction_with_arity966[1].(int64)} - result969 := _t1662 - p.recordSpan(int(span_start968), "MonoidDef") - return result969 + _t1731 := &pb.MonoidDef{Monoid: monoid998, Name: relation_id999, Body: abstraction_with_arity1000[0].(*pb.Abstraction), Attrs: _t1730, ValueArity: abstraction_with_arity1000[1].(int64)} + result1003 := _t1731 + p.recordSpan(int(span_start1002), "MonoidDef") + return result1003 } func (p *Parser) parse_monoid() *pb.Monoid { - span_start975 := int64(p.spanStart()) - var _t1663 int64 + span_start1009 := int64(p.spanStart()) + var _t1732 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1664 int64 + var _t1733 int64 if p.matchLookaheadLiteral("sum", 1) { - _t1664 = 3 + _t1733 = 3 } else { - var _t1665 int64 + var _t1734 int64 if p.matchLookaheadLiteral("or", 1) { - _t1665 = 0 + _t1734 = 0 } else { - var _t1666 int64 + var _t1735 int64 if p.matchLookaheadLiteral("min", 1) { - _t1666 = 1 + _t1735 = 1 } else { - var _t1667 int64 + var _t1736 int64 if p.matchLookaheadLiteral("max", 1) { - _t1667 = 2 + _t1736 = 2 } else { - _t1667 = -1 + _t1736 = -1 } - _t1666 = _t1667 + _t1735 = _t1736 } - _t1665 = _t1666 + _t1734 = _t1735 } - _t1664 = _t1665 + _t1733 = _t1734 } - _t1663 = _t1664 + _t1732 = _t1733 } else { - _t1663 = -1 - } - prediction970 := _t1663 - var _t1668 *pb.Monoid - if prediction970 == 3 { - _t1669 := p.parse_sum_monoid() - sum_monoid974 := _t1669 - _t1670 := &pb.Monoid{} - _t1670.Value = &pb.Monoid_SumMonoid{SumMonoid: sum_monoid974} - _t1668 = _t1670 + _t1732 = -1 + } + prediction1004 := _t1732 + var _t1737 *pb.Monoid + if prediction1004 == 3 { + _t1738 := p.parse_sum_monoid() + sum_monoid1008 := _t1738 + _t1739 := &pb.Monoid{} + _t1739.Value = &pb.Monoid_SumMonoid{SumMonoid: sum_monoid1008} + _t1737 = _t1739 } else { - var _t1671 *pb.Monoid - if prediction970 == 2 { - _t1672 := p.parse_max_monoid() - max_monoid973 := _t1672 - _t1673 := &pb.Monoid{} - _t1673.Value = &pb.Monoid_MaxMonoid{MaxMonoid: max_monoid973} - _t1671 = _t1673 + var _t1740 *pb.Monoid + if prediction1004 == 2 { + _t1741 := p.parse_max_monoid() + max_monoid1007 := _t1741 + _t1742 := &pb.Monoid{} + _t1742.Value = &pb.Monoid_MaxMonoid{MaxMonoid: max_monoid1007} + _t1740 = _t1742 } else { - var _t1674 *pb.Monoid - if prediction970 == 1 { - _t1675 := p.parse_min_monoid() - min_monoid972 := _t1675 - _t1676 := &pb.Monoid{} - _t1676.Value = &pb.Monoid_MinMonoid{MinMonoid: min_monoid972} - _t1674 = _t1676 + var _t1743 *pb.Monoid + if prediction1004 == 1 { + _t1744 := p.parse_min_monoid() + min_monoid1006 := _t1744 + _t1745 := &pb.Monoid{} + _t1745.Value = &pb.Monoid_MinMonoid{MinMonoid: min_monoid1006} + _t1743 = _t1745 } else { - var _t1677 *pb.Monoid - if prediction970 == 0 { - _t1678 := p.parse_or_monoid() - or_monoid971 := _t1678 - _t1679 := &pb.Monoid{} - _t1679.Value = &pb.Monoid_OrMonoid{OrMonoid: or_monoid971} - _t1677 = _t1679 + var _t1746 *pb.Monoid + if prediction1004 == 0 { + _t1747 := p.parse_or_monoid() + or_monoid1005 := _t1747 + _t1748 := &pb.Monoid{} + _t1748.Value = &pb.Monoid_OrMonoid{OrMonoid: or_monoid1005} + _t1746 = _t1748 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in monoid", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1674 = _t1677 + _t1743 = _t1746 } - _t1671 = _t1674 + _t1740 = _t1743 } - _t1668 = _t1671 + _t1737 = _t1740 } - result976 := _t1668 - p.recordSpan(int(span_start975), "Monoid") - return result976 + result1010 := _t1737 + p.recordSpan(int(span_start1009), "Monoid") + return result1010 } func (p *Parser) parse_or_monoid() *pb.OrMonoid { - span_start977 := int64(p.spanStart()) + span_start1011 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("or") p.consumeLiteral(")") - _t1680 := &pb.OrMonoid{} - result978 := _t1680 - p.recordSpan(int(span_start977), "OrMonoid") - return result978 + _t1749 := &pb.OrMonoid{} + result1012 := _t1749 + p.recordSpan(int(span_start1011), "OrMonoid") + return result1012 } func (p *Parser) parse_min_monoid() *pb.MinMonoid { - span_start980 := int64(p.spanStart()) + span_start1014 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("min") - _t1681 := p.parse_type() - type979 := _t1681 + _t1750 := p.parse_type() + type1013 := _t1750 p.consumeLiteral(")") - _t1682 := &pb.MinMonoid{Type: type979} - result981 := _t1682 - p.recordSpan(int(span_start980), "MinMonoid") - return result981 + _t1751 := &pb.MinMonoid{Type: type1013} + result1015 := _t1751 + p.recordSpan(int(span_start1014), "MinMonoid") + return result1015 } func (p *Parser) parse_max_monoid() *pb.MaxMonoid { - span_start983 := int64(p.spanStart()) + span_start1017 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("max") - _t1683 := p.parse_type() - type982 := _t1683 + _t1752 := p.parse_type() + type1016 := _t1752 p.consumeLiteral(")") - _t1684 := &pb.MaxMonoid{Type: type982} - result984 := _t1684 - p.recordSpan(int(span_start983), "MaxMonoid") - return result984 + _t1753 := &pb.MaxMonoid{Type: type1016} + result1018 := _t1753 + p.recordSpan(int(span_start1017), "MaxMonoid") + return result1018 } func (p *Parser) parse_sum_monoid() *pb.SumMonoid { - span_start986 := int64(p.spanStart()) + span_start1020 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("sum") - _t1685 := p.parse_type() - type985 := _t1685 + _t1754 := p.parse_type() + type1019 := _t1754 p.consumeLiteral(")") - _t1686 := &pb.SumMonoid{Type: type985} - result987 := _t1686 - p.recordSpan(int(span_start986), "SumMonoid") - return result987 + _t1755 := &pb.SumMonoid{Type: type1019} + result1021 := _t1755 + p.recordSpan(int(span_start1020), "SumMonoid") + return result1021 } func (p *Parser) parse_monus_def() *pb.MonusDef { - span_start992 := int64(p.spanStart()) + span_start1026 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("monus") - _t1687 := p.parse_monoid() - monoid988 := _t1687 - _t1688 := p.parse_relation_id() - relation_id989 := _t1688 - _t1689 := p.parse_abstraction_with_arity() - abstraction_with_arity990 := _t1689 - var _t1690 []*pb.Attribute + _t1756 := p.parse_monoid() + monoid1022 := _t1756 + _t1757 := p.parse_relation_id() + relation_id1023 := _t1757 + _t1758 := p.parse_abstraction_with_arity() + abstraction_with_arity1024 := _t1758 + var _t1759 []*pb.Attribute if p.matchLookaheadLiteral("(", 0) { - _t1691 := p.parse_attrs() - _t1690 = _t1691 + _t1760 := p.parse_attrs() + _t1759 = _t1760 } - attrs991 := _t1690 + attrs1025 := _t1759 p.consumeLiteral(")") - _t1692 := attrs991 - if attrs991 == nil { - _t1692 = []*pb.Attribute{} + _t1761 := attrs1025 + if attrs1025 == nil { + _t1761 = []*pb.Attribute{} } - _t1693 := &pb.MonusDef{Monoid: monoid988, Name: relation_id989, Body: abstraction_with_arity990[0].(*pb.Abstraction), Attrs: _t1692, ValueArity: abstraction_with_arity990[1].(int64)} - result993 := _t1693 - p.recordSpan(int(span_start992), "MonusDef") - return result993 + _t1762 := &pb.MonusDef{Monoid: monoid1022, Name: relation_id1023, Body: abstraction_with_arity1024[0].(*pb.Abstraction), Attrs: _t1761, ValueArity: abstraction_with_arity1024[1].(int64)} + result1027 := _t1762 + p.recordSpan(int(span_start1026), "MonusDef") + return result1027 } func (p *Parser) parse_constraint() *pb.Constraint { - span_start998 := int64(p.spanStart()) + span_start1032 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("functional_dependency") - _t1694 := p.parse_relation_id() - relation_id994 := _t1694 - _t1695 := p.parse_abstraction() - abstraction995 := _t1695 - _t1696 := p.parse_functional_dependency_keys() - functional_dependency_keys996 := _t1696 - _t1697 := p.parse_functional_dependency_values() - functional_dependency_values997 := _t1697 + _t1763 := p.parse_relation_id() + relation_id1028 := _t1763 + _t1764 := p.parse_abstraction() + abstraction1029 := _t1764 + _t1765 := p.parse_functional_dependency_keys() + functional_dependency_keys1030 := _t1765 + _t1766 := p.parse_functional_dependency_values() + functional_dependency_values1031 := _t1766 p.consumeLiteral(")") - _t1698 := &pb.FunctionalDependency{Guard: abstraction995, Keys: functional_dependency_keys996, Values: functional_dependency_values997} - _t1699 := &pb.Constraint{Name: relation_id994} - _t1699.ConstraintType = &pb.Constraint_FunctionalDependency{FunctionalDependency: _t1698} - result999 := _t1699 - p.recordSpan(int(span_start998), "Constraint") - return result999 + _t1767 := &pb.FunctionalDependency{Guard: abstraction1029, Keys: functional_dependency_keys1030, Values: functional_dependency_values1031} + _t1768 := &pb.Constraint{Name: relation_id1028} + _t1768.ConstraintType = &pb.Constraint_FunctionalDependency{FunctionalDependency: _t1767} + result1033 := _t1768 + p.recordSpan(int(span_start1032), "Constraint") + return result1033 } func (p *Parser) parse_functional_dependency_keys() []*pb.Var { p.consumeLiteral("(") p.consumeLiteral("keys") - xs1000 := []*pb.Var{} - cond1001 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond1001 { - _t1700 := p.parse_var() - item1002 := _t1700 - xs1000 = append(xs1000, item1002) - cond1001 = p.matchLookaheadTerminal("SYMBOL", 0) - } - vars1003 := xs1000 + xs1034 := []*pb.Var{} + cond1035 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond1035 { + _t1769 := p.parse_var() + item1036 := _t1769 + xs1034 = append(xs1034, item1036) + cond1035 = p.matchLookaheadTerminal("SYMBOL", 0) + } + vars1037 := xs1034 p.consumeLiteral(")") - return vars1003 + return vars1037 } func (p *Parser) parse_functional_dependency_values() []*pb.Var { p.consumeLiteral("(") p.consumeLiteral("values") - xs1004 := []*pb.Var{} - cond1005 := p.matchLookaheadTerminal("SYMBOL", 0) - for cond1005 { - _t1701 := p.parse_var() - item1006 := _t1701 - xs1004 = append(xs1004, item1006) - cond1005 = p.matchLookaheadTerminal("SYMBOL", 0) - } - vars1007 := xs1004 + xs1038 := []*pb.Var{} + cond1039 := p.matchLookaheadTerminal("SYMBOL", 0) + for cond1039 { + _t1770 := p.parse_var() + item1040 := _t1770 + xs1038 = append(xs1038, item1040) + cond1039 = p.matchLookaheadTerminal("SYMBOL", 0) + } + vars1041 := xs1038 p.consumeLiteral(")") - return vars1007 + return vars1041 } func (p *Parser) parse_data() *pb.Data { - span_start1012 := int64(p.spanStart()) - var _t1702 int64 + span_start1047 := int64(p.spanStart()) + var _t1771 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1703 int64 - if p.matchLookaheadLiteral("edb", 1) { - _t1703 = 0 + var _t1772 int64 + if p.matchLookaheadLiteral("iceberg_data", 1) { + _t1772 = 3 } else { - var _t1704 int64 - if p.matchLookaheadLiteral("csv_data", 1) { - _t1704 = 2 + var _t1773 int64 + if p.matchLookaheadLiteral("edb", 1) { + _t1773 = 0 } else { - var _t1705 int64 - if p.matchLookaheadLiteral("betree_relation", 1) { - _t1705 = 1 + var _t1774 int64 + if p.matchLookaheadLiteral("csv_data", 1) { + _t1774 = 2 } else { - _t1705 = -1 + var _t1775 int64 + if p.matchLookaheadLiteral("betree_relation", 1) { + _t1775 = 1 + } else { + _t1775 = -1 + } + _t1774 = _t1775 } - _t1704 = _t1705 + _t1773 = _t1774 } - _t1703 = _t1704 + _t1772 = _t1773 } - _t1702 = _t1703 + _t1771 = _t1772 } else { - _t1702 = -1 - } - prediction1008 := _t1702 - var _t1706 *pb.Data - if prediction1008 == 2 { - _t1707 := p.parse_csv_data() - csv_data1011 := _t1707 - _t1708 := &pb.Data{} - _t1708.DataType = &pb.Data_CsvData{CsvData: csv_data1011} - _t1706 = _t1708 + _t1771 = -1 + } + prediction1042 := _t1771 + var _t1776 *pb.Data + if prediction1042 == 3 { + _t1777 := p.parse_iceberg_data() + iceberg_data1046 := _t1777 + _t1778 := &pb.Data{} + _t1778.DataType = &pb.Data_IcebergData{IcebergData: iceberg_data1046} + _t1776 = _t1778 } else { - var _t1709 *pb.Data - if prediction1008 == 1 { - _t1710 := p.parse_betree_relation() - betree_relation1010 := _t1710 - _t1711 := &pb.Data{} - _t1711.DataType = &pb.Data_BetreeRelation{BetreeRelation: betree_relation1010} - _t1709 = _t1711 + var _t1779 *pb.Data + if prediction1042 == 2 { + _t1780 := p.parse_csv_data() + csv_data1045 := _t1780 + _t1781 := &pb.Data{} + _t1781.DataType = &pb.Data_CsvData{CsvData: csv_data1045} + _t1779 = _t1781 } else { - var _t1712 *pb.Data - if prediction1008 == 0 { - _t1713 := p.parse_edb() - edb1009 := _t1713 - _t1714 := &pb.Data{} - _t1714.DataType = &pb.Data_Edb{Edb: edb1009} - _t1712 = _t1714 + var _t1782 *pb.Data + if prediction1042 == 1 { + _t1783 := p.parse_betree_relation() + betree_relation1044 := _t1783 + _t1784 := &pb.Data{} + _t1784.DataType = &pb.Data_BetreeRelation{BetreeRelation: betree_relation1044} + _t1782 = _t1784 } else { - panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in data", p.lookahead(0).Type, p.lookahead(0).Value)}) + var _t1785 *pb.Data + if prediction1042 == 0 { + _t1786 := p.parse_edb() + edb1043 := _t1786 + _t1787 := &pb.Data{} + _t1787.DataType = &pb.Data_Edb{Edb: edb1043} + _t1785 = _t1787 + } else { + panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in data", p.lookahead(0).Type, p.lookahead(0).Value)}) + } + _t1782 = _t1785 } - _t1709 = _t1712 + _t1779 = _t1782 } - _t1706 = _t1709 + _t1776 = _t1779 } - result1013 := _t1706 - p.recordSpan(int(span_start1012), "Data") - return result1013 + result1048 := _t1776 + p.recordSpan(int(span_start1047), "Data") + return result1048 } func (p *Parser) parse_edb() *pb.EDB { - span_start1017 := int64(p.spanStart()) + span_start1052 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("edb") - _t1715 := p.parse_relation_id() - relation_id1014 := _t1715 - _t1716 := p.parse_edb_path() - edb_path1015 := _t1716 - _t1717 := p.parse_edb_types() - edb_types1016 := _t1717 + _t1788 := p.parse_relation_id() + relation_id1049 := _t1788 + _t1789 := p.parse_edb_path() + edb_path1050 := _t1789 + _t1790 := p.parse_edb_types() + edb_types1051 := _t1790 p.consumeLiteral(")") - _t1718 := &pb.EDB{TargetId: relation_id1014, Path: edb_path1015, Types: edb_types1016} - result1018 := _t1718 - p.recordSpan(int(span_start1017), "EDB") - return result1018 + _t1791 := &pb.EDB{TargetId: relation_id1049, Path: edb_path1050, Types: edb_types1051} + result1053 := _t1791 + p.recordSpan(int(span_start1052), "EDB") + return result1053 } func (p *Parser) parse_edb_path() []string { p.consumeLiteral("[") - xs1019 := []string{} - cond1020 := p.matchLookaheadTerminal("STRING", 0) - for cond1020 { - item1021 := p.consumeTerminal("STRING").Value.str - xs1019 = append(xs1019, item1021) - cond1020 = p.matchLookaheadTerminal("STRING", 0) - } - strings1022 := xs1019 + xs1054 := []string{} + cond1055 := p.matchLookaheadTerminal("STRING", 0) + for cond1055 { + item1056 := p.consumeTerminal("STRING").Value.str + xs1054 = append(xs1054, item1056) + cond1055 = p.matchLookaheadTerminal("STRING", 0) + } + strings1057 := xs1054 p.consumeLiteral("]") - return strings1022 + return strings1057 } func (p *Parser) parse_edb_types() []*pb.Type { p.consumeLiteral("[") - xs1023 := []*pb.Type{} - cond1024 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - for cond1024 { - _t1719 := p.parse_type() - item1025 := _t1719 - xs1023 = append(xs1023, item1025) - cond1024 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - } - types1026 := xs1023 + xs1058 := []*pb.Type{} + cond1059 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + for cond1059 { + _t1792 := p.parse_type() + item1060 := _t1792 + xs1058 = append(xs1058, item1060) + cond1059 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + } + types1061 := xs1058 p.consumeLiteral("]") - return types1026 + return types1061 } func (p *Parser) parse_betree_relation() *pb.BeTreeRelation { - span_start1029 := int64(p.spanStart()) + span_start1064 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("betree_relation") - _t1720 := p.parse_relation_id() - relation_id1027 := _t1720 - _t1721 := p.parse_betree_info() - betree_info1028 := _t1721 + _t1793 := p.parse_relation_id() + relation_id1062 := _t1793 + _t1794 := p.parse_betree_info() + betree_info1063 := _t1794 p.consumeLiteral(")") - _t1722 := &pb.BeTreeRelation{Name: relation_id1027, RelationInfo: betree_info1028} - result1030 := _t1722 - p.recordSpan(int(span_start1029), "BeTreeRelation") - return result1030 + _t1795 := &pb.BeTreeRelation{Name: relation_id1062, RelationInfo: betree_info1063} + result1065 := _t1795 + p.recordSpan(int(span_start1064), "BeTreeRelation") + return result1065 } func (p *Parser) parse_betree_info() *pb.BeTreeInfo { - span_start1034 := int64(p.spanStart()) + span_start1069 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("betree_info") - _t1723 := p.parse_betree_info_key_types() - betree_info_key_types1031 := _t1723 - _t1724 := p.parse_betree_info_value_types() - betree_info_value_types1032 := _t1724 - _t1725 := p.parse_config_dict() - config_dict1033 := _t1725 + _t1796 := p.parse_betree_info_key_types() + betree_info_key_types1066 := _t1796 + _t1797 := p.parse_betree_info_value_types() + betree_info_value_types1067 := _t1797 + _t1798 := p.parse_config_dict() + config_dict1068 := _t1798 p.consumeLiteral(")") - _t1726 := p.construct_betree_info(betree_info_key_types1031, betree_info_value_types1032, config_dict1033) - result1035 := _t1726 - p.recordSpan(int(span_start1034), "BeTreeInfo") - return result1035 + _t1799 := p.construct_betree_info(betree_info_key_types1066, betree_info_value_types1067, config_dict1068) + result1070 := _t1799 + p.recordSpan(int(span_start1069), "BeTreeInfo") + return result1070 } func (p *Parser) parse_betree_info_key_types() []*pb.Type { p.consumeLiteral("(") p.consumeLiteral("key_types") - xs1036 := []*pb.Type{} - cond1037 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - for cond1037 { - _t1727 := p.parse_type() - item1038 := _t1727 - xs1036 = append(xs1036, item1038) - cond1037 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - } - types1039 := xs1036 + xs1071 := []*pb.Type{} + cond1072 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + for cond1072 { + _t1800 := p.parse_type() + item1073 := _t1800 + xs1071 = append(xs1071, item1073) + cond1072 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + } + types1074 := xs1071 p.consumeLiteral(")") - return types1039 + return types1074 } func (p *Parser) parse_betree_info_value_types() []*pb.Type { p.consumeLiteral("(") p.consumeLiteral("value_types") - xs1040 := []*pb.Type{} - cond1041 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - for cond1041 { - _t1728 := p.parse_type() - item1042 := _t1728 - xs1040 = append(xs1040, item1042) - cond1041 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - } - types1043 := xs1040 + xs1075 := []*pb.Type{} + cond1076 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + for cond1076 { + _t1801 := p.parse_type() + item1077 := _t1801 + xs1075 = append(xs1075, item1077) + cond1076 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + } + types1078 := xs1075 p.consumeLiteral(")") - return types1043 + return types1078 } func (p *Parser) parse_csv_data() *pb.CSVData { - span_start1048 := int64(p.spanStart()) + span_start1083 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("csv_data") - _t1729 := p.parse_csvlocator() - csvlocator1044 := _t1729 - _t1730 := p.parse_csv_config() - csv_config1045 := _t1730 - _t1731 := p.parse_gnf_columns() - gnf_columns1046 := _t1731 - _t1732 := p.parse_csv_asof() - csv_asof1047 := _t1732 + _t1802 := p.parse_csvlocator() + csvlocator1079 := _t1802 + _t1803 := p.parse_csv_config() + csv_config1080 := _t1803 + _t1804 := p.parse_gnf_columns() + gnf_columns1081 := _t1804 + _t1805 := p.parse_csv_asof() + csv_asof1082 := _t1805 p.consumeLiteral(")") - _t1733 := &pb.CSVData{Locator: csvlocator1044, Config: csv_config1045, Columns: gnf_columns1046, Asof: csv_asof1047} - result1049 := _t1733 - p.recordSpan(int(span_start1048), "CSVData") - return result1049 + _t1806 := &pb.CSVData{Locator: csvlocator1079, Config: csv_config1080, Columns: gnf_columns1081, Asof: csv_asof1082} + result1084 := _t1806 + p.recordSpan(int(span_start1083), "CSVData") + return result1084 } func (p *Parser) parse_csvlocator() *pb.CSVLocator { - span_start1052 := int64(p.spanStart()) + span_start1087 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("csv_locator") - var _t1734 []string + var _t1807 []string if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("paths", 1)) { - _t1735 := p.parse_csv_locator_paths() - _t1734 = _t1735 + _t1808 := p.parse_csv_locator_paths() + _t1807 = _t1808 } - csv_locator_paths1050 := _t1734 - var _t1736 *string + csv_locator_paths1085 := _t1807 + var _t1809 *string if p.matchLookaheadLiteral("(", 0) { - _t1737 := p.parse_csv_locator_inline_data() - _t1736 = ptr(_t1737) + _t1810 := p.parse_csv_locator_inline_data() + _t1809 = ptr(_t1810) } - csv_locator_inline_data1051 := _t1736 + csv_locator_inline_data1086 := _t1809 p.consumeLiteral(")") - _t1738 := csv_locator_paths1050 - if csv_locator_paths1050 == nil { - _t1738 = []string{} + _t1811 := csv_locator_paths1085 + if csv_locator_paths1085 == nil { + _t1811 = []string{} } - _t1739 := &pb.CSVLocator{Paths: _t1738, InlineData: []byte(deref(csv_locator_inline_data1051, ""))} - result1053 := _t1739 - p.recordSpan(int(span_start1052), "CSVLocator") - return result1053 + _t1812 := &pb.CSVLocator{Paths: _t1811, InlineData: []byte(deref(csv_locator_inline_data1086, ""))} + result1088 := _t1812 + p.recordSpan(int(span_start1087), "CSVLocator") + return result1088 } func (p *Parser) parse_csv_locator_paths() []string { p.consumeLiteral("(") p.consumeLiteral("paths") - xs1054 := []string{} - cond1055 := p.matchLookaheadTerminal("STRING", 0) - for cond1055 { - item1056 := p.consumeTerminal("STRING").Value.str - xs1054 = append(xs1054, item1056) - cond1055 = p.matchLookaheadTerminal("STRING", 0) - } - strings1057 := xs1054 + xs1089 := []string{} + cond1090 := p.matchLookaheadTerminal("STRING", 0) + for cond1090 { + item1091 := p.consumeTerminal("STRING").Value.str + xs1089 = append(xs1089, item1091) + cond1090 = p.matchLookaheadTerminal("STRING", 0) + } + strings1092 := xs1089 p.consumeLiteral(")") - return strings1057 + return strings1092 } func (p *Parser) parse_csv_locator_inline_data() string { p.consumeLiteral("(") p.consumeLiteral("inline_data") - string1058 := p.consumeTerminal("STRING").Value.str + string1093 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1058 + return string1093 } func (p *Parser) parse_csv_config() *pb.CSVConfig { - span_start1060 := int64(p.spanStart()) + span_start1095 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("csv_config") - _t1740 := p.parse_config_dict() - config_dict1059 := _t1740 + _t1813 := p.parse_config_dict() + config_dict1094 := _t1813 p.consumeLiteral(")") - _t1741 := p.construct_csv_config(config_dict1059) - result1061 := _t1741 - p.recordSpan(int(span_start1060), "CSVConfig") - return result1061 + _t1814 := p.construct_csv_config(config_dict1094) + result1096 := _t1814 + p.recordSpan(int(span_start1095), "CSVConfig") + return result1096 } func (p *Parser) parse_gnf_columns() []*pb.GNFColumn { p.consumeLiteral("(") p.consumeLiteral("columns") - xs1062 := []*pb.GNFColumn{} - cond1063 := p.matchLookaheadLiteral("(", 0) - for cond1063 { - _t1742 := p.parse_gnf_column() - item1064 := _t1742 - xs1062 = append(xs1062, item1064) - cond1063 = p.matchLookaheadLiteral("(", 0) - } - gnf_columns1065 := xs1062 + xs1097 := []*pb.GNFColumn{} + cond1098 := p.matchLookaheadLiteral("(", 0) + for cond1098 { + _t1815 := p.parse_gnf_column() + item1099 := _t1815 + xs1097 = append(xs1097, item1099) + cond1098 = p.matchLookaheadLiteral("(", 0) + } + gnf_columns1100 := xs1097 p.consumeLiteral(")") - return gnf_columns1065 + return gnf_columns1100 } func (p *Parser) parse_gnf_column() *pb.GNFColumn { - span_start1072 := int64(p.spanStart()) + span_start1107 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("column") - _t1743 := p.parse_gnf_column_path() - gnf_column_path1066 := _t1743 - var _t1744 *pb.RelationId + _t1816 := p.parse_gnf_column_path() + gnf_column_path1101 := _t1816 + var _t1817 *pb.RelationId if (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) { - _t1745 := p.parse_relation_id() - _t1744 = _t1745 + _t1818 := p.parse_relation_id() + _t1817 = _t1818 } - relation_id1067 := _t1744 + relation_id1102 := _t1817 p.consumeLiteral("[") - xs1068 := []*pb.Type{} - cond1069 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - for cond1069 { - _t1746 := p.parse_type() - item1070 := _t1746 - xs1068 = append(xs1068, item1070) - cond1069 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) - } - types1071 := xs1068 + xs1103 := []*pb.Type{} + cond1104 := (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + for cond1104 { + _t1819 := p.parse_type() + item1105 := _t1819 + xs1103 = append(xs1103, item1105) + cond1104 = (((((((((((((p.matchLookaheadLiteral("(", 0) || p.matchLookaheadLiteral("BOOLEAN", 0)) || p.matchLookaheadLiteral("DATE", 0)) || p.matchLookaheadLiteral("DATETIME", 0)) || p.matchLookaheadLiteral("FLOAT", 0)) || p.matchLookaheadLiteral("FLOAT32", 0)) || p.matchLookaheadLiteral("INT", 0)) || p.matchLookaheadLiteral("INT128", 0)) || p.matchLookaheadLiteral("INT32", 0)) || p.matchLookaheadLiteral("MISSING", 0)) || p.matchLookaheadLiteral("STRING", 0)) || p.matchLookaheadLiteral("UINT128", 0)) || p.matchLookaheadLiteral("UINT32", 0)) || p.matchLookaheadLiteral("UNKNOWN", 0)) + } + types1106 := xs1103 p.consumeLiteral("]") p.consumeLiteral(")") - _t1747 := &pb.GNFColumn{ColumnPath: gnf_column_path1066, TargetId: relation_id1067, Types: types1071} - result1073 := _t1747 - p.recordSpan(int(span_start1072), "GNFColumn") - return result1073 + _t1820 := &pb.GNFColumn{ColumnPath: gnf_column_path1101, TargetId: relation_id1102, Types: types1106} + result1108 := _t1820 + p.recordSpan(int(span_start1107), "GNFColumn") + return result1108 } func (p *Parser) parse_gnf_column_path() []string { - var _t1748 int64 + var _t1821 int64 if p.matchLookaheadLiteral("[", 0) { - _t1748 = 1 + _t1821 = 1 } else { - var _t1749 int64 + var _t1822 int64 if p.matchLookaheadTerminal("STRING", 0) { - _t1749 = 0 + _t1822 = 0 } else { - _t1749 = -1 + _t1822 = -1 } - _t1748 = _t1749 + _t1821 = _t1822 } - prediction1074 := _t1748 - var _t1750 []string - if prediction1074 == 1 { + prediction1109 := _t1821 + var _t1823 []string + if prediction1109 == 1 { p.consumeLiteral("[") - xs1076 := []string{} - cond1077 := p.matchLookaheadTerminal("STRING", 0) - for cond1077 { - item1078 := p.consumeTerminal("STRING").Value.str - xs1076 = append(xs1076, item1078) - cond1077 = p.matchLookaheadTerminal("STRING", 0) + xs1111 := []string{} + cond1112 := p.matchLookaheadTerminal("STRING", 0) + for cond1112 { + item1113 := p.consumeTerminal("STRING").Value.str + xs1111 = append(xs1111, item1113) + cond1112 = p.matchLookaheadTerminal("STRING", 0) } - strings1079 := xs1076 + strings1114 := xs1111 p.consumeLiteral("]") - _t1750 = strings1079 + _t1823 = strings1114 } else { - var _t1751 []string - if prediction1074 == 0 { - string1075 := p.consumeTerminal("STRING").Value.str - _ = string1075 - _t1751 = []string{string1075} + var _t1824 []string + if prediction1109 == 0 { + string1110 := p.consumeTerminal("STRING").Value.str + _ = string1110 + _t1824 = []string{string1110} } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in gnf_column_path", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1750 = _t1751 + _t1823 = _t1824 } - return _t1750 + return _t1823 } func (p *Parser) parse_csv_asof() string { p.consumeLiteral("(") p.consumeLiteral("asof") - string1080 := p.consumeTerminal("STRING").Value.str + string1115 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1080 + return string1115 +} + +func (p *Parser) parse_iceberg_data() *pb.IcebergData { + span_start1120 := int64(p.spanStart()) + p.consumeLiteral("(") + p.consumeLiteral("iceberg_data") + _t1825 := p.parse_iceberg_locator() + iceberg_locator1116 := _t1825 + _t1826 := p.parse_iceberg_config() + iceberg_config1117 := _t1826 + _t1827 := p.parse_gnf_columns() + gnf_columns1118 := _t1827 + var _t1828 *string + if p.matchLookaheadLiteral("(", 0) { + _t1829 := p.parse_iceberg_to_snapshot() + _t1828 = ptr(_t1829) + } + iceberg_to_snapshot1119 := _t1828 + p.consumeLiteral(")") + _t1830 := &pb.IcebergData{Locator: iceberg_locator1116, Config: iceberg_config1117, Columns: gnf_columns1118, ToSnapshot: deref(iceberg_to_snapshot1119, "")} + result1121 := _t1830 + p.recordSpan(int(span_start1120), "IcebergData") + return result1121 +} + +func (p *Parser) parse_iceberg_locator() *pb.IcebergLocator { + span_start1125 := int64(p.spanStart()) + p.consumeLiteral("(") + p.consumeLiteral("iceberg_locator") + string1122 := p.consumeTerminal("STRING").Value.str + _t1831 := p.parse_iceberg_locator_namespace() + iceberg_locator_namespace1123 := _t1831 + string_41124 := p.consumeTerminal("STRING").Value.str + p.consumeLiteral(")") + _t1832 := &pb.IcebergLocator{TableName: string1122, Namespace: iceberg_locator_namespace1123, Warehouse: string_41124} + result1126 := _t1832 + p.recordSpan(int(span_start1125), "IcebergLocator") + return result1126 +} + +func (p *Parser) parse_iceberg_locator_namespace() []string { + p.consumeLiteral("(") + p.consumeLiteral("namespace") + xs1127 := []string{} + cond1128 := p.matchLookaheadTerminal("STRING", 0) + for cond1128 { + item1129 := p.consumeTerminal("STRING").Value.str + xs1127 = append(xs1127, item1129) + cond1128 = p.matchLookaheadTerminal("STRING", 0) + } + strings1130 := xs1127 + p.consumeLiteral(")") + return strings1130 +} + +func (p *Parser) parse_iceberg_config() *pb.IcebergConfig { + span_start1135 := int64(p.spanStart()) + p.consumeLiteral("(") + p.consumeLiteral("iceberg_config") + string1131 := p.consumeTerminal("STRING").Value.str + var _t1833 *string + if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("scope", 1)) { + _t1834 := p.parse_iceberg_config_scope() + _t1833 = ptr(_t1834) + } + iceberg_config_scope1132 := _t1833 + var _t1835 [][]interface{} + if (p.matchLookaheadLiteral("(", 0) && p.matchLookaheadLiteral("properties", 1)) { + _t1836 := p.parse_iceberg_config_properties() + _t1835 = _t1836 + } + iceberg_config_properties1133 := _t1835 + var _t1837 [][]interface{} + if p.matchLookaheadLiteral("(", 0) { + _t1838 := p.parse_iceberg_config_credentials() + _t1837 = _t1838 + } + iceberg_config_credentials1134 := _t1837 + p.consumeLiteral(")") + _t1839 := p.construct_iceberg_config(string1131, iceberg_config_scope1132, iceberg_config_properties1133, iceberg_config_credentials1134) + result1136 := _t1839 + p.recordSpan(int(span_start1135), "IcebergConfig") + return result1136 +} + +func (p *Parser) parse_iceberg_config_scope() string { + p.consumeLiteral("(") + p.consumeLiteral("scope") + string1137 := p.consumeTerminal("STRING").Value.str + p.consumeLiteral(")") + return string1137 +} + +func (p *Parser) parse_iceberg_config_properties() [][]interface{} { + p.consumeLiteral("(") + p.consumeLiteral("properties") + xs1138 := [][]interface{}{} + cond1139 := p.matchLookaheadLiteral("(", 0) + for cond1139 { + _t1840 := p.parse_iceberg_kv_pair() + item1140 := _t1840 + xs1138 = append(xs1138, item1140) + cond1139 = p.matchLookaheadLiteral("(", 0) + } + iceberg_kv_pairs1141 := xs1138 + p.consumeLiteral(")") + return iceberg_kv_pairs1141 +} + +func (p *Parser) parse_iceberg_kv_pair() []interface{} { + p.consumeLiteral("(") + string1142 := p.consumeTerminal("STRING").Value.str + string_21143 := p.consumeTerminal("STRING").Value.str + p.consumeLiteral(")") + return []interface{}{string1142, string_21143} +} + +func (p *Parser) parse_iceberg_config_credentials() [][]interface{} { + p.consumeLiteral("(") + p.consumeLiteral("credentials") + xs1144 := [][]interface{}{} + cond1145 := p.matchLookaheadLiteral("(", 0) + for cond1145 { + _t1841 := p.parse_iceberg_kv_pair() + item1146 := _t1841 + xs1144 = append(xs1144, item1146) + cond1145 = p.matchLookaheadLiteral("(", 0) + } + iceberg_kv_pairs1147 := xs1144 + p.consumeLiteral(")") + return iceberg_kv_pairs1147 +} + +func (p *Parser) parse_iceberg_to_snapshot() string { + p.consumeLiteral("(") + p.consumeLiteral("to_snapshot") + string1148 := p.consumeTerminal("STRING").Value.str + p.consumeLiteral(")") + return string1148 } func (p *Parser) parse_undefine() *pb.Undefine { - span_start1082 := int64(p.spanStart()) + span_start1150 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("undefine") - _t1752 := p.parse_fragment_id() - fragment_id1081 := _t1752 + _t1842 := p.parse_fragment_id() + fragment_id1149 := _t1842 p.consumeLiteral(")") - _t1753 := &pb.Undefine{FragmentId: fragment_id1081} - result1083 := _t1753 - p.recordSpan(int(span_start1082), "Undefine") - return result1083 + _t1843 := &pb.Undefine{FragmentId: fragment_id1149} + result1151 := _t1843 + p.recordSpan(int(span_start1150), "Undefine") + return result1151 } func (p *Parser) parse_context() *pb.Context { - span_start1088 := int64(p.spanStart()) + span_start1156 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("context") - xs1084 := []*pb.RelationId{} - cond1085 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - for cond1085 { - _t1754 := p.parse_relation_id() - item1086 := _t1754 - xs1084 = append(xs1084, item1086) - cond1085 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) - } - relation_ids1087 := xs1084 + xs1152 := []*pb.RelationId{} + cond1153 := (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + for cond1153 { + _t1844 := p.parse_relation_id() + item1154 := _t1844 + xs1152 = append(xs1152, item1154) + cond1153 = (p.matchLookaheadLiteral(":", 0) || p.matchLookaheadTerminal("UINT128", 0)) + } + relation_ids1155 := xs1152 p.consumeLiteral(")") - _t1755 := &pb.Context{Relations: relation_ids1087} - result1089 := _t1755 - p.recordSpan(int(span_start1088), "Context") - return result1089 + _t1845 := &pb.Context{Relations: relation_ids1155} + result1157 := _t1845 + p.recordSpan(int(span_start1156), "Context") + return result1157 } func (p *Parser) parse_snapshot() *pb.Snapshot { - span_start1094 := int64(p.spanStart()) + span_start1162 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("snapshot") - xs1090 := []*pb.SnapshotMapping{} - cond1091 := p.matchLookaheadLiteral("[", 0) - for cond1091 { - _t1756 := p.parse_snapshot_mapping() - item1092 := _t1756 - xs1090 = append(xs1090, item1092) - cond1091 = p.matchLookaheadLiteral("[", 0) - } - snapshot_mappings1093 := xs1090 + xs1158 := []*pb.SnapshotMapping{} + cond1159 := p.matchLookaheadLiteral("[", 0) + for cond1159 { + _t1846 := p.parse_snapshot_mapping() + item1160 := _t1846 + xs1158 = append(xs1158, item1160) + cond1159 = p.matchLookaheadLiteral("[", 0) + } + snapshot_mappings1161 := xs1158 p.consumeLiteral(")") - _t1757 := &pb.Snapshot{Mappings: snapshot_mappings1093} - result1095 := _t1757 - p.recordSpan(int(span_start1094), "Snapshot") - return result1095 + _t1847 := &pb.Snapshot{Mappings: snapshot_mappings1161} + result1163 := _t1847 + p.recordSpan(int(span_start1162), "Snapshot") + return result1163 } func (p *Parser) parse_snapshot_mapping() *pb.SnapshotMapping { - span_start1098 := int64(p.spanStart()) - _t1758 := p.parse_edb_path() - edb_path1096 := _t1758 - _t1759 := p.parse_relation_id() - relation_id1097 := _t1759 - _t1760 := &pb.SnapshotMapping{DestinationPath: edb_path1096, SourceRelation: relation_id1097} - result1099 := _t1760 - p.recordSpan(int(span_start1098), "SnapshotMapping") - return result1099 + span_start1166 := int64(p.spanStart()) + _t1848 := p.parse_edb_path() + edb_path1164 := _t1848 + _t1849 := p.parse_relation_id() + relation_id1165 := _t1849 + _t1850 := &pb.SnapshotMapping{DestinationPath: edb_path1164, SourceRelation: relation_id1165} + result1167 := _t1850 + p.recordSpan(int(span_start1166), "SnapshotMapping") + return result1167 } func (p *Parser) parse_epoch_reads() []*pb.Read { p.consumeLiteral("(") p.consumeLiteral("reads") - xs1100 := []*pb.Read{} - cond1101 := p.matchLookaheadLiteral("(", 0) - for cond1101 { - _t1761 := p.parse_read() - item1102 := _t1761 - xs1100 = append(xs1100, item1102) - cond1101 = p.matchLookaheadLiteral("(", 0) - } - reads1103 := xs1100 + xs1168 := []*pb.Read{} + cond1169 := p.matchLookaheadLiteral("(", 0) + for cond1169 { + _t1851 := p.parse_read() + item1170 := _t1851 + xs1168 = append(xs1168, item1170) + cond1169 = p.matchLookaheadLiteral("(", 0) + } + reads1171 := xs1168 p.consumeLiteral(")") - return reads1103 + return reads1171 } func (p *Parser) parse_read() *pb.Read { - span_start1110 := int64(p.spanStart()) - var _t1762 int64 + span_start1178 := int64(p.spanStart()) + var _t1852 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1763 int64 + var _t1853 int64 if p.matchLookaheadLiteral("what_if", 1) { - _t1763 = 2 + _t1853 = 2 } else { - var _t1764 int64 + var _t1854 int64 if p.matchLookaheadLiteral("output", 1) { - _t1764 = 1 + _t1854 = 1 } else { - var _t1765 int64 + var _t1855 int64 if p.matchLookaheadLiteral("export", 1) { - _t1765 = 4 + _t1855 = 4 } else { - var _t1766 int64 + var _t1856 int64 if p.matchLookaheadLiteral("demand", 1) { - _t1766 = 0 + _t1856 = 0 } else { - var _t1767 int64 + var _t1857 int64 if p.matchLookaheadLiteral("abort", 1) { - _t1767 = 3 + _t1857 = 3 } else { - _t1767 = -1 + _t1857 = -1 } - _t1766 = _t1767 + _t1856 = _t1857 } - _t1765 = _t1766 + _t1855 = _t1856 } - _t1764 = _t1765 + _t1854 = _t1855 } - _t1763 = _t1764 + _t1853 = _t1854 } - _t1762 = _t1763 + _t1852 = _t1853 } else { - _t1762 = -1 - } - prediction1104 := _t1762 - var _t1768 *pb.Read - if prediction1104 == 4 { - _t1769 := p.parse_export() - export1109 := _t1769 - _t1770 := &pb.Read{} - _t1770.ReadType = &pb.Read_Export{Export: export1109} - _t1768 = _t1770 + _t1852 = -1 + } + prediction1172 := _t1852 + var _t1858 *pb.Read + if prediction1172 == 4 { + _t1859 := p.parse_export() + export1177 := _t1859 + _t1860 := &pb.Read{} + _t1860.ReadType = &pb.Read_Export{Export: export1177} + _t1858 = _t1860 } else { - var _t1771 *pb.Read - if prediction1104 == 3 { - _t1772 := p.parse_abort() - abort1108 := _t1772 - _t1773 := &pb.Read{} - _t1773.ReadType = &pb.Read_Abort{Abort: abort1108} - _t1771 = _t1773 + var _t1861 *pb.Read + if prediction1172 == 3 { + _t1862 := p.parse_abort() + abort1176 := _t1862 + _t1863 := &pb.Read{} + _t1863.ReadType = &pb.Read_Abort{Abort: abort1176} + _t1861 = _t1863 } else { - var _t1774 *pb.Read - if prediction1104 == 2 { - _t1775 := p.parse_what_if() - what_if1107 := _t1775 - _t1776 := &pb.Read{} - _t1776.ReadType = &pb.Read_WhatIf{WhatIf: what_if1107} - _t1774 = _t1776 + var _t1864 *pb.Read + if prediction1172 == 2 { + _t1865 := p.parse_what_if() + what_if1175 := _t1865 + _t1866 := &pb.Read{} + _t1866.ReadType = &pb.Read_WhatIf{WhatIf: what_if1175} + _t1864 = _t1866 } else { - var _t1777 *pb.Read - if prediction1104 == 1 { - _t1778 := p.parse_output() - output1106 := _t1778 - _t1779 := &pb.Read{} - _t1779.ReadType = &pb.Read_Output{Output: output1106} - _t1777 = _t1779 + var _t1867 *pb.Read + if prediction1172 == 1 { + _t1868 := p.parse_output() + output1174 := _t1868 + _t1869 := &pb.Read{} + _t1869.ReadType = &pb.Read_Output{Output: output1174} + _t1867 = _t1869 } else { - var _t1780 *pb.Read - if prediction1104 == 0 { - _t1781 := p.parse_demand() - demand1105 := _t1781 - _t1782 := &pb.Read{} - _t1782.ReadType = &pb.Read_Demand{Demand: demand1105} - _t1780 = _t1782 + var _t1870 *pb.Read + if prediction1172 == 0 { + _t1871 := p.parse_demand() + demand1173 := _t1871 + _t1872 := &pb.Read{} + _t1872.ReadType = &pb.Read_Demand{Demand: demand1173} + _t1870 = _t1872 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in read", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1777 = _t1780 + _t1867 = _t1870 } - _t1774 = _t1777 + _t1864 = _t1867 } - _t1771 = _t1774 + _t1861 = _t1864 } - _t1768 = _t1771 + _t1858 = _t1861 } - result1111 := _t1768 - p.recordSpan(int(span_start1110), "Read") - return result1111 + result1179 := _t1858 + p.recordSpan(int(span_start1178), "Read") + return result1179 } func (p *Parser) parse_demand() *pb.Demand { - span_start1113 := int64(p.spanStart()) + span_start1181 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("demand") - _t1783 := p.parse_relation_id() - relation_id1112 := _t1783 + _t1873 := p.parse_relation_id() + relation_id1180 := _t1873 p.consumeLiteral(")") - _t1784 := &pb.Demand{RelationId: relation_id1112} - result1114 := _t1784 - p.recordSpan(int(span_start1113), "Demand") - return result1114 + _t1874 := &pb.Demand{RelationId: relation_id1180} + result1182 := _t1874 + p.recordSpan(int(span_start1181), "Demand") + return result1182 } func (p *Parser) parse_output() *pb.Output { - span_start1117 := int64(p.spanStart()) + span_start1185 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("output") - _t1785 := p.parse_name() - name1115 := _t1785 - _t1786 := p.parse_relation_id() - relation_id1116 := _t1786 + _t1875 := p.parse_name() + name1183 := _t1875 + _t1876 := p.parse_relation_id() + relation_id1184 := _t1876 p.consumeLiteral(")") - _t1787 := &pb.Output{Name: name1115, RelationId: relation_id1116} - result1118 := _t1787 - p.recordSpan(int(span_start1117), "Output") - return result1118 + _t1877 := &pb.Output{Name: name1183, RelationId: relation_id1184} + result1186 := _t1877 + p.recordSpan(int(span_start1185), "Output") + return result1186 } func (p *Parser) parse_what_if() *pb.WhatIf { - span_start1121 := int64(p.spanStart()) + span_start1189 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("what_if") - _t1788 := p.parse_name() - name1119 := _t1788 - _t1789 := p.parse_epoch() - epoch1120 := _t1789 + _t1878 := p.parse_name() + name1187 := _t1878 + _t1879 := p.parse_epoch() + epoch1188 := _t1879 p.consumeLiteral(")") - _t1790 := &pb.WhatIf{Branch: name1119, Epoch: epoch1120} - result1122 := _t1790 - p.recordSpan(int(span_start1121), "WhatIf") - return result1122 + _t1880 := &pb.WhatIf{Branch: name1187, Epoch: epoch1188} + result1190 := _t1880 + p.recordSpan(int(span_start1189), "WhatIf") + return result1190 } func (p *Parser) parse_abort() *pb.Abort { - span_start1125 := int64(p.spanStart()) + span_start1193 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("abort") - var _t1791 *string + var _t1881 *string if (p.matchLookaheadLiteral(":", 0) && p.matchLookaheadTerminal("SYMBOL", 1)) { - _t1792 := p.parse_name() - _t1791 = ptr(_t1792) + _t1882 := p.parse_name() + _t1881 = ptr(_t1882) } - name1123 := _t1791 - _t1793 := p.parse_relation_id() - relation_id1124 := _t1793 + name1191 := _t1881 + _t1883 := p.parse_relation_id() + relation_id1192 := _t1883 p.consumeLiteral(")") - _t1794 := &pb.Abort{Name: deref(name1123, "abort"), RelationId: relation_id1124} - result1126 := _t1794 - p.recordSpan(int(span_start1125), "Abort") - return result1126 + _t1884 := &pb.Abort{Name: deref(name1191, "abort"), RelationId: relation_id1192} + result1194 := _t1884 + p.recordSpan(int(span_start1193), "Abort") + return result1194 } func (p *Parser) parse_export() *pb.Export { - span_start1128 := int64(p.spanStart()) + span_start1196 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("export") - _t1795 := p.parse_export_csv_config() - export_csv_config1127 := _t1795 + _t1885 := p.parse_export_csv_config() + export_csv_config1195 := _t1885 p.consumeLiteral(")") - _t1796 := &pb.Export{} - _t1796.ExportConfig = &pb.Export_CsvConfig{CsvConfig: export_csv_config1127} - result1129 := _t1796 - p.recordSpan(int(span_start1128), "Export") - return result1129 + _t1886 := &pb.Export{} + _t1886.ExportConfig = &pb.Export_CsvConfig{CsvConfig: export_csv_config1195} + result1197 := _t1886 + p.recordSpan(int(span_start1196), "Export") + return result1197 } func (p *Parser) parse_export_csv_config() *pb.ExportCSVConfig { - span_start1137 := int64(p.spanStart()) - var _t1797 int64 + span_start1205 := int64(p.spanStart()) + var _t1887 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1798 int64 + var _t1888 int64 if p.matchLookaheadLiteral("export_csv_config_v2", 1) { - _t1798 = 0 + _t1888 = 0 } else { - var _t1799 int64 + var _t1889 int64 if p.matchLookaheadLiteral("export_csv_config", 1) { - _t1799 = 1 + _t1889 = 1 } else { - _t1799 = -1 + _t1889 = -1 } - _t1798 = _t1799 + _t1888 = _t1889 } - _t1797 = _t1798 + _t1887 = _t1888 } else { - _t1797 = -1 + _t1887 = -1 } - prediction1130 := _t1797 - var _t1800 *pb.ExportCSVConfig - if prediction1130 == 1 { + prediction1198 := _t1887 + var _t1890 *pb.ExportCSVConfig + if prediction1198 == 1 { p.consumeLiteral("(") p.consumeLiteral("export_csv_config") - _t1801 := p.parse_export_csv_path() - export_csv_path1134 := _t1801 - _t1802 := p.parse_export_csv_columns_list() - export_csv_columns_list1135 := _t1802 - _t1803 := p.parse_config_dict() - config_dict1136 := _t1803 + _t1891 := p.parse_export_csv_path() + export_csv_path1202 := _t1891 + _t1892 := p.parse_export_csv_columns_list() + export_csv_columns_list1203 := _t1892 + _t1893 := p.parse_config_dict() + config_dict1204 := _t1893 p.consumeLiteral(")") - _t1804 := p.construct_export_csv_config(export_csv_path1134, export_csv_columns_list1135, config_dict1136) - _t1800 = _t1804 + _t1894 := p.construct_export_csv_config(export_csv_path1202, export_csv_columns_list1203, config_dict1204) + _t1890 = _t1894 } else { - var _t1805 *pb.ExportCSVConfig - if prediction1130 == 0 { + var _t1895 *pb.ExportCSVConfig + if prediction1198 == 0 { p.consumeLiteral("(") p.consumeLiteral("export_csv_config_v2") - _t1806 := p.parse_export_csv_path() - export_csv_path1131 := _t1806 - _t1807 := p.parse_export_csv_source() - export_csv_source1132 := _t1807 - _t1808 := p.parse_csv_config() - csv_config1133 := _t1808 + _t1896 := p.parse_export_csv_path() + export_csv_path1199 := _t1896 + _t1897 := p.parse_export_csv_source() + export_csv_source1200 := _t1897 + _t1898 := p.parse_csv_config() + csv_config1201 := _t1898 p.consumeLiteral(")") - _t1809 := p.construct_export_csv_config_with_source(export_csv_path1131, export_csv_source1132, csv_config1133) - _t1805 = _t1809 + _t1899 := p.construct_export_csv_config_with_source(export_csv_path1199, export_csv_source1200, csv_config1201) + _t1895 = _t1899 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export_csv_config", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1800 = _t1805 + _t1890 = _t1895 } - result1138 := _t1800 - p.recordSpan(int(span_start1137), "ExportCSVConfig") - return result1138 + result1206 := _t1890 + p.recordSpan(int(span_start1205), "ExportCSVConfig") + return result1206 } func (p *Parser) parse_export_csv_path() string { p.consumeLiteral("(") p.consumeLiteral("path") - string1139 := p.consumeTerminal("STRING").Value.str + string1207 := p.consumeTerminal("STRING").Value.str p.consumeLiteral(")") - return string1139 + return string1207 } func (p *Parser) parse_export_csv_source() *pb.ExportCSVSource { - span_start1146 := int64(p.spanStart()) - var _t1810 int64 + span_start1214 := int64(p.spanStart()) + var _t1900 int64 if p.matchLookaheadLiteral("(", 0) { - var _t1811 int64 + var _t1901 int64 if p.matchLookaheadLiteral("table_def", 1) { - _t1811 = 1 + _t1901 = 1 } else { - var _t1812 int64 + var _t1902 int64 if p.matchLookaheadLiteral("gnf_columns", 1) { - _t1812 = 0 + _t1902 = 0 } else { - _t1812 = -1 + _t1902 = -1 } - _t1811 = _t1812 + _t1901 = _t1902 } - _t1810 = _t1811 + _t1900 = _t1901 } else { - _t1810 = -1 + _t1900 = -1 } - prediction1140 := _t1810 - var _t1813 *pb.ExportCSVSource - if prediction1140 == 1 { + prediction1208 := _t1900 + var _t1903 *pb.ExportCSVSource + if prediction1208 == 1 { p.consumeLiteral("(") p.consumeLiteral("table_def") - _t1814 := p.parse_relation_id() - relation_id1145 := _t1814 + _t1904 := p.parse_relation_id() + relation_id1213 := _t1904 p.consumeLiteral(")") - _t1815 := &pb.ExportCSVSource{} - _t1815.CsvSource = &pb.ExportCSVSource_TableDef{TableDef: relation_id1145} - _t1813 = _t1815 + _t1905 := &pb.ExportCSVSource{} + _t1905.CsvSource = &pb.ExportCSVSource_TableDef{TableDef: relation_id1213} + _t1903 = _t1905 } else { - var _t1816 *pb.ExportCSVSource - if prediction1140 == 0 { + var _t1906 *pb.ExportCSVSource + if prediction1208 == 0 { p.consumeLiteral("(") p.consumeLiteral("gnf_columns") - xs1141 := []*pb.ExportCSVColumn{} - cond1142 := p.matchLookaheadLiteral("(", 0) - for cond1142 { - _t1817 := p.parse_export_csv_column() - item1143 := _t1817 - xs1141 = append(xs1141, item1143) - cond1142 = p.matchLookaheadLiteral("(", 0) + xs1209 := []*pb.ExportCSVColumn{} + cond1210 := p.matchLookaheadLiteral("(", 0) + for cond1210 { + _t1907 := p.parse_export_csv_column() + item1211 := _t1907 + xs1209 = append(xs1209, item1211) + cond1210 = p.matchLookaheadLiteral("(", 0) } - export_csv_columns1144 := xs1141 + export_csv_columns1212 := xs1209 p.consumeLiteral(")") - _t1818 := &pb.ExportCSVColumns{Columns: export_csv_columns1144} - _t1819 := &pb.ExportCSVSource{} - _t1819.CsvSource = &pb.ExportCSVSource_GnfColumns{GnfColumns: _t1818} - _t1816 = _t1819 + _t1908 := &pb.ExportCSVColumns{Columns: export_csv_columns1212} + _t1909 := &pb.ExportCSVSource{} + _t1909.CsvSource = &pb.ExportCSVSource_GnfColumns{GnfColumns: _t1908} + _t1906 = _t1909 } else { panic(ParseError{msg: fmt.Sprintf("%s: %s=`%v`", "Unexpected token in export_csv_source", p.lookahead(0).Type, p.lookahead(0).Value)}) } - _t1813 = _t1816 + _t1903 = _t1906 } - result1147 := _t1813 - p.recordSpan(int(span_start1146), "ExportCSVSource") - return result1147 + result1215 := _t1903 + p.recordSpan(int(span_start1214), "ExportCSVSource") + return result1215 } func (p *Parser) parse_export_csv_column() *pb.ExportCSVColumn { - span_start1150 := int64(p.spanStart()) + span_start1218 := int64(p.spanStart()) p.consumeLiteral("(") p.consumeLiteral("column") - string1148 := p.consumeTerminal("STRING").Value.str - _t1820 := p.parse_relation_id() - relation_id1149 := _t1820 + string1216 := p.consumeTerminal("STRING").Value.str + _t1910 := p.parse_relation_id() + relation_id1217 := _t1910 p.consumeLiteral(")") - _t1821 := &pb.ExportCSVColumn{ColumnName: string1148, ColumnData: relation_id1149} - result1151 := _t1821 - p.recordSpan(int(span_start1150), "ExportCSVColumn") - return result1151 + _t1911 := &pb.ExportCSVColumn{ColumnName: string1216, ColumnData: relation_id1217} + result1219 := _t1911 + p.recordSpan(int(span_start1218), "ExportCSVColumn") + return result1219 } func (p *Parser) parse_export_csv_columns_list() []*pb.ExportCSVColumn { p.consumeLiteral("(") p.consumeLiteral("columns") - xs1152 := []*pb.ExportCSVColumn{} - cond1153 := p.matchLookaheadLiteral("(", 0) - for cond1153 { - _t1822 := p.parse_export_csv_column() - item1154 := _t1822 - xs1152 = append(xs1152, item1154) - cond1153 = p.matchLookaheadLiteral("(", 0) - } - export_csv_columns1155 := xs1152 + xs1220 := []*pb.ExportCSVColumn{} + cond1221 := p.matchLookaheadLiteral("(", 0) + for cond1221 { + _t1912 := p.parse_export_csv_column() + item1222 := _t1912 + xs1220 = append(xs1220, item1222) + cond1221 = p.matchLookaheadLiteral("(", 0) + } + export_csv_columns1223 := xs1220 p.consumeLiteral(")") - return export_csv_columns1155 + return export_csv_columns1223 } diff --git a/sdks/go/src/pretty.go b/sdks/go/src/pretty.go index 3d5e968d..1b5cd925 100644 --- a/sdks/go/src/pretty.go +++ b/sdks/go/src/pretty.go @@ -312,157 +312,157 @@ func formatBool(b bool) string { // --- Helper functions --- func (p *PrettyPrinter) _make_value_int32(v int32) *pb.Value { - _t1459 := &pb.Value{} - _t1459.Value = &pb.Value_Int32Value{Int32Value: v} - return _t1459 + _t1556 := &pb.Value{} + _t1556.Value = &pb.Value_Int32Value{Int32Value: v} + return _t1556 } func (p *PrettyPrinter) _make_value_int64(v int64) *pb.Value { - _t1460 := &pb.Value{} - _t1460.Value = &pb.Value_IntValue{IntValue: v} - return _t1460 + _t1557 := &pb.Value{} + _t1557.Value = &pb.Value_IntValue{IntValue: v} + return _t1557 } func (p *PrettyPrinter) _make_value_float64(v float64) *pb.Value { - _t1461 := &pb.Value{} - _t1461.Value = &pb.Value_FloatValue{FloatValue: v} - return _t1461 + _t1558 := &pb.Value{} + _t1558.Value = &pb.Value_FloatValue{FloatValue: v} + return _t1558 } func (p *PrettyPrinter) _make_value_string(v string) *pb.Value { - _t1462 := &pb.Value{} - _t1462.Value = &pb.Value_StringValue{StringValue: v} - return _t1462 + _t1559 := &pb.Value{} + _t1559.Value = &pb.Value_StringValue{StringValue: v} + return _t1559 } func (p *PrettyPrinter) _make_value_boolean(v bool) *pb.Value { - _t1463 := &pb.Value{} - _t1463.Value = &pb.Value_BooleanValue{BooleanValue: v} - return _t1463 + _t1560 := &pb.Value{} + _t1560.Value = &pb.Value_BooleanValue{BooleanValue: v} + return _t1560 } func (p *PrettyPrinter) _make_value_uint128(v *pb.UInt128Value) *pb.Value { - _t1464 := &pb.Value{} - _t1464.Value = &pb.Value_Uint128Value{Uint128Value: v} - return _t1464 + _t1561 := &pb.Value{} + _t1561.Value = &pb.Value_Uint128Value{Uint128Value: v} + return _t1561 } func (p *PrettyPrinter) deconstruct_configure(msg *pb.Configure) [][]interface{} { result := [][]interface{}{} if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_AUTO { - _t1465 := p._make_value_string("auto") - result = append(result, []interface{}{"ivm.maintenance_level", _t1465}) + _t1562 := p._make_value_string("auto") + result = append(result, []interface{}{"ivm.maintenance_level", _t1562}) } else { if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_ALL { - _t1466 := p._make_value_string("all") - result = append(result, []interface{}{"ivm.maintenance_level", _t1466}) + _t1563 := p._make_value_string("all") + result = append(result, []interface{}{"ivm.maintenance_level", _t1563}) } else { if msg.GetIvmConfig().GetLevel() == pb.MaintenanceLevel_MAINTENANCE_LEVEL_OFF { - _t1467 := p._make_value_string("off") - result = append(result, []interface{}{"ivm.maintenance_level", _t1467}) + _t1564 := p._make_value_string("off") + result = append(result, []interface{}{"ivm.maintenance_level", _t1564}) } } } - _t1468 := p._make_value_int64(msg.GetSemanticsVersion()) - result = append(result, []interface{}{"semantics_version", _t1468}) + _t1565 := p._make_value_int64(msg.GetSemanticsVersion()) + result = append(result, []interface{}{"semantics_version", _t1565}) return listSort(result) } func (p *PrettyPrinter) deconstruct_csv_config(msg *pb.CSVConfig) [][]interface{} { result := [][]interface{}{} - _t1469 := p._make_value_int32(msg.GetHeaderRow()) - result = append(result, []interface{}{"csv_header_row", _t1469}) - _t1470 := p._make_value_int64(msg.GetSkip()) - result = append(result, []interface{}{"csv_skip", _t1470}) + _t1566 := p._make_value_int32(msg.GetHeaderRow()) + result = append(result, []interface{}{"csv_header_row", _t1566}) + _t1567 := p._make_value_int64(msg.GetSkip()) + result = append(result, []interface{}{"csv_skip", _t1567}) if msg.GetNewLine() != "" { - _t1471 := p._make_value_string(msg.GetNewLine()) - result = append(result, []interface{}{"csv_new_line", _t1471}) - } - _t1472 := p._make_value_string(msg.GetDelimiter()) - result = append(result, []interface{}{"csv_delimiter", _t1472}) - _t1473 := p._make_value_string(msg.GetQuotechar()) - result = append(result, []interface{}{"csv_quotechar", _t1473}) - _t1474 := p._make_value_string(msg.GetEscapechar()) - result = append(result, []interface{}{"csv_escapechar", _t1474}) + _t1568 := p._make_value_string(msg.GetNewLine()) + result = append(result, []interface{}{"csv_new_line", _t1568}) + } + _t1569 := p._make_value_string(msg.GetDelimiter()) + result = append(result, []interface{}{"csv_delimiter", _t1569}) + _t1570 := p._make_value_string(msg.GetQuotechar()) + result = append(result, []interface{}{"csv_quotechar", _t1570}) + _t1571 := p._make_value_string(msg.GetEscapechar()) + result = append(result, []interface{}{"csv_escapechar", _t1571}) if msg.GetComment() != "" { - _t1475 := p._make_value_string(msg.GetComment()) - result = append(result, []interface{}{"csv_comment", _t1475}) + _t1572 := p._make_value_string(msg.GetComment()) + result = append(result, []interface{}{"csv_comment", _t1572}) } for _, missing_string := range msg.GetMissingStrings() { - _t1476 := p._make_value_string(missing_string) - result = append(result, []interface{}{"csv_missing_strings", _t1476}) - } - _t1477 := p._make_value_string(msg.GetDecimalSeparator()) - result = append(result, []interface{}{"csv_decimal_separator", _t1477}) - _t1478 := p._make_value_string(msg.GetEncoding()) - result = append(result, []interface{}{"csv_encoding", _t1478}) - _t1479 := p._make_value_string(msg.GetCompression()) - result = append(result, []interface{}{"csv_compression", _t1479}) + _t1573 := p._make_value_string(missing_string) + result = append(result, []interface{}{"csv_missing_strings", _t1573}) + } + _t1574 := p._make_value_string(msg.GetDecimalSeparator()) + result = append(result, []interface{}{"csv_decimal_separator", _t1574}) + _t1575 := p._make_value_string(msg.GetEncoding()) + result = append(result, []interface{}{"csv_encoding", _t1575}) + _t1576 := p._make_value_string(msg.GetCompression()) + result = append(result, []interface{}{"csv_compression", _t1576}) if msg.GetPartitionSizeMb() != 0 { - _t1480 := p._make_value_int64(msg.GetPartitionSizeMb()) - result = append(result, []interface{}{"csv_partition_size_mb", _t1480}) + _t1577 := p._make_value_int64(msg.GetPartitionSizeMb()) + result = append(result, []interface{}{"csv_partition_size_mb", _t1577}) } return listSort(result) } func (p *PrettyPrinter) deconstruct_betree_info_config(msg *pb.BeTreeInfo) [][]interface{} { result := [][]interface{}{} - _t1481 := p._make_value_float64(msg.GetStorageConfig().GetEpsilon()) - result = append(result, []interface{}{"betree_config_epsilon", _t1481}) - _t1482 := p._make_value_int64(msg.GetStorageConfig().GetMaxPivots()) - result = append(result, []interface{}{"betree_config_max_pivots", _t1482}) - _t1483 := p._make_value_int64(msg.GetStorageConfig().GetMaxDeltas()) - result = append(result, []interface{}{"betree_config_max_deltas", _t1483}) - _t1484 := p._make_value_int64(msg.GetStorageConfig().GetMaxLeaf()) - result = append(result, []interface{}{"betree_config_max_leaf", _t1484}) + _t1578 := p._make_value_float64(msg.GetStorageConfig().GetEpsilon()) + result = append(result, []interface{}{"betree_config_epsilon", _t1578}) + _t1579 := p._make_value_int64(msg.GetStorageConfig().GetMaxPivots()) + result = append(result, []interface{}{"betree_config_max_pivots", _t1579}) + _t1580 := p._make_value_int64(msg.GetStorageConfig().GetMaxDeltas()) + result = append(result, []interface{}{"betree_config_max_deltas", _t1580}) + _t1581 := p._make_value_int64(msg.GetStorageConfig().GetMaxLeaf()) + result = append(result, []interface{}{"betree_config_max_leaf", _t1581}) if hasProtoField(msg.GetRelationLocator(), "root_pageid") { if msg.GetRelationLocator().GetRootPageid() != nil { - _t1485 := p._make_value_uint128(msg.GetRelationLocator().GetRootPageid()) - result = append(result, []interface{}{"betree_locator_root_pageid", _t1485}) + _t1582 := p._make_value_uint128(msg.GetRelationLocator().GetRootPageid()) + result = append(result, []interface{}{"betree_locator_root_pageid", _t1582}) } } if hasProtoField(msg.GetRelationLocator(), "inline_data") { if msg.GetRelationLocator().GetInlineData() != nil { - _t1486 := p._make_value_string(string(msg.GetRelationLocator().GetInlineData())) - result = append(result, []interface{}{"betree_locator_inline_data", _t1486}) + _t1583 := p._make_value_string(string(msg.GetRelationLocator().GetInlineData())) + result = append(result, []interface{}{"betree_locator_inline_data", _t1583}) } } - _t1487 := p._make_value_int64(msg.GetRelationLocator().GetElementCount()) - result = append(result, []interface{}{"betree_locator_element_count", _t1487}) - _t1488 := p._make_value_int64(msg.GetRelationLocator().GetTreeHeight()) - result = append(result, []interface{}{"betree_locator_tree_height", _t1488}) + _t1584 := p._make_value_int64(msg.GetRelationLocator().GetElementCount()) + result = append(result, []interface{}{"betree_locator_element_count", _t1584}) + _t1585 := p._make_value_int64(msg.GetRelationLocator().GetTreeHeight()) + result = append(result, []interface{}{"betree_locator_tree_height", _t1585}) return listSort(result) } func (p *PrettyPrinter) deconstruct_export_csv_config(msg *pb.ExportCSVConfig) [][]interface{} { result := [][]interface{}{} if msg.PartitionSize != nil { - _t1489 := p._make_value_int64(*msg.PartitionSize) - result = append(result, []interface{}{"partition_size", _t1489}) + _t1586 := p._make_value_int64(*msg.PartitionSize) + result = append(result, []interface{}{"partition_size", _t1586}) } if msg.Compression != nil { - _t1490 := p._make_value_string(*msg.Compression) - result = append(result, []interface{}{"compression", _t1490}) + _t1587 := p._make_value_string(*msg.Compression) + result = append(result, []interface{}{"compression", _t1587}) } if msg.SyntaxHeaderRow != nil { - _t1491 := p._make_value_boolean(*msg.SyntaxHeaderRow) - result = append(result, []interface{}{"syntax_header_row", _t1491}) + _t1588 := p._make_value_boolean(*msg.SyntaxHeaderRow) + result = append(result, []interface{}{"syntax_header_row", _t1588}) } if msg.SyntaxMissingString != nil { - _t1492 := p._make_value_string(*msg.SyntaxMissingString) - result = append(result, []interface{}{"syntax_missing_string", _t1492}) + _t1589 := p._make_value_string(*msg.SyntaxMissingString) + result = append(result, []interface{}{"syntax_missing_string", _t1589}) } if msg.SyntaxDelim != nil { - _t1493 := p._make_value_string(*msg.SyntaxDelim) - result = append(result, []interface{}{"syntax_delim", _t1493}) + _t1590 := p._make_value_string(*msg.SyntaxDelim) + result = append(result, []interface{}{"syntax_delim", _t1590}) } if msg.SyntaxQuotechar != nil { - _t1494 := p._make_value_string(*msg.SyntaxQuotechar) - result = append(result, []interface{}{"syntax_quotechar", _t1494}) + _t1591 := p._make_value_string(*msg.SyntaxQuotechar) + result = append(result, []interface{}{"syntax_quotechar", _t1591}) } if msg.SyntaxEscapechar != nil { - _t1495 := p._make_value_string(*msg.SyntaxEscapechar) - result = append(result, []interface{}{"syntax_escapechar", _t1495}) + _t1592 := p._make_value_string(*msg.SyntaxEscapechar) + result = append(result, []interface{}{"syntax_escapechar", _t1592}) } return listSort(result) } @@ -474,11 +474,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 _t1496 interface{} + var _t1593 interface{} if name == nil { return p.relationIdToUint128(msg) } - _ = _t1496 + _ = _t1593 return nil } @@ -496,45 +496,45 @@ func (p *PrettyPrinter) deconstruct_bindings_with_arity(abs *pb.Abstraction, val // --- Pretty-print methods --- func (p *PrettyPrinter) pretty_transaction(msg *pb.Transaction) interface{} { - flat678 := p.tryFlat(msg, func() { p.pretty_transaction(msg) }) - if flat678 != nil { - p.write(*flat678) + flat725 := p.tryFlat(msg, func() { p.pretty_transaction(msg) }) + if flat725 != nil { + p.write(*flat725) return nil } else { _dollar_dollar := msg - var _t1338 *pb.Configure + var _t1432 *pb.Configure if hasProtoField(_dollar_dollar, "configure") { - _t1338 = _dollar_dollar.GetConfigure() + _t1432 = _dollar_dollar.GetConfigure() } - var _t1339 *pb.Sync + var _t1433 *pb.Sync if hasProtoField(_dollar_dollar, "sync") { - _t1339 = _dollar_dollar.GetSync() + _t1433 = _dollar_dollar.GetSync() } - fields669 := []interface{}{_t1338, _t1339, _dollar_dollar.GetEpochs()} - unwrapped_fields670 := fields669 + fields716 := []interface{}{_t1432, _t1433, _dollar_dollar.GetEpochs()} + unwrapped_fields717 := fields716 p.write("(") p.write("transaction") p.indentSexp() - field671 := unwrapped_fields670[0].(*pb.Configure) - if field671 != nil { + field718 := unwrapped_fields717[0].(*pb.Configure) + if field718 != nil { p.newline() - opt_val672 := field671 - p.pretty_configure(opt_val672) + opt_val719 := field718 + p.pretty_configure(opt_val719) } - field673 := unwrapped_fields670[1].(*pb.Sync) - if field673 != nil { + field720 := unwrapped_fields717[1].(*pb.Sync) + if field720 != nil { p.newline() - opt_val674 := field673 - p.pretty_sync(opt_val674) + opt_val721 := field720 + p.pretty_sync(opt_val721) } - field675 := unwrapped_fields670[2].([]*pb.Epoch) - if !(len(field675) == 0) { + field722 := unwrapped_fields717[2].([]*pb.Epoch) + if !(len(field722) == 0) { p.newline() - for i677, elem676 := range field675 { - if (i677 > 0) { + for i724, elem723 := range field722 { + if (i724 > 0) { p.newline() } - p.pretty_epoch(elem676) + p.pretty_epoch(elem723) } } p.dedent() @@ -544,20 +544,20 @@ func (p *PrettyPrinter) pretty_transaction(msg *pb.Transaction) interface{} { } func (p *PrettyPrinter) pretty_configure(msg *pb.Configure) interface{} { - flat681 := p.tryFlat(msg, func() { p.pretty_configure(msg) }) - if flat681 != nil { - p.write(*flat681) + flat728 := p.tryFlat(msg, func() { p.pretty_configure(msg) }) + if flat728 != nil { + p.write(*flat728) return nil } else { _dollar_dollar := msg - _t1340 := p.deconstruct_configure(_dollar_dollar) - fields679 := _t1340 - unwrapped_fields680 := fields679 + _t1434 := p.deconstruct_configure(_dollar_dollar) + fields726 := _t1434 + unwrapped_fields727 := fields726 p.write("(") p.write("configure") p.indentSexp() p.newline() - p.pretty_config_dict(unwrapped_fields680) + p.pretty_config_dict(unwrapped_fields727) p.dedent() p.write(")") } @@ -565,21 +565,21 @@ func (p *PrettyPrinter) pretty_configure(msg *pb.Configure) interface{} { } func (p *PrettyPrinter) pretty_config_dict(msg [][]interface{}) interface{} { - flat685 := p.tryFlat(msg, func() { p.pretty_config_dict(msg) }) - if flat685 != nil { - p.write(*flat685) + flat732 := p.tryFlat(msg, func() { p.pretty_config_dict(msg) }) + if flat732 != nil { + p.write(*flat732) return nil } else { - fields682 := msg + fields729 := msg p.write("{") p.indent() - if !(len(fields682) == 0) { + if !(len(fields729) == 0) { p.newline() - for i684, elem683 := range fields682 { - if (i684 > 0) { + for i731, elem730 := range fields729 { + if (i731 > 0) { p.newline() } - p.pretty_config_key_value(elem683) + p.pretty_config_key_value(elem730) } } p.dedent() @@ -589,152 +589,152 @@ func (p *PrettyPrinter) pretty_config_dict(msg [][]interface{}) interface{} { } func (p *PrettyPrinter) pretty_config_key_value(msg []interface{}) interface{} { - flat690 := p.tryFlat(msg, func() { p.pretty_config_key_value(msg) }) - if flat690 != nil { - p.write(*flat690) + flat737 := p.tryFlat(msg, func() { p.pretty_config_key_value(msg) }) + if flat737 != nil { + p.write(*flat737) return nil } else { _dollar_dollar := msg - fields686 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(*pb.Value)} - unwrapped_fields687 := fields686 + fields733 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(*pb.Value)} + unwrapped_fields734 := fields733 p.write(":") - field688 := unwrapped_fields687[0].(string) - p.write(field688) + field735 := unwrapped_fields734[0].(string) + p.write(field735) p.write(" ") - field689 := unwrapped_fields687[1].(*pb.Value) - p.pretty_value(field689) + field736 := unwrapped_fields734[1].(*pb.Value) + p.pretty_value(field736) } return nil } func (p *PrettyPrinter) pretty_value(msg *pb.Value) interface{} { - flat716 := p.tryFlat(msg, func() { p.pretty_value(msg) }) - if flat716 != nil { - p.write(*flat716) + flat763 := p.tryFlat(msg, func() { p.pretty_value(msg) }) + if flat763 != nil { + p.write(*flat763) return nil } else { _dollar_dollar := msg - var _t1341 *pb.DateValue + var _t1435 *pb.DateValue if hasProtoField(_dollar_dollar, "date_value") { - _t1341 = _dollar_dollar.GetDateValue() + _t1435 = _dollar_dollar.GetDateValue() } - deconstruct_result714 := _t1341 - if deconstruct_result714 != nil { - unwrapped715 := deconstruct_result714 - p.pretty_date(unwrapped715) + deconstruct_result761 := _t1435 + if deconstruct_result761 != nil { + unwrapped762 := deconstruct_result761 + p.pretty_date(unwrapped762) } else { _dollar_dollar := msg - var _t1342 *pb.DateTimeValue + var _t1436 *pb.DateTimeValue if hasProtoField(_dollar_dollar, "datetime_value") { - _t1342 = _dollar_dollar.GetDatetimeValue() + _t1436 = _dollar_dollar.GetDatetimeValue() } - deconstruct_result712 := _t1342 - if deconstruct_result712 != nil { - unwrapped713 := deconstruct_result712 - p.pretty_datetime(unwrapped713) + deconstruct_result759 := _t1436 + if deconstruct_result759 != nil { + unwrapped760 := deconstruct_result759 + p.pretty_datetime(unwrapped760) } else { _dollar_dollar := msg - var _t1343 *string + var _t1437 *string if hasProtoField(_dollar_dollar, "string_value") { - _t1343 = ptr(_dollar_dollar.GetStringValue()) + _t1437 = ptr(_dollar_dollar.GetStringValue()) } - deconstruct_result710 := _t1343 - if deconstruct_result710 != nil { - unwrapped711 := *deconstruct_result710 - p.write(p.formatStringValue(unwrapped711)) + deconstruct_result757 := _t1437 + if deconstruct_result757 != nil { + unwrapped758 := *deconstruct_result757 + p.write(p.formatStringValue(unwrapped758)) } else { _dollar_dollar := msg - var _t1344 *int64 + var _t1438 *int64 if hasProtoField(_dollar_dollar, "int_value") { - _t1344 = ptr(_dollar_dollar.GetIntValue()) + _t1438 = ptr(_dollar_dollar.GetIntValue()) } - deconstruct_result708 := _t1344 - if deconstruct_result708 != nil { - unwrapped709 := *deconstruct_result708 - p.write(fmt.Sprintf("%d", unwrapped709)) + deconstruct_result755 := _t1438 + if deconstruct_result755 != nil { + unwrapped756 := *deconstruct_result755 + p.write(fmt.Sprintf("%d", unwrapped756)) } else { _dollar_dollar := msg - var _t1345 *float64 + var _t1439 *float64 if hasProtoField(_dollar_dollar, "float_value") { - _t1345 = ptr(_dollar_dollar.GetFloatValue()) + _t1439 = ptr(_dollar_dollar.GetFloatValue()) } - deconstruct_result706 := _t1345 - if deconstruct_result706 != nil { - unwrapped707 := *deconstruct_result706 - p.write(formatFloat64(unwrapped707)) + deconstruct_result753 := _t1439 + if deconstruct_result753 != nil { + unwrapped754 := *deconstruct_result753 + p.write(formatFloat64(unwrapped754)) } else { _dollar_dollar := msg - var _t1346 *pb.UInt128Value + var _t1440 *pb.UInt128Value if hasProtoField(_dollar_dollar, "uint128_value") { - _t1346 = _dollar_dollar.GetUint128Value() + _t1440 = _dollar_dollar.GetUint128Value() } - deconstruct_result704 := _t1346 - if deconstruct_result704 != nil { - unwrapped705 := deconstruct_result704 - p.write(p.formatUint128(unwrapped705)) + deconstruct_result751 := _t1440 + if deconstruct_result751 != nil { + unwrapped752 := deconstruct_result751 + p.write(p.formatUint128(unwrapped752)) } else { _dollar_dollar := msg - var _t1347 *pb.Int128Value + var _t1441 *pb.Int128Value if hasProtoField(_dollar_dollar, "int128_value") { - _t1347 = _dollar_dollar.GetInt128Value() + _t1441 = _dollar_dollar.GetInt128Value() } - deconstruct_result702 := _t1347 - if deconstruct_result702 != nil { - unwrapped703 := deconstruct_result702 - p.write(p.formatInt128(unwrapped703)) + deconstruct_result749 := _t1441 + if deconstruct_result749 != nil { + unwrapped750 := deconstruct_result749 + p.write(p.formatInt128(unwrapped750)) } else { _dollar_dollar := msg - var _t1348 *pb.DecimalValue + var _t1442 *pb.DecimalValue if hasProtoField(_dollar_dollar, "decimal_value") { - _t1348 = _dollar_dollar.GetDecimalValue() + _t1442 = _dollar_dollar.GetDecimalValue() } - deconstruct_result700 := _t1348 - if deconstruct_result700 != nil { - unwrapped701 := deconstruct_result700 - p.write(p.formatDecimal(unwrapped701)) + deconstruct_result747 := _t1442 + if deconstruct_result747 != nil { + unwrapped748 := deconstruct_result747 + p.write(p.formatDecimal(unwrapped748)) } else { _dollar_dollar := msg - var _t1349 *bool + var _t1443 *bool if hasProtoField(_dollar_dollar, "boolean_value") { - _t1349 = ptr(_dollar_dollar.GetBooleanValue()) + _t1443 = ptr(_dollar_dollar.GetBooleanValue()) } - deconstruct_result698 := _t1349 - if deconstruct_result698 != nil { - unwrapped699 := *deconstruct_result698 - p.pretty_boolean_value(unwrapped699) + deconstruct_result745 := _t1443 + if deconstruct_result745 != nil { + unwrapped746 := *deconstruct_result745 + p.pretty_boolean_value(unwrapped746) } else { _dollar_dollar := msg - var _t1350 *int32 + var _t1444 *int32 if hasProtoField(_dollar_dollar, "int32_value") { - _t1350 = ptr(_dollar_dollar.GetInt32Value()) + _t1444 = ptr(_dollar_dollar.GetInt32Value()) } - deconstruct_result696 := _t1350 - if deconstruct_result696 != nil { - unwrapped697 := *deconstruct_result696 - p.write(fmt.Sprintf("%di32", unwrapped697)) + deconstruct_result743 := _t1444 + if deconstruct_result743 != nil { + unwrapped744 := *deconstruct_result743 + p.write(fmt.Sprintf("%di32", unwrapped744)) } else { _dollar_dollar := msg - var _t1351 *float32 + var _t1445 *float32 if hasProtoField(_dollar_dollar, "float32_value") { - _t1351 = ptr(_dollar_dollar.GetFloat32Value()) + _t1445 = ptr(_dollar_dollar.GetFloat32Value()) } - deconstruct_result694 := _t1351 - if deconstruct_result694 != nil { - unwrapped695 := *deconstruct_result694 - p.write(fmt.Sprintf("%sf32", strconv.FormatFloat(float64(unwrapped695), 'g', -1, 32))) + deconstruct_result741 := _t1445 + if deconstruct_result741 != nil { + unwrapped742 := *deconstruct_result741 + p.write(fmt.Sprintf("%sf32", strconv.FormatFloat(float64(unwrapped742), 'g', -1, 32))) } else { _dollar_dollar := msg - var _t1352 *uint32 + var _t1446 *uint32 if hasProtoField(_dollar_dollar, "uint32_value") { - _t1352 = ptr(_dollar_dollar.GetUint32Value()) + _t1446 = ptr(_dollar_dollar.GetUint32Value()) } - deconstruct_result692 := _t1352 - if deconstruct_result692 != nil { - unwrapped693 := *deconstruct_result692 - p.write(fmt.Sprintf("%du32", unwrapped693)) + deconstruct_result739 := _t1446 + if deconstruct_result739 != nil { + unwrapped740 := *deconstruct_result739 + p.write(fmt.Sprintf("%du32", unwrapped740)) } else { - fields691 := msg - _ = fields691 + fields738 := msg + _ = fields738 p.write("missing") } } @@ -753,26 +753,26 @@ func (p *PrettyPrinter) pretty_value(msg *pb.Value) interface{} { } func (p *PrettyPrinter) pretty_date(msg *pb.DateValue) interface{} { - flat722 := p.tryFlat(msg, func() { p.pretty_date(msg) }) - if flat722 != nil { - p.write(*flat722) + flat769 := p.tryFlat(msg, func() { p.pretty_date(msg) }) + if flat769 != nil { + p.write(*flat769) return nil } else { _dollar_dollar := msg - fields717 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} - unwrapped_fields718 := fields717 + fields764 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay())} + unwrapped_fields765 := fields764 p.write("(") p.write("date") p.indentSexp() p.newline() - field719 := unwrapped_fields718[0].(int64) - p.write(fmt.Sprintf("%d", field719)) + field766 := unwrapped_fields765[0].(int64) + p.write(fmt.Sprintf("%d", field766)) p.newline() - field720 := unwrapped_fields718[1].(int64) - p.write(fmt.Sprintf("%d", field720)) + field767 := unwrapped_fields765[1].(int64) + p.write(fmt.Sprintf("%d", field767)) p.newline() - field721 := unwrapped_fields718[2].(int64) - p.write(fmt.Sprintf("%d", field721)) + field768 := unwrapped_fields765[2].(int64) + p.write(fmt.Sprintf("%d", field768)) p.dedent() p.write(")") } @@ -780,40 +780,40 @@ func (p *PrettyPrinter) pretty_date(msg *pb.DateValue) interface{} { } func (p *PrettyPrinter) pretty_datetime(msg *pb.DateTimeValue) interface{} { - flat733 := p.tryFlat(msg, func() { p.pretty_datetime(msg) }) - if flat733 != nil { - p.write(*flat733) + flat780 := p.tryFlat(msg, func() { p.pretty_datetime(msg) }) + if flat780 != nil { + p.write(*flat780) return nil } else { _dollar_dollar := msg - fields723 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay()), int64(_dollar_dollar.GetHour()), int64(_dollar_dollar.GetMinute()), int64(_dollar_dollar.GetSecond()), ptr(int64(_dollar_dollar.GetMicrosecond()))} - unwrapped_fields724 := fields723 + fields770 := []interface{}{int64(_dollar_dollar.GetYear()), int64(_dollar_dollar.GetMonth()), int64(_dollar_dollar.GetDay()), int64(_dollar_dollar.GetHour()), int64(_dollar_dollar.GetMinute()), int64(_dollar_dollar.GetSecond()), ptr(int64(_dollar_dollar.GetMicrosecond()))} + unwrapped_fields771 := fields770 p.write("(") p.write("datetime") p.indentSexp() p.newline() - field725 := unwrapped_fields724[0].(int64) - p.write(fmt.Sprintf("%d", field725)) + field772 := unwrapped_fields771[0].(int64) + p.write(fmt.Sprintf("%d", field772)) p.newline() - field726 := unwrapped_fields724[1].(int64) - p.write(fmt.Sprintf("%d", field726)) + field773 := unwrapped_fields771[1].(int64) + p.write(fmt.Sprintf("%d", field773)) p.newline() - field727 := unwrapped_fields724[2].(int64) - p.write(fmt.Sprintf("%d", field727)) + field774 := unwrapped_fields771[2].(int64) + p.write(fmt.Sprintf("%d", field774)) p.newline() - field728 := unwrapped_fields724[3].(int64) - p.write(fmt.Sprintf("%d", field728)) + field775 := unwrapped_fields771[3].(int64) + p.write(fmt.Sprintf("%d", field775)) p.newline() - field729 := unwrapped_fields724[4].(int64) - p.write(fmt.Sprintf("%d", field729)) + field776 := unwrapped_fields771[4].(int64) + p.write(fmt.Sprintf("%d", field776)) p.newline() - field730 := unwrapped_fields724[5].(int64) - p.write(fmt.Sprintf("%d", field730)) - field731 := unwrapped_fields724[6].(*int64) - if field731 != nil { + field777 := unwrapped_fields771[5].(int64) + p.write(fmt.Sprintf("%d", field777)) + field778 := unwrapped_fields771[6].(*int64) + if field778 != nil { p.newline() - opt_val732 := *field731 - p.write(fmt.Sprintf("%d", opt_val732)) + opt_val779 := *field778 + p.write(fmt.Sprintf("%d", opt_val779)) } p.dedent() p.write(")") @@ -823,25 +823,25 @@ func (p *PrettyPrinter) pretty_datetime(msg *pb.DateTimeValue) interface{} { func (p *PrettyPrinter) pretty_boolean_value(msg bool) interface{} { _dollar_dollar := msg - var _t1353 []interface{} + var _t1447 []interface{} if _dollar_dollar { - _t1353 = []interface{}{} + _t1447 = []interface{}{} } - deconstruct_result736 := _t1353 - if deconstruct_result736 != nil { - unwrapped737 := deconstruct_result736 - _ = unwrapped737 + deconstruct_result783 := _t1447 + if deconstruct_result783 != nil { + unwrapped784 := deconstruct_result783 + _ = unwrapped784 p.write("true") } else { _dollar_dollar := msg - var _t1354 []interface{} + var _t1448 []interface{} if !(_dollar_dollar) { - _t1354 = []interface{}{} + _t1448 = []interface{}{} } - deconstruct_result734 := _t1354 - if deconstruct_result734 != nil { - unwrapped735 := deconstruct_result734 - _ = unwrapped735 + deconstruct_result781 := _t1448 + if deconstruct_result781 != nil { + unwrapped782 := deconstruct_result781 + _ = unwrapped782 p.write("false") } else { panic(ParseError{msg: "No matching rule for boolean_value"}) @@ -851,24 +851,24 @@ func (p *PrettyPrinter) pretty_boolean_value(msg bool) interface{} { } func (p *PrettyPrinter) pretty_sync(msg *pb.Sync) interface{} { - flat742 := p.tryFlat(msg, func() { p.pretty_sync(msg) }) - if flat742 != nil { - p.write(*flat742) + flat789 := p.tryFlat(msg, func() { p.pretty_sync(msg) }) + if flat789 != nil { + p.write(*flat789) return nil } else { _dollar_dollar := msg - fields738 := _dollar_dollar.GetFragments() - unwrapped_fields739 := fields738 + fields785 := _dollar_dollar.GetFragments() + unwrapped_fields786 := fields785 p.write("(") p.write("sync") p.indentSexp() - if !(len(unwrapped_fields739) == 0) { + if !(len(unwrapped_fields786) == 0) { p.newline() - for i741, elem740 := range unwrapped_fields739 { - if (i741 > 0) { + for i788, elem787 := range unwrapped_fields786 { + if (i788 > 0) { p.newline() } - p.pretty_fragment_id(elem740) + p.pretty_fragment_id(elem787) } } p.dedent() @@ -878,51 +878,51 @@ func (p *PrettyPrinter) pretty_sync(msg *pb.Sync) interface{} { } func (p *PrettyPrinter) pretty_fragment_id(msg *pb.FragmentId) interface{} { - flat745 := p.tryFlat(msg, func() { p.pretty_fragment_id(msg) }) - if flat745 != nil { - p.write(*flat745) + flat792 := p.tryFlat(msg, func() { p.pretty_fragment_id(msg) }) + if flat792 != nil { + p.write(*flat792) return nil } else { _dollar_dollar := msg - fields743 := p.fragmentIdToString(_dollar_dollar) - unwrapped_fields744 := fields743 + fields790 := p.fragmentIdToString(_dollar_dollar) + unwrapped_fields791 := fields790 p.write(":") - p.write(unwrapped_fields744) + p.write(unwrapped_fields791) } return nil } func (p *PrettyPrinter) pretty_epoch(msg *pb.Epoch) interface{} { - flat752 := p.tryFlat(msg, func() { p.pretty_epoch(msg) }) - if flat752 != nil { - p.write(*flat752) + flat799 := p.tryFlat(msg, func() { p.pretty_epoch(msg) }) + if flat799 != nil { + p.write(*flat799) return nil } else { _dollar_dollar := msg - var _t1355 []*pb.Write + var _t1449 []*pb.Write if !(len(_dollar_dollar.GetWrites()) == 0) { - _t1355 = _dollar_dollar.GetWrites() + _t1449 = _dollar_dollar.GetWrites() } - var _t1356 []*pb.Read + var _t1450 []*pb.Read if !(len(_dollar_dollar.GetReads()) == 0) { - _t1356 = _dollar_dollar.GetReads() + _t1450 = _dollar_dollar.GetReads() } - fields746 := []interface{}{_t1355, _t1356} - unwrapped_fields747 := fields746 + fields793 := []interface{}{_t1449, _t1450} + unwrapped_fields794 := fields793 p.write("(") p.write("epoch") p.indentSexp() - field748 := unwrapped_fields747[0].([]*pb.Write) - if field748 != nil { + field795 := unwrapped_fields794[0].([]*pb.Write) + if field795 != nil { p.newline() - opt_val749 := field748 - p.pretty_epoch_writes(opt_val749) + opt_val796 := field795 + p.pretty_epoch_writes(opt_val796) } - field750 := unwrapped_fields747[1].([]*pb.Read) - if field750 != nil { + field797 := unwrapped_fields794[1].([]*pb.Read) + if field797 != nil { p.newline() - opt_val751 := field750 - p.pretty_epoch_reads(opt_val751) + opt_val798 := field797 + p.pretty_epoch_reads(opt_val798) } p.dedent() p.write(")") @@ -931,22 +931,22 @@ func (p *PrettyPrinter) pretty_epoch(msg *pb.Epoch) interface{} { } func (p *PrettyPrinter) pretty_epoch_writes(msg []*pb.Write) interface{} { - flat756 := p.tryFlat(msg, func() { p.pretty_epoch_writes(msg) }) - if flat756 != nil { - p.write(*flat756) + flat803 := p.tryFlat(msg, func() { p.pretty_epoch_writes(msg) }) + if flat803 != nil { + p.write(*flat803) return nil } else { - fields753 := msg + fields800 := msg p.write("(") p.write("writes") p.indentSexp() - if !(len(fields753) == 0) { + if !(len(fields800) == 0) { p.newline() - for i755, elem754 := range fields753 { - if (i755 > 0) { + for i802, elem801 := range fields800 { + if (i802 > 0) { p.newline() } - p.pretty_write(elem754) + p.pretty_write(elem801) } } p.dedent() @@ -956,50 +956,50 @@ func (p *PrettyPrinter) pretty_epoch_writes(msg []*pb.Write) interface{} { } func (p *PrettyPrinter) pretty_write(msg *pb.Write) interface{} { - flat765 := p.tryFlat(msg, func() { p.pretty_write(msg) }) - if flat765 != nil { - p.write(*flat765) + flat812 := p.tryFlat(msg, func() { p.pretty_write(msg) }) + if flat812 != nil { + p.write(*flat812) return nil } else { _dollar_dollar := msg - var _t1357 *pb.Define + var _t1451 *pb.Define if hasProtoField(_dollar_dollar, "define") { - _t1357 = _dollar_dollar.GetDefine() + _t1451 = _dollar_dollar.GetDefine() } - deconstruct_result763 := _t1357 - if deconstruct_result763 != nil { - unwrapped764 := deconstruct_result763 - p.pretty_define(unwrapped764) + deconstruct_result810 := _t1451 + if deconstruct_result810 != nil { + unwrapped811 := deconstruct_result810 + p.pretty_define(unwrapped811) } else { _dollar_dollar := msg - var _t1358 *pb.Undefine + var _t1452 *pb.Undefine if hasProtoField(_dollar_dollar, "undefine") { - _t1358 = _dollar_dollar.GetUndefine() + _t1452 = _dollar_dollar.GetUndefine() } - deconstruct_result761 := _t1358 - if deconstruct_result761 != nil { - unwrapped762 := deconstruct_result761 - p.pretty_undefine(unwrapped762) + deconstruct_result808 := _t1452 + if deconstruct_result808 != nil { + unwrapped809 := deconstruct_result808 + p.pretty_undefine(unwrapped809) } else { _dollar_dollar := msg - var _t1359 *pb.Context + var _t1453 *pb.Context if hasProtoField(_dollar_dollar, "context") { - _t1359 = _dollar_dollar.GetContext() + _t1453 = _dollar_dollar.GetContext() } - deconstruct_result759 := _t1359 - if deconstruct_result759 != nil { - unwrapped760 := deconstruct_result759 - p.pretty_context(unwrapped760) + deconstruct_result806 := _t1453 + if deconstruct_result806 != nil { + unwrapped807 := deconstruct_result806 + p.pretty_context(unwrapped807) } else { _dollar_dollar := msg - var _t1360 *pb.Snapshot + var _t1454 *pb.Snapshot if hasProtoField(_dollar_dollar, "snapshot") { - _t1360 = _dollar_dollar.GetSnapshot() + _t1454 = _dollar_dollar.GetSnapshot() } - deconstruct_result757 := _t1360 - if deconstruct_result757 != nil { - unwrapped758 := deconstruct_result757 - p.pretty_snapshot(unwrapped758) + deconstruct_result804 := _t1454 + if deconstruct_result804 != nil { + unwrapped805 := deconstruct_result804 + p.pretty_snapshot(unwrapped805) } else { panic(ParseError{msg: "No matching rule for write"}) } @@ -1011,19 +1011,19 @@ func (p *PrettyPrinter) pretty_write(msg *pb.Write) interface{} { } func (p *PrettyPrinter) pretty_define(msg *pb.Define) interface{} { - flat768 := p.tryFlat(msg, func() { p.pretty_define(msg) }) - if flat768 != nil { - p.write(*flat768) + flat815 := p.tryFlat(msg, func() { p.pretty_define(msg) }) + if flat815 != nil { + p.write(*flat815) return nil } else { _dollar_dollar := msg - fields766 := _dollar_dollar.GetFragment() - unwrapped_fields767 := fields766 + fields813 := _dollar_dollar.GetFragment() + unwrapped_fields814 := fields813 p.write("(") p.write("define") p.indentSexp() p.newline() - p.pretty_fragment(unwrapped_fields767) + p.pretty_fragment(unwrapped_fields814) p.dedent() p.write(")") } @@ -1031,29 +1031,29 @@ func (p *PrettyPrinter) pretty_define(msg *pb.Define) interface{} { } func (p *PrettyPrinter) pretty_fragment(msg *pb.Fragment) interface{} { - flat775 := p.tryFlat(msg, func() { p.pretty_fragment(msg) }) - if flat775 != nil { - p.write(*flat775) + flat822 := p.tryFlat(msg, func() { p.pretty_fragment(msg) }) + if flat822 != nil { + p.write(*flat822) return nil } else { _dollar_dollar := msg p.startPrettyFragment(_dollar_dollar) - fields769 := []interface{}{_dollar_dollar.GetId(), _dollar_dollar.GetDeclarations()} - unwrapped_fields770 := fields769 + fields816 := []interface{}{_dollar_dollar.GetId(), _dollar_dollar.GetDeclarations()} + unwrapped_fields817 := fields816 p.write("(") p.write("fragment") p.indentSexp() p.newline() - field771 := unwrapped_fields770[0].(*pb.FragmentId) - p.pretty_new_fragment_id(field771) - field772 := unwrapped_fields770[1].([]*pb.Declaration) - if !(len(field772) == 0) { + field818 := unwrapped_fields817[0].(*pb.FragmentId) + p.pretty_new_fragment_id(field818) + field819 := unwrapped_fields817[1].([]*pb.Declaration) + if !(len(field819) == 0) { p.newline() - for i774, elem773 := range field772 { - if (i774 > 0) { + for i821, elem820 := range field819 { + if (i821 > 0) { p.newline() } - p.pretty_declaration(elem773) + p.pretty_declaration(elem820) } } p.dedent() @@ -1063,62 +1063,62 @@ func (p *PrettyPrinter) pretty_fragment(msg *pb.Fragment) interface{} { } func (p *PrettyPrinter) pretty_new_fragment_id(msg *pb.FragmentId) interface{} { - flat777 := p.tryFlat(msg, func() { p.pretty_new_fragment_id(msg) }) - if flat777 != nil { - p.write(*flat777) + flat824 := p.tryFlat(msg, func() { p.pretty_new_fragment_id(msg) }) + if flat824 != nil { + p.write(*flat824) return nil } else { - fields776 := msg - p.pretty_fragment_id(fields776) + fields823 := msg + p.pretty_fragment_id(fields823) } return nil } func (p *PrettyPrinter) pretty_declaration(msg *pb.Declaration) interface{} { - flat786 := p.tryFlat(msg, func() { p.pretty_declaration(msg) }) - if flat786 != nil { - p.write(*flat786) + flat833 := p.tryFlat(msg, func() { p.pretty_declaration(msg) }) + if flat833 != nil { + p.write(*flat833) return nil } else { _dollar_dollar := msg - var _t1361 *pb.Def + var _t1455 *pb.Def if hasProtoField(_dollar_dollar, "def") { - _t1361 = _dollar_dollar.GetDef() + _t1455 = _dollar_dollar.GetDef() } - deconstruct_result784 := _t1361 - if deconstruct_result784 != nil { - unwrapped785 := deconstruct_result784 - p.pretty_def(unwrapped785) + deconstruct_result831 := _t1455 + if deconstruct_result831 != nil { + unwrapped832 := deconstruct_result831 + p.pretty_def(unwrapped832) } else { _dollar_dollar := msg - var _t1362 *pb.Algorithm + var _t1456 *pb.Algorithm if hasProtoField(_dollar_dollar, "algorithm") { - _t1362 = _dollar_dollar.GetAlgorithm() + _t1456 = _dollar_dollar.GetAlgorithm() } - deconstruct_result782 := _t1362 - if deconstruct_result782 != nil { - unwrapped783 := deconstruct_result782 - p.pretty_algorithm(unwrapped783) + deconstruct_result829 := _t1456 + if deconstruct_result829 != nil { + unwrapped830 := deconstruct_result829 + p.pretty_algorithm(unwrapped830) } else { _dollar_dollar := msg - var _t1363 *pb.Constraint + var _t1457 *pb.Constraint if hasProtoField(_dollar_dollar, "constraint") { - _t1363 = _dollar_dollar.GetConstraint() + _t1457 = _dollar_dollar.GetConstraint() } - deconstruct_result780 := _t1363 - if deconstruct_result780 != nil { - unwrapped781 := deconstruct_result780 - p.pretty_constraint(unwrapped781) + deconstruct_result827 := _t1457 + if deconstruct_result827 != nil { + unwrapped828 := deconstruct_result827 + p.pretty_constraint(unwrapped828) } else { _dollar_dollar := msg - var _t1364 *pb.Data + var _t1458 *pb.Data if hasProtoField(_dollar_dollar, "data") { - _t1364 = _dollar_dollar.GetData() + _t1458 = _dollar_dollar.GetData() } - deconstruct_result778 := _t1364 - if deconstruct_result778 != nil { - unwrapped779 := deconstruct_result778 - p.pretty_data(unwrapped779) + deconstruct_result825 := _t1458 + if deconstruct_result825 != nil { + unwrapped826 := deconstruct_result825 + p.pretty_data(unwrapped826) } else { panic(ParseError{msg: "No matching rule for declaration"}) } @@ -1130,32 +1130,32 @@ func (p *PrettyPrinter) pretty_declaration(msg *pb.Declaration) interface{} { } func (p *PrettyPrinter) pretty_def(msg *pb.Def) interface{} { - flat793 := p.tryFlat(msg, func() { p.pretty_def(msg) }) - if flat793 != nil { - p.write(*flat793) + flat840 := p.tryFlat(msg, func() { p.pretty_def(msg) }) + if flat840 != nil { + p.write(*flat840) return nil } else { _dollar_dollar := msg - var _t1365 []*pb.Attribute + var _t1459 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1365 = _dollar_dollar.GetAttrs() + _t1459 = _dollar_dollar.GetAttrs() } - fields787 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1365} - unwrapped_fields788 := fields787 + fields834 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1459} + unwrapped_fields835 := fields834 p.write("(") p.write("def") p.indentSexp() p.newline() - field789 := unwrapped_fields788[0].(*pb.RelationId) - p.pretty_relation_id(field789) + field836 := unwrapped_fields835[0].(*pb.RelationId) + p.pretty_relation_id(field836) p.newline() - field790 := unwrapped_fields788[1].(*pb.Abstraction) - p.pretty_abstraction(field790) - field791 := unwrapped_fields788[2].([]*pb.Attribute) - if field791 != nil { + field837 := unwrapped_fields835[1].(*pb.Abstraction) + p.pretty_abstraction(field837) + field838 := unwrapped_fields835[2].([]*pb.Attribute) + if field838 != nil { p.newline() - opt_val792 := field791 - p.pretty_attrs(opt_val792) + opt_val839 := field838 + p.pretty_attrs(opt_val839) } p.dedent() p.write(")") @@ -1164,29 +1164,29 @@ func (p *PrettyPrinter) pretty_def(msg *pb.Def) interface{} { } func (p *PrettyPrinter) pretty_relation_id(msg *pb.RelationId) interface{} { - flat798 := p.tryFlat(msg, func() { p.pretty_relation_id(msg) }) - if flat798 != nil { - p.write(*flat798) + flat845 := p.tryFlat(msg, func() { p.pretty_relation_id(msg) }) + if flat845 != nil { + p.write(*flat845) return nil } else { _dollar_dollar := msg - var _t1366 *string + var _t1460 *string if p.relationIdToString(_dollar_dollar) != nil { - _t1367 := p.deconstruct_relation_id_string(_dollar_dollar) - _t1366 = ptr(_t1367) + _t1461 := p.deconstruct_relation_id_string(_dollar_dollar) + _t1460 = ptr(_t1461) } - deconstruct_result796 := _t1366 - if deconstruct_result796 != nil { - unwrapped797 := *deconstruct_result796 + deconstruct_result843 := _t1460 + if deconstruct_result843 != nil { + unwrapped844 := *deconstruct_result843 p.write(":") - p.write(unwrapped797) + p.write(unwrapped844) } else { _dollar_dollar := msg - _t1368 := p.deconstruct_relation_id_uint128(_dollar_dollar) - deconstruct_result794 := _t1368 - if deconstruct_result794 != nil { - unwrapped795 := deconstruct_result794 - p.write(p.formatUint128(unwrapped795)) + _t1462 := p.deconstruct_relation_id_uint128(_dollar_dollar) + deconstruct_result841 := _t1462 + if deconstruct_result841 != nil { + unwrapped842 := deconstruct_result841 + p.write(p.formatUint128(unwrapped842)) } else { panic(ParseError{msg: "No matching rule for relation_id"}) } @@ -1196,22 +1196,22 @@ func (p *PrettyPrinter) pretty_relation_id(msg *pb.RelationId) interface{} { } func (p *PrettyPrinter) pretty_abstraction(msg *pb.Abstraction) interface{} { - flat803 := p.tryFlat(msg, func() { p.pretty_abstraction(msg) }) - if flat803 != nil { - p.write(*flat803) + flat850 := p.tryFlat(msg, func() { p.pretty_abstraction(msg) }) + if flat850 != nil { + p.write(*flat850) return nil } else { _dollar_dollar := msg - _t1369 := p.deconstruct_bindings(_dollar_dollar) - fields799 := []interface{}{_t1369, _dollar_dollar.GetValue()} - unwrapped_fields800 := fields799 + _t1463 := p.deconstruct_bindings(_dollar_dollar) + fields846 := []interface{}{_t1463, _dollar_dollar.GetValue()} + unwrapped_fields847 := fields846 p.write("(") p.indent() - field801 := unwrapped_fields800[0].([]interface{}) - p.pretty_bindings(field801) + field848 := unwrapped_fields847[0].([]interface{}) + p.pretty_bindings(field848) p.newline() - field802 := unwrapped_fields800[1].(*pb.Formula) - p.pretty_formula(field802) + field849 := unwrapped_fields847[1].(*pb.Formula) + p.pretty_formula(field849) p.dedent() p.write(")") } @@ -1219,32 +1219,32 @@ func (p *PrettyPrinter) pretty_abstraction(msg *pb.Abstraction) interface{} { } func (p *PrettyPrinter) pretty_bindings(msg []interface{}) interface{} { - flat811 := p.tryFlat(msg, func() { p.pretty_bindings(msg) }) - if flat811 != nil { - p.write(*flat811) + flat858 := p.tryFlat(msg, func() { p.pretty_bindings(msg) }) + if flat858 != nil { + p.write(*flat858) return nil } else { _dollar_dollar := msg - var _t1370 []*pb.Binding + var _t1464 []*pb.Binding if !(len(_dollar_dollar[1].([]*pb.Binding)) == 0) { - _t1370 = _dollar_dollar[1].([]*pb.Binding) + _t1464 = _dollar_dollar[1].([]*pb.Binding) } - fields804 := []interface{}{_dollar_dollar[0].([]*pb.Binding), _t1370} - unwrapped_fields805 := fields804 + fields851 := []interface{}{_dollar_dollar[0].([]*pb.Binding), _t1464} + unwrapped_fields852 := fields851 p.write("[") p.indent() - field806 := unwrapped_fields805[0].([]*pb.Binding) - for i808, elem807 := range field806 { - if (i808 > 0) { + field853 := unwrapped_fields852[0].([]*pb.Binding) + for i855, elem854 := range field853 { + if (i855 > 0) { p.newline() } - p.pretty_binding(elem807) + p.pretty_binding(elem854) } - field809 := unwrapped_fields805[1].([]*pb.Binding) - if field809 != nil { + field856 := unwrapped_fields852[1].([]*pb.Binding) + if field856 != nil { p.newline() - opt_val810 := field809 - p.pretty_value_bindings(opt_val810) + opt_val857 := field856 + p.pretty_value_bindings(opt_val857) } p.dedent() p.write("]") @@ -1253,168 +1253,168 @@ func (p *PrettyPrinter) pretty_bindings(msg []interface{}) interface{} { } func (p *PrettyPrinter) pretty_binding(msg *pb.Binding) interface{} { - flat816 := p.tryFlat(msg, func() { p.pretty_binding(msg) }) - if flat816 != nil { - p.write(*flat816) + flat863 := p.tryFlat(msg, func() { p.pretty_binding(msg) }) + if flat863 != nil { + p.write(*flat863) return nil } else { _dollar_dollar := msg - fields812 := []interface{}{_dollar_dollar.GetVar().GetName(), _dollar_dollar.GetType()} - unwrapped_fields813 := fields812 - field814 := unwrapped_fields813[0].(string) - p.write(field814) + fields859 := []interface{}{_dollar_dollar.GetVar().GetName(), _dollar_dollar.GetType()} + unwrapped_fields860 := fields859 + field861 := unwrapped_fields860[0].(string) + p.write(field861) p.write("::") - field815 := unwrapped_fields813[1].(*pb.Type) - p.pretty_type(field815) + field862 := unwrapped_fields860[1].(*pb.Type) + p.pretty_type(field862) } return nil } func (p *PrettyPrinter) pretty_type(msg *pb.Type) interface{} { - flat845 := p.tryFlat(msg, func() { p.pretty_type(msg) }) - if flat845 != nil { - p.write(*flat845) + flat892 := p.tryFlat(msg, func() { p.pretty_type(msg) }) + if flat892 != nil { + p.write(*flat892) return nil } else { _dollar_dollar := msg - var _t1371 *pb.UnspecifiedType + var _t1465 *pb.UnspecifiedType if hasProtoField(_dollar_dollar, "unspecified_type") { - _t1371 = _dollar_dollar.GetUnspecifiedType() + _t1465 = _dollar_dollar.GetUnspecifiedType() } - deconstruct_result843 := _t1371 - if deconstruct_result843 != nil { - unwrapped844 := deconstruct_result843 - p.pretty_unspecified_type(unwrapped844) + deconstruct_result890 := _t1465 + if deconstruct_result890 != nil { + unwrapped891 := deconstruct_result890 + p.pretty_unspecified_type(unwrapped891) } else { _dollar_dollar := msg - var _t1372 *pb.StringType + var _t1466 *pb.StringType if hasProtoField(_dollar_dollar, "string_type") { - _t1372 = _dollar_dollar.GetStringType() + _t1466 = _dollar_dollar.GetStringType() } - deconstruct_result841 := _t1372 - if deconstruct_result841 != nil { - unwrapped842 := deconstruct_result841 - p.pretty_string_type(unwrapped842) + deconstruct_result888 := _t1466 + if deconstruct_result888 != nil { + unwrapped889 := deconstruct_result888 + p.pretty_string_type(unwrapped889) } else { _dollar_dollar := msg - var _t1373 *pb.IntType + var _t1467 *pb.IntType if hasProtoField(_dollar_dollar, "int_type") { - _t1373 = _dollar_dollar.GetIntType() + _t1467 = _dollar_dollar.GetIntType() } - deconstruct_result839 := _t1373 - if deconstruct_result839 != nil { - unwrapped840 := deconstruct_result839 - p.pretty_int_type(unwrapped840) + deconstruct_result886 := _t1467 + if deconstruct_result886 != nil { + unwrapped887 := deconstruct_result886 + p.pretty_int_type(unwrapped887) } else { _dollar_dollar := msg - var _t1374 *pb.FloatType + var _t1468 *pb.FloatType if hasProtoField(_dollar_dollar, "float_type") { - _t1374 = _dollar_dollar.GetFloatType() + _t1468 = _dollar_dollar.GetFloatType() } - deconstruct_result837 := _t1374 - if deconstruct_result837 != nil { - unwrapped838 := deconstruct_result837 - p.pretty_float_type(unwrapped838) + deconstruct_result884 := _t1468 + if deconstruct_result884 != nil { + unwrapped885 := deconstruct_result884 + p.pretty_float_type(unwrapped885) } else { _dollar_dollar := msg - var _t1375 *pb.UInt128Type + var _t1469 *pb.UInt128Type if hasProtoField(_dollar_dollar, "uint128_type") { - _t1375 = _dollar_dollar.GetUint128Type() + _t1469 = _dollar_dollar.GetUint128Type() } - deconstruct_result835 := _t1375 - if deconstruct_result835 != nil { - unwrapped836 := deconstruct_result835 - p.pretty_uint128_type(unwrapped836) + deconstruct_result882 := _t1469 + if deconstruct_result882 != nil { + unwrapped883 := deconstruct_result882 + p.pretty_uint128_type(unwrapped883) } else { _dollar_dollar := msg - var _t1376 *pb.Int128Type + var _t1470 *pb.Int128Type if hasProtoField(_dollar_dollar, "int128_type") { - _t1376 = _dollar_dollar.GetInt128Type() + _t1470 = _dollar_dollar.GetInt128Type() } - deconstruct_result833 := _t1376 - if deconstruct_result833 != nil { - unwrapped834 := deconstruct_result833 - p.pretty_int128_type(unwrapped834) + deconstruct_result880 := _t1470 + if deconstruct_result880 != nil { + unwrapped881 := deconstruct_result880 + p.pretty_int128_type(unwrapped881) } else { _dollar_dollar := msg - var _t1377 *pb.DateType + var _t1471 *pb.DateType if hasProtoField(_dollar_dollar, "date_type") { - _t1377 = _dollar_dollar.GetDateType() + _t1471 = _dollar_dollar.GetDateType() } - deconstruct_result831 := _t1377 - if deconstruct_result831 != nil { - unwrapped832 := deconstruct_result831 - p.pretty_date_type(unwrapped832) + deconstruct_result878 := _t1471 + if deconstruct_result878 != nil { + unwrapped879 := deconstruct_result878 + p.pretty_date_type(unwrapped879) } else { _dollar_dollar := msg - var _t1378 *pb.DateTimeType + var _t1472 *pb.DateTimeType if hasProtoField(_dollar_dollar, "datetime_type") { - _t1378 = _dollar_dollar.GetDatetimeType() + _t1472 = _dollar_dollar.GetDatetimeType() } - deconstruct_result829 := _t1378 - if deconstruct_result829 != nil { - unwrapped830 := deconstruct_result829 - p.pretty_datetime_type(unwrapped830) + deconstruct_result876 := _t1472 + if deconstruct_result876 != nil { + unwrapped877 := deconstruct_result876 + p.pretty_datetime_type(unwrapped877) } else { _dollar_dollar := msg - var _t1379 *pb.MissingType + var _t1473 *pb.MissingType if hasProtoField(_dollar_dollar, "missing_type") { - _t1379 = _dollar_dollar.GetMissingType() + _t1473 = _dollar_dollar.GetMissingType() } - deconstruct_result827 := _t1379 - if deconstruct_result827 != nil { - unwrapped828 := deconstruct_result827 - p.pretty_missing_type(unwrapped828) + deconstruct_result874 := _t1473 + if deconstruct_result874 != nil { + unwrapped875 := deconstruct_result874 + p.pretty_missing_type(unwrapped875) } else { _dollar_dollar := msg - var _t1380 *pb.DecimalType + var _t1474 *pb.DecimalType if hasProtoField(_dollar_dollar, "decimal_type") { - _t1380 = _dollar_dollar.GetDecimalType() + _t1474 = _dollar_dollar.GetDecimalType() } - deconstruct_result825 := _t1380 - if deconstruct_result825 != nil { - unwrapped826 := deconstruct_result825 - p.pretty_decimal_type(unwrapped826) + deconstruct_result872 := _t1474 + if deconstruct_result872 != nil { + unwrapped873 := deconstruct_result872 + p.pretty_decimal_type(unwrapped873) } else { _dollar_dollar := msg - var _t1381 *pb.BooleanType + var _t1475 *pb.BooleanType if hasProtoField(_dollar_dollar, "boolean_type") { - _t1381 = _dollar_dollar.GetBooleanType() + _t1475 = _dollar_dollar.GetBooleanType() } - deconstruct_result823 := _t1381 - if deconstruct_result823 != nil { - unwrapped824 := deconstruct_result823 - p.pretty_boolean_type(unwrapped824) + deconstruct_result870 := _t1475 + if deconstruct_result870 != nil { + unwrapped871 := deconstruct_result870 + p.pretty_boolean_type(unwrapped871) } else { _dollar_dollar := msg - var _t1382 *pb.Int32Type + var _t1476 *pb.Int32Type if hasProtoField(_dollar_dollar, "int32_type") { - _t1382 = _dollar_dollar.GetInt32Type() + _t1476 = _dollar_dollar.GetInt32Type() } - deconstruct_result821 := _t1382 - if deconstruct_result821 != nil { - unwrapped822 := deconstruct_result821 - p.pretty_int32_type(unwrapped822) + deconstruct_result868 := _t1476 + if deconstruct_result868 != nil { + unwrapped869 := deconstruct_result868 + p.pretty_int32_type(unwrapped869) } else { _dollar_dollar := msg - var _t1383 *pb.Float32Type + var _t1477 *pb.Float32Type if hasProtoField(_dollar_dollar, "float32_type") { - _t1383 = _dollar_dollar.GetFloat32Type() + _t1477 = _dollar_dollar.GetFloat32Type() } - deconstruct_result819 := _t1383 - if deconstruct_result819 != nil { - unwrapped820 := deconstruct_result819 - p.pretty_float32_type(unwrapped820) + deconstruct_result866 := _t1477 + if deconstruct_result866 != nil { + unwrapped867 := deconstruct_result866 + p.pretty_float32_type(unwrapped867) } else { _dollar_dollar := msg - var _t1384 *pb.UInt32Type + var _t1478 *pb.UInt32Type if hasProtoField(_dollar_dollar, "uint32_type") { - _t1384 = _dollar_dollar.GetUint32Type() + _t1478 = _dollar_dollar.GetUint32Type() } - deconstruct_result817 := _t1384 - if deconstruct_result817 != nil { - unwrapped818 := deconstruct_result817 - p.pretty_uint32_type(unwrapped818) + deconstruct_result864 := _t1478 + if deconstruct_result864 != nil { + unwrapped865 := deconstruct_result864 + p.pretty_uint32_type(unwrapped865) } else { panic(ParseError{msg: "No matching rule for type"}) } @@ -1436,86 +1436,86 @@ func (p *PrettyPrinter) pretty_type(msg *pb.Type) interface{} { } func (p *PrettyPrinter) pretty_unspecified_type(msg *pb.UnspecifiedType) interface{} { - fields846 := msg - _ = fields846 + fields893 := msg + _ = fields893 p.write("UNKNOWN") return nil } func (p *PrettyPrinter) pretty_string_type(msg *pb.StringType) interface{} { - fields847 := msg - _ = fields847 + fields894 := msg + _ = fields894 p.write("STRING") return nil } func (p *PrettyPrinter) pretty_int_type(msg *pb.IntType) interface{} { - fields848 := msg - _ = fields848 + fields895 := msg + _ = fields895 p.write("INT") return nil } func (p *PrettyPrinter) pretty_float_type(msg *pb.FloatType) interface{} { - fields849 := msg - _ = fields849 + fields896 := msg + _ = fields896 p.write("FLOAT") return nil } func (p *PrettyPrinter) pretty_uint128_type(msg *pb.UInt128Type) interface{} { - fields850 := msg - _ = fields850 + fields897 := msg + _ = fields897 p.write("UINT128") return nil } func (p *PrettyPrinter) pretty_int128_type(msg *pb.Int128Type) interface{} { - fields851 := msg - _ = fields851 + fields898 := msg + _ = fields898 p.write("INT128") return nil } func (p *PrettyPrinter) pretty_date_type(msg *pb.DateType) interface{} { - fields852 := msg - _ = fields852 + fields899 := msg + _ = fields899 p.write("DATE") return nil } func (p *PrettyPrinter) pretty_datetime_type(msg *pb.DateTimeType) interface{} { - fields853 := msg - _ = fields853 + fields900 := msg + _ = fields900 p.write("DATETIME") return nil } func (p *PrettyPrinter) pretty_missing_type(msg *pb.MissingType) interface{} { - fields854 := msg - _ = fields854 + fields901 := msg + _ = fields901 p.write("MISSING") return nil } func (p *PrettyPrinter) pretty_decimal_type(msg *pb.DecimalType) interface{} { - flat859 := p.tryFlat(msg, func() { p.pretty_decimal_type(msg) }) - if flat859 != nil { - p.write(*flat859) + flat906 := p.tryFlat(msg, func() { p.pretty_decimal_type(msg) }) + if flat906 != nil { + p.write(*flat906) return nil } else { _dollar_dollar := msg - fields855 := []interface{}{int64(_dollar_dollar.GetPrecision()), int64(_dollar_dollar.GetScale())} - unwrapped_fields856 := fields855 + fields902 := []interface{}{int64(_dollar_dollar.GetPrecision()), int64(_dollar_dollar.GetScale())} + unwrapped_fields903 := fields902 p.write("(") p.write("DECIMAL") p.indentSexp() p.newline() - field857 := unwrapped_fields856[0].(int64) - p.write(fmt.Sprintf("%d", field857)) + field904 := unwrapped_fields903[0].(int64) + p.write(fmt.Sprintf("%d", field904)) p.newline() - field858 := unwrapped_fields856[1].(int64) - p.write(fmt.Sprintf("%d", field858)) + field905 := unwrapped_fields903[1].(int64) + p.write(fmt.Sprintf("%d", field905)) p.dedent() p.write(")") } @@ -1523,48 +1523,48 @@ func (p *PrettyPrinter) pretty_decimal_type(msg *pb.DecimalType) interface{} { } func (p *PrettyPrinter) pretty_boolean_type(msg *pb.BooleanType) interface{} { - fields860 := msg - _ = fields860 + fields907 := msg + _ = fields907 p.write("BOOLEAN") return nil } func (p *PrettyPrinter) pretty_int32_type(msg *pb.Int32Type) interface{} { - fields861 := msg - _ = fields861 + fields908 := msg + _ = fields908 p.write("INT32") return nil } func (p *PrettyPrinter) pretty_float32_type(msg *pb.Float32Type) interface{} { - fields862 := msg - _ = fields862 + fields909 := msg + _ = fields909 p.write("FLOAT32") return nil } func (p *PrettyPrinter) pretty_uint32_type(msg *pb.UInt32Type) interface{} { - fields863 := msg - _ = fields863 + fields910 := msg + _ = fields910 p.write("UINT32") return nil } func (p *PrettyPrinter) pretty_value_bindings(msg []*pb.Binding) interface{} { - flat867 := p.tryFlat(msg, func() { p.pretty_value_bindings(msg) }) - if flat867 != nil { - p.write(*flat867) + flat914 := p.tryFlat(msg, func() { p.pretty_value_bindings(msg) }) + if flat914 != nil { + p.write(*flat914) return nil } else { - fields864 := msg + fields911 := msg p.write("|") - if !(len(fields864) == 0) { + if !(len(fields911) == 0) { p.write(" ") - for i866, elem865 := range fields864 { - if (i866 > 0) { + for i913, elem912 := range fields911 { + if (i913 > 0) { p.newline() } - p.pretty_binding(elem865) + p.pretty_binding(elem912) } } } @@ -1572,140 +1572,140 @@ func (p *PrettyPrinter) pretty_value_bindings(msg []*pb.Binding) interface{} { } func (p *PrettyPrinter) pretty_formula(msg *pb.Formula) interface{} { - flat894 := p.tryFlat(msg, func() { p.pretty_formula(msg) }) - if flat894 != nil { - p.write(*flat894) + flat941 := p.tryFlat(msg, func() { p.pretty_formula(msg) }) + if flat941 != nil { + p.write(*flat941) return nil } else { _dollar_dollar := msg - var _t1385 *pb.Conjunction + var _t1479 *pb.Conjunction if (hasProtoField(_dollar_dollar, "conjunction") && len(_dollar_dollar.GetConjunction().GetArgs()) == 0) { - _t1385 = _dollar_dollar.GetConjunction() + _t1479 = _dollar_dollar.GetConjunction() } - deconstruct_result892 := _t1385 - if deconstruct_result892 != nil { - unwrapped893 := deconstruct_result892 - p.pretty_true(unwrapped893) + deconstruct_result939 := _t1479 + if deconstruct_result939 != nil { + unwrapped940 := deconstruct_result939 + p.pretty_true(unwrapped940) } else { _dollar_dollar := msg - var _t1386 *pb.Disjunction + var _t1480 *pb.Disjunction if (hasProtoField(_dollar_dollar, "disjunction") && len(_dollar_dollar.GetDisjunction().GetArgs()) == 0) { - _t1386 = _dollar_dollar.GetDisjunction() + _t1480 = _dollar_dollar.GetDisjunction() } - deconstruct_result890 := _t1386 - if deconstruct_result890 != nil { - unwrapped891 := deconstruct_result890 - p.pretty_false(unwrapped891) + deconstruct_result937 := _t1480 + if deconstruct_result937 != nil { + unwrapped938 := deconstruct_result937 + p.pretty_false(unwrapped938) } else { _dollar_dollar := msg - var _t1387 *pb.Exists + var _t1481 *pb.Exists if hasProtoField(_dollar_dollar, "exists") { - _t1387 = _dollar_dollar.GetExists() + _t1481 = _dollar_dollar.GetExists() } - deconstruct_result888 := _t1387 - if deconstruct_result888 != nil { - unwrapped889 := deconstruct_result888 - p.pretty_exists(unwrapped889) + deconstruct_result935 := _t1481 + if deconstruct_result935 != nil { + unwrapped936 := deconstruct_result935 + p.pretty_exists(unwrapped936) } else { _dollar_dollar := msg - var _t1388 *pb.Reduce + var _t1482 *pb.Reduce if hasProtoField(_dollar_dollar, "reduce") { - _t1388 = _dollar_dollar.GetReduce() + _t1482 = _dollar_dollar.GetReduce() } - deconstruct_result886 := _t1388 - if deconstruct_result886 != nil { - unwrapped887 := deconstruct_result886 - p.pretty_reduce(unwrapped887) + deconstruct_result933 := _t1482 + if deconstruct_result933 != nil { + unwrapped934 := deconstruct_result933 + p.pretty_reduce(unwrapped934) } else { _dollar_dollar := msg - var _t1389 *pb.Conjunction + var _t1483 *pb.Conjunction if (hasProtoField(_dollar_dollar, "conjunction") && !(len(_dollar_dollar.GetConjunction().GetArgs()) == 0)) { - _t1389 = _dollar_dollar.GetConjunction() + _t1483 = _dollar_dollar.GetConjunction() } - deconstruct_result884 := _t1389 - if deconstruct_result884 != nil { - unwrapped885 := deconstruct_result884 - p.pretty_conjunction(unwrapped885) + deconstruct_result931 := _t1483 + if deconstruct_result931 != nil { + unwrapped932 := deconstruct_result931 + p.pretty_conjunction(unwrapped932) } else { _dollar_dollar := msg - var _t1390 *pb.Disjunction + var _t1484 *pb.Disjunction if (hasProtoField(_dollar_dollar, "disjunction") && !(len(_dollar_dollar.GetDisjunction().GetArgs()) == 0)) { - _t1390 = _dollar_dollar.GetDisjunction() + _t1484 = _dollar_dollar.GetDisjunction() } - deconstruct_result882 := _t1390 - if deconstruct_result882 != nil { - unwrapped883 := deconstruct_result882 - p.pretty_disjunction(unwrapped883) + deconstruct_result929 := _t1484 + if deconstruct_result929 != nil { + unwrapped930 := deconstruct_result929 + p.pretty_disjunction(unwrapped930) } else { _dollar_dollar := msg - var _t1391 *pb.Not + var _t1485 *pb.Not if hasProtoField(_dollar_dollar, "not") { - _t1391 = _dollar_dollar.GetNot() + _t1485 = _dollar_dollar.GetNot() } - deconstruct_result880 := _t1391 - if deconstruct_result880 != nil { - unwrapped881 := deconstruct_result880 - p.pretty_not(unwrapped881) + deconstruct_result927 := _t1485 + if deconstruct_result927 != nil { + unwrapped928 := deconstruct_result927 + p.pretty_not(unwrapped928) } else { _dollar_dollar := msg - var _t1392 *pb.FFI + var _t1486 *pb.FFI if hasProtoField(_dollar_dollar, "ffi") { - _t1392 = _dollar_dollar.GetFfi() + _t1486 = _dollar_dollar.GetFfi() } - deconstruct_result878 := _t1392 - if deconstruct_result878 != nil { - unwrapped879 := deconstruct_result878 - p.pretty_ffi(unwrapped879) + deconstruct_result925 := _t1486 + if deconstruct_result925 != nil { + unwrapped926 := deconstruct_result925 + p.pretty_ffi(unwrapped926) } else { _dollar_dollar := msg - var _t1393 *pb.Atom + var _t1487 *pb.Atom if hasProtoField(_dollar_dollar, "atom") { - _t1393 = _dollar_dollar.GetAtom() + _t1487 = _dollar_dollar.GetAtom() } - deconstruct_result876 := _t1393 - if deconstruct_result876 != nil { - unwrapped877 := deconstruct_result876 - p.pretty_atom(unwrapped877) + deconstruct_result923 := _t1487 + if deconstruct_result923 != nil { + unwrapped924 := deconstruct_result923 + p.pretty_atom(unwrapped924) } else { _dollar_dollar := msg - var _t1394 *pb.Pragma + var _t1488 *pb.Pragma if hasProtoField(_dollar_dollar, "pragma") { - _t1394 = _dollar_dollar.GetPragma() + _t1488 = _dollar_dollar.GetPragma() } - deconstruct_result874 := _t1394 - if deconstruct_result874 != nil { - unwrapped875 := deconstruct_result874 - p.pretty_pragma(unwrapped875) + deconstruct_result921 := _t1488 + if deconstruct_result921 != nil { + unwrapped922 := deconstruct_result921 + p.pretty_pragma(unwrapped922) } else { _dollar_dollar := msg - var _t1395 *pb.Primitive + var _t1489 *pb.Primitive if hasProtoField(_dollar_dollar, "primitive") { - _t1395 = _dollar_dollar.GetPrimitive() + _t1489 = _dollar_dollar.GetPrimitive() } - deconstruct_result872 := _t1395 - if deconstruct_result872 != nil { - unwrapped873 := deconstruct_result872 - p.pretty_primitive(unwrapped873) + deconstruct_result919 := _t1489 + if deconstruct_result919 != nil { + unwrapped920 := deconstruct_result919 + p.pretty_primitive(unwrapped920) } else { _dollar_dollar := msg - var _t1396 *pb.RelAtom + var _t1490 *pb.RelAtom if hasProtoField(_dollar_dollar, "rel_atom") { - _t1396 = _dollar_dollar.GetRelAtom() + _t1490 = _dollar_dollar.GetRelAtom() } - deconstruct_result870 := _t1396 - if deconstruct_result870 != nil { - unwrapped871 := deconstruct_result870 - p.pretty_rel_atom(unwrapped871) + deconstruct_result917 := _t1490 + if deconstruct_result917 != nil { + unwrapped918 := deconstruct_result917 + p.pretty_rel_atom(unwrapped918) } else { _dollar_dollar := msg - var _t1397 *pb.Cast + var _t1491 *pb.Cast if hasProtoField(_dollar_dollar, "cast") { - _t1397 = _dollar_dollar.GetCast() + _t1491 = _dollar_dollar.GetCast() } - deconstruct_result868 := _t1397 - if deconstruct_result868 != nil { - unwrapped869 := deconstruct_result868 - p.pretty_cast(unwrapped869) + deconstruct_result915 := _t1491 + if deconstruct_result915 != nil { + unwrapped916 := deconstruct_result915 + p.pretty_cast(unwrapped916) } else { panic(ParseError{msg: "No matching rule for formula"}) } @@ -1726,8 +1726,8 @@ func (p *PrettyPrinter) pretty_formula(msg *pb.Formula) interface{} { } func (p *PrettyPrinter) pretty_true(msg *pb.Conjunction) interface{} { - fields895 := msg - _ = fields895 + fields942 := msg + _ = fields942 p.write("(") p.write("true") p.write(")") @@ -1735,8 +1735,8 @@ func (p *PrettyPrinter) pretty_true(msg *pb.Conjunction) interface{} { } func (p *PrettyPrinter) pretty_false(msg *pb.Disjunction) interface{} { - fields896 := msg - _ = fields896 + fields943 := msg + _ = fields943 p.write("(") p.write("false") p.write(")") @@ -1744,24 +1744,24 @@ func (p *PrettyPrinter) pretty_false(msg *pb.Disjunction) interface{} { } func (p *PrettyPrinter) pretty_exists(msg *pb.Exists) interface{} { - flat901 := p.tryFlat(msg, func() { p.pretty_exists(msg) }) - if flat901 != nil { - p.write(*flat901) + flat948 := p.tryFlat(msg, func() { p.pretty_exists(msg) }) + if flat948 != nil { + p.write(*flat948) return nil } else { _dollar_dollar := msg - _t1398 := p.deconstruct_bindings(_dollar_dollar.GetBody()) - fields897 := []interface{}{_t1398, _dollar_dollar.GetBody().GetValue()} - unwrapped_fields898 := fields897 + _t1492 := p.deconstruct_bindings(_dollar_dollar.GetBody()) + fields944 := []interface{}{_t1492, _dollar_dollar.GetBody().GetValue()} + unwrapped_fields945 := fields944 p.write("(") p.write("exists") p.indentSexp() p.newline() - field899 := unwrapped_fields898[0].([]interface{}) - p.pretty_bindings(field899) + field946 := unwrapped_fields945[0].([]interface{}) + p.pretty_bindings(field946) p.newline() - field900 := unwrapped_fields898[1].(*pb.Formula) - p.pretty_formula(field900) + field947 := unwrapped_fields945[1].(*pb.Formula) + p.pretty_formula(field947) p.dedent() p.write(")") } @@ -1769,26 +1769,26 @@ func (p *PrettyPrinter) pretty_exists(msg *pb.Exists) interface{} { } func (p *PrettyPrinter) pretty_reduce(msg *pb.Reduce) interface{} { - flat907 := p.tryFlat(msg, func() { p.pretty_reduce(msg) }) - if flat907 != nil { - p.write(*flat907) + flat954 := p.tryFlat(msg, func() { p.pretty_reduce(msg) }) + if flat954 != nil { + p.write(*flat954) return nil } else { _dollar_dollar := msg - fields902 := []interface{}{_dollar_dollar.GetOp(), _dollar_dollar.GetBody(), _dollar_dollar.GetTerms()} - unwrapped_fields903 := fields902 + fields949 := []interface{}{_dollar_dollar.GetOp(), _dollar_dollar.GetBody(), _dollar_dollar.GetTerms()} + unwrapped_fields950 := fields949 p.write("(") p.write("reduce") p.indentSexp() p.newline() - field904 := unwrapped_fields903[0].(*pb.Abstraction) - p.pretty_abstraction(field904) + field951 := unwrapped_fields950[0].(*pb.Abstraction) + p.pretty_abstraction(field951) p.newline() - field905 := unwrapped_fields903[1].(*pb.Abstraction) - p.pretty_abstraction(field905) + field952 := unwrapped_fields950[1].(*pb.Abstraction) + p.pretty_abstraction(field952) p.newline() - field906 := unwrapped_fields903[2].([]*pb.Term) - p.pretty_terms(field906) + field953 := unwrapped_fields950[2].([]*pb.Term) + p.pretty_terms(field953) p.dedent() p.write(")") } @@ -1796,22 +1796,22 @@ func (p *PrettyPrinter) pretty_reduce(msg *pb.Reduce) interface{} { } func (p *PrettyPrinter) pretty_terms(msg []*pb.Term) interface{} { - flat911 := p.tryFlat(msg, func() { p.pretty_terms(msg) }) - if flat911 != nil { - p.write(*flat911) + flat958 := p.tryFlat(msg, func() { p.pretty_terms(msg) }) + if flat958 != nil { + p.write(*flat958) return nil } else { - fields908 := msg + fields955 := msg p.write("(") p.write("terms") p.indentSexp() - if !(len(fields908) == 0) { + if !(len(fields955) == 0) { p.newline() - for i910, elem909 := range fields908 { - if (i910 > 0) { + for i957, elem956 := range fields955 { + if (i957 > 0) { p.newline() } - p.pretty_term(elem909) + p.pretty_term(elem956) } } p.dedent() @@ -1821,30 +1821,30 @@ func (p *PrettyPrinter) pretty_terms(msg []*pb.Term) interface{} { } func (p *PrettyPrinter) pretty_term(msg *pb.Term) interface{} { - flat916 := p.tryFlat(msg, func() { p.pretty_term(msg) }) - if flat916 != nil { - p.write(*flat916) + flat963 := p.tryFlat(msg, func() { p.pretty_term(msg) }) + if flat963 != nil { + p.write(*flat963) return nil } else { _dollar_dollar := msg - var _t1399 *pb.Var + var _t1493 *pb.Var if hasProtoField(_dollar_dollar, "var") { - _t1399 = _dollar_dollar.GetVar() + _t1493 = _dollar_dollar.GetVar() } - deconstruct_result914 := _t1399 - if deconstruct_result914 != nil { - unwrapped915 := deconstruct_result914 - p.pretty_var(unwrapped915) + deconstruct_result961 := _t1493 + if deconstruct_result961 != nil { + unwrapped962 := deconstruct_result961 + p.pretty_var(unwrapped962) } else { _dollar_dollar := msg - var _t1400 *pb.Value + var _t1494 *pb.Value if hasProtoField(_dollar_dollar, "constant") { - _t1400 = _dollar_dollar.GetConstant() + _t1494 = _dollar_dollar.GetConstant() } - deconstruct_result912 := _t1400 - if deconstruct_result912 != nil { - unwrapped913 := deconstruct_result912 - p.pretty_constant(unwrapped913) + deconstruct_result959 := _t1494 + if deconstruct_result959 != nil { + unwrapped960 := deconstruct_result959 + p.pretty_constant(unwrapped960) } else { panic(ParseError{msg: "No matching rule for term"}) } @@ -1854,50 +1854,50 @@ func (p *PrettyPrinter) pretty_term(msg *pb.Term) interface{} { } func (p *PrettyPrinter) pretty_var(msg *pb.Var) interface{} { - flat919 := p.tryFlat(msg, func() { p.pretty_var(msg) }) - if flat919 != nil { - p.write(*flat919) + flat966 := p.tryFlat(msg, func() { p.pretty_var(msg) }) + if flat966 != nil { + p.write(*flat966) return nil } else { _dollar_dollar := msg - fields917 := _dollar_dollar.GetName() - unwrapped_fields918 := fields917 - p.write(unwrapped_fields918) + fields964 := _dollar_dollar.GetName() + unwrapped_fields965 := fields964 + p.write(unwrapped_fields965) } return nil } func (p *PrettyPrinter) pretty_constant(msg *pb.Value) interface{} { - flat921 := p.tryFlat(msg, func() { p.pretty_constant(msg) }) - if flat921 != nil { - p.write(*flat921) + flat968 := p.tryFlat(msg, func() { p.pretty_constant(msg) }) + if flat968 != nil { + p.write(*flat968) return nil } else { - fields920 := msg - p.pretty_value(fields920) + fields967 := msg + p.pretty_value(fields967) } return nil } func (p *PrettyPrinter) pretty_conjunction(msg *pb.Conjunction) interface{} { - flat926 := p.tryFlat(msg, func() { p.pretty_conjunction(msg) }) - if flat926 != nil { - p.write(*flat926) + flat973 := p.tryFlat(msg, func() { p.pretty_conjunction(msg) }) + if flat973 != nil { + p.write(*flat973) return nil } else { _dollar_dollar := msg - fields922 := _dollar_dollar.GetArgs() - unwrapped_fields923 := fields922 + fields969 := _dollar_dollar.GetArgs() + unwrapped_fields970 := fields969 p.write("(") p.write("and") p.indentSexp() - if !(len(unwrapped_fields923) == 0) { + if !(len(unwrapped_fields970) == 0) { p.newline() - for i925, elem924 := range unwrapped_fields923 { - if (i925 > 0) { + for i972, elem971 := range unwrapped_fields970 { + if (i972 > 0) { p.newline() } - p.pretty_formula(elem924) + p.pretty_formula(elem971) } } p.dedent() @@ -1907,24 +1907,24 @@ func (p *PrettyPrinter) pretty_conjunction(msg *pb.Conjunction) interface{} { } func (p *PrettyPrinter) pretty_disjunction(msg *pb.Disjunction) interface{} { - flat931 := p.tryFlat(msg, func() { p.pretty_disjunction(msg) }) - if flat931 != nil { - p.write(*flat931) + flat978 := p.tryFlat(msg, func() { p.pretty_disjunction(msg) }) + if flat978 != nil { + p.write(*flat978) return nil } else { _dollar_dollar := msg - fields927 := _dollar_dollar.GetArgs() - unwrapped_fields928 := fields927 + fields974 := _dollar_dollar.GetArgs() + unwrapped_fields975 := fields974 p.write("(") p.write("or") p.indentSexp() - if !(len(unwrapped_fields928) == 0) { + if !(len(unwrapped_fields975) == 0) { p.newline() - for i930, elem929 := range unwrapped_fields928 { - if (i930 > 0) { + for i977, elem976 := range unwrapped_fields975 { + if (i977 > 0) { p.newline() } - p.pretty_formula(elem929) + p.pretty_formula(elem976) } } p.dedent() @@ -1934,19 +1934,19 @@ func (p *PrettyPrinter) pretty_disjunction(msg *pb.Disjunction) interface{} { } func (p *PrettyPrinter) pretty_not(msg *pb.Not) interface{} { - flat934 := p.tryFlat(msg, func() { p.pretty_not(msg) }) - if flat934 != nil { - p.write(*flat934) + flat981 := p.tryFlat(msg, func() { p.pretty_not(msg) }) + if flat981 != nil { + p.write(*flat981) return nil } else { _dollar_dollar := msg - fields932 := _dollar_dollar.GetArg() - unwrapped_fields933 := fields932 + fields979 := _dollar_dollar.GetArg() + unwrapped_fields980 := fields979 p.write("(") p.write("not") p.indentSexp() p.newline() - p.pretty_formula(unwrapped_fields933) + p.pretty_formula(unwrapped_fields980) p.dedent() p.write(")") } @@ -1954,26 +1954,26 @@ func (p *PrettyPrinter) pretty_not(msg *pb.Not) interface{} { } func (p *PrettyPrinter) pretty_ffi(msg *pb.FFI) interface{} { - flat940 := p.tryFlat(msg, func() { p.pretty_ffi(msg) }) - if flat940 != nil { - p.write(*flat940) + flat987 := p.tryFlat(msg, func() { p.pretty_ffi(msg) }) + if flat987 != nil { + p.write(*flat987) return nil } else { _dollar_dollar := msg - fields935 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs(), _dollar_dollar.GetTerms()} - unwrapped_fields936 := fields935 + fields982 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs(), _dollar_dollar.GetTerms()} + unwrapped_fields983 := fields982 p.write("(") p.write("ffi") p.indentSexp() p.newline() - field937 := unwrapped_fields936[0].(string) - p.pretty_name(field937) + field984 := unwrapped_fields983[0].(string) + p.pretty_name(field984) p.newline() - field938 := unwrapped_fields936[1].([]*pb.Abstraction) - p.pretty_ffi_args(field938) + field985 := unwrapped_fields983[1].([]*pb.Abstraction) + p.pretty_ffi_args(field985) p.newline() - field939 := unwrapped_fields936[2].([]*pb.Term) - p.pretty_terms(field939) + field986 := unwrapped_fields983[2].([]*pb.Term) + p.pretty_terms(field986) p.dedent() p.write(")") } @@ -1981,35 +1981,35 @@ func (p *PrettyPrinter) pretty_ffi(msg *pb.FFI) interface{} { } func (p *PrettyPrinter) pretty_name(msg string) interface{} { - flat942 := p.tryFlat(msg, func() { p.pretty_name(msg) }) - if flat942 != nil { - p.write(*flat942) + flat989 := p.tryFlat(msg, func() { p.pretty_name(msg) }) + if flat989 != nil { + p.write(*flat989) return nil } else { - fields941 := msg + fields988 := msg p.write(":") - p.write(fields941) + p.write(fields988) } return nil } func (p *PrettyPrinter) pretty_ffi_args(msg []*pb.Abstraction) interface{} { - flat946 := p.tryFlat(msg, func() { p.pretty_ffi_args(msg) }) - if flat946 != nil { - p.write(*flat946) + flat993 := p.tryFlat(msg, func() { p.pretty_ffi_args(msg) }) + if flat993 != nil { + p.write(*flat993) return nil } else { - fields943 := msg + fields990 := msg p.write("(") p.write("args") p.indentSexp() - if !(len(fields943) == 0) { + if !(len(fields990) == 0) { p.newline() - for i945, elem944 := range fields943 { - if (i945 > 0) { + for i992, elem991 := range fields990 { + if (i992 > 0) { p.newline() } - p.pretty_abstraction(elem944) + p.pretty_abstraction(elem991) } } p.dedent() @@ -2019,28 +2019,28 @@ func (p *PrettyPrinter) pretty_ffi_args(msg []*pb.Abstraction) interface{} { } func (p *PrettyPrinter) pretty_atom(msg *pb.Atom) interface{} { - flat953 := p.tryFlat(msg, func() { p.pretty_atom(msg) }) - if flat953 != nil { - p.write(*flat953) + flat1000 := p.tryFlat(msg, func() { p.pretty_atom(msg) }) + if flat1000 != nil { + p.write(*flat1000) return nil } else { _dollar_dollar := msg - fields947 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields948 := fields947 + fields994 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields995 := fields994 p.write("(") p.write("atom") p.indentSexp() p.newline() - field949 := unwrapped_fields948[0].(*pb.RelationId) - p.pretty_relation_id(field949) - field950 := unwrapped_fields948[1].([]*pb.Term) - if !(len(field950) == 0) { + field996 := unwrapped_fields995[0].(*pb.RelationId) + p.pretty_relation_id(field996) + field997 := unwrapped_fields995[1].([]*pb.Term) + if !(len(field997) == 0) { p.newline() - for i952, elem951 := range field950 { - if (i952 > 0) { + for i999, elem998 := range field997 { + if (i999 > 0) { p.newline() } - p.pretty_term(elem951) + p.pretty_term(elem998) } } p.dedent() @@ -2050,28 +2050,28 @@ func (p *PrettyPrinter) pretty_atom(msg *pb.Atom) interface{} { } func (p *PrettyPrinter) pretty_pragma(msg *pb.Pragma) interface{} { - flat960 := p.tryFlat(msg, func() { p.pretty_pragma(msg) }) - if flat960 != nil { - p.write(*flat960) + flat1007 := p.tryFlat(msg, func() { p.pretty_pragma(msg) }) + if flat1007 != nil { + p.write(*flat1007) return nil } else { _dollar_dollar := msg - fields954 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields955 := fields954 + fields1001 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1002 := fields1001 p.write("(") p.write("pragma") p.indentSexp() p.newline() - field956 := unwrapped_fields955[0].(string) - p.pretty_name(field956) - field957 := unwrapped_fields955[1].([]*pb.Term) - if !(len(field957) == 0) { + field1003 := unwrapped_fields1002[0].(string) + p.pretty_name(field1003) + field1004 := unwrapped_fields1002[1].([]*pb.Term) + if !(len(field1004) == 0) { p.newline() - for i959, elem958 := range field957 { - if (i959 > 0) { + for i1006, elem1005 := range field1004 { + if (i1006 > 0) { p.newline() } - p.pretty_term(elem958) + p.pretty_term(elem1005) } } p.dedent() @@ -2081,109 +2081,109 @@ func (p *PrettyPrinter) pretty_pragma(msg *pb.Pragma) interface{} { } func (p *PrettyPrinter) pretty_primitive(msg *pb.Primitive) interface{} { - flat976 := p.tryFlat(msg, func() { p.pretty_primitive(msg) }) - if flat976 != nil { - p.write(*flat976) + flat1023 := p.tryFlat(msg, func() { p.pretty_primitive(msg) }) + if flat1023 != nil { + p.write(*flat1023) return nil } else { _dollar_dollar := msg - var _t1401 []interface{} + var _t1495 []interface{} if _dollar_dollar.GetName() == "rel_primitive_eq" { - _t1401 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1495 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result975 := _t1401 - if guard_result975 != nil { + guard_result1022 := _t1495 + if guard_result1022 != nil { p.pretty_eq(msg) } else { _dollar_dollar := msg - var _t1402 []interface{} + var _t1496 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_monotype" { - _t1402 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1496 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result974 := _t1402 - if guard_result974 != nil { + guard_result1021 := _t1496 + if guard_result1021 != nil { p.pretty_lt(msg) } else { _dollar_dollar := msg - var _t1403 []interface{} + var _t1497 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_eq_monotype" { - _t1403 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1497 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result973 := _t1403 - if guard_result973 != nil { + guard_result1020 := _t1497 + if guard_result1020 != nil { p.pretty_lt_eq(msg) } else { _dollar_dollar := msg - var _t1404 []interface{} + var _t1498 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_monotype" { - _t1404 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1498 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result972 := _t1404 - if guard_result972 != nil { + guard_result1019 := _t1498 + if guard_result1019 != nil { p.pretty_gt(msg) } else { _dollar_dollar := msg - var _t1405 []interface{} + var _t1499 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_eq_monotype" { - _t1405 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1499 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - guard_result971 := _t1405 - if guard_result971 != nil { + guard_result1018 := _t1499 + if guard_result1018 != nil { p.pretty_gt_eq(msg) } else { _dollar_dollar := msg - var _t1406 []interface{} + var _t1500 []interface{} if _dollar_dollar.GetName() == "rel_primitive_add_monotype" { - _t1406 = []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()} } - guard_result970 := _t1406 - if guard_result970 != nil { + guard_result1017 := _t1500 + if guard_result1017 != nil { p.pretty_add(msg) } else { _dollar_dollar := msg - var _t1407 []interface{} + var _t1501 []interface{} if _dollar_dollar.GetName() == "rel_primitive_subtract_monotype" { - _t1407 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1501 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result969 := _t1407 - if guard_result969 != nil { + guard_result1016 := _t1501 + if guard_result1016 != nil { p.pretty_minus(msg) } else { _dollar_dollar := msg - var _t1408 []interface{} + var _t1502 []interface{} if _dollar_dollar.GetName() == "rel_primitive_multiply_monotype" { - _t1408 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1502 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - guard_result968 := _t1408 - if guard_result968 != nil { + guard_result1015 := _t1502 + if guard_result1015 != nil { p.pretty_multiply(msg) } else { _dollar_dollar := msg - var _t1409 []interface{} + var _t1503 []interface{} if _dollar_dollar.GetName() == "rel_primitive_divide_monotype" { - _t1409 = []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()} } - guard_result967 := _t1409 - if guard_result967 != nil { + guard_result1014 := _t1503 + if guard_result1014 != nil { p.pretty_divide(msg) } else { _dollar_dollar := msg - fields961 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields962 := fields961 + fields1008 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1009 := fields1008 p.write("(") p.write("primitive") p.indentSexp() p.newline() - field963 := unwrapped_fields962[0].(string) - p.pretty_name(field963) - field964 := unwrapped_fields962[1].([]*pb.RelTerm) - if !(len(field964) == 0) { + field1010 := unwrapped_fields1009[0].(string) + p.pretty_name(field1010) + field1011 := unwrapped_fields1009[1].([]*pb.RelTerm) + if !(len(field1011) == 0) { p.newline() - for i966, elem965 := range field964 { - if (i966 > 0) { + for i1013, elem1012 := range field1011 { + if (i1013 > 0) { p.newline() } - p.pretty_rel_term(elem965) + p.pretty_rel_term(elem1012) } } p.dedent() @@ -2202,27 +2202,27 @@ func (p *PrettyPrinter) pretty_primitive(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_eq(msg *pb.Primitive) interface{} { - flat981 := p.tryFlat(msg, func() { p.pretty_eq(msg) }) - if flat981 != nil { - p.write(*flat981) + flat1028 := p.tryFlat(msg, func() { p.pretty_eq(msg) }) + if flat1028 != nil { + p.write(*flat1028) return nil } else { _dollar_dollar := msg - var _t1410 []interface{} + var _t1504 []interface{} if _dollar_dollar.GetName() == "rel_primitive_eq" { - _t1410 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1504 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields977 := _t1410 - unwrapped_fields978 := fields977 + fields1024 := _t1504 + unwrapped_fields1025 := fields1024 p.write("(") p.write("=") p.indentSexp() p.newline() - field979 := unwrapped_fields978[0].(*pb.Term) - p.pretty_term(field979) + field1026 := unwrapped_fields1025[0].(*pb.Term) + p.pretty_term(field1026) p.newline() - field980 := unwrapped_fields978[1].(*pb.Term) - p.pretty_term(field980) + field1027 := unwrapped_fields1025[1].(*pb.Term) + p.pretty_term(field1027) p.dedent() p.write(")") } @@ -2230,27 +2230,27 @@ func (p *PrettyPrinter) pretty_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_lt(msg *pb.Primitive) interface{} { - flat986 := p.tryFlat(msg, func() { p.pretty_lt(msg) }) - if flat986 != nil { - p.write(*flat986) + flat1033 := p.tryFlat(msg, func() { p.pretty_lt(msg) }) + if flat1033 != nil { + p.write(*flat1033) return nil } else { _dollar_dollar := msg - var _t1411 []interface{} + var _t1505 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_monotype" { - _t1411 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1505 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields982 := _t1411 - unwrapped_fields983 := fields982 + fields1029 := _t1505 + unwrapped_fields1030 := fields1029 p.write("(") p.write("<") p.indentSexp() p.newline() - field984 := unwrapped_fields983[0].(*pb.Term) - p.pretty_term(field984) + field1031 := unwrapped_fields1030[0].(*pb.Term) + p.pretty_term(field1031) p.newline() - field985 := unwrapped_fields983[1].(*pb.Term) - p.pretty_term(field985) + field1032 := unwrapped_fields1030[1].(*pb.Term) + p.pretty_term(field1032) p.dedent() p.write(")") } @@ -2258,27 +2258,27 @@ func (p *PrettyPrinter) pretty_lt(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_lt_eq(msg *pb.Primitive) interface{} { - flat991 := p.tryFlat(msg, func() { p.pretty_lt_eq(msg) }) - if flat991 != nil { - p.write(*flat991) + flat1038 := p.tryFlat(msg, func() { p.pretty_lt_eq(msg) }) + if flat1038 != nil { + p.write(*flat1038) return nil } else { _dollar_dollar := msg - var _t1412 []interface{} + var _t1506 []interface{} if _dollar_dollar.GetName() == "rel_primitive_lt_eq_monotype" { - _t1412 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1506 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields987 := _t1412 - unwrapped_fields988 := fields987 + fields1034 := _t1506 + unwrapped_fields1035 := fields1034 p.write("(") p.write("<=") p.indentSexp() p.newline() - field989 := unwrapped_fields988[0].(*pb.Term) - p.pretty_term(field989) + field1036 := unwrapped_fields1035[0].(*pb.Term) + p.pretty_term(field1036) p.newline() - field990 := unwrapped_fields988[1].(*pb.Term) - p.pretty_term(field990) + field1037 := unwrapped_fields1035[1].(*pb.Term) + p.pretty_term(field1037) p.dedent() p.write(")") } @@ -2286,27 +2286,27 @@ func (p *PrettyPrinter) pretty_lt_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_gt(msg *pb.Primitive) interface{} { - flat996 := p.tryFlat(msg, func() { p.pretty_gt(msg) }) - if flat996 != nil { - p.write(*flat996) + flat1043 := p.tryFlat(msg, func() { p.pretty_gt(msg) }) + if flat1043 != nil { + p.write(*flat1043) return nil } else { _dollar_dollar := msg - var _t1413 []interface{} + var _t1507 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_monotype" { - _t1413 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1507 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields992 := _t1413 - unwrapped_fields993 := fields992 + fields1039 := _t1507 + unwrapped_fields1040 := fields1039 p.write("(") p.write(">") p.indentSexp() p.newline() - field994 := unwrapped_fields993[0].(*pb.Term) - p.pretty_term(field994) + field1041 := unwrapped_fields1040[0].(*pb.Term) + p.pretty_term(field1041) p.newline() - field995 := unwrapped_fields993[1].(*pb.Term) - p.pretty_term(field995) + field1042 := unwrapped_fields1040[1].(*pb.Term) + p.pretty_term(field1042) p.dedent() p.write(")") } @@ -2314,27 +2314,27 @@ func (p *PrettyPrinter) pretty_gt(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_gt_eq(msg *pb.Primitive) interface{} { - flat1001 := p.tryFlat(msg, func() { p.pretty_gt_eq(msg) }) - if flat1001 != nil { - p.write(*flat1001) + flat1048 := p.tryFlat(msg, func() { p.pretty_gt_eq(msg) }) + if flat1048 != nil { + p.write(*flat1048) return nil } else { _dollar_dollar := msg - var _t1414 []interface{} + var _t1508 []interface{} if _dollar_dollar.GetName() == "rel_primitive_gt_eq_monotype" { - _t1414 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} + _t1508 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm()} } - fields997 := _t1414 - unwrapped_fields998 := fields997 + fields1044 := _t1508 + unwrapped_fields1045 := fields1044 p.write("(") p.write(">=") p.indentSexp() p.newline() - field999 := unwrapped_fields998[0].(*pb.Term) - p.pretty_term(field999) + field1046 := unwrapped_fields1045[0].(*pb.Term) + p.pretty_term(field1046) p.newline() - field1000 := unwrapped_fields998[1].(*pb.Term) - p.pretty_term(field1000) + field1047 := unwrapped_fields1045[1].(*pb.Term) + p.pretty_term(field1047) p.dedent() p.write(")") } @@ -2342,30 +2342,30 @@ func (p *PrettyPrinter) pretty_gt_eq(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_add(msg *pb.Primitive) interface{} { - flat1007 := p.tryFlat(msg, func() { p.pretty_add(msg) }) - if flat1007 != nil { - p.write(*flat1007) + flat1054 := p.tryFlat(msg, func() { p.pretty_add(msg) }) + if flat1054 != nil { + p.write(*flat1054) return nil } else { _dollar_dollar := msg - var _t1415 []interface{} + var _t1509 []interface{} if _dollar_dollar.GetName() == "rel_primitive_add_monotype" { - _t1415 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1509 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1002 := _t1415 - unwrapped_fields1003 := fields1002 + fields1049 := _t1509 + unwrapped_fields1050 := fields1049 p.write("(") p.write("+") p.indentSexp() p.newline() - field1004 := unwrapped_fields1003[0].(*pb.Term) - p.pretty_term(field1004) + field1051 := unwrapped_fields1050[0].(*pb.Term) + p.pretty_term(field1051) p.newline() - field1005 := unwrapped_fields1003[1].(*pb.Term) - p.pretty_term(field1005) + field1052 := unwrapped_fields1050[1].(*pb.Term) + p.pretty_term(field1052) p.newline() - field1006 := unwrapped_fields1003[2].(*pb.Term) - p.pretty_term(field1006) + field1053 := unwrapped_fields1050[2].(*pb.Term) + p.pretty_term(field1053) p.dedent() p.write(")") } @@ -2373,30 +2373,30 @@ func (p *PrettyPrinter) pretty_add(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_minus(msg *pb.Primitive) interface{} { - flat1013 := p.tryFlat(msg, func() { p.pretty_minus(msg) }) - if flat1013 != nil { - p.write(*flat1013) + flat1060 := p.tryFlat(msg, func() { p.pretty_minus(msg) }) + if flat1060 != nil { + p.write(*flat1060) return nil } else { _dollar_dollar := msg - var _t1416 []interface{} + var _t1510 []interface{} if _dollar_dollar.GetName() == "rel_primitive_subtract_monotype" { - _t1416 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1510 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1008 := _t1416 - unwrapped_fields1009 := fields1008 + fields1055 := _t1510 + unwrapped_fields1056 := fields1055 p.write("(") p.write("-") p.indentSexp() p.newline() - field1010 := unwrapped_fields1009[0].(*pb.Term) - p.pretty_term(field1010) + field1057 := unwrapped_fields1056[0].(*pb.Term) + p.pretty_term(field1057) p.newline() - field1011 := unwrapped_fields1009[1].(*pb.Term) - p.pretty_term(field1011) + field1058 := unwrapped_fields1056[1].(*pb.Term) + p.pretty_term(field1058) p.newline() - field1012 := unwrapped_fields1009[2].(*pb.Term) - p.pretty_term(field1012) + field1059 := unwrapped_fields1056[2].(*pb.Term) + p.pretty_term(field1059) p.dedent() p.write(")") } @@ -2404,30 +2404,30 @@ func (p *PrettyPrinter) pretty_minus(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_multiply(msg *pb.Primitive) interface{} { - flat1019 := p.tryFlat(msg, func() { p.pretty_multiply(msg) }) - if flat1019 != nil { - p.write(*flat1019) + flat1066 := p.tryFlat(msg, func() { p.pretty_multiply(msg) }) + if flat1066 != nil { + p.write(*flat1066) return nil } else { _dollar_dollar := msg - var _t1417 []interface{} + var _t1511 []interface{} if _dollar_dollar.GetName() == "rel_primitive_multiply_monotype" { - _t1417 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1511 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1014 := _t1417 - unwrapped_fields1015 := fields1014 + fields1061 := _t1511 + unwrapped_fields1062 := fields1061 p.write("(") p.write("*") p.indentSexp() p.newline() - field1016 := unwrapped_fields1015[0].(*pb.Term) - p.pretty_term(field1016) + field1063 := unwrapped_fields1062[0].(*pb.Term) + p.pretty_term(field1063) p.newline() - field1017 := unwrapped_fields1015[1].(*pb.Term) - p.pretty_term(field1017) + field1064 := unwrapped_fields1062[1].(*pb.Term) + p.pretty_term(field1064) p.newline() - field1018 := unwrapped_fields1015[2].(*pb.Term) - p.pretty_term(field1018) + field1065 := unwrapped_fields1062[2].(*pb.Term) + p.pretty_term(field1065) p.dedent() p.write(")") } @@ -2435,30 +2435,30 @@ func (p *PrettyPrinter) pretty_multiply(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_divide(msg *pb.Primitive) interface{} { - flat1025 := p.tryFlat(msg, func() { p.pretty_divide(msg) }) - if flat1025 != nil { - p.write(*flat1025) + flat1072 := p.tryFlat(msg, func() { p.pretty_divide(msg) }) + if flat1072 != nil { + p.write(*flat1072) return nil } else { _dollar_dollar := msg - var _t1418 []interface{} + var _t1512 []interface{} if _dollar_dollar.GetName() == "rel_primitive_divide_monotype" { - _t1418 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} + _t1512 = []interface{}{_dollar_dollar.GetTerms()[0].GetTerm(), _dollar_dollar.GetTerms()[1].GetTerm(), _dollar_dollar.GetTerms()[2].GetTerm()} } - fields1020 := _t1418 - unwrapped_fields1021 := fields1020 + fields1067 := _t1512 + unwrapped_fields1068 := fields1067 p.write("(") p.write("/") p.indentSexp() p.newline() - field1022 := unwrapped_fields1021[0].(*pb.Term) - p.pretty_term(field1022) + field1069 := unwrapped_fields1068[0].(*pb.Term) + p.pretty_term(field1069) p.newline() - field1023 := unwrapped_fields1021[1].(*pb.Term) - p.pretty_term(field1023) + field1070 := unwrapped_fields1068[1].(*pb.Term) + p.pretty_term(field1070) p.newline() - field1024 := unwrapped_fields1021[2].(*pb.Term) - p.pretty_term(field1024) + field1071 := unwrapped_fields1068[2].(*pb.Term) + p.pretty_term(field1071) p.dedent() p.write(")") } @@ -2466,30 +2466,30 @@ func (p *PrettyPrinter) pretty_divide(msg *pb.Primitive) interface{} { } func (p *PrettyPrinter) pretty_rel_term(msg *pb.RelTerm) interface{} { - flat1030 := p.tryFlat(msg, func() { p.pretty_rel_term(msg) }) - if flat1030 != nil { - p.write(*flat1030) + flat1077 := p.tryFlat(msg, func() { p.pretty_rel_term(msg) }) + if flat1077 != nil { + p.write(*flat1077) return nil } else { _dollar_dollar := msg - var _t1419 *pb.Value + var _t1513 *pb.Value if hasProtoField(_dollar_dollar, "specialized_value") { - _t1419 = _dollar_dollar.GetSpecializedValue() + _t1513 = _dollar_dollar.GetSpecializedValue() } - deconstruct_result1028 := _t1419 - if deconstruct_result1028 != nil { - unwrapped1029 := deconstruct_result1028 - p.pretty_specialized_value(unwrapped1029) + deconstruct_result1075 := _t1513 + if deconstruct_result1075 != nil { + unwrapped1076 := deconstruct_result1075 + p.pretty_specialized_value(unwrapped1076) } else { _dollar_dollar := msg - var _t1420 *pb.Term + var _t1514 *pb.Term if hasProtoField(_dollar_dollar, "term") { - _t1420 = _dollar_dollar.GetTerm() + _t1514 = _dollar_dollar.GetTerm() } - deconstruct_result1026 := _t1420 - if deconstruct_result1026 != nil { - unwrapped1027 := deconstruct_result1026 - p.pretty_term(unwrapped1027) + deconstruct_result1073 := _t1514 + if deconstruct_result1073 != nil { + unwrapped1074 := deconstruct_result1073 + p.pretty_term(unwrapped1074) } else { panic(ParseError{msg: "No matching rule for rel_term"}) } @@ -2499,41 +2499,41 @@ func (p *PrettyPrinter) pretty_rel_term(msg *pb.RelTerm) interface{} { } func (p *PrettyPrinter) pretty_specialized_value(msg *pb.Value) interface{} { - flat1032 := p.tryFlat(msg, func() { p.pretty_specialized_value(msg) }) - if flat1032 != nil { - p.write(*flat1032) + flat1079 := p.tryFlat(msg, func() { p.pretty_specialized_value(msg) }) + if flat1079 != nil { + p.write(*flat1079) return nil } else { - fields1031 := msg + fields1078 := msg p.write("#") - p.pretty_value(fields1031) + p.pretty_value(fields1078) } return nil } func (p *PrettyPrinter) pretty_rel_atom(msg *pb.RelAtom) interface{} { - flat1039 := p.tryFlat(msg, func() { p.pretty_rel_atom(msg) }) - if flat1039 != nil { - p.write(*flat1039) + flat1086 := p.tryFlat(msg, func() { p.pretty_rel_atom(msg) }) + if flat1086 != nil { + p.write(*flat1086) return nil } else { _dollar_dollar := msg - fields1033 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} - unwrapped_fields1034 := fields1033 + fields1080 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetTerms()} + unwrapped_fields1081 := fields1080 p.write("(") p.write("relatom") p.indentSexp() p.newline() - field1035 := unwrapped_fields1034[0].(string) - p.pretty_name(field1035) - field1036 := unwrapped_fields1034[1].([]*pb.RelTerm) - if !(len(field1036) == 0) { + field1082 := unwrapped_fields1081[0].(string) + p.pretty_name(field1082) + field1083 := unwrapped_fields1081[1].([]*pb.RelTerm) + if !(len(field1083) == 0) { p.newline() - for i1038, elem1037 := range field1036 { - if (i1038 > 0) { + for i1085, elem1084 := range field1083 { + if (i1085 > 0) { p.newline() } - p.pretty_rel_term(elem1037) + p.pretty_rel_term(elem1084) } } p.dedent() @@ -2543,23 +2543,23 @@ func (p *PrettyPrinter) pretty_rel_atom(msg *pb.RelAtom) interface{} { } func (p *PrettyPrinter) pretty_cast(msg *pb.Cast) interface{} { - flat1044 := p.tryFlat(msg, func() { p.pretty_cast(msg) }) - if flat1044 != nil { - p.write(*flat1044) + flat1091 := p.tryFlat(msg, func() { p.pretty_cast(msg) }) + if flat1091 != nil { + p.write(*flat1091) return nil } else { _dollar_dollar := msg - fields1040 := []interface{}{_dollar_dollar.GetInput(), _dollar_dollar.GetResult()} - unwrapped_fields1041 := fields1040 + fields1087 := []interface{}{_dollar_dollar.GetInput(), _dollar_dollar.GetResult()} + unwrapped_fields1088 := fields1087 p.write("(") p.write("cast") p.indentSexp() p.newline() - field1042 := unwrapped_fields1041[0].(*pb.Term) - p.pretty_term(field1042) + field1089 := unwrapped_fields1088[0].(*pb.Term) + p.pretty_term(field1089) p.newline() - field1043 := unwrapped_fields1041[1].(*pb.Term) - p.pretty_term(field1043) + field1090 := unwrapped_fields1088[1].(*pb.Term) + p.pretty_term(field1090) p.dedent() p.write(")") } @@ -2567,22 +2567,22 @@ func (p *PrettyPrinter) pretty_cast(msg *pb.Cast) interface{} { } func (p *PrettyPrinter) pretty_attrs(msg []*pb.Attribute) interface{} { - flat1048 := p.tryFlat(msg, func() { p.pretty_attrs(msg) }) - if flat1048 != nil { - p.write(*flat1048) + flat1095 := p.tryFlat(msg, func() { p.pretty_attrs(msg) }) + if flat1095 != nil { + p.write(*flat1095) return nil } else { - fields1045 := msg + fields1092 := msg p.write("(") p.write("attrs") p.indentSexp() - if !(len(fields1045) == 0) { + if !(len(fields1092) == 0) { p.newline() - for i1047, elem1046 := range fields1045 { - if (i1047 > 0) { + for i1094, elem1093 := range fields1092 { + if (i1094 > 0) { p.newline() } - p.pretty_attribute(elem1046) + p.pretty_attribute(elem1093) } } p.dedent() @@ -2592,28 +2592,28 @@ func (p *PrettyPrinter) pretty_attrs(msg []*pb.Attribute) interface{} { } func (p *PrettyPrinter) pretty_attribute(msg *pb.Attribute) interface{} { - flat1055 := p.tryFlat(msg, func() { p.pretty_attribute(msg) }) - if flat1055 != nil { - p.write(*flat1055) + flat1102 := p.tryFlat(msg, func() { p.pretty_attribute(msg) }) + if flat1102 != nil { + p.write(*flat1102) return nil } else { _dollar_dollar := msg - fields1049 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs()} - unwrapped_fields1050 := fields1049 + fields1096 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetArgs()} + unwrapped_fields1097 := fields1096 p.write("(") p.write("attribute") p.indentSexp() p.newline() - field1051 := unwrapped_fields1050[0].(string) - p.pretty_name(field1051) - field1052 := unwrapped_fields1050[1].([]*pb.Value) - if !(len(field1052) == 0) { + field1098 := unwrapped_fields1097[0].(string) + p.pretty_name(field1098) + field1099 := unwrapped_fields1097[1].([]*pb.Value) + if !(len(field1099) == 0) { p.newline() - for i1054, elem1053 := range field1052 { - if (i1054 > 0) { + for i1101, elem1100 := range field1099 { + if (i1101 > 0) { p.newline() } - p.pretty_value(elem1053) + p.pretty_value(elem1100) } } p.dedent() @@ -2623,30 +2623,30 @@ func (p *PrettyPrinter) pretty_attribute(msg *pb.Attribute) interface{} { } func (p *PrettyPrinter) pretty_algorithm(msg *pb.Algorithm) interface{} { - flat1062 := p.tryFlat(msg, func() { p.pretty_algorithm(msg) }) - if flat1062 != nil { - p.write(*flat1062) + flat1109 := p.tryFlat(msg, func() { p.pretty_algorithm(msg) }) + if flat1109 != nil { + p.write(*flat1109) return nil } else { _dollar_dollar := msg - fields1056 := []interface{}{_dollar_dollar.GetGlobal(), _dollar_dollar.GetBody()} - unwrapped_fields1057 := fields1056 + fields1103 := []interface{}{_dollar_dollar.GetGlobal(), _dollar_dollar.GetBody()} + unwrapped_fields1104 := fields1103 p.write("(") p.write("algorithm") p.indentSexp() - field1058 := unwrapped_fields1057[0].([]*pb.RelationId) - if !(len(field1058) == 0) { + field1105 := unwrapped_fields1104[0].([]*pb.RelationId) + if !(len(field1105) == 0) { p.newline() - for i1060, elem1059 := range field1058 { - if (i1060 > 0) { + for i1107, elem1106 := range field1105 { + if (i1107 > 0) { p.newline() } - p.pretty_relation_id(elem1059) + p.pretty_relation_id(elem1106) } } p.newline() - field1061 := unwrapped_fields1057[1].(*pb.Script) - p.pretty_script(field1061) + field1108 := unwrapped_fields1104[1].(*pb.Script) + p.pretty_script(field1108) p.dedent() p.write(")") } @@ -2654,24 +2654,24 @@ func (p *PrettyPrinter) pretty_algorithm(msg *pb.Algorithm) interface{} { } func (p *PrettyPrinter) pretty_script(msg *pb.Script) interface{} { - flat1067 := p.tryFlat(msg, func() { p.pretty_script(msg) }) - if flat1067 != nil { - p.write(*flat1067) + flat1114 := p.tryFlat(msg, func() { p.pretty_script(msg) }) + if flat1114 != nil { + p.write(*flat1114) return nil } else { _dollar_dollar := msg - fields1063 := _dollar_dollar.GetConstructs() - unwrapped_fields1064 := fields1063 + fields1110 := _dollar_dollar.GetConstructs() + unwrapped_fields1111 := fields1110 p.write("(") p.write("script") p.indentSexp() - if !(len(unwrapped_fields1064) == 0) { + if !(len(unwrapped_fields1111) == 0) { p.newline() - for i1066, elem1065 := range unwrapped_fields1064 { - if (i1066 > 0) { + for i1113, elem1112 := range unwrapped_fields1111 { + if (i1113 > 0) { p.newline() } - p.pretty_construct(elem1065) + p.pretty_construct(elem1112) } } p.dedent() @@ -2681,30 +2681,30 @@ func (p *PrettyPrinter) pretty_script(msg *pb.Script) interface{} { } func (p *PrettyPrinter) pretty_construct(msg *pb.Construct) interface{} { - flat1072 := p.tryFlat(msg, func() { p.pretty_construct(msg) }) - if flat1072 != nil { - p.write(*flat1072) + flat1119 := p.tryFlat(msg, func() { p.pretty_construct(msg) }) + if flat1119 != nil { + p.write(*flat1119) return nil } else { _dollar_dollar := msg - var _t1421 *pb.Loop + var _t1515 *pb.Loop if hasProtoField(_dollar_dollar, "loop") { - _t1421 = _dollar_dollar.GetLoop() + _t1515 = _dollar_dollar.GetLoop() } - deconstruct_result1070 := _t1421 - if deconstruct_result1070 != nil { - unwrapped1071 := deconstruct_result1070 - p.pretty_loop(unwrapped1071) + deconstruct_result1117 := _t1515 + if deconstruct_result1117 != nil { + unwrapped1118 := deconstruct_result1117 + p.pretty_loop(unwrapped1118) } else { _dollar_dollar := msg - var _t1422 *pb.Instruction + var _t1516 *pb.Instruction if hasProtoField(_dollar_dollar, "instruction") { - _t1422 = _dollar_dollar.GetInstruction() + _t1516 = _dollar_dollar.GetInstruction() } - deconstruct_result1068 := _t1422 - if deconstruct_result1068 != nil { - unwrapped1069 := deconstruct_result1068 - p.pretty_instruction(unwrapped1069) + deconstruct_result1115 := _t1516 + if deconstruct_result1115 != nil { + unwrapped1116 := deconstruct_result1115 + p.pretty_instruction(unwrapped1116) } else { panic(ParseError{msg: "No matching rule for construct"}) } @@ -2714,23 +2714,23 @@ func (p *PrettyPrinter) pretty_construct(msg *pb.Construct) interface{} { } func (p *PrettyPrinter) pretty_loop(msg *pb.Loop) interface{} { - flat1077 := p.tryFlat(msg, func() { p.pretty_loop(msg) }) - if flat1077 != nil { - p.write(*flat1077) + flat1124 := p.tryFlat(msg, func() { p.pretty_loop(msg) }) + if flat1124 != nil { + p.write(*flat1124) return nil } else { _dollar_dollar := msg - fields1073 := []interface{}{_dollar_dollar.GetInit(), _dollar_dollar.GetBody()} - unwrapped_fields1074 := fields1073 + fields1120 := []interface{}{_dollar_dollar.GetInit(), _dollar_dollar.GetBody()} + unwrapped_fields1121 := fields1120 p.write("(") p.write("loop") p.indentSexp() p.newline() - field1075 := unwrapped_fields1074[0].([]*pb.Instruction) - p.pretty_init(field1075) + field1122 := unwrapped_fields1121[0].([]*pb.Instruction) + p.pretty_init(field1122) p.newline() - field1076 := unwrapped_fields1074[1].(*pb.Script) - p.pretty_script(field1076) + field1123 := unwrapped_fields1121[1].(*pb.Script) + p.pretty_script(field1123) p.dedent() p.write(")") } @@ -2738,22 +2738,22 @@ func (p *PrettyPrinter) pretty_loop(msg *pb.Loop) interface{} { } func (p *PrettyPrinter) pretty_init(msg []*pb.Instruction) interface{} { - flat1081 := p.tryFlat(msg, func() { p.pretty_init(msg) }) - if flat1081 != nil { - p.write(*flat1081) + flat1128 := p.tryFlat(msg, func() { p.pretty_init(msg) }) + if flat1128 != nil { + p.write(*flat1128) return nil } else { - fields1078 := msg + fields1125 := msg p.write("(") p.write("init") p.indentSexp() - if !(len(fields1078) == 0) { + if !(len(fields1125) == 0) { p.newline() - for i1080, elem1079 := range fields1078 { - if (i1080 > 0) { + for i1127, elem1126 := range fields1125 { + if (i1127 > 0) { p.newline() } - p.pretty_instruction(elem1079) + p.pretty_instruction(elem1126) } } p.dedent() @@ -2763,60 +2763,60 @@ func (p *PrettyPrinter) pretty_init(msg []*pb.Instruction) interface{} { } func (p *PrettyPrinter) pretty_instruction(msg *pb.Instruction) interface{} { - flat1092 := p.tryFlat(msg, func() { p.pretty_instruction(msg) }) - if flat1092 != nil { - p.write(*flat1092) + flat1139 := p.tryFlat(msg, func() { p.pretty_instruction(msg) }) + if flat1139 != nil { + p.write(*flat1139) return nil } else { _dollar_dollar := msg - var _t1423 *pb.Assign + var _t1517 *pb.Assign if hasProtoField(_dollar_dollar, "assign") { - _t1423 = _dollar_dollar.GetAssign() + _t1517 = _dollar_dollar.GetAssign() } - deconstruct_result1090 := _t1423 - if deconstruct_result1090 != nil { - unwrapped1091 := deconstruct_result1090 - p.pretty_assign(unwrapped1091) + deconstruct_result1137 := _t1517 + if deconstruct_result1137 != nil { + unwrapped1138 := deconstruct_result1137 + p.pretty_assign(unwrapped1138) } else { _dollar_dollar := msg - var _t1424 *pb.Upsert + var _t1518 *pb.Upsert if hasProtoField(_dollar_dollar, "upsert") { - _t1424 = _dollar_dollar.GetUpsert() + _t1518 = _dollar_dollar.GetUpsert() } - deconstruct_result1088 := _t1424 - if deconstruct_result1088 != nil { - unwrapped1089 := deconstruct_result1088 - p.pretty_upsert(unwrapped1089) + deconstruct_result1135 := _t1518 + if deconstruct_result1135 != nil { + unwrapped1136 := deconstruct_result1135 + p.pretty_upsert(unwrapped1136) } else { _dollar_dollar := msg - var _t1425 *pb.Break + var _t1519 *pb.Break if hasProtoField(_dollar_dollar, "break") { - _t1425 = _dollar_dollar.GetBreak() + _t1519 = _dollar_dollar.GetBreak() } - deconstruct_result1086 := _t1425 - if deconstruct_result1086 != nil { - unwrapped1087 := deconstruct_result1086 - p.pretty_break(unwrapped1087) + deconstruct_result1133 := _t1519 + if deconstruct_result1133 != nil { + unwrapped1134 := deconstruct_result1133 + p.pretty_break(unwrapped1134) } else { _dollar_dollar := msg - var _t1426 *pb.MonoidDef + var _t1520 *pb.MonoidDef if hasProtoField(_dollar_dollar, "monoid_def") { - _t1426 = _dollar_dollar.GetMonoidDef() + _t1520 = _dollar_dollar.GetMonoidDef() } - deconstruct_result1084 := _t1426 - if deconstruct_result1084 != nil { - unwrapped1085 := deconstruct_result1084 - p.pretty_monoid_def(unwrapped1085) + deconstruct_result1131 := _t1520 + if deconstruct_result1131 != nil { + unwrapped1132 := deconstruct_result1131 + p.pretty_monoid_def(unwrapped1132) } else { _dollar_dollar := msg - var _t1427 *pb.MonusDef + var _t1521 *pb.MonusDef if hasProtoField(_dollar_dollar, "monus_def") { - _t1427 = _dollar_dollar.GetMonusDef() + _t1521 = _dollar_dollar.GetMonusDef() } - deconstruct_result1082 := _t1427 - if deconstruct_result1082 != nil { - unwrapped1083 := deconstruct_result1082 - p.pretty_monus_def(unwrapped1083) + deconstruct_result1129 := _t1521 + if deconstruct_result1129 != nil { + unwrapped1130 := deconstruct_result1129 + p.pretty_monus_def(unwrapped1130) } else { panic(ParseError{msg: "No matching rule for instruction"}) } @@ -2829,32 +2829,32 @@ func (p *PrettyPrinter) pretty_instruction(msg *pb.Instruction) interface{} { } func (p *PrettyPrinter) pretty_assign(msg *pb.Assign) interface{} { - flat1099 := p.tryFlat(msg, func() { p.pretty_assign(msg) }) - if flat1099 != nil { - p.write(*flat1099) + flat1146 := p.tryFlat(msg, func() { p.pretty_assign(msg) }) + if flat1146 != nil { + p.write(*flat1146) return nil } else { _dollar_dollar := msg - var _t1428 []*pb.Attribute + var _t1522 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1428 = _dollar_dollar.GetAttrs() + _t1522 = _dollar_dollar.GetAttrs() } - fields1093 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1428} - unwrapped_fields1094 := fields1093 + fields1140 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1522} + unwrapped_fields1141 := fields1140 p.write("(") p.write("assign") p.indentSexp() p.newline() - field1095 := unwrapped_fields1094[0].(*pb.RelationId) - p.pretty_relation_id(field1095) + field1142 := unwrapped_fields1141[0].(*pb.RelationId) + p.pretty_relation_id(field1142) p.newline() - field1096 := unwrapped_fields1094[1].(*pb.Abstraction) - p.pretty_abstraction(field1096) - field1097 := unwrapped_fields1094[2].([]*pb.Attribute) - if field1097 != nil { + field1143 := unwrapped_fields1141[1].(*pb.Abstraction) + p.pretty_abstraction(field1143) + field1144 := unwrapped_fields1141[2].([]*pb.Attribute) + if field1144 != nil { p.newline() - opt_val1098 := field1097 - p.pretty_attrs(opt_val1098) + opt_val1145 := field1144 + p.pretty_attrs(opt_val1145) } p.dedent() p.write(")") @@ -2863,32 +2863,32 @@ func (p *PrettyPrinter) pretty_assign(msg *pb.Assign) interface{} { } func (p *PrettyPrinter) pretty_upsert(msg *pb.Upsert) interface{} { - flat1106 := p.tryFlat(msg, func() { p.pretty_upsert(msg) }) - if flat1106 != nil { - p.write(*flat1106) + flat1153 := p.tryFlat(msg, func() { p.pretty_upsert(msg) }) + if flat1153 != nil { + p.write(*flat1153) return nil } else { _dollar_dollar := msg - var _t1429 []*pb.Attribute + var _t1523 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1429 = _dollar_dollar.GetAttrs() + _t1523 = _dollar_dollar.GetAttrs() } - fields1100 := []interface{}{_dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1429} - unwrapped_fields1101 := fields1100 + fields1147 := []interface{}{_dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1523} + unwrapped_fields1148 := fields1147 p.write("(") p.write("upsert") p.indentSexp() p.newline() - field1102 := unwrapped_fields1101[0].(*pb.RelationId) - p.pretty_relation_id(field1102) + field1149 := unwrapped_fields1148[0].(*pb.RelationId) + p.pretty_relation_id(field1149) p.newline() - field1103 := unwrapped_fields1101[1].([]interface{}) - p.pretty_abstraction_with_arity(field1103) - field1104 := unwrapped_fields1101[2].([]*pb.Attribute) - if field1104 != nil { + field1150 := unwrapped_fields1148[1].([]interface{}) + p.pretty_abstraction_with_arity(field1150) + field1151 := unwrapped_fields1148[2].([]*pb.Attribute) + if field1151 != nil { p.newline() - opt_val1105 := field1104 - p.pretty_attrs(opt_val1105) + opt_val1152 := field1151 + p.pretty_attrs(opt_val1152) } p.dedent() p.write(")") @@ -2897,22 +2897,22 @@ func (p *PrettyPrinter) pretty_upsert(msg *pb.Upsert) interface{} { } func (p *PrettyPrinter) pretty_abstraction_with_arity(msg []interface{}) interface{} { - flat1111 := p.tryFlat(msg, func() { p.pretty_abstraction_with_arity(msg) }) - if flat1111 != nil { - p.write(*flat1111) + flat1158 := p.tryFlat(msg, func() { p.pretty_abstraction_with_arity(msg) }) + if flat1158 != nil { + p.write(*flat1158) return nil } else { _dollar_dollar := msg - _t1430 := p.deconstruct_bindings_with_arity(_dollar_dollar[0].(*pb.Abstraction), _dollar_dollar[1].(int64)) - fields1107 := []interface{}{_t1430, _dollar_dollar[0].(*pb.Abstraction).GetValue()} - unwrapped_fields1108 := fields1107 + _t1524 := p.deconstruct_bindings_with_arity(_dollar_dollar[0].(*pb.Abstraction), _dollar_dollar[1].(int64)) + fields1154 := []interface{}{_t1524, _dollar_dollar[0].(*pb.Abstraction).GetValue()} + unwrapped_fields1155 := fields1154 p.write("(") p.indent() - field1109 := unwrapped_fields1108[0].([]interface{}) - p.pretty_bindings(field1109) + field1156 := unwrapped_fields1155[0].([]interface{}) + p.pretty_bindings(field1156) p.newline() - field1110 := unwrapped_fields1108[1].(*pb.Formula) - p.pretty_formula(field1110) + field1157 := unwrapped_fields1155[1].(*pb.Formula) + p.pretty_formula(field1157) p.dedent() p.write(")") } @@ -2920,32 +2920,32 @@ func (p *PrettyPrinter) pretty_abstraction_with_arity(msg []interface{}) interfa } func (p *PrettyPrinter) pretty_break(msg *pb.Break) interface{} { - flat1118 := p.tryFlat(msg, func() { p.pretty_break(msg) }) - if flat1118 != nil { - p.write(*flat1118) + flat1165 := p.tryFlat(msg, func() { p.pretty_break(msg) }) + if flat1165 != nil { + p.write(*flat1165) return nil } else { _dollar_dollar := msg - var _t1431 []*pb.Attribute + var _t1525 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1431 = _dollar_dollar.GetAttrs() + _t1525 = _dollar_dollar.GetAttrs() } - fields1112 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1431} - unwrapped_fields1113 := fields1112 + fields1159 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetBody(), _t1525} + unwrapped_fields1160 := fields1159 p.write("(") p.write("break") p.indentSexp() p.newline() - field1114 := unwrapped_fields1113[0].(*pb.RelationId) - p.pretty_relation_id(field1114) + field1161 := unwrapped_fields1160[0].(*pb.RelationId) + p.pretty_relation_id(field1161) p.newline() - field1115 := unwrapped_fields1113[1].(*pb.Abstraction) - p.pretty_abstraction(field1115) - field1116 := unwrapped_fields1113[2].([]*pb.Attribute) - if field1116 != nil { + field1162 := unwrapped_fields1160[1].(*pb.Abstraction) + p.pretty_abstraction(field1162) + field1163 := unwrapped_fields1160[2].([]*pb.Attribute) + if field1163 != nil { p.newline() - opt_val1117 := field1116 - p.pretty_attrs(opt_val1117) + opt_val1164 := field1163 + p.pretty_attrs(opt_val1164) } p.dedent() p.write(")") @@ -2954,35 +2954,35 @@ func (p *PrettyPrinter) pretty_break(msg *pb.Break) interface{} { } func (p *PrettyPrinter) pretty_monoid_def(msg *pb.MonoidDef) interface{} { - flat1126 := p.tryFlat(msg, func() { p.pretty_monoid_def(msg) }) - if flat1126 != nil { - p.write(*flat1126) + flat1173 := p.tryFlat(msg, func() { p.pretty_monoid_def(msg) }) + if flat1173 != nil { + p.write(*flat1173) return nil } else { _dollar_dollar := msg - var _t1432 []*pb.Attribute + var _t1526 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1432 = _dollar_dollar.GetAttrs() + _t1526 = _dollar_dollar.GetAttrs() } - fields1119 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1432} - unwrapped_fields1120 := fields1119 + fields1166 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1526} + unwrapped_fields1167 := fields1166 p.write("(") p.write("monoid") p.indentSexp() p.newline() - field1121 := unwrapped_fields1120[0].(*pb.Monoid) - p.pretty_monoid(field1121) + field1168 := unwrapped_fields1167[0].(*pb.Monoid) + p.pretty_monoid(field1168) p.newline() - field1122 := unwrapped_fields1120[1].(*pb.RelationId) - p.pretty_relation_id(field1122) + field1169 := unwrapped_fields1167[1].(*pb.RelationId) + p.pretty_relation_id(field1169) p.newline() - field1123 := unwrapped_fields1120[2].([]interface{}) - p.pretty_abstraction_with_arity(field1123) - field1124 := unwrapped_fields1120[3].([]*pb.Attribute) - if field1124 != nil { + field1170 := unwrapped_fields1167[2].([]interface{}) + p.pretty_abstraction_with_arity(field1170) + field1171 := unwrapped_fields1167[3].([]*pb.Attribute) + if field1171 != nil { p.newline() - opt_val1125 := field1124 - p.pretty_attrs(opt_val1125) + opt_val1172 := field1171 + p.pretty_attrs(opt_val1172) } p.dedent() p.write(")") @@ -2991,50 +2991,50 @@ func (p *PrettyPrinter) pretty_monoid_def(msg *pb.MonoidDef) interface{} { } func (p *PrettyPrinter) pretty_monoid(msg *pb.Monoid) interface{} { - flat1135 := p.tryFlat(msg, func() { p.pretty_monoid(msg) }) - if flat1135 != nil { - p.write(*flat1135) + flat1182 := p.tryFlat(msg, func() { p.pretty_monoid(msg) }) + if flat1182 != nil { + p.write(*flat1182) return nil } else { _dollar_dollar := msg - var _t1433 *pb.OrMonoid + var _t1527 *pb.OrMonoid if hasProtoField(_dollar_dollar, "or_monoid") { - _t1433 = _dollar_dollar.GetOrMonoid() + _t1527 = _dollar_dollar.GetOrMonoid() } - deconstruct_result1133 := _t1433 - if deconstruct_result1133 != nil { - unwrapped1134 := deconstruct_result1133 - p.pretty_or_monoid(unwrapped1134) + deconstruct_result1180 := _t1527 + if deconstruct_result1180 != nil { + unwrapped1181 := deconstruct_result1180 + p.pretty_or_monoid(unwrapped1181) } else { _dollar_dollar := msg - var _t1434 *pb.MinMonoid + var _t1528 *pb.MinMonoid if hasProtoField(_dollar_dollar, "min_monoid") { - _t1434 = _dollar_dollar.GetMinMonoid() + _t1528 = _dollar_dollar.GetMinMonoid() } - deconstruct_result1131 := _t1434 - if deconstruct_result1131 != nil { - unwrapped1132 := deconstruct_result1131 - p.pretty_min_monoid(unwrapped1132) + deconstruct_result1178 := _t1528 + if deconstruct_result1178 != nil { + unwrapped1179 := deconstruct_result1178 + p.pretty_min_monoid(unwrapped1179) } else { _dollar_dollar := msg - var _t1435 *pb.MaxMonoid + var _t1529 *pb.MaxMonoid if hasProtoField(_dollar_dollar, "max_monoid") { - _t1435 = _dollar_dollar.GetMaxMonoid() + _t1529 = _dollar_dollar.GetMaxMonoid() } - deconstruct_result1129 := _t1435 - if deconstruct_result1129 != nil { - unwrapped1130 := deconstruct_result1129 - p.pretty_max_monoid(unwrapped1130) + deconstruct_result1176 := _t1529 + if deconstruct_result1176 != nil { + unwrapped1177 := deconstruct_result1176 + p.pretty_max_monoid(unwrapped1177) } else { _dollar_dollar := msg - var _t1436 *pb.SumMonoid + var _t1530 *pb.SumMonoid if hasProtoField(_dollar_dollar, "sum_monoid") { - _t1436 = _dollar_dollar.GetSumMonoid() + _t1530 = _dollar_dollar.GetSumMonoid() } - deconstruct_result1127 := _t1436 - if deconstruct_result1127 != nil { - unwrapped1128 := deconstruct_result1127 - p.pretty_sum_monoid(unwrapped1128) + deconstruct_result1174 := _t1530 + if deconstruct_result1174 != nil { + unwrapped1175 := deconstruct_result1174 + p.pretty_sum_monoid(unwrapped1175) } else { panic(ParseError{msg: "No matching rule for monoid"}) } @@ -3046,8 +3046,8 @@ func (p *PrettyPrinter) pretty_monoid(msg *pb.Monoid) interface{} { } func (p *PrettyPrinter) pretty_or_monoid(msg *pb.OrMonoid) interface{} { - fields1136 := msg - _ = fields1136 + fields1183 := msg + _ = fields1183 p.write("(") p.write("or") p.write(")") @@ -3055,19 +3055,19 @@ func (p *PrettyPrinter) pretty_or_monoid(msg *pb.OrMonoid) interface{} { } func (p *PrettyPrinter) pretty_min_monoid(msg *pb.MinMonoid) interface{} { - flat1139 := p.tryFlat(msg, func() { p.pretty_min_monoid(msg) }) - if flat1139 != nil { - p.write(*flat1139) + flat1186 := p.tryFlat(msg, func() { p.pretty_min_monoid(msg) }) + if flat1186 != nil { + p.write(*flat1186) return nil } else { _dollar_dollar := msg - fields1137 := _dollar_dollar.GetType() - unwrapped_fields1138 := fields1137 + fields1184 := _dollar_dollar.GetType() + unwrapped_fields1185 := fields1184 p.write("(") p.write("min") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1138) + p.pretty_type(unwrapped_fields1185) p.dedent() p.write(")") } @@ -3075,19 +3075,19 @@ func (p *PrettyPrinter) pretty_min_monoid(msg *pb.MinMonoid) interface{} { } func (p *PrettyPrinter) pretty_max_monoid(msg *pb.MaxMonoid) interface{} { - flat1142 := p.tryFlat(msg, func() { p.pretty_max_monoid(msg) }) - if flat1142 != nil { - p.write(*flat1142) + flat1189 := p.tryFlat(msg, func() { p.pretty_max_monoid(msg) }) + if flat1189 != nil { + p.write(*flat1189) return nil } else { _dollar_dollar := msg - fields1140 := _dollar_dollar.GetType() - unwrapped_fields1141 := fields1140 + fields1187 := _dollar_dollar.GetType() + unwrapped_fields1188 := fields1187 p.write("(") p.write("max") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1141) + p.pretty_type(unwrapped_fields1188) p.dedent() p.write(")") } @@ -3095,19 +3095,19 @@ func (p *PrettyPrinter) pretty_max_monoid(msg *pb.MaxMonoid) interface{} { } func (p *PrettyPrinter) pretty_sum_monoid(msg *pb.SumMonoid) interface{} { - flat1145 := p.tryFlat(msg, func() { p.pretty_sum_monoid(msg) }) - if flat1145 != nil { - p.write(*flat1145) + flat1192 := p.tryFlat(msg, func() { p.pretty_sum_monoid(msg) }) + if flat1192 != nil { + p.write(*flat1192) return nil } else { _dollar_dollar := msg - fields1143 := _dollar_dollar.GetType() - unwrapped_fields1144 := fields1143 + fields1190 := _dollar_dollar.GetType() + unwrapped_fields1191 := fields1190 p.write("(") p.write("sum") p.indentSexp() p.newline() - p.pretty_type(unwrapped_fields1144) + p.pretty_type(unwrapped_fields1191) p.dedent() p.write(")") } @@ -3115,35 +3115,35 @@ func (p *PrettyPrinter) pretty_sum_monoid(msg *pb.SumMonoid) interface{} { } func (p *PrettyPrinter) pretty_monus_def(msg *pb.MonusDef) interface{} { - flat1153 := p.tryFlat(msg, func() { p.pretty_monus_def(msg) }) - if flat1153 != nil { - p.write(*flat1153) + flat1200 := p.tryFlat(msg, func() { p.pretty_monus_def(msg) }) + if flat1200 != nil { + p.write(*flat1200) return nil } else { _dollar_dollar := msg - var _t1437 []*pb.Attribute + var _t1531 []*pb.Attribute if !(len(_dollar_dollar.GetAttrs()) == 0) { - _t1437 = _dollar_dollar.GetAttrs() + _t1531 = _dollar_dollar.GetAttrs() } - fields1146 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1437} - unwrapped_fields1147 := fields1146 + fields1193 := []interface{}{_dollar_dollar.GetMonoid(), _dollar_dollar.GetName(), []interface{}{_dollar_dollar.GetBody(), _dollar_dollar.GetValueArity()}, _t1531} + unwrapped_fields1194 := fields1193 p.write("(") p.write("monus") p.indentSexp() p.newline() - field1148 := unwrapped_fields1147[0].(*pb.Monoid) - p.pretty_monoid(field1148) + field1195 := unwrapped_fields1194[0].(*pb.Monoid) + p.pretty_monoid(field1195) p.newline() - field1149 := unwrapped_fields1147[1].(*pb.RelationId) - p.pretty_relation_id(field1149) + field1196 := unwrapped_fields1194[1].(*pb.RelationId) + p.pretty_relation_id(field1196) p.newline() - field1150 := unwrapped_fields1147[2].([]interface{}) - p.pretty_abstraction_with_arity(field1150) - field1151 := unwrapped_fields1147[3].([]*pb.Attribute) - if field1151 != nil { + field1197 := unwrapped_fields1194[2].([]interface{}) + p.pretty_abstraction_with_arity(field1197) + field1198 := unwrapped_fields1194[3].([]*pb.Attribute) + if field1198 != nil { p.newline() - opt_val1152 := field1151 - p.pretty_attrs(opt_val1152) + opt_val1199 := field1198 + p.pretty_attrs(opt_val1199) } p.dedent() p.write(")") @@ -3152,29 +3152,29 @@ func (p *PrettyPrinter) pretty_monus_def(msg *pb.MonusDef) interface{} { } func (p *PrettyPrinter) pretty_constraint(msg *pb.Constraint) interface{} { - flat1160 := p.tryFlat(msg, func() { p.pretty_constraint(msg) }) - if flat1160 != nil { - p.write(*flat1160) + flat1207 := p.tryFlat(msg, func() { p.pretty_constraint(msg) }) + if flat1207 != nil { + p.write(*flat1207) return nil } else { _dollar_dollar := msg - fields1154 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetFunctionalDependency().GetGuard(), _dollar_dollar.GetFunctionalDependency().GetKeys(), _dollar_dollar.GetFunctionalDependency().GetValues()} - unwrapped_fields1155 := fields1154 + fields1201 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetFunctionalDependency().GetGuard(), _dollar_dollar.GetFunctionalDependency().GetKeys(), _dollar_dollar.GetFunctionalDependency().GetValues()} + unwrapped_fields1202 := fields1201 p.write("(") p.write("functional_dependency") p.indentSexp() p.newline() - field1156 := unwrapped_fields1155[0].(*pb.RelationId) - p.pretty_relation_id(field1156) + field1203 := unwrapped_fields1202[0].(*pb.RelationId) + p.pretty_relation_id(field1203) p.newline() - field1157 := unwrapped_fields1155[1].(*pb.Abstraction) - p.pretty_abstraction(field1157) + field1204 := unwrapped_fields1202[1].(*pb.Abstraction) + p.pretty_abstraction(field1204) p.newline() - field1158 := unwrapped_fields1155[2].([]*pb.Var) - p.pretty_functional_dependency_keys(field1158) + field1205 := unwrapped_fields1202[2].([]*pb.Var) + p.pretty_functional_dependency_keys(field1205) p.newline() - field1159 := unwrapped_fields1155[3].([]*pb.Var) - p.pretty_functional_dependency_values(field1159) + field1206 := unwrapped_fields1202[3].([]*pb.Var) + p.pretty_functional_dependency_values(field1206) p.dedent() p.write(")") } @@ -3182,22 +3182,22 @@ func (p *PrettyPrinter) pretty_constraint(msg *pb.Constraint) interface{} { } func (p *PrettyPrinter) pretty_functional_dependency_keys(msg []*pb.Var) interface{} { - flat1164 := p.tryFlat(msg, func() { p.pretty_functional_dependency_keys(msg) }) - if flat1164 != nil { - p.write(*flat1164) + flat1211 := p.tryFlat(msg, func() { p.pretty_functional_dependency_keys(msg) }) + if flat1211 != nil { + p.write(*flat1211) return nil } else { - fields1161 := msg + fields1208 := msg p.write("(") p.write("keys") p.indentSexp() - if !(len(fields1161) == 0) { + if !(len(fields1208) == 0) { p.newline() - for i1163, elem1162 := range fields1161 { - if (i1163 > 0) { + for i1210, elem1209 := range fields1208 { + if (i1210 > 0) { p.newline() } - p.pretty_var(elem1162) + p.pretty_var(elem1209) } } p.dedent() @@ -3207,22 +3207,22 @@ func (p *PrettyPrinter) pretty_functional_dependency_keys(msg []*pb.Var) interfa } func (p *PrettyPrinter) pretty_functional_dependency_values(msg []*pb.Var) interface{} { - flat1168 := p.tryFlat(msg, func() { p.pretty_functional_dependency_values(msg) }) - if flat1168 != nil { - p.write(*flat1168) + flat1215 := p.tryFlat(msg, func() { p.pretty_functional_dependency_values(msg) }) + if flat1215 != nil { + p.write(*flat1215) return nil } else { - fields1165 := msg + fields1212 := msg p.write("(") p.write("values") p.indentSexp() - if !(len(fields1165) == 0) { + if !(len(fields1212) == 0) { p.newline() - for i1167, elem1166 := range fields1165 { - if (i1167 > 0) { + for i1214, elem1213 := range fields1212 { + if (i1214 > 0) { p.newline() } - p.pretty_var(elem1166) + p.pretty_var(elem1213) } } p.dedent() @@ -3232,42 +3232,53 @@ func (p *PrettyPrinter) pretty_functional_dependency_values(msg []*pb.Var) inter } func (p *PrettyPrinter) pretty_data(msg *pb.Data) interface{} { - flat1175 := p.tryFlat(msg, func() { p.pretty_data(msg) }) - if flat1175 != nil { - p.write(*flat1175) + flat1224 := p.tryFlat(msg, func() { p.pretty_data(msg) }) + if flat1224 != nil { + p.write(*flat1224) return nil } else { _dollar_dollar := msg - var _t1438 *pb.EDB + var _t1532 *pb.EDB if hasProtoField(_dollar_dollar, "edb") { - _t1438 = _dollar_dollar.GetEdb() + _t1532 = _dollar_dollar.GetEdb() } - deconstruct_result1173 := _t1438 - if deconstruct_result1173 != nil { - unwrapped1174 := deconstruct_result1173 - p.pretty_edb(unwrapped1174) + deconstruct_result1222 := _t1532 + if deconstruct_result1222 != nil { + unwrapped1223 := deconstruct_result1222 + p.pretty_edb(unwrapped1223) } else { _dollar_dollar := msg - var _t1439 *pb.BeTreeRelation + var _t1533 *pb.BeTreeRelation if hasProtoField(_dollar_dollar, "betree_relation") { - _t1439 = _dollar_dollar.GetBetreeRelation() + _t1533 = _dollar_dollar.GetBetreeRelation() } - deconstruct_result1171 := _t1439 - if deconstruct_result1171 != nil { - unwrapped1172 := deconstruct_result1171 - p.pretty_betree_relation(unwrapped1172) + deconstruct_result1220 := _t1533 + if deconstruct_result1220 != nil { + unwrapped1221 := deconstruct_result1220 + p.pretty_betree_relation(unwrapped1221) } else { _dollar_dollar := msg - var _t1440 *pb.CSVData + var _t1534 *pb.CSVData if hasProtoField(_dollar_dollar, "csv_data") { - _t1440 = _dollar_dollar.GetCsvData() + _t1534 = _dollar_dollar.GetCsvData() } - deconstruct_result1169 := _t1440 - if deconstruct_result1169 != nil { - unwrapped1170 := deconstruct_result1169 - p.pretty_csv_data(unwrapped1170) + deconstruct_result1218 := _t1534 + if deconstruct_result1218 != nil { + unwrapped1219 := deconstruct_result1218 + p.pretty_csv_data(unwrapped1219) } else { - panic(ParseError{msg: "No matching rule for data"}) + _dollar_dollar := msg + var _t1535 *pb.IcebergData + if hasProtoField(_dollar_dollar, "iceberg_data") { + _t1535 = _dollar_dollar.GetIcebergData() + } + deconstruct_result1216 := _t1535 + if deconstruct_result1216 != nil { + unwrapped1217 := deconstruct_result1216 + p.pretty_iceberg_data(unwrapped1217) + } else { + panic(ParseError{msg: "No matching rule for data"}) + } } } } @@ -3276,26 +3287,26 @@ func (p *PrettyPrinter) pretty_data(msg *pb.Data) interface{} { } func (p *PrettyPrinter) pretty_edb(msg *pb.EDB) interface{} { - flat1181 := p.tryFlat(msg, func() { p.pretty_edb(msg) }) - if flat1181 != nil { - p.write(*flat1181) + flat1230 := p.tryFlat(msg, func() { p.pretty_edb(msg) }) + if flat1230 != nil { + p.write(*flat1230) return nil } else { _dollar_dollar := msg - fields1176 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetPath(), _dollar_dollar.GetTypes()} - unwrapped_fields1177 := fields1176 + fields1225 := []interface{}{_dollar_dollar.GetTargetId(), _dollar_dollar.GetPath(), _dollar_dollar.GetTypes()} + unwrapped_fields1226 := fields1225 p.write("(") p.write("edb") p.indentSexp() p.newline() - field1178 := unwrapped_fields1177[0].(*pb.RelationId) - p.pretty_relation_id(field1178) + field1227 := unwrapped_fields1226[0].(*pb.RelationId) + p.pretty_relation_id(field1227) p.newline() - field1179 := unwrapped_fields1177[1].([]string) - p.pretty_edb_path(field1179) + field1228 := unwrapped_fields1226[1].([]string) + p.pretty_edb_path(field1228) p.newline() - field1180 := unwrapped_fields1177[2].([]*pb.Type) - p.pretty_edb_types(field1180) + field1229 := unwrapped_fields1226[2].([]*pb.Type) + p.pretty_edb_types(field1229) p.dedent() p.write(")") } @@ -3303,19 +3314,19 @@ func (p *PrettyPrinter) pretty_edb(msg *pb.EDB) interface{} { } func (p *PrettyPrinter) pretty_edb_path(msg []string) interface{} { - flat1185 := p.tryFlat(msg, func() { p.pretty_edb_path(msg) }) - if flat1185 != nil { - p.write(*flat1185) + flat1234 := p.tryFlat(msg, func() { p.pretty_edb_path(msg) }) + if flat1234 != nil { + p.write(*flat1234) return nil } else { - fields1182 := msg + fields1231 := msg p.write("[") p.indent() - for i1184, elem1183 := range fields1182 { - if (i1184 > 0) { + for i1233, elem1232 := range fields1231 { + if (i1233 > 0) { p.newline() } - p.write(p.formatStringValue(elem1183)) + p.write(p.formatStringValue(elem1232)) } p.dedent() p.write("]") @@ -3324,19 +3335,19 @@ func (p *PrettyPrinter) pretty_edb_path(msg []string) interface{} { } func (p *PrettyPrinter) pretty_edb_types(msg []*pb.Type) interface{} { - flat1189 := p.tryFlat(msg, func() { p.pretty_edb_types(msg) }) - if flat1189 != nil { - p.write(*flat1189) + flat1238 := p.tryFlat(msg, func() { p.pretty_edb_types(msg) }) + if flat1238 != nil { + p.write(*flat1238) return nil } else { - fields1186 := msg + fields1235 := msg p.write("[") p.indent() - for i1188, elem1187 := range fields1186 { - if (i1188 > 0) { + for i1237, elem1236 := range fields1235 { + if (i1237 > 0) { p.newline() } - p.pretty_type(elem1187) + p.pretty_type(elem1236) } p.dedent() p.write("]") @@ -3345,23 +3356,23 @@ func (p *PrettyPrinter) pretty_edb_types(msg []*pb.Type) interface{} { } func (p *PrettyPrinter) pretty_betree_relation(msg *pb.BeTreeRelation) interface{} { - flat1194 := p.tryFlat(msg, func() { p.pretty_betree_relation(msg) }) - if flat1194 != nil { - p.write(*flat1194) + flat1243 := p.tryFlat(msg, func() { p.pretty_betree_relation(msg) }) + if flat1243 != nil { + p.write(*flat1243) return nil } else { _dollar_dollar := msg - fields1190 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationInfo()} - unwrapped_fields1191 := fields1190 + fields1239 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationInfo()} + unwrapped_fields1240 := fields1239 p.write("(") p.write("betree_relation") p.indentSexp() p.newline() - field1192 := unwrapped_fields1191[0].(*pb.RelationId) - p.pretty_relation_id(field1192) + field1241 := unwrapped_fields1240[0].(*pb.RelationId) + p.pretty_relation_id(field1241) p.newline() - field1193 := unwrapped_fields1191[1].(*pb.BeTreeInfo) - p.pretty_betree_info(field1193) + field1242 := unwrapped_fields1240[1].(*pb.BeTreeInfo) + p.pretty_betree_info(field1242) p.dedent() p.write(")") } @@ -3369,27 +3380,27 @@ func (p *PrettyPrinter) pretty_betree_relation(msg *pb.BeTreeRelation) interface } func (p *PrettyPrinter) pretty_betree_info(msg *pb.BeTreeInfo) interface{} { - flat1200 := p.tryFlat(msg, func() { p.pretty_betree_info(msg) }) - if flat1200 != nil { - p.write(*flat1200) + flat1249 := p.tryFlat(msg, func() { p.pretty_betree_info(msg) }) + if flat1249 != nil { + p.write(*flat1249) return nil } else { _dollar_dollar := msg - _t1441 := p.deconstruct_betree_info_config(_dollar_dollar) - fields1195 := []interface{}{_dollar_dollar.GetKeyTypes(), _dollar_dollar.GetValueTypes(), _t1441} - unwrapped_fields1196 := fields1195 + _t1536 := p.deconstruct_betree_info_config(_dollar_dollar) + fields1244 := []interface{}{_dollar_dollar.GetKeyTypes(), _dollar_dollar.GetValueTypes(), _t1536} + unwrapped_fields1245 := fields1244 p.write("(") p.write("betree_info") p.indentSexp() p.newline() - field1197 := unwrapped_fields1196[0].([]*pb.Type) - p.pretty_betree_info_key_types(field1197) + field1246 := unwrapped_fields1245[0].([]*pb.Type) + p.pretty_betree_info_key_types(field1246) p.newline() - field1198 := unwrapped_fields1196[1].([]*pb.Type) - p.pretty_betree_info_value_types(field1198) + field1247 := unwrapped_fields1245[1].([]*pb.Type) + p.pretty_betree_info_value_types(field1247) p.newline() - field1199 := unwrapped_fields1196[2].([][]interface{}) - p.pretty_config_dict(field1199) + field1248 := unwrapped_fields1245[2].([][]interface{}) + p.pretty_config_dict(field1248) p.dedent() p.write(")") } @@ -3397,22 +3408,22 @@ func (p *PrettyPrinter) pretty_betree_info(msg *pb.BeTreeInfo) interface{} { } func (p *PrettyPrinter) pretty_betree_info_key_types(msg []*pb.Type) interface{} { - flat1204 := p.tryFlat(msg, func() { p.pretty_betree_info_key_types(msg) }) - if flat1204 != nil { - p.write(*flat1204) + flat1253 := p.tryFlat(msg, func() { p.pretty_betree_info_key_types(msg) }) + if flat1253 != nil { + p.write(*flat1253) return nil } else { - fields1201 := msg + fields1250 := msg p.write("(") p.write("key_types") p.indentSexp() - if !(len(fields1201) == 0) { + if !(len(fields1250) == 0) { p.newline() - for i1203, elem1202 := range fields1201 { - if (i1203 > 0) { + for i1252, elem1251 := range fields1250 { + if (i1252 > 0) { p.newline() } - p.pretty_type(elem1202) + p.pretty_type(elem1251) } } p.dedent() @@ -3422,22 +3433,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{} { - flat1208 := p.tryFlat(msg, func() { p.pretty_betree_info_value_types(msg) }) - if flat1208 != nil { - p.write(*flat1208) + flat1257 := p.tryFlat(msg, func() { p.pretty_betree_info_value_types(msg) }) + if flat1257 != nil { + p.write(*flat1257) return nil } else { - fields1205 := msg + fields1254 := msg p.write("(") p.write("value_types") p.indentSexp() - if !(len(fields1205) == 0) { + if !(len(fields1254) == 0) { p.newline() - for i1207, elem1206 := range fields1205 { - if (i1207 > 0) { + for i1256, elem1255 := range fields1254 { + if (i1256 > 0) { p.newline() } - p.pretty_type(elem1206) + p.pretty_type(elem1255) } } p.dedent() @@ -3447,29 +3458,29 @@ func (p *PrettyPrinter) pretty_betree_info_value_types(msg []*pb.Type) interface } func (p *PrettyPrinter) pretty_csv_data(msg *pb.CSVData) interface{} { - flat1215 := p.tryFlat(msg, func() { p.pretty_csv_data(msg) }) - if flat1215 != nil { - p.write(*flat1215) + flat1264 := p.tryFlat(msg, func() { p.pretty_csv_data(msg) }) + if flat1264 != nil { + p.write(*flat1264) return nil } else { _dollar_dollar := msg - fields1209 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetColumns(), _dollar_dollar.GetAsof()} - unwrapped_fields1210 := fields1209 + fields1258 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetColumns(), _dollar_dollar.GetAsof()} + unwrapped_fields1259 := fields1258 p.write("(") p.write("csv_data") p.indentSexp() p.newline() - field1211 := unwrapped_fields1210[0].(*pb.CSVLocator) - p.pretty_csvlocator(field1211) + field1260 := unwrapped_fields1259[0].(*pb.CSVLocator) + p.pretty_csvlocator(field1260) p.newline() - field1212 := unwrapped_fields1210[1].(*pb.CSVConfig) - p.pretty_csv_config(field1212) + field1261 := unwrapped_fields1259[1].(*pb.CSVConfig) + p.pretty_csv_config(field1261) p.newline() - field1213 := unwrapped_fields1210[2].([]*pb.GNFColumn) - p.pretty_gnf_columns(field1213) + field1262 := unwrapped_fields1259[2].([]*pb.GNFColumn) + p.pretty_gnf_columns(field1262) p.newline() - field1214 := unwrapped_fields1210[3].(string) - p.pretty_csv_asof(field1214) + field1263 := unwrapped_fields1259[3].(string) + p.pretty_csv_asof(field1263) p.dedent() p.write(")") } @@ -3477,36 +3488,36 @@ func (p *PrettyPrinter) pretty_csv_data(msg *pb.CSVData) interface{} { } func (p *PrettyPrinter) pretty_csvlocator(msg *pb.CSVLocator) interface{} { - flat1222 := p.tryFlat(msg, func() { p.pretty_csvlocator(msg) }) - if flat1222 != nil { - p.write(*flat1222) + flat1271 := p.tryFlat(msg, func() { p.pretty_csvlocator(msg) }) + if flat1271 != nil { + p.write(*flat1271) return nil } else { _dollar_dollar := msg - var _t1442 []string + var _t1537 []string if !(len(_dollar_dollar.GetPaths()) == 0) { - _t1442 = _dollar_dollar.GetPaths() + _t1537 = _dollar_dollar.GetPaths() } - var _t1443 *string + var _t1538 *string if string(_dollar_dollar.GetInlineData()) != "" { - _t1443 = ptr(string(_dollar_dollar.GetInlineData())) + _t1538 = ptr(string(_dollar_dollar.GetInlineData())) } - fields1216 := []interface{}{_t1442, _t1443} - unwrapped_fields1217 := fields1216 + fields1265 := []interface{}{_t1537, _t1538} + unwrapped_fields1266 := fields1265 p.write("(") p.write("csv_locator") p.indentSexp() - field1218 := unwrapped_fields1217[0].([]string) - if field1218 != nil { + field1267 := unwrapped_fields1266[0].([]string) + if field1267 != nil { p.newline() - opt_val1219 := field1218 - p.pretty_csv_locator_paths(opt_val1219) + opt_val1268 := field1267 + p.pretty_csv_locator_paths(opt_val1268) } - field1220 := unwrapped_fields1217[1].(*string) - if field1220 != nil { + field1269 := unwrapped_fields1266[1].(*string) + if field1269 != nil { p.newline() - opt_val1221 := *field1220 - p.pretty_csv_locator_inline_data(opt_val1221) + opt_val1270 := *field1269 + p.pretty_csv_locator_inline_data(opt_val1270) } p.dedent() p.write(")") @@ -3515,22 +3526,22 @@ func (p *PrettyPrinter) pretty_csvlocator(msg *pb.CSVLocator) interface{} { } func (p *PrettyPrinter) pretty_csv_locator_paths(msg []string) interface{} { - flat1226 := p.tryFlat(msg, func() { p.pretty_csv_locator_paths(msg) }) - if flat1226 != nil { - p.write(*flat1226) + flat1275 := p.tryFlat(msg, func() { p.pretty_csv_locator_paths(msg) }) + if flat1275 != nil { + p.write(*flat1275) return nil } else { - fields1223 := msg + fields1272 := msg p.write("(") p.write("paths") p.indentSexp() - if !(len(fields1223) == 0) { + if !(len(fields1272) == 0) { p.newline() - for i1225, elem1224 := range fields1223 { - if (i1225 > 0) { + for i1274, elem1273 := range fields1272 { + if (i1274 > 0) { p.newline() } - p.write(p.formatStringValue(elem1224)) + p.write(p.formatStringValue(elem1273)) } } p.dedent() @@ -3540,17 +3551,17 @@ func (p *PrettyPrinter) pretty_csv_locator_paths(msg []string) interface{} { } func (p *PrettyPrinter) pretty_csv_locator_inline_data(msg string) interface{} { - flat1228 := p.tryFlat(msg, func() { p.pretty_csv_locator_inline_data(msg) }) - if flat1228 != nil { - p.write(*flat1228) + flat1277 := p.tryFlat(msg, func() { p.pretty_csv_locator_inline_data(msg) }) + if flat1277 != nil { + p.write(*flat1277) return nil } else { - fields1227 := msg + fields1276 := msg p.write("(") p.write("inline_data") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1227)) + p.write(p.formatStringValue(fields1276)) p.dedent() p.write(")") } @@ -3558,20 +3569,20 @@ func (p *PrettyPrinter) pretty_csv_locator_inline_data(msg string) interface{} { } func (p *PrettyPrinter) pretty_csv_config(msg *pb.CSVConfig) interface{} { - flat1231 := p.tryFlat(msg, func() { p.pretty_csv_config(msg) }) - if flat1231 != nil { - p.write(*flat1231) + flat1280 := p.tryFlat(msg, func() { p.pretty_csv_config(msg) }) + if flat1280 != nil { + p.write(*flat1280) return nil } else { _dollar_dollar := msg - _t1444 := p.deconstruct_csv_config(_dollar_dollar) - fields1229 := _t1444 - unwrapped_fields1230 := fields1229 + _t1539 := p.deconstruct_csv_config(_dollar_dollar) + fields1278 := _t1539 + unwrapped_fields1279 := fields1278 p.write("(") p.write("csv_config") p.indentSexp() p.newline() - p.pretty_config_dict(unwrapped_fields1230) + p.pretty_config_dict(unwrapped_fields1279) p.dedent() p.write(")") } @@ -3579,22 +3590,22 @@ func (p *PrettyPrinter) pretty_csv_config(msg *pb.CSVConfig) interface{} { } func (p *PrettyPrinter) pretty_gnf_columns(msg []*pb.GNFColumn) interface{} { - flat1235 := p.tryFlat(msg, func() { p.pretty_gnf_columns(msg) }) - if flat1235 != nil { - p.write(*flat1235) + flat1284 := p.tryFlat(msg, func() { p.pretty_gnf_columns(msg) }) + if flat1284 != nil { + p.write(*flat1284) return nil } else { - fields1232 := msg + fields1281 := msg p.write("(") p.write("columns") p.indentSexp() - if !(len(fields1232) == 0) { + if !(len(fields1281) == 0) { p.newline() - for i1234, elem1233 := range fields1232 { - if (i1234 > 0) { + for i1283, elem1282 := range fields1281 { + if (i1283 > 0) { p.newline() } - p.pretty_gnf_column(elem1233) + p.pretty_gnf_column(elem1282) } } p.dedent() @@ -3604,38 +3615,38 @@ func (p *PrettyPrinter) pretty_gnf_columns(msg []*pb.GNFColumn) interface{} { } func (p *PrettyPrinter) pretty_gnf_column(msg *pb.GNFColumn) interface{} { - flat1244 := p.tryFlat(msg, func() { p.pretty_gnf_column(msg) }) - if flat1244 != nil { - p.write(*flat1244) + flat1293 := p.tryFlat(msg, func() { p.pretty_gnf_column(msg) }) + if flat1293 != nil { + p.write(*flat1293) return nil } else { _dollar_dollar := msg - var _t1445 *pb.RelationId + var _t1540 *pb.RelationId if hasProtoField(_dollar_dollar, "target_id") { - _t1445 = _dollar_dollar.GetTargetId() + _t1540 = _dollar_dollar.GetTargetId() } - fields1236 := []interface{}{_dollar_dollar.GetColumnPath(), _t1445, _dollar_dollar.GetTypes()} - unwrapped_fields1237 := fields1236 + fields1285 := []interface{}{_dollar_dollar.GetColumnPath(), _t1540, _dollar_dollar.GetTypes()} + unwrapped_fields1286 := fields1285 p.write("(") p.write("column") p.indentSexp() p.newline() - field1238 := unwrapped_fields1237[0].([]string) - p.pretty_gnf_column_path(field1238) - field1239 := unwrapped_fields1237[1].(*pb.RelationId) - if field1239 != nil { + field1287 := unwrapped_fields1286[0].([]string) + p.pretty_gnf_column_path(field1287) + field1288 := unwrapped_fields1286[1].(*pb.RelationId) + if field1288 != nil { p.newline() - opt_val1240 := field1239 - p.pretty_relation_id(opt_val1240) + opt_val1289 := field1288 + p.pretty_relation_id(opt_val1289) } p.newline() p.write("[") - field1241 := unwrapped_fields1237[2].([]*pb.Type) - for i1243, elem1242 := range field1241 { - if (i1243 > 0) { + field1290 := unwrapped_fields1286[2].([]*pb.Type) + for i1292, elem1291 := range field1290 { + if (i1292 > 0) { p.newline() } - p.pretty_type(elem1242) + p.pretty_type(elem1291) } p.write("]") p.dedent() @@ -3645,36 +3656,36 @@ func (p *PrettyPrinter) pretty_gnf_column(msg *pb.GNFColumn) interface{} { } func (p *PrettyPrinter) pretty_gnf_column_path(msg []string) interface{} { - flat1251 := p.tryFlat(msg, func() { p.pretty_gnf_column_path(msg) }) - if flat1251 != nil { - p.write(*flat1251) + flat1300 := p.tryFlat(msg, func() { p.pretty_gnf_column_path(msg) }) + if flat1300 != nil { + p.write(*flat1300) return nil } else { _dollar_dollar := msg - var _t1446 *string + var _t1541 *string if int64(len(_dollar_dollar)) == 1 { - _t1446 = ptr(_dollar_dollar[0]) + _t1541 = ptr(_dollar_dollar[0]) } - deconstruct_result1249 := _t1446 - if deconstruct_result1249 != nil { - unwrapped1250 := *deconstruct_result1249 - p.write(p.formatStringValue(unwrapped1250)) + deconstruct_result1298 := _t1541 + if deconstruct_result1298 != nil { + unwrapped1299 := *deconstruct_result1298 + p.write(p.formatStringValue(unwrapped1299)) } else { _dollar_dollar := msg - var _t1447 []string + var _t1542 []string if int64(len(_dollar_dollar)) != 1 { - _t1447 = _dollar_dollar + _t1542 = _dollar_dollar } - deconstruct_result1245 := _t1447 - if deconstruct_result1245 != nil { - unwrapped1246 := deconstruct_result1245 + deconstruct_result1294 := _t1542 + if deconstruct_result1294 != nil { + unwrapped1295 := deconstruct_result1294 p.write("[") p.indent() - for i1248, elem1247 := range unwrapped1246 { - if (i1248 > 0) { + for i1297, elem1296 := range unwrapped1295 { + if (i1297 > 0) { p.newline() } - p.write(p.formatStringValue(elem1247)) + p.write(p.formatStringValue(elem1296)) } p.dedent() p.write("]") @@ -3687,17 +3698,257 @@ func (p *PrettyPrinter) pretty_gnf_column_path(msg []string) interface{} { } func (p *PrettyPrinter) pretty_csv_asof(msg string) interface{} { - flat1253 := p.tryFlat(msg, func() { p.pretty_csv_asof(msg) }) - if flat1253 != nil { - p.write(*flat1253) + flat1302 := p.tryFlat(msg, func() { p.pretty_csv_asof(msg) }) + if flat1302 != nil { + p.write(*flat1302) return nil } else { - fields1252 := msg + fields1301 := msg p.write("(") p.write("asof") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1252)) + p.write(p.formatStringValue(fields1301)) + p.dedent() + p.write(")") + } + return nil +} + +func (p *PrettyPrinter) pretty_iceberg_data(msg *pb.IcebergData) interface{} { + flat1310 := p.tryFlat(msg, func() { p.pretty_iceberg_data(msg) }) + if flat1310 != nil { + p.write(*flat1310) + return nil + } else { + _dollar_dollar := msg + fields1303 := []interface{}{_dollar_dollar.GetLocator(), _dollar_dollar.GetConfig(), _dollar_dollar.GetColumns(), _dollar_dollar.ToSnapshot} + unwrapped_fields1304 := fields1303 + p.write("(") + p.write("iceberg_data") + p.indentSexp() + p.newline() + field1305 := unwrapped_fields1304[0].(*pb.IcebergLocator) + p.pretty_iceberg_locator(field1305) + p.newline() + field1306 := unwrapped_fields1304[1].(*pb.IcebergConfig) + p.pretty_iceberg_config(field1306) + p.newline() + field1307 := unwrapped_fields1304[2].([]*pb.GNFColumn) + p.pretty_gnf_columns(field1307) + field1308 := unwrapped_fields1304[3].(*string) + if field1308 != nil { + p.newline() + opt_val1309 := *field1308 + p.pretty_iceberg_to_snapshot(opt_val1309) + } + p.dedent() + p.write(")") + } + return nil +} + +func (p *PrettyPrinter) pretty_iceberg_locator(msg *pb.IcebergLocator) interface{} { + flat1316 := p.tryFlat(msg, func() { p.pretty_iceberg_locator(msg) }) + if flat1316 != nil { + p.write(*flat1316) + return nil + } else { + _dollar_dollar := msg + fields1311 := []interface{}{_dollar_dollar.GetTableName(), _dollar_dollar.GetNamespace(), _dollar_dollar.GetWarehouse()} + unwrapped_fields1312 := fields1311 + p.write("(") + p.write("iceberg_locator") + p.indentSexp() + p.newline() + field1313 := unwrapped_fields1312[0].(string) + p.write(p.formatStringValue(field1313)) + p.newline() + field1314 := unwrapped_fields1312[1].([]string) + p.pretty_iceberg_locator_namespace(field1314) + p.newline() + field1315 := unwrapped_fields1312[2].(string) + p.write(p.formatStringValue(field1315)) + p.dedent() + p.write(")") + } + return nil +} + +func (p *PrettyPrinter) pretty_iceberg_locator_namespace(msg []string) interface{} { + flat1320 := p.tryFlat(msg, func() { p.pretty_iceberg_locator_namespace(msg) }) + if flat1320 != nil { + p.write(*flat1320) + return nil + } else { + fields1317 := msg + p.write("(") + p.write("namespace") + p.indentSexp() + if !(len(fields1317) == 0) { + p.newline() + for i1319, elem1318 := range fields1317 { + if (i1319 > 0) { + p.newline() + } + p.write(p.formatStringValue(elem1318)) + } + } + p.dedent() + p.write(")") + } + return nil +} + +func (p *PrettyPrinter) pretty_iceberg_config(msg *pb.IcebergConfig) interface{} { + flat1330 := p.tryFlat(msg, func() { p.pretty_iceberg_config(msg) }) + if flat1330 != nil { + p.write(*flat1330) + return nil + } else { + _dollar_dollar := msg + var _t1543 *string + if _dollar_dollar.Scope != "" { + _t1543 = _dollar_dollar.Scope + } + var _t1544 [][]interface{} + if !(len(dictToPairs(_dollar_dollar.GetProperties())) == 0) { + _t1544 = dictToPairs(_dollar_dollar.GetProperties()) + } + fields1321 := []interface{}{_dollar_dollar.GetCatalogUri(), _t1543, _t1544, nil} + unwrapped_fields1322 := fields1321 + p.write("(") + p.write("iceberg_config") + p.indentSexp() + p.newline() + field1323 := unwrapped_fields1322[0].(string) + p.write(p.formatStringValue(field1323)) + field1324 := unwrapped_fields1322[1].(*string) + if field1324 != nil { + p.newline() + opt_val1325 := *field1324 + p.pretty_iceberg_config_scope(opt_val1325) + } + field1326 := unwrapped_fields1322[2].([][]interface{}) + if field1326 != nil { + p.newline() + opt_val1327 := field1326 + p.pretty_iceberg_config_properties(opt_val1327) + } + field1328 := unwrapped_fields1322[3].(interface{}) + if field1328 != nil { + p.newline() + opt_val1329 := field1328 + p.pretty_iceberg_config_credentials(opt_val1329) + } + p.dedent() + p.write(")") + } + return nil +} + +func (p *PrettyPrinter) pretty_iceberg_config_scope(msg string) interface{} { + flat1332 := p.tryFlat(msg, func() { p.pretty_iceberg_config_scope(msg) }) + if flat1332 != nil { + p.write(*flat1332) + return nil + } else { + fields1331 := msg + p.write("(") + p.write("scope") + p.indentSexp() + p.newline() + p.write(p.formatStringValue(fields1331)) + p.dedent() + p.write(")") + } + return nil +} + +func (p *PrettyPrinter) pretty_iceberg_config_properties(msg [][]interface{}) interface{} { + flat1336 := p.tryFlat(msg, func() { p.pretty_iceberg_config_properties(msg) }) + if flat1336 != nil { + p.write(*flat1336) + return nil + } else { + fields1333 := msg + p.write("(") + p.write("properties") + p.indentSexp() + if !(len(fields1333) == 0) { + p.newline() + for i1335, elem1334 := range fields1333 { + if (i1335 > 0) { + p.newline() + } + p.pretty_iceberg_kv_pair(elem1334) + } + } + p.dedent() + p.write(")") + } + return nil +} + +func (p *PrettyPrinter) pretty_iceberg_kv_pair(msg []interface{}) interface{} { + flat1341 := p.tryFlat(msg, func() { p.pretty_iceberg_kv_pair(msg) }) + if flat1341 != nil { + p.write(*flat1341) + return nil + } else { + _dollar_dollar := msg + fields1337 := []interface{}{_dollar_dollar[0].(string), _dollar_dollar[1].(string)} + unwrapped_fields1338 := fields1337 + p.write("(") + p.indent() + field1339 := unwrapped_fields1338[0].(string) + p.write(p.formatStringValue(field1339)) + p.newline() + field1340 := unwrapped_fields1338[1].(string) + p.write(p.formatStringValue(field1340)) + p.dedent() + p.write(")") + } + return nil +} + +func (p *PrettyPrinter) pretty_iceberg_config_credentials(msg [][]interface{}) interface{} { + flat1345 := p.tryFlat(msg, func() { p.pretty_iceberg_config_credentials(msg) }) + if flat1345 != nil { + p.write(*flat1345) + return nil + } else { + fields1342 := msg + p.write("(") + p.write("credentials") + p.indentSexp() + if !(len(fields1342) == 0) { + p.newline() + for i1344, elem1343 := range fields1342 { + if (i1344 > 0) { + p.newline() + } + p.pretty_iceberg_kv_pair(elem1343) + } + } + p.dedent() + p.write(")") + } + return nil +} + +func (p *PrettyPrinter) pretty_iceberg_to_snapshot(msg string) interface{} { + flat1347 := p.tryFlat(msg, func() { p.pretty_iceberg_to_snapshot(msg) }) + if flat1347 != nil { + p.write(*flat1347) + return nil + } else { + fields1346 := msg + p.write("(") + p.write("to_snapshot") + p.indentSexp() + p.newline() + p.write(p.formatStringValue(fields1346)) p.dedent() p.write(")") } @@ -3705,19 +3956,19 @@ func (p *PrettyPrinter) pretty_csv_asof(msg string) interface{} { } func (p *PrettyPrinter) pretty_undefine(msg *pb.Undefine) interface{} { - flat1256 := p.tryFlat(msg, func() { p.pretty_undefine(msg) }) - if flat1256 != nil { - p.write(*flat1256) + flat1350 := p.tryFlat(msg, func() { p.pretty_undefine(msg) }) + if flat1350 != nil { + p.write(*flat1350) return nil } else { _dollar_dollar := msg - fields1254 := _dollar_dollar.GetFragmentId() - unwrapped_fields1255 := fields1254 + fields1348 := _dollar_dollar.GetFragmentId() + unwrapped_fields1349 := fields1348 p.write("(") p.write("undefine") p.indentSexp() p.newline() - p.pretty_fragment_id(unwrapped_fields1255) + p.pretty_fragment_id(unwrapped_fields1349) p.dedent() p.write(")") } @@ -3725,24 +3976,24 @@ func (p *PrettyPrinter) pretty_undefine(msg *pb.Undefine) interface{} { } func (p *PrettyPrinter) pretty_context(msg *pb.Context) interface{} { - flat1261 := p.tryFlat(msg, func() { p.pretty_context(msg) }) - if flat1261 != nil { - p.write(*flat1261) + flat1355 := p.tryFlat(msg, func() { p.pretty_context(msg) }) + if flat1355 != nil { + p.write(*flat1355) return nil } else { _dollar_dollar := msg - fields1257 := _dollar_dollar.GetRelations() - unwrapped_fields1258 := fields1257 + fields1351 := _dollar_dollar.GetRelations() + unwrapped_fields1352 := fields1351 p.write("(") p.write("context") p.indentSexp() - if !(len(unwrapped_fields1258) == 0) { + if !(len(unwrapped_fields1352) == 0) { p.newline() - for i1260, elem1259 := range unwrapped_fields1258 { - if (i1260 > 0) { + for i1354, elem1353 := range unwrapped_fields1352 { + if (i1354 > 0) { p.newline() } - p.pretty_relation_id(elem1259) + p.pretty_relation_id(elem1353) } } p.dedent() @@ -3752,24 +4003,24 @@ func (p *PrettyPrinter) pretty_context(msg *pb.Context) interface{} { } func (p *PrettyPrinter) pretty_snapshot(msg *pb.Snapshot) interface{} { - flat1266 := p.tryFlat(msg, func() { p.pretty_snapshot(msg) }) - if flat1266 != nil { - p.write(*flat1266) + flat1360 := p.tryFlat(msg, func() { p.pretty_snapshot(msg) }) + if flat1360 != nil { + p.write(*flat1360) return nil } else { _dollar_dollar := msg - fields1262 := _dollar_dollar.GetMappings() - unwrapped_fields1263 := fields1262 + fields1356 := _dollar_dollar.GetMappings() + unwrapped_fields1357 := fields1356 p.write("(") p.write("snapshot") p.indentSexp() - if !(len(unwrapped_fields1263) == 0) { + if !(len(unwrapped_fields1357) == 0) { p.newline() - for i1265, elem1264 := range unwrapped_fields1263 { - if (i1265 > 0) { + for i1359, elem1358 := range unwrapped_fields1357 { + if (i1359 > 0) { p.newline() } - p.pretty_snapshot_mapping(elem1264) + p.pretty_snapshot_mapping(elem1358) } } p.dedent() @@ -3779,40 +4030,40 @@ func (p *PrettyPrinter) pretty_snapshot(msg *pb.Snapshot) interface{} { } func (p *PrettyPrinter) pretty_snapshot_mapping(msg *pb.SnapshotMapping) interface{} { - flat1271 := p.tryFlat(msg, func() { p.pretty_snapshot_mapping(msg) }) - if flat1271 != nil { - p.write(*flat1271) + flat1365 := p.tryFlat(msg, func() { p.pretty_snapshot_mapping(msg) }) + if flat1365 != nil { + p.write(*flat1365) return nil } else { _dollar_dollar := msg - fields1267 := []interface{}{_dollar_dollar.GetDestinationPath(), _dollar_dollar.GetSourceRelation()} - unwrapped_fields1268 := fields1267 - field1269 := unwrapped_fields1268[0].([]string) - p.pretty_edb_path(field1269) + fields1361 := []interface{}{_dollar_dollar.GetDestinationPath(), _dollar_dollar.GetSourceRelation()} + unwrapped_fields1362 := fields1361 + field1363 := unwrapped_fields1362[0].([]string) + p.pretty_edb_path(field1363) p.write(" ") - field1270 := unwrapped_fields1268[1].(*pb.RelationId) - p.pretty_relation_id(field1270) + field1364 := unwrapped_fields1362[1].(*pb.RelationId) + p.pretty_relation_id(field1364) } return nil } func (p *PrettyPrinter) pretty_epoch_reads(msg []*pb.Read) interface{} { - flat1275 := p.tryFlat(msg, func() { p.pretty_epoch_reads(msg) }) - if flat1275 != nil { - p.write(*flat1275) + flat1369 := p.tryFlat(msg, func() { p.pretty_epoch_reads(msg) }) + if flat1369 != nil { + p.write(*flat1369) return nil } else { - fields1272 := msg + fields1366 := msg p.write("(") p.write("reads") p.indentSexp() - if !(len(fields1272) == 0) { + if !(len(fields1366) == 0) { p.newline() - for i1274, elem1273 := range fields1272 { - if (i1274 > 0) { + for i1368, elem1367 := range fields1366 { + if (i1368 > 0) { p.newline() } - p.pretty_read(elem1273) + p.pretty_read(elem1367) } } p.dedent() @@ -3822,60 +4073,60 @@ func (p *PrettyPrinter) pretty_epoch_reads(msg []*pb.Read) interface{} { } func (p *PrettyPrinter) pretty_read(msg *pb.Read) interface{} { - flat1286 := p.tryFlat(msg, func() { p.pretty_read(msg) }) - if flat1286 != nil { - p.write(*flat1286) + flat1380 := p.tryFlat(msg, func() { p.pretty_read(msg) }) + if flat1380 != nil { + p.write(*flat1380) return nil } else { _dollar_dollar := msg - var _t1448 *pb.Demand + var _t1545 *pb.Demand if hasProtoField(_dollar_dollar, "demand") { - _t1448 = _dollar_dollar.GetDemand() + _t1545 = _dollar_dollar.GetDemand() } - deconstruct_result1284 := _t1448 - if deconstruct_result1284 != nil { - unwrapped1285 := deconstruct_result1284 - p.pretty_demand(unwrapped1285) + deconstruct_result1378 := _t1545 + if deconstruct_result1378 != nil { + unwrapped1379 := deconstruct_result1378 + p.pretty_demand(unwrapped1379) } else { _dollar_dollar := msg - var _t1449 *pb.Output + var _t1546 *pb.Output if hasProtoField(_dollar_dollar, "output") { - _t1449 = _dollar_dollar.GetOutput() + _t1546 = _dollar_dollar.GetOutput() } - deconstruct_result1282 := _t1449 - if deconstruct_result1282 != nil { - unwrapped1283 := deconstruct_result1282 - p.pretty_output(unwrapped1283) + deconstruct_result1376 := _t1546 + if deconstruct_result1376 != nil { + unwrapped1377 := deconstruct_result1376 + p.pretty_output(unwrapped1377) } else { _dollar_dollar := msg - var _t1450 *pb.WhatIf + var _t1547 *pb.WhatIf if hasProtoField(_dollar_dollar, "what_if") { - _t1450 = _dollar_dollar.GetWhatIf() + _t1547 = _dollar_dollar.GetWhatIf() } - deconstruct_result1280 := _t1450 - if deconstruct_result1280 != nil { - unwrapped1281 := deconstruct_result1280 - p.pretty_what_if(unwrapped1281) + deconstruct_result1374 := _t1547 + if deconstruct_result1374 != nil { + unwrapped1375 := deconstruct_result1374 + p.pretty_what_if(unwrapped1375) } else { _dollar_dollar := msg - var _t1451 *pb.Abort + var _t1548 *pb.Abort if hasProtoField(_dollar_dollar, "abort") { - _t1451 = _dollar_dollar.GetAbort() + _t1548 = _dollar_dollar.GetAbort() } - deconstruct_result1278 := _t1451 - if deconstruct_result1278 != nil { - unwrapped1279 := deconstruct_result1278 - p.pretty_abort(unwrapped1279) + deconstruct_result1372 := _t1548 + if deconstruct_result1372 != nil { + unwrapped1373 := deconstruct_result1372 + p.pretty_abort(unwrapped1373) } else { _dollar_dollar := msg - var _t1452 *pb.Export + var _t1549 *pb.Export if hasProtoField(_dollar_dollar, "export") { - _t1452 = _dollar_dollar.GetExport() + _t1549 = _dollar_dollar.GetExport() } - deconstruct_result1276 := _t1452 - if deconstruct_result1276 != nil { - unwrapped1277 := deconstruct_result1276 - p.pretty_export(unwrapped1277) + deconstruct_result1370 := _t1549 + if deconstruct_result1370 != nil { + unwrapped1371 := deconstruct_result1370 + p.pretty_export(unwrapped1371) } else { panic(ParseError{msg: "No matching rule for read"}) } @@ -3888,19 +4139,19 @@ func (p *PrettyPrinter) pretty_read(msg *pb.Read) interface{} { } func (p *PrettyPrinter) pretty_demand(msg *pb.Demand) interface{} { - flat1289 := p.tryFlat(msg, func() { p.pretty_demand(msg) }) - if flat1289 != nil { - p.write(*flat1289) + flat1383 := p.tryFlat(msg, func() { p.pretty_demand(msg) }) + if flat1383 != nil { + p.write(*flat1383) return nil } else { _dollar_dollar := msg - fields1287 := _dollar_dollar.GetRelationId() - unwrapped_fields1288 := fields1287 + fields1381 := _dollar_dollar.GetRelationId() + unwrapped_fields1382 := fields1381 p.write("(") p.write("demand") p.indentSexp() p.newline() - p.pretty_relation_id(unwrapped_fields1288) + p.pretty_relation_id(unwrapped_fields1382) p.dedent() p.write(")") } @@ -3908,23 +4159,23 @@ func (p *PrettyPrinter) pretty_demand(msg *pb.Demand) interface{} { } func (p *PrettyPrinter) pretty_output(msg *pb.Output) interface{} { - flat1294 := p.tryFlat(msg, func() { p.pretty_output(msg) }) - if flat1294 != nil { - p.write(*flat1294) + flat1388 := p.tryFlat(msg, func() { p.pretty_output(msg) }) + if flat1388 != nil { + p.write(*flat1388) return nil } else { _dollar_dollar := msg - fields1290 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationId()} - unwrapped_fields1291 := fields1290 + fields1384 := []interface{}{_dollar_dollar.GetName(), _dollar_dollar.GetRelationId()} + unwrapped_fields1385 := fields1384 p.write("(") p.write("output") p.indentSexp() p.newline() - field1292 := unwrapped_fields1291[0].(string) - p.pretty_name(field1292) + field1386 := unwrapped_fields1385[0].(string) + p.pretty_name(field1386) p.newline() - field1293 := unwrapped_fields1291[1].(*pb.RelationId) - p.pretty_relation_id(field1293) + field1387 := unwrapped_fields1385[1].(*pb.RelationId) + p.pretty_relation_id(field1387) p.dedent() p.write(")") } @@ -3932,23 +4183,23 @@ func (p *PrettyPrinter) pretty_output(msg *pb.Output) interface{} { } func (p *PrettyPrinter) pretty_what_if(msg *pb.WhatIf) interface{} { - flat1299 := p.tryFlat(msg, func() { p.pretty_what_if(msg) }) - if flat1299 != nil { - p.write(*flat1299) + flat1393 := p.tryFlat(msg, func() { p.pretty_what_if(msg) }) + if flat1393 != nil { + p.write(*flat1393) return nil } else { _dollar_dollar := msg - fields1295 := []interface{}{_dollar_dollar.GetBranch(), _dollar_dollar.GetEpoch()} - unwrapped_fields1296 := fields1295 + fields1389 := []interface{}{_dollar_dollar.GetBranch(), _dollar_dollar.GetEpoch()} + unwrapped_fields1390 := fields1389 p.write("(") p.write("what_if") p.indentSexp() p.newline() - field1297 := unwrapped_fields1296[0].(string) - p.pretty_name(field1297) + field1391 := unwrapped_fields1390[0].(string) + p.pretty_name(field1391) p.newline() - field1298 := unwrapped_fields1296[1].(*pb.Epoch) - p.pretty_epoch(field1298) + field1392 := unwrapped_fields1390[1].(*pb.Epoch) + p.pretty_epoch(field1392) p.dedent() p.write(")") } @@ -3956,30 +4207,30 @@ func (p *PrettyPrinter) pretty_what_if(msg *pb.WhatIf) interface{} { } func (p *PrettyPrinter) pretty_abort(msg *pb.Abort) interface{} { - flat1305 := p.tryFlat(msg, func() { p.pretty_abort(msg) }) - if flat1305 != nil { - p.write(*flat1305) + flat1399 := p.tryFlat(msg, func() { p.pretty_abort(msg) }) + if flat1399 != nil { + p.write(*flat1399) return nil } else { _dollar_dollar := msg - var _t1453 *string + var _t1550 *string if _dollar_dollar.GetName() != "abort" { - _t1453 = ptr(_dollar_dollar.GetName()) + _t1550 = ptr(_dollar_dollar.GetName()) } - fields1300 := []interface{}{_t1453, _dollar_dollar.GetRelationId()} - unwrapped_fields1301 := fields1300 + fields1394 := []interface{}{_t1550, _dollar_dollar.GetRelationId()} + unwrapped_fields1395 := fields1394 p.write("(") p.write("abort") p.indentSexp() - field1302 := unwrapped_fields1301[0].(*string) - if field1302 != nil { + field1396 := unwrapped_fields1395[0].(*string) + if field1396 != nil { p.newline() - opt_val1303 := *field1302 - p.pretty_name(opt_val1303) + opt_val1397 := *field1396 + p.pretty_name(opt_val1397) } p.newline() - field1304 := unwrapped_fields1301[1].(*pb.RelationId) - p.pretty_relation_id(field1304) + field1398 := unwrapped_fields1395[1].(*pb.RelationId) + p.pretty_relation_id(field1398) p.dedent() p.write(")") } @@ -3987,19 +4238,19 @@ func (p *PrettyPrinter) pretty_abort(msg *pb.Abort) interface{} { } func (p *PrettyPrinter) pretty_export(msg *pb.Export) interface{} { - flat1308 := p.tryFlat(msg, func() { p.pretty_export(msg) }) - if flat1308 != nil { - p.write(*flat1308) + flat1402 := p.tryFlat(msg, func() { p.pretty_export(msg) }) + if flat1402 != nil { + p.write(*flat1402) return nil } else { _dollar_dollar := msg - fields1306 := _dollar_dollar.GetCsvConfig() - unwrapped_fields1307 := fields1306 + fields1400 := _dollar_dollar.GetCsvConfig() + unwrapped_fields1401 := fields1400 p.write("(") p.write("export") p.indentSexp() p.newline() - p.pretty_export_csv_config(unwrapped_fields1307) + p.pretty_export_csv_config(unwrapped_fields1401) p.dedent() p.write(")") } @@ -4007,55 +4258,55 @@ func (p *PrettyPrinter) pretty_export(msg *pb.Export) interface{} { } func (p *PrettyPrinter) pretty_export_csv_config(msg *pb.ExportCSVConfig) interface{} { - flat1319 := p.tryFlat(msg, func() { p.pretty_export_csv_config(msg) }) - if flat1319 != nil { - p.write(*flat1319) + flat1413 := p.tryFlat(msg, func() { p.pretty_export_csv_config(msg) }) + if flat1413 != nil { + p.write(*flat1413) return nil } else { _dollar_dollar := msg - var _t1454 []interface{} + var _t1551 []interface{} if int64(len(_dollar_dollar.GetDataColumns())) == 0 { - _t1454 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetCsvSource(), _dollar_dollar.GetCsvConfig()} + _t1551 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetCsvSource(), _dollar_dollar.GetCsvConfig()} } - deconstruct_result1314 := _t1454 - if deconstruct_result1314 != nil { - unwrapped1315 := deconstruct_result1314 + deconstruct_result1408 := _t1551 + if deconstruct_result1408 != nil { + unwrapped1409 := deconstruct_result1408 p.write("(") p.write("export_csv_config_v2") p.indentSexp() p.newline() - field1316 := unwrapped1315[0].(string) - p.pretty_export_csv_path(field1316) + field1410 := unwrapped1409[0].(string) + p.pretty_export_csv_path(field1410) p.newline() - field1317 := unwrapped1315[1].(*pb.ExportCSVSource) - p.pretty_export_csv_source(field1317) + field1411 := unwrapped1409[1].(*pb.ExportCSVSource) + p.pretty_export_csv_source(field1411) p.newline() - field1318 := unwrapped1315[2].(*pb.CSVConfig) - p.pretty_csv_config(field1318) + field1412 := unwrapped1409[2].(*pb.CSVConfig) + p.pretty_csv_config(field1412) p.dedent() p.write(")") } else { _dollar_dollar := msg - var _t1455 []interface{} + var _t1552 []interface{} if int64(len(_dollar_dollar.GetDataColumns())) != 0 { - _t1456 := p.deconstruct_export_csv_config(_dollar_dollar) - _t1455 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetDataColumns(), _t1456} + _t1553 := p.deconstruct_export_csv_config(_dollar_dollar) + _t1552 = []interface{}{_dollar_dollar.GetPath(), _dollar_dollar.GetDataColumns(), _t1553} } - deconstruct_result1309 := _t1455 - if deconstruct_result1309 != nil { - unwrapped1310 := deconstruct_result1309 + deconstruct_result1403 := _t1552 + if deconstruct_result1403 != nil { + unwrapped1404 := deconstruct_result1403 p.write("(") p.write("export_csv_config") p.indentSexp() p.newline() - field1311 := unwrapped1310[0].(string) - p.pretty_export_csv_path(field1311) + field1405 := unwrapped1404[0].(string) + p.pretty_export_csv_path(field1405) p.newline() - field1312 := unwrapped1310[1].([]*pb.ExportCSVColumn) - p.pretty_export_csv_columns_list(field1312) + field1406 := unwrapped1404[1].([]*pb.ExportCSVColumn) + p.pretty_export_csv_columns_list(field1406) p.newline() - field1313 := unwrapped1310[2].([][]interface{}) - p.pretty_config_dict(field1313) + field1407 := unwrapped1404[2].([][]interface{}) + p.pretty_config_dict(field1407) p.dedent() p.write(")") } else { @@ -4067,17 +4318,17 @@ func (p *PrettyPrinter) pretty_export_csv_config(msg *pb.ExportCSVConfig) interf } func (p *PrettyPrinter) pretty_export_csv_path(msg string) interface{} { - flat1321 := p.tryFlat(msg, func() { p.pretty_export_csv_path(msg) }) - if flat1321 != nil { - p.write(*flat1321) + flat1415 := p.tryFlat(msg, func() { p.pretty_export_csv_path(msg) }) + if flat1415 != nil { + p.write(*flat1415) return nil } else { - fields1320 := msg + fields1414 := msg p.write("(") p.write("path") p.indentSexp() p.newline() - p.write(p.formatStringValue(fields1320)) + p.write(p.formatStringValue(fields1414)) p.dedent() p.write(")") } @@ -4085,47 +4336,47 @@ func (p *PrettyPrinter) pretty_export_csv_path(msg string) interface{} { } func (p *PrettyPrinter) pretty_export_csv_source(msg *pb.ExportCSVSource) interface{} { - flat1328 := p.tryFlat(msg, func() { p.pretty_export_csv_source(msg) }) - if flat1328 != nil { - p.write(*flat1328) + flat1422 := p.tryFlat(msg, func() { p.pretty_export_csv_source(msg) }) + if flat1422 != nil { + p.write(*flat1422) return nil } else { _dollar_dollar := msg - var _t1457 []*pb.ExportCSVColumn + var _t1554 []*pb.ExportCSVColumn if hasProtoField(_dollar_dollar, "gnf_columns") { - _t1457 = _dollar_dollar.GetGnfColumns().GetColumns() + _t1554 = _dollar_dollar.GetGnfColumns().GetColumns() } - deconstruct_result1324 := _t1457 - if deconstruct_result1324 != nil { - unwrapped1325 := deconstruct_result1324 + deconstruct_result1418 := _t1554 + if deconstruct_result1418 != nil { + unwrapped1419 := deconstruct_result1418 p.write("(") p.write("gnf_columns") p.indentSexp() - if !(len(unwrapped1325) == 0) { + if !(len(unwrapped1419) == 0) { p.newline() - for i1327, elem1326 := range unwrapped1325 { - if (i1327 > 0) { + for i1421, elem1420 := range unwrapped1419 { + if (i1421 > 0) { p.newline() } - p.pretty_export_csv_column(elem1326) + p.pretty_export_csv_column(elem1420) } } p.dedent() p.write(")") } else { _dollar_dollar := msg - var _t1458 *pb.RelationId + var _t1555 *pb.RelationId if hasProtoField(_dollar_dollar, "table_def") { - _t1458 = _dollar_dollar.GetTableDef() + _t1555 = _dollar_dollar.GetTableDef() } - deconstruct_result1322 := _t1458 - if deconstruct_result1322 != nil { - unwrapped1323 := deconstruct_result1322 + deconstruct_result1416 := _t1555 + if deconstruct_result1416 != nil { + unwrapped1417 := deconstruct_result1416 p.write("(") p.write("table_def") p.indentSexp() p.newline() - p.pretty_relation_id(unwrapped1323) + p.pretty_relation_id(unwrapped1417) p.dedent() p.write(")") } else { @@ -4137,23 +4388,23 @@ func (p *PrettyPrinter) pretty_export_csv_source(msg *pb.ExportCSVSource) interf } func (p *PrettyPrinter) pretty_export_csv_column(msg *pb.ExportCSVColumn) interface{} { - flat1333 := p.tryFlat(msg, func() { p.pretty_export_csv_column(msg) }) - if flat1333 != nil { - p.write(*flat1333) + flat1427 := p.tryFlat(msg, func() { p.pretty_export_csv_column(msg) }) + if flat1427 != nil { + p.write(*flat1427) return nil } else { _dollar_dollar := msg - fields1329 := []interface{}{_dollar_dollar.GetColumnName(), _dollar_dollar.GetColumnData()} - unwrapped_fields1330 := fields1329 + fields1423 := []interface{}{_dollar_dollar.GetColumnName(), _dollar_dollar.GetColumnData()} + unwrapped_fields1424 := fields1423 p.write("(") p.write("column") p.indentSexp() p.newline() - field1331 := unwrapped_fields1330[0].(string) - p.write(p.formatStringValue(field1331)) + field1425 := unwrapped_fields1424[0].(string) + p.write(p.formatStringValue(field1425)) p.newline() - field1332 := unwrapped_fields1330[1].(*pb.RelationId) - p.pretty_relation_id(field1332) + field1426 := unwrapped_fields1424[1].(*pb.RelationId) + p.pretty_relation_id(field1426) p.dedent() p.write(")") } @@ -4161,22 +4412,22 @@ func (p *PrettyPrinter) pretty_export_csv_column(msg *pb.ExportCSVColumn) interf } func (p *PrettyPrinter) pretty_export_csv_columns_list(msg []*pb.ExportCSVColumn) interface{} { - flat1337 := p.tryFlat(msg, func() { p.pretty_export_csv_columns_list(msg) }) - if flat1337 != nil { - p.write(*flat1337) + flat1431 := p.tryFlat(msg, func() { p.pretty_export_csv_columns_list(msg) }) + if flat1431 != nil { + p.write(*flat1431) return nil } else { - fields1334 := msg + fields1428 := msg p.write("(") p.write("columns") p.indentSexp() - if !(len(fields1334) == 0) { + if !(len(fields1428) == 0) { p.newline() - for i1336, elem1335 := range fields1334 { - if (i1336 > 0) { + for i1430, elem1429 := range fields1428 { + if (i1430 > 0) { p.newline() } - p.pretty_export_csv_column(elem1335) + p.pretty_export_csv_column(elem1429) } } p.dedent() @@ -4194,8 +4445,8 @@ func (p *PrettyPrinter) pretty_debug_info(msg *pb.DebugInfo) interface{} { for _idx, _rid := range msg.GetIds() { p.newline() p.write("(") - _t1497 := &pb.UInt128Value{Low: _rid.GetIdLow(), High: _rid.GetIdHigh()} - p.pprintDispatch(_t1497) + _t1594 := &pb.UInt128Value{Low: _rid.GetIdLow(), High: _rid.GetIdHigh()} + p.pprintDispatch(_t1594) p.write(" ") p.write(p.formatStringValue(msg.GetOrigNames()[_idx])) p.write(")") @@ -4526,6 +4777,12 @@ func (p *PrettyPrinter) pprintDispatch(msg interface{}) { p.pretty_gnf_columns(m) case *pb.GNFColumn: p.pretty_gnf_column(m) + case *pb.IcebergData: + p.pretty_iceberg_data(m) + case *pb.IcebergLocator: + p.pretty_iceberg_locator(m) + case *pb.IcebergConfig: + p.pretty_iceberg_config(m) case *pb.Undefine: p.pretty_undefine(m) case *pb.Context: 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 95a370d6..cd8ef486 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 @@ -6,15 +6,15 @@ using ProtoBuf: OneOf using ProtoBuf.EnumX: @enumx export DateTimeType, RelationId, Var, FloatType, UInt128Type, Int32Type, Float32Type -export BeTreeConfig, DateTimeValue, DateValue, OrMonoid, CSVLocator, Int128Type -export DecimalType, UnspecifiedType, DateType, MissingType, MissingValue, CSVConfig -export IntType, StringType, Int128Value, UInt128Value, BooleanType, UInt32Type -export DecimalValue, BeTreeLocator, var"#Type", Value, GNFColumn, MinMonoid, SumMonoid -export MaxMonoid, BeTreeInfo, Binding, EDB, Attribute, Term, CSVData, Monoid -export BeTreeRelation, Cast, Pragma, Atom, RelTerm, Data, Primitive, RelAtom, Abstraction -export Algorithm, Assign, Break, Conjunction, Constraint, Def, Disjunction, Exists, FFI -export FunctionalDependency, MonoidDef, MonusDef, Not, Reduce, Script, Upsert, Construct -export Loop, Declaration, Instruction, Formula +export BeTreeConfig, DateTimeValue, IcebergLocator, DateValue, OrMonoid, CSVLocator +export Int128Type, DecimalType, UnspecifiedType, DateType, MissingType, MissingValue +export CSVConfig, IcebergConfig, IntType, StringType, Int128Value, UInt128Value +export BooleanType, UInt32Type, DecimalValue, BeTreeLocator, var"#Type", Value, GNFColumn +export MinMonoid, SumMonoid, MaxMonoid, BeTreeInfo, Binding, EDB, Attribute, Term, CSVData +export IcebergData, Monoid, BeTreeRelation, Cast, Pragma, Atom, RelTerm, Data, Primitive +export RelAtom, Abstraction, Algorithm, Assign, Break, Conjunction, Constraint, Def +export Disjunction, Exists, FFI, FunctionalDependency, MonoidDef, MonusDef, Not, Reduce +export Script, Upsert, Construct, Loop, Declaration, Instruction, Formula abstract type var"##Abstract#Abstraction" end abstract type var"##Abstract#Not" end abstract type var"##Abstract#Break" end @@ -318,6 +318,49 @@ function PB._encoded_size(x::DateTimeValue) return encoded_size end +struct IcebergLocator + table_name::String + namespace::Vector{String} + warehouse::String +end +IcebergLocator(;table_name = "", namespace = Vector{String}(), warehouse = "") = IcebergLocator(table_name, namespace, warehouse) +PB.default_values(::Type{IcebergLocator}) = (;table_name = "", namespace = Vector{String}(), warehouse = "") +PB.field_numbers(::Type{IcebergLocator}) = (;table_name = 1, namespace = 2, warehouse = 3) + +function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:IcebergLocator}, _endpos::Int=0, _group::Bool=false) + table_name = "" + namespace = PB.BufferedVector{String}() + warehouse = "" + while !PB.message_done(d, _endpos, _group) + field_number, wire_type = PB.decode_tag(d) + if field_number == 1 + table_name = PB.decode(d, String) + elseif field_number == 2 + PB.decode!(d, namespace) + elseif field_number == 3 + warehouse = PB.decode(d, String) + else + Base.skip(d, wire_type) + end + end + return IcebergLocator(table_name, namespace[], warehouse) +end + +function PB.encode(e::PB.AbstractProtoEncoder, x::IcebergLocator) + initpos = position(e.io) + !isempty(x.table_name) && PB.encode(e, 1, x.table_name) + !isempty(x.namespace) && PB.encode(e, 2, x.namespace) + !isempty(x.warehouse) && PB.encode(e, 3, x.warehouse) + return position(e.io) - initpos +end +function PB._encoded_size(x::IcebergLocator) + encoded_size = 0 + !isempty(x.table_name) && (encoded_size += PB._encoded_size(x.table_name, 1)) + !isempty(x.namespace) && (encoded_size += PB._encoded_size(x.namespace, 2)) + !isempty(x.warehouse) && (encoded_size += PB._encoded_size(x.warehouse, 3)) + return encoded_size +end + struct DateValue year::Int32 month::Int32 @@ -646,6 +689,55 @@ function PB._encoded_size(x::CSVConfig) return encoded_size end +struct IcebergConfig + catalog_uri::String + scope::String + properties::Dict{String,String} + credentials::Dict{String,String} +end +IcebergConfig(;catalog_uri = "", scope = "", properties = Dict{String,String}(), credentials = Dict{String,String}()) = IcebergConfig(catalog_uri, scope, properties, credentials) +PB.default_values(::Type{IcebergConfig}) = (;catalog_uri = "", scope = "", properties = Dict{String,String}(), credentials = Dict{String,String}()) +PB.field_numbers(::Type{IcebergConfig}) = (;catalog_uri = 1, scope = 2, properties = 3, credentials = 4) + +function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:IcebergConfig}, _endpos::Int=0, _group::Bool=false) + catalog_uri = "" + scope = "" + properties = Dict{String,String}() + credentials = Dict{String,String}() + while !PB.message_done(d, _endpos, _group) + field_number, wire_type = PB.decode_tag(d) + if field_number == 1 + catalog_uri = PB.decode(d, String) + elseif field_number == 2 + scope = PB.decode(d, String) + elseif field_number == 3 + PB.decode!(d, properties) + elseif field_number == 4 + PB.decode!(d, credentials) + else + Base.skip(d, wire_type) + end + end + return IcebergConfig(catalog_uri, scope, properties, credentials) +end + +function PB.encode(e::PB.AbstractProtoEncoder, x::IcebergConfig) + initpos = position(e.io) + !isempty(x.catalog_uri) && PB.encode(e, 1, x.catalog_uri) + !isempty(x.scope) && PB.encode(e, 2, x.scope) + !isempty(x.properties) && PB.encode(e, 3, x.properties) + !isempty(x.credentials) && PB.encode(e, 4, x.credentials) + return position(e.io) - initpos +end +function PB._encoded_size(x::IcebergConfig) + encoded_size = 0 + !isempty(x.catalog_uri) && (encoded_size += PB._encoded_size(x.catalog_uri, 1)) + !isempty(x.scope) && (encoded_size += PB._encoded_size(x.scope, 2)) + !isempty(x.properties) && (encoded_size += PB._encoded_size(x.properties, 3)) + !isempty(x.credentials) && (encoded_size += PB._encoded_size(x.credentials, 4)) + return encoded_size +end + struct IntType end function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:IntType}, _endpos::Int=0, _group::Bool=false) @@ -1525,6 +1617,55 @@ function PB._encoded_size(x::CSVData) return encoded_size end +struct IcebergData + locator::Union{Nothing,IcebergLocator} + config::Union{Nothing,IcebergConfig} + columns::Vector{GNFColumn} + to_snapshot::String +end +IcebergData(;locator = nothing, config = nothing, columns = Vector{GNFColumn}(), to_snapshot = "") = IcebergData(locator, config, columns, to_snapshot) +PB.default_values(::Type{IcebergData}) = (;locator = nothing, config = nothing, columns = Vector{GNFColumn}(), to_snapshot = "") +PB.field_numbers(::Type{IcebergData}) = (;locator = 1, config = 2, columns = 3, to_snapshot = 4) + +function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:IcebergData}, _endpos::Int=0, _group::Bool=false) + locator = Ref{Union{Nothing,IcebergLocator}}(nothing) + config = Ref{Union{Nothing,IcebergConfig}}(nothing) + columns = PB.BufferedVector{GNFColumn}() + to_snapshot = "" + while !PB.message_done(d, _endpos, _group) + field_number, wire_type = PB.decode_tag(d) + if field_number == 1 + PB.decode!(d, locator) + elseif field_number == 2 + PB.decode!(d, config) + elseif field_number == 3 + PB.decode!(d, columns) + elseif field_number == 4 + to_snapshot = PB.decode(d, String) + else + Base.skip(d, wire_type) + end + end + return IcebergData(locator[], config[], columns[], to_snapshot) +end + +function PB.encode(e::PB.AbstractProtoEncoder, x::IcebergData) + initpos = position(e.io) + !isnothing(x.locator) && PB.encode(e, 1, x.locator) + !isnothing(x.config) && PB.encode(e, 2, x.config) + !isempty(x.columns) && PB.encode(e, 3, x.columns) + !isempty(x.to_snapshot) && PB.encode(e, 4, x.to_snapshot) + return position(e.io) - initpos +end +function PB._encoded_size(x::IcebergData) + encoded_size = 0 + !isnothing(x.locator) && (encoded_size += PB._encoded_size(x.locator, 1)) + !isnothing(x.config) && (encoded_size += PB._encoded_size(x.config, 2)) + !isempty(x.columns) && (encoded_size += PB._encoded_size(x.columns, 3)) + !isempty(x.to_snapshot) && (encoded_size += PB._encoded_size(x.to_snapshot, 4)) + return encoded_size +end + struct Monoid value::Union{Nothing,OneOf{<:Union{OrMonoid,MinMonoid,MaxMonoid,SumMonoid}}} end @@ -1778,14 +1919,14 @@ function PB._encoded_size(x::RelTerm) end struct Data - data_type::Union{Nothing,OneOf{<:Union{EDB,BeTreeRelation,CSVData}}} + data_type::Union{Nothing,OneOf{<:Union{EDB,BeTreeRelation,CSVData,IcebergData}}} end Data(;data_type = nothing) = Data(data_type) PB.oneof_field_types(::Type{Data}) = (; - data_type = (;edb=EDB, betree_relation=BeTreeRelation, csv_data=CSVData), + data_type = (;edb=EDB, betree_relation=BeTreeRelation, csv_data=CSVData, iceberg_data=IcebergData), ) -PB.default_values(::Type{Data}) = (;edb = nothing, betree_relation = nothing, csv_data = nothing) -PB.field_numbers(::Type{Data}) = (;edb = 1, betree_relation = 2, csv_data = 3) +PB.default_values(::Type{Data}) = (;edb = nothing, betree_relation = nothing, csv_data = nothing, iceberg_data = nothing) +PB.field_numbers(::Type{Data}) = (;edb = 1, betree_relation = 2, csv_data = 3, iceberg_data = 4) function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:Data}, _endpos::Int=0, _group::Bool=false) data_type = nothing @@ -1797,6 +1938,8 @@ function PB.decode(d::PB.AbstractProtoDecoder, ::Type{<:Data}, _endpos::Int=0, _ data_type = OneOf(:betree_relation, PB.decode(d, Ref{BeTreeRelation})) elseif field_number == 3 data_type = OneOf(:csv_data, PB.decode(d, Ref{CSVData})) + elseif field_number == 4 + data_type = OneOf(:iceberg_data, PB.decode(d, Ref{IcebergData})) else Base.skip(d, wire_type) end @@ -1813,6 +1956,8 @@ function PB.encode(e::PB.AbstractProtoEncoder, x::Data) PB.encode(e, 2, x.data_type[]::BeTreeRelation) elseif x.data_type.name === :csv_data PB.encode(e, 3, x.data_type[]::CSVData) + elseif x.data_type.name === :iceberg_data + PB.encode(e, 4, x.data_type[]::IcebergData) end return position(e.io) - initpos end @@ -1825,6 +1970,8 @@ function PB._encoded_size(x::Data) encoded_size += PB._encoded_size(x.data_type[]::BeTreeRelation, 2) elseif x.data_type.name === :csv_data encoded_size += PB._encoded_size(x.data_type[]::CSVData, 3) + elseif x.data_type.name === :iceberg_data + encoded_size += PB._encoded_size(x.data_type[]::IcebergData, 4) end return encoded_size end diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl b/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl index 9a02e0b0..50d80df2 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/parser.jl @@ -365,7 +365,7 @@ function _extract_value_int32(parser::ParserState, value::Union{Nothing, Proto.V if (!isnothing(value) && _has_proto_field(value, Symbol("int32_value"))) return _get_oneof_field(value, :int32_value) else - _t1812 = nothing + _t1902 = nothing end return Int32(default) end @@ -374,7 +374,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 - _t1813 = nothing + _t1903 = nothing end return default end @@ -383,7 +383,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 - _t1814 = nothing + _t1904 = nothing end return default end @@ -392,7 +392,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 - _t1815 = nothing + _t1905 = nothing end return default end @@ -401,7 +401,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 - _t1816 = nothing + _t1906 = nothing end return default end @@ -410,7 +410,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 - _t1817 = nothing + _t1907 = nothing end return nothing end @@ -419,7 +419,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 - _t1818 = nothing + _t1908 = nothing end return nothing end @@ -428,7 +428,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 - _t1819 = nothing + _t1909 = nothing end return nothing end @@ -437,72 +437,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 - _t1820 = nothing + _t1910 = nothing end return nothing end function construct_csv_config(parser::ParserState, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.CSVConfig config = Dict(config_dict) - _t1821 = _extract_value_int32(parser, get(config, "csv_header_row", nothing), 1) - header_row = _t1821 - _t1822 = _extract_value_int64(parser, get(config, "csv_skip", nothing), 0) - skip = _t1822 - _t1823 = _extract_value_string(parser, get(config, "csv_new_line", nothing), "") - new_line = _t1823 - _t1824 = _extract_value_string(parser, get(config, "csv_delimiter", nothing), ",") - delimiter = _t1824 - _t1825 = _extract_value_string(parser, get(config, "csv_quotechar", nothing), "\"") - quotechar = _t1825 - _t1826 = _extract_value_string(parser, get(config, "csv_escapechar", nothing), "\"") - escapechar = _t1826 - _t1827 = _extract_value_string(parser, get(config, "csv_comment", nothing), "") - comment = _t1827 - _t1828 = _extract_value_string_list(parser, get(config, "csv_missing_strings", nothing), String[]) - missing_strings = _t1828 - _t1829 = _extract_value_string(parser, get(config, "csv_decimal_separator", nothing), ".") - decimal_separator = _t1829 - _t1830 = _extract_value_string(parser, get(config, "csv_encoding", nothing), "utf-8") - encoding = _t1830 - _t1831 = _extract_value_string(parser, get(config, "csv_compression", nothing), "auto") - compression = _t1831 - _t1832 = _extract_value_int64(parser, get(config, "csv_partition_size_mb", nothing), 0) - partition_size_mb = _t1832 - _t1833 = 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 _t1833 + _t1911 = _extract_value_int32(parser, get(config, "csv_header_row", nothing), 1) + header_row = _t1911 + _t1912 = _extract_value_int64(parser, get(config, "csv_skip", nothing), 0) + skip = _t1912 + _t1913 = _extract_value_string(parser, get(config, "csv_new_line", nothing), "") + new_line = _t1913 + _t1914 = _extract_value_string(parser, get(config, "csv_delimiter", nothing), ",") + delimiter = _t1914 + _t1915 = _extract_value_string(parser, get(config, "csv_quotechar", nothing), "\"") + quotechar = _t1915 + _t1916 = _extract_value_string(parser, get(config, "csv_escapechar", nothing), "\"") + escapechar = _t1916 + _t1917 = _extract_value_string(parser, get(config, "csv_comment", nothing), "") + comment = _t1917 + _t1918 = _extract_value_string_list(parser, get(config, "csv_missing_strings", nothing), String[]) + missing_strings = _t1918 + _t1919 = _extract_value_string(parser, get(config, "csv_decimal_separator", nothing), ".") + decimal_separator = _t1919 + _t1920 = _extract_value_string(parser, get(config, "csv_encoding", nothing), "utf-8") + encoding = _t1920 + _t1921 = _extract_value_string(parser, get(config, "csv_compression", nothing), "auto") + compression = _t1921 + _t1922 = _extract_value_int64(parser, get(config, "csv_partition_size_mb", nothing), 0) + partition_size_mb = _t1922 + _t1923 = 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 _t1923 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) - _t1834 = _try_extract_value_float64(parser, get(config, "betree_config_epsilon", nothing)) - epsilon = _t1834 - _t1835 = _try_extract_value_int64(parser, get(config, "betree_config_max_pivots", nothing)) - max_pivots = _t1835 - _t1836 = _try_extract_value_int64(parser, get(config, "betree_config_max_deltas", nothing)) - max_deltas = _t1836 - _t1837 = _try_extract_value_int64(parser, get(config, "betree_config_max_leaf", nothing)) - max_leaf = _t1837 - _t1838 = Proto.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) - storage_config = _t1838 - _t1839 = _try_extract_value_uint128(parser, get(config, "betree_locator_root_pageid", nothing)) - root_pageid = _t1839 - _t1840 = _try_extract_value_bytes(parser, get(config, "betree_locator_inline_data", nothing)) - inline_data = _t1840 - _t1841 = _try_extract_value_int64(parser, get(config, "betree_locator_element_count", nothing)) - element_count = _t1841 - _t1842 = _try_extract_value_int64(parser, get(config, "betree_locator_tree_height", nothing)) - tree_height = _t1842 - _t1843 = 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 = _t1843 - _t1844 = Proto.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) - return _t1844 + _t1924 = _try_extract_value_float64(parser, get(config, "betree_config_epsilon", nothing)) + epsilon = _t1924 + _t1925 = _try_extract_value_int64(parser, get(config, "betree_config_max_pivots", nothing)) + max_pivots = _t1925 + _t1926 = _try_extract_value_int64(parser, get(config, "betree_config_max_deltas", nothing)) + max_deltas = _t1926 + _t1927 = _try_extract_value_int64(parser, get(config, "betree_config_max_leaf", nothing)) + max_leaf = _t1927 + _t1928 = Proto.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) + storage_config = _t1928 + _t1929 = _try_extract_value_uint128(parser, get(config, "betree_locator_root_pageid", nothing)) + root_pageid = _t1929 + _t1930 = _try_extract_value_bytes(parser, get(config, "betree_locator_inline_data", nothing)) + inline_data = _t1930 + _t1931 = _try_extract_value_int64(parser, get(config, "betree_locator_element_count", nothing)) + element_count = _t1931 + _t1932 = _try_extract_value_int64(parser, get(config, "betree_locator_tree_height", nothing)) + tree_height = _t1932 + _t1933 = 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 = _t1933 + _t1934 = Proto.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) + return _t1934 end function default_configure(parser::ParserState)::Proto.Configure - _t1845 = Proto.IVMConfig(level=Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) - ivm_config = _t1845 - _t1846 = Proto.Configure(semantics_version=0, ivm_config=ivm_config) - return _t1846 + _t1935 = Proto.IVMConfig(level=Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) + ivm_config = _t1935 + _t1936 = Proto.Configure(semantics_version=0, ivm_config=ivm_config) + return _t1936 end function construct_configure(parser::ParserState, config_dict::Vector{Tuple{String, Proto.Value}})::Proto.Configure @@ -524,3297 +524,3465 @@ function construct_configure(parser::ParserState, config_dict::Vector{Tuple{Stri end end end - _t1847 = Proto.IVMConfig(level=maintenance_level) - ivm_config = _t1847 - _t1848 = _extract_value_int64(parser, get(config, "semantics_version", nothing), 0) - semantics_version = _t1848 - _t1849 = Proto.Configure(semantics_version=semantics_version, ivm_config=ivm_config) - return _t1849 + _t1937 = Proto.IVMConfig(level=maintenance_level) + ivm_config = _t1937 + _t1938 = _extract_value_int64(parser, get(config, "semantics_version", nothing), 0) + semantics_version = _t1938 + _t1939 = Proto.Configure(semantics_version=semantics_version, ivm_config=ivm_config) + return _t1939 end 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) - _t1850 = _extract_value_int64(parser, get(config, "partition_size", nothing), 0) - partition_size = _t1850 - _t1851 = _extract_value_string(parser, get(config, "compression", nothing), "") - compression = _t1851 - _t1852 = _extract_value_boolean(parser, get(config, "syntax_header_row", nothing), true) - syntax_header_row = _t1852 - _t1853 = _extract_value_string(parser, get(config, "syntax_missing_string", nothing), "") - syntax_missing_string = _t1853 - _t1854 = _extract_value_string(parser, get(config, "syntax_delim", nothing), ",") - syntax_delim = _t1854 - _t1855 = _extract_value_string(parser, get(config, "syntax_quotechar", nothing), "\"") - syntax_quotechar = _t1855 - _t1856 = _extract_value_string(parser, get(config, "syntax_escapechar", nothing), "\\") - syntax_escapechar = _t1856 - _t1857 = 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 _t1857 + _t1940 = _extract_value_int64(parser, get(config, "partition_size", nothing), 0) + partition_size = _t1940 + _t1941 = _extract_value_string(parser, get(config, "compression", nothing), "") + compression = _t1941 + _t1942 = _extract_value_boolean(parser, get(config, "syntax_header_row", nothing), true) + syntax_header_row = _t1942 + _t1943 = _extract_value_string(parser, get(config, "syntax_missing_string", nothing), "") + syntax_missing_string = _t1943 + _t1944 = _extract_value_string(parser, get(config, "syntax_delim", nothing), ",") + syntax_delim = _t1944 + _t1945 = _extract_value_string(parser, get(config, "syntax_quotechar", nothing), "\"") + syntax_quotechar = _t1945 + _t1946 = _extract_value_string(parser, get(config, "syntax_escapechar", nothing), "\\") + syntax_escapechar = _t1946 + _t1947 = 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 _t1947 end function construct_export_csv_config_with_source(parser::ParserState, path::String, csv_source::Proto.ExportCSVSource, csv_config::Proto.CSVConfig)::Proto.ExportCSVConfig - _t1858 = Proto.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) - return _t1858 + _t1948 = Proto.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) + return _t1948 +end + +function construct_iceberg_config(parser::ParserState, catalog_uri::String, scope::Union{Nothing, String}, properties::Union{Nothing, Vector{Tuple{String, String}}}, credentials::Union{Nothing, Vector{Tuple{String, String}}})::Proto.IcebergConfig + props = Dict((!isnothing(properties) ? properties : Tuple{String, String}[])) + creds = Dict((!isnothing(credentials) ? credentials : Tuple{String, String}[])) + _t1949 = Proto.IcebergConfig(catalog_uri=catalog_uri, scope=(!isnothing(scope) ? scope : ""), properties=props, credentials=creds) + return _t1949 end # --- Parse functions --- function parse_transaction(parser::ParserState)::Proto.Transaction - span_start584 = span_start(parser) + span_start618 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "transaction") if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "configure", 1)) - _t1157 = parse_configure(parser) - _t1156 = _t1157 + _t1225 = parse_configure(parser) + _t1224 = _t1225 else - _t1156 = nothing + _t1224 = nothing end - configure578 = _t1156 + configure612 = _t1224 if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "sync", 1)) - _t1159 = parse_sync(parser) - _t1158 = _t1159 + _t1227 = parse_sync(parser) + _t1226 = _t1227 else - _t1158 = nothing + _t1226 = nothing end - sync579 = _t1158 - xs580 = Proto.Epoch[] - cond581 = match_lookahead_literal(parser, "(", 0) - while cond581 - _t1160 = parse_epoch(parser) - item582 = _t1160 - push!(xs580, item582) - cond581 = match_lookahead_literal(parser, "(", 0) + sync613 = _t1226 + xs614 = Proto.Epoch[] + cond615 = match_lookahead_literal(parser, "(", 0) + while cond615 + _t1228 = parse_epoch(parser) + item616 = _t1228 + push!(xs614, item616) + cond615 = match_lookahead_literal(parser, "(", 0) end - epochs583 = xs580 + epochs617 = xs614 consume_literal!(parser, ")") - _t1161 = default_configure(parser) - _t1162 = Proto.Transaction(epochs=epochs583, configure=(!isnothing(configure578) ? configure578 : _t1161), sync=sync579) - result585 = _t1162 - record_span!(parser, span_start584, "Transaction") - return result585 + _t1229 = default_configure(parser) + _t1230 = Proto.Transaction(epochs=epochs617, configure=(!isnothing(configure612) ? configure612 : _t1229), sync=sync613) + result619 = _t1230 + record_span!(parser, span_start618, "Transaction") + return result619 end function parse_configure(parser::ParserState)::Proto.Configure - span_start587 = span_start(parser) + span_start621 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "configure") - _t1163 = parse_config_dict(parser) - config_dict586 = _t1163 + _t1231 = parse_config_dict(parser) + config_dict620 = _t1231 consume_literal!(parser, ")") - _t1164 = construct_configure(parser, config_dict586) - result588 = _t1164 - record_span!(parser, span_start587, "Configure") - return result588 + _t1232 = construct_configure(parser, config_dict620) + result622 = _t1232 + record_span!(parser, span_start621, "Configure") + return result622 end function parse_config_dict(parser::ParserState)::Vector{Tuple{String, Proto.Value}} consume_literal!(parser, "{") - xs589 = Tuple{String, Proto.Value}[] - cond590 = match_lookahead_literal(parser, ":", 0) - while cond590 - _t1165 = parse_config_key_value(parser) - item591 = _t1165 - push!(xs589, item591) - cond590 = match_lookahead_literal(parser, ":", 0) - end - config_key_values592 = xs589 + xs623 = Tuple{String, Proto.Value}[] + cond624 = match_lookahead_literal(parser, ":", 0) + while cond624 + _t1233 = parse_config_key_value(parser) + item625 = _t1233 + push!(xs623, item625) + cond624 = match_lookahead_literal(parser, ":", 0) + end + config_key_values626 = xs623 consume_literal!(parser, "}") - return config_key_values592 + return config_key_values626 end function parse_config_key_value(parser::ParserState)::Tuple{String, Proto.Value} consume_literal!(parser, ":") - symbol593 = consume_terminal!(parser, "SYMBOL") - _t1166 = parse_value(parser) - value594 = _t1166 - return (symbol593, value594,) + symbol627 = consume_terminal!(parser, "SYMBOL") + _t1234 = parse_value(parser) + value628 = _t1234 + return (symbol627, value628,) end function parse_value(parser::ParserState)::Proto.Value - span_start608 = span_start(parser) + span_start642 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1167 = 9 + _t1235 = 9 else if match_lookahead_literal(parser, "missing", 0) - _t1168 = 8 + _t1236 = 8 else if match_lookahead_literal(parser, "false", 0) - _t1169 = 9 + _t1237 = 9 else if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "datetime", 1) - _t1171 = 1 + _t1239 = 1 else if match_lookahead_literal(parser, "date", 1) - _t1172 = 0 + _t1240 = 0 else - _t1172 = -1 + _t1240 = -1 end - _t1171 = _t1172 + _t1239 = _t1240 end - _t1170 = _t1171 + _t1238 = _t1239 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1173 = 12 + _t1241 = 12 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1174 = 5 + _t1242 = 5 else if match_lookahead_terminal(parser, "STRING", 0) - _t1175 = 2 + _t1243 = 2 else if match_lookahead_terminal(parser, "INT32", 0) - _t1176 = 10 + _t1244 = 10 else if match_lookahead_terminal(parser, "INT128", 0) - _t1177 = 6 + _t1245 = 6 else if match_lookahead_terminal(parser, "INT", 0) - _t1178 = 3 + _t1246 = 3 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1179 = 11 + _t1247 = 11 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1180 = 4 + _t1248 = 4 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1181 = 7 + _t1249 = 7 else - _t1181 = -1 + _t1249 = -1 end - _t1180 = _t1181 + _t1248 = _t1249 end - _t1179 = _t1180 + _t1247 = _t1248 end - _t1178 = _t1179 + _t1246 = _t1247 end - _t1177 = _t1178 + _t1245 = _t1246 end - _t1176 = _t1177 + _t1244 = _t1245 end - _t1175 = _t1176 + _t1243 = _t1244 end - _t1174 = _t1175 + _t1242 = _t1243 end - _t1173 = _t1174 + _t1241 = _t1242 end - _t1170 = _t1173 + _t1238 = _t1241 end - _t1169 = _t1170 + _t1237 = _t1238 end - _t1168 = _t1169 + _t1236 = _t1237 end - _t1167 = _t1168 - end - prediction595 = _t1167 - if prediction595 == 12 - uint32607 = consume_terminal!(parser, "UINT32") - _t1183 = Proto.Value(value=OneOf(:uint32_value, uint32607)) - _t1182 = _t1183 - else - if prediction595 == 11 - float32606 = consume_terminal!(parser, "FLOAT32") - _t1185 = Proto.Value(value=OneOf(:float32_value, float32606)) - _t1184 = _t1185 + _t1235 = _t1236 + end + prediction629 = _t1235 + if prediction629 == 12 + uint32641 = consume_terminal!(parser, "UINT32") + _t1251 = Proto.Value(value=OneOf(:uint32_value, uint32641)) + _t1250 = _t1251 + else + if prediction629 == 11 + float32640 = consume_terminal!(parser, "FLOAT32") + _t1253 = Proto.Value(value=OneOf(:float32_value, float32640)) + _t1252 = _t1253 else - if prediction595 == 10 - int32605 = consume_terminal!(parser, "INT32") - _t1187 = Proto.Value(value=OneOf(:int32_value, int32605)) - _t1186 = _t1187 + if prediction629 == 10 + int32639 = consume_terminal!(parser, "INT32") + _t1255 = Proto.Value(value=OneOf(:int32_value, int32639)) + _t1254 = _t1255 else - if prediction595 == 9 - _t1189 = parse_boolean_value(parser) - boolean_value604 = _t1189 - _t1190 = Proto.Value(value=OneOf(:boolean_value, boolean_value604)) - _t1188 = _t1190 + if prediction629 == 9 + _t1257 = parse_boolean_value(parser) + boolean_value638 = _t1257 + _t1258 = Proto.Value(value=OneOf(:boolean_value, boolean_value638)) + _t1256 = _t1258 else - if prediction595 == 8 + if prediction629 == 8 consume_literal!(parser, "missing") - _t1192 = Proto.MissingValue() - _t1193 = Proto.Value(value=OneOf(:missing_value, _t1192)) - _t1191 = _t1193 + _t1260 = Proto.MissingValue() + _t1261 = Proto.Value(value=OneOf(:missing_value, _t1260)) + _t1259 = _t1261 else - if prediction595 == 7 - decimal603 = consume_terminal!(parser, "DECIMAL") - _t1195 = Proto.Value(value=OneOf(:decimal_value, decimal603)) - _t1194 = _t1195 + if prediction629 == 7 + decimal637 = consume_terminal!(parser, "DECIMAL") + _t1263 = Proto.Value(value=OneOf(:decimal_value, decimal637)) + _t1262 = _t1263 else - if prediction595 == 6 - int128602 = consume_terminal!(parser, "INT128") - _t1197 = Proto.Value(value=OneOf(:int128_value, int128602)) - _t1196 = _t1197 + if prediction629 == 6 + int128636 = consume_terminal!(parser, "INT128") + _t1265 = Proto.Value(value=OneOf(:int128_value, int128636)) + _t1264 = _t1265 else - if prediction595 == 5 - uint128601 = consume_terminal!(parser, "UINT128") - _t1199 = Proto.Value(value=OneOf(:uint128_value, uint128601)) - _t1198 = _t1199 + if prediction629 == 5 + uint128635 = consume_terminal!(parser, "UINT128") + _t1267 = Proto.Value(value=OneOf(:uint128_value, uint128635)) + _t1266 = _t1267 else - if prediction595 == 4 - float600 = consume_terminal!(parser, "FLOAT") - _t1201 = Proto.Value(value=OneOf(:float_value, float600)) - _t1200 = _t1201 + if prediction629 == 4 + float634 = consume_terminal!(parser, "FLOAT") + _t1269 = Proto.Value(value=OneOf(:float_value, float634)) + _t1268 = _t1269 else - if prediction595 == 3 - int599 = consume_terminal!(parser, "INT") - _t1203 = Proto.Value(value=OneOf(:int_value, int599)) - _t1202 = _t1203 + if prediction629 == 3 + int633 = consume_terminal!(parser, "INT") + _t1271 = Proto.Value(value=OneOf(:int_value, int633)) + _t1270 = _t1271 else - if prediction595 == 2 - string598 = consume_terminal!(parser, "STRING") - _t1205 = Proto.Value(value=OneOf(:string_value, string598)) - _t1204 = _t1205 + if prediction629 == 2 + string632 = consume_terminal!(parser, "STRING") + _t1273 = Proto.Value(value=OneOf(:string_value, string632)) + _t1272 = _t1273 else - if prediction595 == 1 - _t1207 = parse_datetime(parser) - datetime597 = _t1207 - _t1208 = Proto.Value(value=OneOf(:datetime_value, datetime597)) - _t1206 = _t1208 + if prediction629 == 1 + _t1275 = parse_datetime(parser) + datetime631 = _t1275 + _t1276 = Proto.Value(value=OneOf(:datetime_value, datetime631)) + _t1274 = _t1276 else - if prediction595 == 0 - _t1210 = parse_date(parser) - date596 = _t1210 - _t1211 = Proto.Value(value=OneOf(:date_value, date596)) - _t1209 = _t1211 + if prediction629 == 0 + _t1278 = parse_date(parser) + date630 = _t1278 + _t1279 = Proto.Value(value=OneOf(:date_value, date630)) + _t1277 = _t1279 else throw(ParseError("Unexpected token in value" * ": " * string(lookahead(parser, 0)))) end - _t1206 = _t1209 + _t1274 = _t1277 end - _t1204 = _t1206 + _t1272 = _t1274 end - _t1202 = _t1204 + _t1270 = _t1272 end - _t1200 = _t1202 + _t1268 = _t1270 end - _t1198 = _t1200 + _t1266 = _t1268 end - _t1196 = _t1198 + _t1264 = _t1266 end - _t1194 = _t1196 + _t1262 = _t1264 end - _t1191 = _t1194 + _t1259 = _t1262 end - _t1188 = _t1191 + _t1256 = _t1259 end - _t1186 = _t1188 + _t1254 = _t1256 end - _t1184 = _t1186 + _t1252 = _t1254 end - _t1182 = _t1184 + _t1250 = _t1252 end - result609 = _t1182 - record_span!(parser, span_start608, "Value") - return result609 + result643 = _t1250 + record_span!(parser, span_start642, "Value") + return result643 end function parse_date(parser::ParserState)::Proto.DateValue - span_start613 = span_start(parser) + span_start647 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "date") - int610 = consume_terminal!(parser, "INT") - int_3611 = consume_terminal!(parser, "INT") - int_4612 = consume_terminal!(parser, "INT") + int644 = consume_terminal!(parser, "INT") + int_3645 = consume_terminal!(parser, "INT") + int_4646 = consume_terminal!(parser, "INT") consume_literal!(parser, ")") - _t1212 = Proto.DateValue(year=Int32(int610), month=Int32(int_3611), day=Int32(int_4612)) - result614 = _t1212 - record_span!(parser, span_start613, "DateValue") - return result614 + _t1280 = Proto.DateValue(year=Int32(int644), month=Int32(int_3645), day=Int32(int_4646)) + result648 = _t1280 + record_span!(parser, span_start647, "DateValue") + return result648 end function parse_datetime(parser::ParserState)::Proto.DateTimeValue - span_start622 = span_start(parser) + span_start656 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "datetime") - int615 = consume_terminal!(parser, "INT") - int_3616 = consume_terminal!(parser, "INT") - int_4617 = consume_terminal!(parser, "INT") - int_5618 = consume_terminal!(parser, "INT") - int_6619 = consume_terminal!(parser, "INT") - int_7620 = consume_terminal!(parser, "INT") + int649 = consume_terminal!(parser, "INT") + int_3650 = consume_terminal!(parser, "INT") + int_4651 = consume_terminal!(parser, "INT") + int_5652 = consume_terminal!(parser, "INT") + int_6653 = consume_terminal!(parser, "INT") + int_7654 = consume_terminal!(parser, "INT") if match_lookahead_terminal(parser, "INT", 0) - _t1213 = consume_terminal!(parser, "INT") + _t1281 = consume_terminal!(parser, "INT") else - _t1213 = nothing + _t1281 = nothing end - int_8621 = _t1213 + int_8655 = _t1281 consume_literal!(parser, ")") - _t1214 = Proto.DateTimeValue(year=Int32(int615), month=Int32(int_3616), day=Int32(int_4617), hour=Int32(int_5618), minute=Int32(int_6619), second=Int32(int_7620), microsecond=Int32((!isnothing(int_8621) ? int_8621 : 0))) - result623 = _t1214 - record_span!(parser, span_start622, "DateTimeValue") - return result623 + _t1282 = Proto.DateTimeValue(year=Int32(int649), month=Int32(int_3650), day=Int32(int_4651), hour=Int32(int_5652), minute=Int32(int_6653), second=Int32(int_7654), microsecond=Int32((!isnothing(int_8655) ? int_8655 : 0))) + result657 = _t1282 + record_span!(parser, span_start656, "DateTimeValue") + return result657 end function parse_boolean_value(parser::ParserState)::Bool if match_lookahead_literal(parser, "true", 0) - _t1215 = 0 + _t1283 = 0 else if match_lookahead_literal(parser, "false", 0) - _t1216 = 1 + _t1284 = 1 else - _t1216 = -1 + _t1284 = -1 end - _t1215 = _t1216 + _t1283 = _t1284 end - prediction624 = _t1215 - if prediction624 == 1 + prediction658 = _t1283 + if prediction658 == 1 consume_literal!(parser, "false") - _t1217 = false + _t1285 = false else - if prediction624 == 0 + if prediction658 == 0 consume_literal!(parser, "true") - _t1218 = true + _t1286 = true else throw(ParseError("Unexpected token in boolean_value" * ": " * string(lookahead(parser, 0)))) end - _t1217 = _t1218 + _t1285 = _t1286 end - return _t1217 + return _t1285 end function parse_sync(parser::ParserState)::Proto.Sync - span_start629 = span_start(parser) + span_start663 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "sync") - xs625 = Proto.FragmentId[] - cond626 = match_lookahead_literal(parser, ":", 0) - while cond626 - _t1219 = parse_fragment_id(parser) - item627 = _t1219 - push!(xs625, item627) - cond626 = match_lookahead_literal(parser, ":", 0) + xs659 = Proto.FragmentId[] + cond660 = match_lookahead_literal(parser, ":", 0) + while cond660 + _t1287 = parse_fragment_id(parser) + item661 = _t1287 + push!(xs659, item661) + cond660 = match_lookahead_literal(parser, ":", 0) end - fragment_ids628 = xs625 + fragment_ids662 = xs659 consume_literal!(parser, ")") - _t1220 = Proto.Sync(fragments=fragment_ids628) - result630 = _t1220 - record_span!(parser, span_start629, "Sync") - return result630 + _t1288 = Proto.Sync(fragments=fragment_ids662) + result664 = _t1288 + record_span!(parser, span_start663, "Sync") + return result664 end function parse_fragment_id(parser::ParserState)::Proto.FragmentId - span_start632 = span_start(parser) + span_start666 = span_start(parser) consume_literal!(parser, ":") - symbol631 = consume_terminal!(parser, "SYMBOL") - result633 = Proto.FragmentId(Vector{UInt8}(symbol631)) - record_span!(parser, span_start632, "FragmentId") - return result633 + symbol665 = consume_terminal!(parser, "SYMBOL") + result667 = Proto.FragmentId(Vector{UInt8}(symbol665)) + record_span!(parser, span_start666, "FragmentId") + return result667 end function parse_epoch(parser::ParserState)::Proto.Epoch - span_start636 = span_start(parser) + span_start670 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "epoch") if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "writes", 1)) - _t1222 = parse_epoch_writes(parser) - _t1221 = _t1222 + _t1290 = parse_epoch_writes(parser) + _t1289 = _t1290 else - _t1221 = nothing + _t1289 = nothing end - epoch_writes634 = _t1221 + epoch_writes668 = _t1289 if match_lookahead_literal(parser, "(", 0) - _t1224 = parse_epoch_reads(parser) - _t1223 = _t1224 + _t1292 = parse_epoch_reads(parser) + _t1291 = _t1292 else - _t1223 = nothing + _t1291 = nothing end - epoch_reads635 = _t1223 + epoch_reads669 = _t1291 consume_literal!(parser, ")") - _t1225 = Proto.Epoch(writes=(!isnothing(epoch_writes634) ? epoch_writes634 : Proto.Write[]), reads=(!isnothing(epoch_reads635) ? epoch_reads635 : Proto.Read[])) - result637 = _t1225 - record_span!(parser, span_start636, "Epoch") - return result637 + _t1293 = Proto.Epoch(writes=(!isnothing(epoch_writes668) ? epoch_writes668 : Proto.Write[]), reads=(!isnothing(epoch_reads669) ? epoch_reads669 : Proto.Read[])) + result671 = _t1293 + record_span!(parser, span_start670, "Epoch") + return result671 end function parse_epoch_writes(parser::ParserState)::Vector{Proto.Write} consume_literal!(parser, "(") consume_literal!(parser, "writes") - xs638 = Proto.Write[] - cond639 = match_lookahead_literal(parser, "(", 0) - while cond639 - _t1226 = parse_write(parser) - item640 = _t1226 - push!(xs638, item640) - cond639 = match_lookahead_literal(parser, "(", 0) + xs672 = Proto.Write[] + cond673 = match_lookahead_literal(parser, "(", 0) + while cond673 + _t1294 = parse_write(parser) + item674 = _t1294 + push!(xs672, item674) + cond673 = match_lookahead_literal(parser, "(", 0) end - writes641 = xs638 + writes675 = xs672 consume_literal!(parser, ")") - return writes641 + return writes675 end function parse_write(parser::ParserState)::Proto.Write - span_start647 = span_start(parser) + span_start681 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "undefine", 1) - _t1228 = 1 + _t1296 = 1 else if match_lookahead_literal(parser, "snapshot", 1) - _t1229 = 3 + _t1297 = 3 else if match_lookahead_literal(parser, "define", 1) - _t1230 = 0 + _t1298 = 0 else if match_lookahead_literal(parser, "context", 1) - _t1231 = 2 + _t1299 = 2 else - _t1231 = -1 + _t1299 = -1 end - _t1230 = _t1231 + _t1298 = _t1299 end - _t1229 = _t1230 + _t1297 = _t1298 end - _t1228 = _t1229 + _t1296 = _t1297 end - _t1227 = _t1228 - else - _t1227 = -1 - end - prediction642 = _t1227 - if prediction642 == 3 - _t1233 = parse_snapshot(parser) - snapshot646 = _t1233 - _t1234 = Proto.Write(write_type=OneOf(:snapshot, snapshot646)) - _t1232 = _t1234 - else - if prediction642 == 2 - _t1236 = parse_context(parser) - context645 = _t1236 - _t1237 = Proto.Write(write_type=OneOf(:context, context645)) - _t1235 = _t1237 + _t1295 = _t1296 + else + _t1295 = -1 + end + prediction676 = _t1295 + if prediction676 == 3 + _t1301 = parse_snapshot(parser) + snapshot680 = _t1301 + _t1302 = Proto.Write(write_type=OneOf(:snapshot, snapshot680)) + _t1300 = _t1302 + else + if prediction676 == 2 + _t1304 = parse_context(parser) + context679 = _t1304 + _t1305 = Proto.Write(write_type=OneOf(:context, context679)) + _t1303 = _t1305 else - if prediction642 == 1 - _t1239 = parse_undefine(parser) - undefine644 = _t1239 - _t1240 = Proto.Write(write_type=OneOf(:undefine, undefine644)) - _t1238 = _t1240 + if prediction676 == 1 + _t1307 = parse_undefine(parser) + undefine678 = _t1307 + _t1308 = Proto.Write(write_type=OneOf(:undefine, undefine678)) + _t1306 = _t1308 else - if prediction642 == 0 - _t1242 = parse_define(parser) - define643 = _t1242 - _t1243 = Proto.Write(write_type=OneOf(:define, define643)) - _t1241 = _t1243 + if prediction676 == 0 + _t1310 = parse_define(parser) + define677 = _t1310 + _t1311 = Proto.Write(write_type=OneOf(:define, define677)) + _t1309 = _t1311 else throw(ParseError("Unexpected token in write" * ": " * string(lookahead(parser, 0)))) end - _t1238 = _t1241 + _t1306 = _t1309 end - _t1235 = _t1238 + _t1303 = _t1306 end - _t1232 = _t1235 + _t1300 = _t1303 end - result648 = _t1232 - record_span!(parser, span_start647, "Write") - return result648 + result682 = _t1300 + record_span!(parser, span_start681, "Write") + return result682 end function parse_define(parser::ParserState)::Proto.Define - span_start650 = span_start(parser) + span_start684 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "define") - _t1244 = parse_fragment(parser) - fragment649 = _t1244 + _t1312 = parse_fragment(parser) + fragment683 = _t1312 consume_literal!(parser, ")") - _t1245 = Proto.Define(fragment=fragment649) - result651 = _t1245 - record_span!(parser, span_start650, "Define") - return result651 + _t1313 = Proto.Define(fragment=fragment683) + result685 = _t1313 + record_span!(parser, span_start684, "Define") + return result685 end function parse_fragment(parser::ParserState)::Proto.Fragment - span_start657 = span_start(parser) + span_start691 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "fragment") - _t1246 = parse_new_fragment_id(parser) - new_fragment_id652 = _t1246 - xs653 = Proto.Declaration[] - cond654 = match_lookahead_literal(parser, "(", 0) - while cond654 - _t1247 = parse_declaration(parser) - item655 = _t1247 - push!(xs653, item655) - cond654 = match_lookahead_literal(parser, "(", 0) + _t1314 = parse_new_fragment_id(parser) + new_fragment_id686 = _t1314 + xs687 = Proto.Declaration[] + cond688 = match_lookahead_literal(parser, "(", 0) + while cond688 + _t1315 = parse_declaration(parser) + item689 = _t1315 + push!(xs687, item689) + cond688 = match_lookahead_literal(parser, "(", 0) end - declarations656 = xs653 + declarations690 = xs687 consume_literal!(parser, ")") - result658 = construct_fragment(parser, new_fragment_id652, declarations656) - record_span!(parser, span_start657, "Fragment") - return result658 + result692 = construct_fragment(parser, new_fragment_id686, declarations690) + record_span!(parser, span_start691, "Fragment") + return result692 end function parse_new_fragment_id(parser::ParserState)::Proto.FragmentId - span_start660 = span_start(parser) - _t1248 = parse_fragment_id(parser) - fragment_id659 = _t1248 - start_fragment!(parser, fragment_id659) - result661 = fragment_id659 - record_span!(parser, span_start660, "FragmentId") - return result661 + span_start694 = span_start(parser) + _t1316 = parse_fragment_id(parser) + fragment_id693 = _t1316 + start_fragment!(parser, fragment_id693) + result695 = fragment_id693 + record_span!(parser, span_start694, "FragmentId") + return result695 end function parse_declaration(parser::ParserState)::Proto.Declaration - span_start667 = span_start(parser) + span_start701 = span_start(parser) if match_lookahead_literal(parser, "(", 0) - if match_lookahead_literal(parser, "functional_dependency", 1) - _t1250 = 2 + if match_lookahead_literal(parser, "iceberg_data", 1) + _t1318 = 3 else - if match_lookahead_literal(parser, "edb", 1) - _t1251 = 3 + if match_lookahead_literal(parser, "functional_dependency", 1) + _t1319 = 2 else - if match_lookahead_literal(parser, "def", 1) - _t1252 = 0 + if match_lookahead_literal(parser, "edb", 1) + _t1320 = 3 else - if match_lookahead_literal(parser, "csv_data", 1) - _t1253 = 3 + if match_lookahead_literal(parser, "def", 1) + _t1321 = 0 else - if match_lookahead_literal(parser, "betree_relation", 1) - _t1254 = 3 + if match_lookahead_literal(parser, "csv_data", 1) + _t1322 = 3 else - if match_lookahead_literal(parser, "algorithm", 1) - _t1255 = 1 + if match_lookahead_literal(parser, "betree_relation", 1) + _t1323 = 3 else - _t1255 = -1 + if match_lookahead_literal(parser, "algorithm", 1) + _t1324 = 1 + else + _t1324 = -1 + end + _t1323 = _t1324 end - _t1254 = _t1255 + _t1322 = _t1323 end - _t1253 = _t1254 + _t1321 = _t1322 end - _t1252 = _t1253 + _t1320 = _t1321 end - _t1251 = _t1252 + _t1319 = _t1320 end - _t1250 = _t1251 + _t1318 = _t1319 end - _t1249 = _t1250 - else - _t1249 = -1 - end - prediction662 = _t1249 - if prediction662 == 3 - _t1257 = parse_data(parser) - data666 = _t1257 - _t1258 = Proto.Declaration(declaration_type=OneOf(:data, data666)) - _t1256 = _t1258 - else - if prediction662 == 2 - _t1260 = parse_constraint(parser) - constraint665 = _t1260 - _t1261 = Proto.Declaration(declaration_type=OneOf(:constraint, constraint665)) - _t1259 = _t1261 + _t1317 = _t1318 + else + _t1317 = -1 + end + prediction696 = _t1317 + if prediction696 == 3 + _t1326 = parse_data(parser) + data700 = _t1326 + _t1327 = Proto.Declaration(declaration_type=OneOf(:data, data700)) + _t1325 = _t1327 + else + if prediction696 == 2 + _t1329 = parse_constraint(parser) + constraint699 = _t1329 + _t1330 = Proto.Declaration(declaration_type=OneOf(:constraint, constraint699)) + _t1328 = _t1330 else - if prediction662 == 1 - _t1263 = parse_algorithm(parser) - algorithm664 = _t1263 - _t1264 = Proto.Declaration(declaration_type=OneOf(:algorithm, algorithm664)) - _t1262 = _t1264 + if prediction696 == 1 + _t1332 = parse_algorithm(parser) + algorithm698 = _t1332 + _t1333 = Proto.Declaration(declaration_type=OneOf(:algorithm, algorithm698)) + _t1331 = _t1333 else - if prediction662 == 0 - _t1266 = parse_def(parser) - def663 = _t1266 - _t1267 = Proto.Declaration(declaration_type=OneOf(:def, def663)) - _t1265 = _t1267 + if prediction696 == 0 + _t1335 = parse_def(parser) + def697 = _t1335 + _t1336 = Proto.Declaration(declaration_type=OneOf(:def, def697)) + _t1334 = _t1336 else throw(ParseError("Unexpected token in declaration" * ": " * string(lookahead(parser, 0)))) end - _t1262 = _t1265 + _t1331 = _t1334 end - _t1259 = _t1262 + _t1328 = _t1331 end - _t1256 = _t1259 + _t1325 = _t1328 end - result668 = _t1256 - record_span!(parser, span_start667, "Declaration") - return result668 + result702 = _t1325 + record_span!(parser, span_start701, "Declaration") + return result702 end function parse_def(parser::ParserState)::Proto.Def - span_start672 = span_start(parser) + span_start706 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "def") - _t1268 = parse_relation_id(parser) - relation_id669 = _t1268 - _t1269 = parse_abstraction(parser) - abstraction670 = _t1269 + _t1337 = parse_relation_id(parser) + relation_id703 = _t1337 + _t1338 = parse_abstraction(parser) + abstraction704 = _t1338 if match_lookahead_literal(parser, "(", 0) - _t1271 = parse_attrs(parser) - _t1270 = _t1271 + _t1340 = parse_attrs(parser) + _t1339 = _t1340 else - _t1270 = nothing + _t1339 = nothing end - attrs671 = _t1270 + attrs705 = _t1339 consume_literal!(parser, ")") - _t1272 = Proto.Def(name=relation_id669, body=abstraction670, attrs=(!isnothing(attrs671) ? attrs671 : Proto.Attribute[])) - result673 = _t1272 - record_span!(parser, span_start672, "Def") - return result673 + _t1341 = Proto.Def(name=relation_id703, body=abstraction704, attrs=(!isnothing(attrs705) ? attrs705 : Proto.Attribute[])) + result707 = _t1341 + record_span!(parser, span_start706, "Def") + return result707 end function parse_relation_id(parser::ParserState)::Proto.RelationId - span_start677 = span_start(parser) + span_start711 = span_start(parser) if match_lookahead_literal(parser, ":", 0) - _t1273 = 0 + _t1342 = 0 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1274 = 1 + _t1343 = 1 else - _t1274 = -1 + _t1343 = -1 end - _t1273 = _t1274 + _t1342 = _t1343 end - prediction674 = _t1273 - if prediction674 == 1 - uint128676 = consume_terminal!(parser, "UINT128") - _t1275 = Proto.RelationId(uint128676.low, uint128676.high) + prediction708 = _t1342 + if prediction708 == 1 + uint128710 = consume_terminal!(parser, "UINT128") + _t1344 = Proto.RelationId(uint128710.low, uint128710.high) else - if prediction674 == 0 + if prediction708 == 0 consume_literal!(parser, ":") - symbol675 = consume_terminal!(parser, "SYMBOL") - _t1276 = relation_id_from_string(parser, symbol675) + symbol709 = consume_terminal!(parser, "SYMBOL") + _t1345 = relation_id_from_string(parser, symbol709) else throw(ParseError("Unexpected token in relation_id" * ": " * string(lookahead(parser, 0)))) end - _t1275 = _t1276 + _t1344 = _t1345 end - result678 = _t1275 - record_span!(parser, span_start677, "RelationId") - return result678 + result712 = _t1344 + record_span!(parser, span_start711, "RelationId") + return result712 end function parse_abstraction(parser::ParserState)::Proto.Abstraction - span_start681 = span_start(parser) + span_start715 = span_start(parser) consume_literal!(parser, "(") - _t1277 = parse_bindings(parser) - bindings679 = _t1277 - _t1278 = parse_formula(parser) - formula680 = _t1278 + _t1346 = parse_bindings(parser) + bindings713 = _t1346 + _t1347 = parse_formula(parser) + formula714 = _t1347 consume_literal!(parser, ")") - _t1279 = Proto.Abstraction(vars=vcat(bindings679[1], !isnothing(bindings679[2]) ? bindings679[2] : []), value=formula680) - result682 = _t1279 - record_span!(parser, span_start681, "Abstraction") - return result682 + _t1348 = Proto.Abstraction(vars=vcat(bindings713[1], !isnothing(bindings713[2]) ? bindings713[2] : []), value=formula714) + result716 = _t1348 + record_span!(parser, span_start715, "Abstraction") + return result716 end function parse_bindings(parser::ParserState)::Tuple{Vector{Proto.Binding}, Vector{Proto.Binding}} consume_literal!(parser, "[") - xs683 = Proto.Binding[] - cond684 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond684 - _t1280 = parse_binding(parser) - item685 = _t1280 - push!(xs683, item685) - cond684 = match_lookahead_terminal(parser, "SYMBOL", 0) - end - bindings686 = xs683 + xs717 = Proto.Binding[] + cond718 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond718 + _t1349 = parse_binding(parser) + item719 = _t1349 + push!(xs717, item719) + cond718 = match_lookahead_terminal(parser, "SYMBOL", 0) + end + bindings720 = xs717 if match_lookahead_literal(parser, "|", 0) - _t1282 = parse_value_bindings(parser) - _t1281 = _t1282 + _t1351 = parse_value_bindings(parser) + _t1350 = _t1351 else - _t1281 = nothing + _t1350 = nothing end - value_bindings687 = _t1281 + value_bindings721 = _t1350 consume_literal!(parser, "]") - return (bindings686, (!isnothing(value_bindings687) ? value_bindings687 : Proto.Binding[]),) + return (bindings720, (!isnothing(value_bindings721) ? value_bindings721 : Proto.Binding[]),) end function parse_binding(parser::ParserState)::Proto.Binding - span_start690 = span_start(parser) - symbol688 = consume_terminal!(parser, "SYMBOL") + span_start724 = span_start(parser) + symbol722 = consume_terminal!(parser, "SYMBOL") consume_literal!(parser, "::") - _t1283 = parse_type(parser) - type689 = _t1283 - _t1284 = Proto.Var(name=symbol688) - _t1285 = Proto.Binding(var=_t1284, var"#type"=type689) - result691 = _t1285 - record_span!(parser, span_start690, "Binding") - return result691 + _t1352 = parse_type(parser) + type723 = _t1352 + _t1353 = Proto.Var(name=symbol722) + _t1354 = Proto.Binding(var=_t1353, var"#type"=type723) + result725 = _t1354 + record_span!(parser, span_start724, "Binding") + return result725 end function parse_type(parser::ParserState)::Proto.var"#Type" - span_start707 = span_start(parser) + span_start741 = span_start(parser) if match_lookahead_literal(parser, "UNKNOWN", 0) - _t1286 = 0 + _t1355 = 0 else if match_lookahead_literal(parser, "UINT32", 0) - _t1287 = 13 + _t1356 = 13 else if match_lookahead_literal(parser, "UINT128", 0) - _t1288 = 4 + _t1357 = 4 else if match_lookahead_literal(parser, "STRING", 0) - _t1289 = 1 + _t1358 = 1 else if match_lookahead_literal(parser, "MISSING", 0) - _t1290 = 8 + _t1359 = 8 else if match_lookahead_literal(parser, "INT32", 0) - _t1291 = 11 + _t1360 = 11 else if match_lookahead_literal(parser, "INT128", 0) - _t1292 = 5 + _t1361 = 5 else if match_lookahead_literal(parser, "INT", 0) - _t1293 = 2 + _t1362 = 2 else if match_lookahead_literal(parser, "FLOAT32", 0) - _t1294 = 12 + _t1363 = 12 else if match_lookahead_literal(parser, "FLOAT", 0) - _t1295 = 3 + _t1364 = 3 else if match_lookahead_literal(parser, "DATETIME", 0) - _t1296 = 7 + _t1365 = 7 else if match_lookahead_literal(parser, "DATE", 0) - _t1297 = 6 + _t1366 = 6 else if match_lookahead_literal(parser, "BOOLEAN", 0) - _t1298 = 10 + _t1367 = 10 else if match_lookahead_literal(parser, "(", 0) - _t1299 = 9 + _t1368 = 9 else - _t1299 = -1 + _t1368 = -1 end - _t1298 = _t1299 + _t1367 = _t1368 end - _t1297 = _t1298 + _t1366 = _t1367 end - _t1296 = _t1297 + _t1365 = _t1366 end - _t1295 = _t1296 + _t1364 = _t1365 end - _t1294 = _t1295 + _t1363 = _t1364 end - _t1293 = _t1294 + _t1362 = _t1363 end - _t1292 = _t1293 + _t1361 = _t1362 end - _t1291 = _t1292 + _t1360 = _t1361 end - _t1290 = _t1291 + _t1359 = _t1360 end - _t1289 = _t1290 + _t1358 = _t1359 end - _t1288 = _t1289 + _t1357 = _t1358 end - _t1287 = _t1288 + _t1356 = _t1357 end - _t1286 = _t1287 - end - prediction692 = _t1286 - if prediction692 == 13 - _t1301 = parse_uint32_type(parser) - uint32_type706 = _t1301 - _t1302 = Proto.var"#Type"(var"#type"=OneOf(:uint32_type, uint32_type706)) - _t1300 = _t1302 + _t1355 = _t1356 + end + prediction726 = _t1355 + if prediction726 == 13 + _t1370 = parse_uint32_type(parser) + uint32_type740 = _t1370 + _t1371 = Proto.var"#Type"(var"#type"=OneOf(:uint32_type, uint32_type740)) + _t1369 = _t1371 else - if prediction692 == 12 - _t1304 = parse_float32_type(parser) - float32_type705 = _t1304 - _t1305 = Proto.var"#Type"(var"#type"=OneOf(:float32_type, float32_type705)) - _t1303 = _t1305 + if prediction726 == 12 + _t1373 = parse_float32_type(parser) + float32_type739 = _t1373 + _t1374 = Proto.var"#Type"(var"#type"=OneOf(:float32_type, float32_type739)) + _t1372 = _t1374 else - if prediction692 == 11 - _t1307 = parse_int32_type(parser) - int32_type704 = _t1307 - _t1308 = Proto.var"#Type"(var"#type"=OneOf(:int32_type, int32_type704)) - _t1306 = _t1308 + if prediction726 == 11 + _t1376 = parse_int32_type(parser) + int32_type738 = _t1376 + _t1377 = Proto.var"#Type"(var"#type"=OneOf(:int32_type, int32_type738)) + _t1375 = _t1377 else - if prediction692 == 10 - _t1310 = parse_boolean_type(parser) - boolean_type703 = _t1310 - _t1311 = Proto.var"#Type"(var"#type"=OneOf(:boolean_type, boolean_type703)) - _t1309 = _t1311 + if prediction726 == 10 + _t1379 = parse_boolean_type(parser) + boolean_type737 = _t1379 + _t1380 = Proto.var"#Type"(var"#type"=OneOf(:boolean_type, boolean_type737)) + _t1378 = _t1380 else - if prediction692 == 9 - _t1313 = parse_decimal_type(parser) - decimal_type702 = _t1313 - _t1314 = Proto.var"#Type"(var"#type"=OneOf(:decimal_type, decimal_type702)) - _t1312 = _t1314 + if prediction726 == 9 + _t1382 = parse_decimal_type(parser) + decimal_type736 = _t1382 + _t1383 = Proto.var"#Type"(var"#type"=OneOf(:decimal_type, decimal_type736)) + _t1381 = _t1383 else - if prediction692 == 8 - _t1316 = parse_missing_type(parser) - missing_type701 = _t1316 - _t1317 = Proto.var"#Type"(var"#type"=OneOf(:missing_type, missing_type701)) - _t1315 = _t1317 + if prediction726 == 8 + _t1385 = parse_missing_type(parser) + missing_type735 = _t1385 + _t1386 = Proto.var"#Type"(var"#type"=OneOf(:missing_type, missing_type735)) + _t1384 = _t1386 else - if prediction692 == 7 - _t1319 = parse_datetime_type(parser) - datetime_type700 = _t1319 - _t1320 = Proto.var"#Type"(var"#type"=OneOf(:datetime_type, datetime_type700)) - _t1318 = _t1320 + if prediction726 == 7 + _t1388 = parse_datetime_type(parser) + datetime_type734 = _t1388 + _t1389 = Proto.var"#Type"(var"#type"=OneOf(:datetime_type, datetime_type734)) + _t1387 = _t1389 else - if prediction692 == 6 - _t1322 = parse_date_type(parser) - date_type699 = _t1322 - _t1323 = Proto.var"#Type"(var"#type"=OneOf(:date_type, date_type699)) - _t1321 = _t1323 + if prediction726 == 6 + _t1391 = parse_date_type(parser) + date_type733 = _t1391 + _t1392 = Proto.var"#Type"(var"#type"=OneOf(:date_type, date_type733)) + _t1390 = _t1392 else - if prediction692 == 5 - _t1325 = parse_int128_type(parser) - int128_type698 = _t1325 - _t1326 = Proto.var"#Type"(var"#type"=OneOf(:int128_type, int128_type698)) - _t1324 = _t1326 + if prediction726 == 5 + _t1394 = parse_int128_type(parser) + int128_type732 = _t1394 + _t1395 = Proto.var"#Type"(var"#type"=OneOf(:int128_type, int128_type732)) + _t1393 = _t1395 else - if prediction692 == 4 - _t1328 = parse_uint128_type(parser) - uint128_type697 = _t1328 - _t1329 = Proto.var"#Type"(var"#type"=OneOf(:uint128_type, uint128_type697)) - _t1327 = _t1329 + if prediction726 == 4 + _t1397 = parse_uint128_type(parser) + uint128_type731 = _t1397 + _t1398 = Proto.var"#Type"(var"#type"=OneOf(:uint128_type, uint128_type731)) + _t1396 = _t1398 else - if prediction692 == 3 - _t1331 = parse_float_type(parser) - float_type696 = _t1331 - _t1332 = Proto.var"#Type"(var"#type"=OneOf(:float_type, float_type696)) - _t1330 = _t1332 + if prediction726 == 3 + _t1400 = parse_float_type(parser) + float_type730 = _t1400 + _t1401 = Proto.var"#Type"(var"#type"=OneOf(:float_type, float_type730)) + _t1399 = _t1401 else - if prediction692 == 2 - _t1334 = parse_int_type(parser) - int_type695 = _t1334 - _t1335 = Proto.var"#Type"(var"#type"=OneOf(:int_type, int_type695)) - _t1333 = _t1335 + if prediction726 == 2 + _t1403 = parse_int_type(parser) + int_type729 = _t1403 + _t1404 = Proto.var"#Type"(var"#type"=OneOf(:int_type, int_type729)) + _t1402 = _t1404 else - if prediction692 == 1 - _t1337 = parse_string_type(parser) - string_type694 = _t1337 - _t1338 = Proto.var"#Type"(var"#type"=OneOf(:string_type, string_type694)) - _t1336 = _t1338 + if prediction726 == 1 + _t1406 = parse_string_type(parser) + string_type728 = _t1406 + _t1407 = Proto.var"#Type"(var"#type"=OneOf(:string_type, string_type728)) + _t1405 = _t1407 else - if prediction692 == 0 - _t1340 = parse_unspecified_type(parser) - unspecified_type693 = _t1340 - _t1341 = Proto.var"#Type"(var"#type"=OneOf(:unspecified_type, unspecified_type693)) - _t1339 = _t1341 + if prediction726 == 0 + _t1409 = parse_unspecified_type(parser) + unspecified_type727 = _t1409 + _t1410 = Proto.var"#Type"(var"#type"=OneOf(:unspecified_type, unspecified_type727)) + _t1408 = _t1410 else throw(ParseError("Unexpected token in type" * ": " * string(lookahead(parser, 0)))) end - _t1336 = _t1339 + _t1405 = _t1408 end - _t1333 = _t1336 + _t1402 = _t1405 end - _t1330 = _t1333 + _t1399 = _t1402 end - _t1327 = _t1330 + _t1396 = _t1399 end - _t1324 = _t1327 + _t1393 = _t1396 end - _t1321 = _t1324 + _t1390 = _t1393 end - _t1318 = _t1321 + _t1387 = _t1390 end - _t1315 = _t1318 + _t1384 = _t1387 end - _t1312 = _t1315 + _t1381 = _t1384 end - _t1309 = _t1312 + _t1378 = _t1381 end - _t1306 = _t1309 + _t1375 = _t1378 end - _t1303 = _t1306 + _t1372 = _t1375 end - _t1300 = _t1303 + _t1369 = _t1372 end - result708 = _t1300 - record_span!(parser, span_start707, "Type") - return result708 + result742 = _t1369 + record_span!(parser, span_start741, "Type") + return result742 end function parse_unspecified_type(parser::ParserState)::Proto.UnspecifiedType - span_start709 = span_start(parser) + span_start743 = span_start(parser) consume_literal!(parser, "UNKNOWN") - _t1342 = Proto.UnspecifiedType() - result710 = _t1342 - record_span!(parser, span_start709, "UnspecifiedType") - return result710 + _t1411 = Proto.UnspecifiedType() + result744 = _t1411 + record_span!(parser, span_start743, "UnspecifiedType") + return result744 end function parse_string_type(parser::ParserState)::Proto.StringType - span_start711 = span_start(parser) + span_start745 = span_start(parser) consume_literal!(parser, "STRING") - _t1343 = Proto.StringType() - result712 = _t1343 - record_span!(parser, span_start711, "StringType") - return result712 + _t1412 = Proto.StringType() + result746 = _t1412 + record_span!(parser, span_start745, "StringType") + return result746 end function parse_int_type(parser::ParserState)::Proto.IntType - span_start713 = span_start(parser) + span_start747 = span_start(parser) consume_literal!(parser, "INT") - _t1344 = Proto.IntType() - result714 = _t1344 - record_span!(parser, span_start713, "IntType") - return result714 + _t1413 = Proto.IntType() + result748 = _t1413 + record_span!(parser, span_start747, "IntType") + return result748 end function parse_float_type(parser::ParserState)::Proto.FloatType - span_start715 = span_start(parser) + span_start749 = span_start(parser) consume_literal!(parser, "FLOAT") - _t1345 = Proto.FloatType() - result716 = _t1345 - record_span!(parser, span_start715, "FloatType") - return result716 + _t1414 = Proto.FloatType() + result750 = _t1414 + record_span!(parser, span_start749, "FloatType") + return result750 end function parse_uint128_type(parser::ParserState)::Proto.UInt128Type - span_start717 = span_start(parser) + span_start751 = span_start(parser) consume_literal!(parser, "UINT128") - _t1346 = Proto.UInt128Type() - result718 = _t1346 - record_span!(parser, span_start717, "UInt128Type") - return result718 + _t1415 = Proto.UInt128Type() + result752 = _t1415 + record_span!(parser, span_start751, "UInt128Type") + return result752 end function parse_int128_type(parser::ParserState)::Proto.Int128Type - span_start719 = span_start(parser) + span_start753 = span_start(parser) consume_literal!(parser, "INT128") - _t1347 = Proto.Int128Type() - result720 = _t1347 - record_span!(parser, span_start719, "Int128Type") - return result720 + _t1416 = Proto.Int128Type() + result754 = _t1416 + record_span!(parser, span_start753, "Int128Type") + return result754 end function parse_date_type(parser::ParserState)::Proto.DateType - span_start721 = span_start(parser) + span_start755 = span_start(parser) consume_literal!(parser, "DATE") - _t1348 = Proto.DateType() - result722 = _t1348 - record_span!(parser, span_start721, "DateType") - return result722 + _t1417 = Proto.DateType() + result756 = _t1417 + record_span!(parser, span_start755, "DateType") + return result756 end function parse_datetime_type(parser::ParserState)::Proto.DateTimeType - span_start723 = span_start(parser) + span_start757 = span_start(parser) consume_literal!(parser, "DATETIME") - _t1349 = Proto.DateTimeType() - result724 = _t1349 - record_span!(parser, span_start723, "DateTimeType") - return result724 + _t1418 = Proto.DateTimeType() + result758 = _t1418 + record_span!(parser, span_start757, "DateTimeType") + return result758 end function parse_missing_type(parser::ParserState)::Proto.MissingType - span_start725 = span_start(parser) + span_start759 = span_start(parser) consume_literal!(parser, "MISSING") - _t1350 = Proto.MissingType() - result726 = _t1350 - record_span!(parser, span_start725, "MissingType") - return result726 + _t1419 = Proto.MissingType() + result760 = _t1419 + record_span!(parser, span_start759, "MissingType") + return result760 end function parse_decimal_type(parser::ParserState)::Proto.DecimalType - span_start729 = span_start(parser) + span_start763 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "DECIMAL") - int727 = consume_terminal!(parser, "INT") - int_3728 = consume_terminal!(parser, "INT") + int761 = consume_terminal!(parser, "INT") + int_3762 = consume_terminal!(parser, "INT") consume_literal!(parser, ")") - _t1351 = Proto.DecimalType(precision=Int32(int727), scale=Int32(int_3728)) - result730 = _t1351 - record_span!(parser, span_start729, "DecimalType") - return result730 + _t1420 = Proto.DecimalType(precision=Int32(int761), scale=Int32(int_3762)) + result764 = _t1420 + record_span!(parser, span_start763, "DecimalType") + return result764 end function parse_boolean_type(parser::ParserState)::Proto.BooleanType - span_start731 = span_start(parser) + span_start765 = span_start(parser) consume_literal!(parser, "BOOLEAN") - _t1352 = Proto.BooleanType() - result732 = _t1352 - record_span!(parser, span_start731, "BooleanType") - return result732 + _t1421 = Proto.BooleanType() + result766 = _t1421 + record_span!(parser, span_start765, "BooleanType") + return result766 end function parse_int32_type(parser::ParserState)::Proto.Int32Type - span_start733 = span_start(parser) + span_start767 = span_start(parser) consume_literal!(parser, "INT32") - _t1353 = Proto.Int32Type() - result734 = _t1353 - record_span!(parser, span_start733, "Int32Type") - return result734 + _t1422 = Proto.Int32Type() + result768 = _t1422 + record_span!(parser, span_start767, "Int32Type") + return result768 end function parse_float32_type(parser::ParserState)::Proto.Float32Type - span_start735 = span_start(parser) + span_start769 = span_start(parser) consume_literal!(parser, "FLOAT32") - _t1354 = Proto.Float32Type() - result736 = _t1354 - record_span!(parser, span_start735, "Float32Type") - return result736 + _t1423 = Proto.Float32Type() + result770 = _t1423 + record_span!(parser, span_start769, "Float32Type") + return result770 end function parse_uint32_type(parser::ParserState)::Proto.UInt32Type - span_start737 = span_start(parser) + span_start771 = span_start(parser) consume_literal!(parser, "UINT32") - _t1355 = Proto.UInt32Type() - result738 = _t1355 - record_span!(parser, span_start737, "UInt32Type") - return result738 + _t1424 = Proto.UInt32Type() + result772 = _t1424 + record_span!(parser, span_start771, "UInt32Type") + return result772 end function parse_value_bindings(parser::ParserState)::Vector{Proto.Binding} consume_literal!(parser, "|") - xs739 = Proto.Binding[] - cond740 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond740 - _t1356 = parse_binding(parser) - item741 = _t1356 - push!(xs739, item741) - cond740 = match_lookahead_terminal(parser, "SYMBOL", 0) + xs773 = Proto.Binding[] + cond774 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond774 + _t1425 = parse_binding(parser) + item775 = _t1425 + push!(xs773, item775) + cond774 = match_lookahead_terminal(parser, "SYMBOL", 0) end - bindings742 = xs739 - return bindings742 + bindings776 = xs773 + return bindings776 end function parse_formula(parser::ParserState)::Proto.Formula - span_start757 = span_start(parser) + span_start791 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "true", 1) - _t1358 = 0 + _t1427 = 0 else if match_lookahead_literal(parser, "relatom", 1) - _t1359 = 11 + _t1428 = 11 else if match_lookahead_literal(parser, "reduce", 1) - _t1360 = 3 + _t1429 = 3 else if match_lookahead_literal(parser, "primitive", 1) - _t1361 = 10 + _t1430 = 10 else if match_lookahead_literal(parser, "pragma", 1) - _t1362 = 9 + _t1431 = 9 else if match_lookahead_literal(parser, "or", 1) - _t1363 = 5 + _t1432 = 5 else if match_lookahead_literal(parser, "not", 1) - _t1364 = 6 + _t1433 = 6 else if match_lookahead_literal(parser, "ffi", 1) - _t1365 = 7 + _t1434 = 7 else if match_lookahead_literal(parser, "false", 1) - _t1366 = 1 + _t1435 = 1 else if match_lookahead_literal(parser, "exists", 1) - _t1367 = 2 + _t1436 = 2 else if match_lookahead_literal(parser, "cast", 1) - _t1368 = 12 + _t1437 = 12 else if match_lookahead_literal(parser, "atom", 1) - _t1369 = 8 + _t1438 = 8 else if match_lookahead_literal(parser, "and", 1) - _t1370 = 4 + _t1439 = 4 else if match_lookahead_literal(parser, ">=", 1) - _t1371 = 10 + _t1440 = 10 else if match_lookahead_literal(parser, ">", 1) - _t1372 = 10 + _t1441 = 10 else if match_lookahead_literal(parser, "=", 1) - _t1373 = 10 + _t1442 = 10 else if match_lookahead_literal(parser, "<=", 1) - _t1374 = 10 + _t1443 = 10 else if match_lookahead_literal(parser, "<", 1) - _t1375 = 10 + _t1444 = 10 else if match_lookahead_literal(parser, "/", 1) - _t1376 = 10 + _t1445 = 10 else if match_lookahead_literal(parser, "-", 1) - _t1377 = 10 + _t1446 = 10 else if match_lookahead_literal(parser, "+", 1) - _t1378 = 10 + _t1447 = 10 else if match_lookahead_literal(parser, "*", 1) - _t1379 = 10 + _t1448 = 10 else - _t1379 = -1 + _t1448 = -1 end - _t1378 = _t1379 + _t1447 = _t1448 end - _t1377 = _t1378 + _t1446 = _t1447 end - _t1376 = _t1377 + _t1445 = _t1446 end - _t1375 = _t1376 + _t1444 = _t1445 end - _t1374 = _t1375 + _t1443 = _t1444 end - _t1373 = _t1374 + _t1442 = _t1443 end - _t1372 = _t1373 + _t1441 = _t1442 end - _t1371 = _t1372 + _t1440 = _t1441 end - _t1370 = _t1371 + _t1439 = _t1440 end - _t1369 = _t1370 + _t1438 = _t1439 end - _t1368 = _t1369 + _t1437 = _t1438 end - _t1367 = _t1368 + _t1436 = _t1437 end - _t1366 = _t1367 + _t1435 = _t1436 end - _t1365 = _t1366 + _t1434 = _t1435 end - _t1364 = _t1365 + _t1433 = _t1434 end - _t1363 = _t1364 + _t1432 = _t1433 end - _t1362 = _t1363 + _t1431 = _t1432 end - _t1361 = _t1362 + _t1430 = _t1431 end - _t1360 = _t1361 + _t1429 = _t1430 end - _t1359 = _t1360 + _t1428 = _t1429 end - _t1358 = _t1359 + _t1427 = _t1428 end - _t1357 = _t1358 - else - _t1357 = -1 - end - prediction743 = _t1357 - if prediction743 == 12 - _t1381 = parse_cast(parser) - cast756 = _t1381 - _t1382 = Proto.Formula(formula_type=OneOf(:cast, cast756)) - _t1380 = _t1382 - else - if prediction743 == 11 - _t1384 = parse_rel_atom(parser) - rel_atom755 = _t1384 - _t1385 = Proto.Formula(formula_type=OneOf(:rel_atom, rel_atom755)) - _t1383 = _t1385 + _t1426 = _t1427 + else + _t1426 = -1 + end + prediction777 = _t1426 + if prediction777 == 12 + _t1450 = parse_cast(parser) + cast790 = _t1450 + _t1451 = Proto.Formula(formula_type=OneOf(:cast, cast790)) + _t1449 = _t1451 + else + if prediction777 == 11 + _t1453 = parse_rel_atom(parser) + rel_atom789 = _t1453 + _t1454 = Proto.Formula(formula_type=OneOf(:rel_atom, rel_atom789)) + _t1452 = _t1454 else - if prediction743 == 10 - _t1387 = parse_primitive(parser) - primitive754 = _t1387 - _t1388 = Proto.Formula(formula_type=OneOf(:primitive, primitive754)) - _t1386 = _t1388 + if prediction777 == 10 + _t1456 = parse_primitive(parser) + primitive788 = _t1456 + _t1457 = Proto.Formula(formula_type=OneOf(:primitive, primitive788)) + _t1455 = _t1457 else - if prediction743 == 9 - _t1390 = parse_pragma(parser) - pragma753 = _t1390 - _t1391 = Proto.Formula(formula_type=OneOf(:pragma, pragma753)) - _t1389 = _t1391 + if prediction777 == 9 + _t1459 = parse_pragma(parser) + pragma787 = _t1459 + _t1460 = Proto.Formula(formula_type=OneOf(:pragma, pragma787)) + _t1458 = _t1460 else - if prediction743 == 8 - _t1393 = parse_atom(parser) - atom752 = _t1393 - _t1394 = Proto.Formula(formula_type=OneOf(:atom, atom752)) - _t1392 = _t1394 + if prediction777 == 8 + _t1462 = parse_atom(parser) + atom786 = _t1462 + _t1463 = Proto.Formula(formula_type=OneOf(:atom, atom786)) + _t1461 = _t1463 else - if prediction743 == 7 - _t1396 = parse_ffi(parser) - ffi751 = _t1396 - _t1397 = Proto.Formula(formula_type=OneOf(:ffi, ffi751)) - _t1395 = _t1397 + if prediction777 == 7 + _t1465 = parse_ffi(parser) + ffi785 = _t1465 + _t1466 = Proto.Formula(formula_type=OneOf(:ffi, ffi785)) + _t1464 = _t1466 else - if prediction743 == 6 - _t1399 = parse_not(parser) - not750 = _t1399 - _t1400 = Proto.Formula(formula_type=OneOf(:not, not750)) - _t1398 = _t1400 + if prediction777 == 6 + _t1468 = parse_not(parser) + not784 = _t1468 + _t1469 = Proto.Formula(formula_type=OneOf(:not, not784)) + _t1467 = _t1469 else - if prediction743 == 5 - _t1402 = parse_disjunction(parser) - disjunction749 = _t1402 - _t1403 = Proto.Formula(formula_type=OneOf(:disjunction, disjunction749)) - _t1401 = _t1403 + if prediction777 == 5 + _t1471 = parse_disjunction(parser) + disjunction783 = _t1471 + _t1472 = Proto.Formula(formula_type=OneOf(:disjunction, disjunction783)) + _t1470 = _t1472 else - if prediction743 == 4 - _t1405 = parse_conjunction(parser) - conjunction748 = _t1405 - _t1406 = Proto.Formula(formula_type=OneOf(:conjunction, conjunction748)) - _t1404 = _t1406 + if prediction777 == 4 + _t1474 = parse_conjunction(parser) + conjunction782 = _t1474 + _t1475 = Proto.Formula(formula_type=OneOf(:conjunction, conjunction782)) + _t1473 = _t1475 else - if prediction743 == 3 - _t1408 = parse_reduce(parser) - reduce747 = _t1408 - _t1409 = Proto.Formula(formula_type=OneOf(:reduce, reduce747)) - _t1407 = _t1409 + if prediction777 == 3 + _t1477 = parse_reduce(parser) + reduce781 = _t1477 + _t1478 = Proto.Formula(formula_type=OneOf(:reduce, reduce781)) + _t1476 = _t1478 else - if prediction743 == 2 - _t1411 = parse_exists(parser) - exists746 = _t1411 - _t1412 = Proto.Formula(formula_type=OneOf(:exists, exists746)) - _t1410 = _t1412 + if prediction777 == 2 + _t1480 = parse_exists(parser) + exists780 = _t1480 + _t1481 = Proto.Formula(formula_type=OneOf(:exists, exists780)) + _t1479 = _t1481 else - if prediction743 == 1 - _t1414 = parse_false(parser) - false745 = _t1414 - _t1415 = Proto.Formula(formula_type=OneOf(:disjunction, false745)) - _t1413 = _t1415 + if prediction777 == 1 + _t1483 = parse_false(parser) + false779 = _t1483 + _t1484 = Proto.Formula(formula_type=OneOf(:disjunction, false779)) + _t1482 = _t1484 else - if prediction743 == 0 - _t1417 = parse_true(parser) - true744 = _t1417 - _t1418 = Proto.Formula(formula_type=OneOf(:conjunction, true744)) - _t1416 = _t1418 + if prediction777 == 0 + _t1486 = parse_true(parser) + true778 = _t1486 + _t1487 = Proto.Formula(formula_type=OneOf(:conjunction, true778)) + _t1485 = _t1487 else throw(ParseError("Unexpected token in formula" * ": " * string(lookahead(parser, 0)))) end - _t1413 = _t1416 + _t1482 = _t1485 end - _t1410 = _t1413 + _t1479 = _t1482 end - _t1407 = _t1410 + _t1476 = _t1479 end - _t1404 = _t1407 + _t1473 = _t1476 end - _t1401 = _t1404 + _t1470 = _t1473 end - _t1398 = _t1401 + _t1467 = _t1470 end - _t1395 = _t1398 + _t1464 = _t1467 end - _t1392 = _t1395 + _t1461 = _t1464 end - _t1389 = _t1392 + _t1458 = _t1461 end - _t1386 = _t1389 + _t1455 = _t1458 end - _t1383 = _t1386 + _t1452 = _t1455 end - _t1380 = _t1383 + _t1449 = _t1452 end - result758 = _t1380 - record_span!(parser, span_start757, "Formula") - return result758 + result792 = _t1449 + record_span!(parser, span_start791, "Formula") + return result792 end function parse_true(parser::ParserState)::Proto.Conjunction - span_start759 = span_start(parser) + span_start793 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "true") consume_literal!(parser, ")") - _t1419 = Proto.Conjunction(args=Proto.Formula[]) - result760 = _t1419 - record_span!(parser, span_start759, "Conjunction") - return result760 + _t1488 = Proto.Conjunction(args=Proto.Formula[]) + result794 = _t1488 + record_span!(parser, span_start793, "Conjunction") + return result794 end function parse_false(parser::ParserState)::Proto.Disjunction - span_start761 = span_start(parser) + span_start795 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "false") consume_literal!(parser, ")") - _t1420 = Proto.Disjunction(args=Proto.Formula[]) - result762 = _t1420 - record_span!(parser, span_start761, "Disjunction") - return result762 + _t1489 = Proto.Disjunction(args=Proto.Formula[]) + result796 = _t1489 + record_span!(parser, span_start795, "Disjunction") + return result796 end function parse_exists(parser::ParserState)::Proto.Exists - span_start765 = span_start(parser) + span_start799 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "exists") - _t1421 = parse_bindings(parser) - bindings763 = _t1421 - _t1422 = parse_formula(parser) - formula764 = _t1422 - consume_literal!(parser, ")") - _t1423 = Proto.Abstraction(vars=vcat(bindings763[1], !isnothing(bindings763[2]) ? bindings763[2] : []), value=formula764) - _t1424 = Proto.Exists(body=_t1423) - result766 = _t1424 - record_span!(parser, span_start765, "Exists") - return result766 + _t1490 = parse_bindings(parser) + bindings797 = _t1490 + _t1491 = parse_formula(parser) + formula798 = _t1491 + consume_literal!(parser, ")") + _t1492 = Proto.Abstraction(vars=vcat(bindings797[1], !isnothing(bindings797[2]) ? bindings797[2] : []), value=formula798) + _t1493 = Proto.Exists(body=_t1492) + result800 = _t1493 + record_span!(parser, span_start799, "Exists") + return result800 end function parse_reduce(parser::ParserState)::Proto.Reduce - span_start770 = span_start(parser) + span_start804 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "reduce") - _t1425 = parse_abstraction(parser) - abstraction767 = _t1425 - _t1426 = parse_abstraction(parser) - abstraction_3768 = _t1426 - _t1427 = parse_terms(parser) - terms769 = _t1427 + _t1494 = parse_abstraction(parser) + abstraction801 = _t1494 + _t1495 = parse_abstraction(parser) + abstraction_3802 = _t1495 + _t1496 = parse_terms(parser) + terms803 = _t1496 consume_literal!(parser, ")") - _t1428 = Proto.Reduce(op=abstraction767, body=abstraction_3768, terms=terms769) - result771 = _t1428 - record_span!(parser, span_start770, "Reduce") - return result771 + _t1497 = Proto.Reduce(op=abstraction801, body=abstraction_3802, terms=terms803) + result805 = _t1497 + record_span!(parser, span_start804, "Reduce") + return result805 end function parse_terms(parser::ParserState)::Vector{Proto.Term} consume_literal!(parser, "(") consume_literal!(parser, "terms") - xs772 = Proto.Term[] - cond773 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) - while cond773 - _t1429 = parse_term(parser) - item774 = _t1429 - push!(xs772, item774) - cond773 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + xs806 = Proto.Term[] + cond807 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + while cond807 + _t1498 = parse_term(parser) + item808 = _t1498 + push!(xs806, item808) + cond807 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) end - terms775 = xs772 + terms809 = xs806 consume_literal!(parser, ")") - return terms775 + return terms809 end function parse_term(parser::ParserState)::Proto.Term - span_start779 = span_start(parser) + span_start813 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1430 = 1 + _t1499 = 1 else if match_lookahead_literal(parser, "missing", 0) - _t1431 = 1 + _t1500 = 1 else if match_lookahead_literal(parser, "false", 0) - _t1432 = 1 + _t1501 = 1 else if match_lookahead_literal(parser, "(", 0) - _t1433 = 1 + _t1502 = 1 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1434 = 1 + _t1503 = 1 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1435 = 1 + _t1504 = 1 else if match_lookahead_terminal(parser, "SYMBOL", 0) - _t1436 = 0 + _t1505 = 0 else if match_lookahead_terminal(parser, "STRING", 0) - _t1437 = 1 + _t1506 = 1 else if match_lookahead_terminal(parser, "INT32", 0) - _t1438 = 1 + _t1507 = 1 else if match_lookahead_terminal(parser, "INT128", 0) - _t1439 = 1 + _t1508 = 1 else if match_lookahead_terminal(parser, "INT", 0) - _t1440 = 1 + _t1509 = 1 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1441 = 1 + _t1510 = 1 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1442 = 1 + _t1511 = 1 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1443 = 1 + _t1512 = 1 else - _t1443 = -1 + _t1512 = -1 end - _t1442 = _t1443 + _t1511 = _t1512 end - _t1441 = _t1442 + _t1510 = _t1511 end - _t1440 = _t1441 + _t1509 = _t1510 end - _t1439 = _t1440 + _t1508 = _t1509 end - _t1438 = _t1439 + _t1507 = _t1508 end - _t1437 = _t1438 + _t1506 = _t1507 end - _t1436 = _t1437 + _t1505 = _t1506 end - _t1435 = _t1436 + _t1504 = _t1505 end - _t1434 = _t1435 + _t1503 = _t1504 end - _t1433 = _t1434 + _t1502 = _t1503 end - _t1432 = _t1433 + _t1501 = _t1502 end - _t1431 = _t1432 + _t1500 = _t1501 end - _t1430 = _t1431 - end - prediction776 = _t1430 - if prediction776 == 1 - _t1445 = parse_constant(parser) - constant778 = _t1445 - _t1446 = Proto.Term(term_type=OneOf(:constant, constant778)) - _t1444 = _t1446 - else - if prediction776 == 0 - _t1448 = parse_var(parser) - var777 = _t1448 - _t1449 = Proto.Term(term_type=OneOf(:var, var777)) - _t1447 = _t1449 + _t1499 = _t1500 + end + prediction810 = _t1499 + if prediction810 == 1 + _t1514 = parse_constant(parser) + constant812 = _t1514 + _t1515 = Proto.Term(term_type=OneOf(:constant, constant812)) + _t1513 = _t1515 + else + if prediction810 == 0 + _t1517 = parse_var(parser) + var811 = _t1517 + _t1518 = Proto.Term(term_type=OneOf(:var, var811)) + _t1516 = _t1518 else throw(ParseError("Unexpected token in term" * ": " * string(lookahead(parser, 0)))) end - _t1444 = _t1447 + _t1513 = _t1516 end - result780 = _t1444 - record_span!(parser, span_start779, "Term") - return result780 + result814 = _t1513 + record_span!(parser, span_start813, "Term") + return result814 end function parse_var(parser::ParserState)::Proto.Var - span_start782 = span_start(parser) - symbol781 = consume_terminal!(parser, "SYMBOL") - _t1450 = Proto.Var(name=symbol781) - result783 = _t1450 - record_span!(parser, span_start782, "Var") - return result783 + span_start816 = span_start(parser) + symbol815 = consume_terminal!(parser, "SYMBOL") + _t1519 = Proto.Var(name=symbol815) + result817 = _t1519 + record_span!(parser, span_start816, "Var") + return result817 end function parse_constant(parser::ParserState)::Proto.Value - span_start785 = span_start(parser) - _t1451 = parse_value(parser) - value784 = _t1451 - result786 = value784 - record_span!(parser, span_start785, "Value") - return result786 + span_start819 = span_start(parser) + _t1520 = parse_value(parser) + value818 = _t1520 + result820 = value818 + record_span!(parser, span_start819, "Value") + return result820 end function parse_conjunction(parser::ParserState)::Proto.Conjunction - span_start791 = span_start(parser) + span_start825 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "and") - xs787 = Proto.Formula[] - cond788 = match_lookahead_literal(parser, "(", 0) - while cond788 - _t1452 = parse_formula(parser) - item789 = _t1452 - push!(xs787, item789) - cond788 = match_lookahead_literal(parser, "(", 0) - end - formulas790 = xs787 - consume_literal!(parser, ")") - _t1453 = Proto.Conjunction(args=formulas790) - result792 = _t1453 - record_span!(parser, span_start791, "Conjunction") - return result792 + xs821 = Proto.Formula[] + cond822 = match_lookahead_literal(parser, "(", 0) + while cond822 + _t1521 = parse_formula(parser) + item823 = _t1521 + push!(xs821, item823) + cond822 = match_lookahead_literal(parser, "(", 0) + end + formulas824 = xs821 + consume_literal!(parser, ")") + _t1522 = Proto.Conjunction(args=formulas824) + result826 = _t1522 + record_span!(parser, span_start825, "Conjunction") + return result826 end function parse_disjunction(parser::ParserState)::Proto.Disjunction - span_start797 = span_start(parser) + span_start831 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "or") - xs793 = Proto.Formula[] - cond794 = match_lookahead_literal(parser, "(", 0) - while cond794 - _t1454 = parse_formula(parser) - item795 = _t1454 - push!(xs793, item795) - cond794 = match_lookahead_literal(parser, "(", 0) + xs827 = Proto.Formula[] + cond828 = match_lookahead_literal(parser, "(", 0) + while cond828 + _t1523 = parse_formula(parser) + item829 = _t1523 + push!(xs827, item829) + cond828 = match_lookahead_literal(parser, "(", 0) end - formulas796 = xs793 + formulas830 = xs827 consume_literal!(parser, ")") - _t1455 = Proto.Disjunction(args=formulas796) - result798 = _t1455 - record_span!(parser, span_start797, "Disjunction") - return result798 + _t1524 = Proto.Disjunction(args=formulas830) + result832 = _t1524 + record_span!(parser, span_start831, "Disjunction") + return result832 end function parse_not(parser::ParserState)::Proto.Not - span_start800 = span_start(parser) + span_start834 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "not") - _t1456 = parse_formula(parser) - formula799 = _t1456 + _t1525 = parse_formula(parser) + formula833 = _t1525 consume_literal!(parser, ")") - _t1457 = Proto.Not(arg=formula799) - result801 = _t1457 - record_span!(parser, span_start800, "Not") - return result801 + _t1526 = Proto.Not(arg=formula833) + result835 = _t1526 + record_span!(parser, span_start834, "Not") + return result835 end function parse_ffi(parser::ParserState)::Proto.FFI - span_start805 = span_start(parser) + span_start839 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "ffi") - _t1458 = parse_name(parser) - name802 = _t1458 - _t1459 = parse_ffi_args(parser) - ffi_args803 = _t1459 - _t1460 = parse_terms(parser) - terms804 = _t1460 + _t1527 = parse_name(parser) + name836 = _t1527 + _t1528 = parse_ffi_args(parser) + ffi_args837 = _t1528 + _t1529 = parse_terms(parser) + terms838 = _t1529 consume_literal!(parser, ")") - _t1461 = Proto.FFI(name=name802, args=ffi_args803, terms=terms804) - result806 = _t1461 - record_span!(parser, span_start805, "FFI") - return result806 + _t1530 = Proto.FFI(name=name836, args=ffi_args837, terms=terms838) + result840 = _t1530 + record_span!(parser, span_start839, "FFI") + return result840 end function parse_name(parser::ParserState)::String consume_literal!(parser, ":") - symbol807 = consume_terminal!(parser, "SYMBOL") - return symbol807 + symbol841 = consume_terminal!(parser, "SYMBOL") + return symbol841 end function parse_ffi_args(parser::ParserState)::Vector{Proto.Abstraction} consume_literal!(parser, "(") consume_literal!(parser, "args") - xs808 = Proto.Abstraction[] - cond809 = match_lookahead_literal(parser, "(", 0) - while cond809 - _t1462 = parse_abstraction(parser) - item810 = _t1462 - push!(xs808, item810) - cond809 = match_lookahead_literal(parser, "(", 0) + xs842 = Proto.Abstraction[] + cond843 = match_lookahead_literal(parser, "(", 0) + while cond843 + _t1531 = parse_abstraction(parser) + item844 = _t1531 + push!(xs842, item844) + cond843 = match_lookahead_literal(parser, "(", 0) end - abstractions811 = xs808 + abstractions845 = xs842 consume_literal!(parser, ")") - return abstractions811 + return abstractions845 end function parse_atom(parser::ParserState)::Proto.Atom - span_start817 = span_start(parser) + span_start851 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "atom") - _t1463 = parse_relation_id(parser) - relation_id812 = _t1463 - xs813 = Proto.Term[] - cond814 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) - while cond814 - _t1464 = parse_term(parser) - item815 = _t1464 - push!(xs813, item815) - cond814 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + _t1532 = parse_relation_id(parser) + relation_id846 = _t1532 + xs847 = Proto.Term[] + cond848 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + while cond848 + _t1533 = parse_term(parser) + item849 = _t1533 + push!(xs847, item849) + cond848 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) end - terms816 = xs813 + terms850 = xs847 consume_literal!(parser, ")") - _t1465 = Proto.Atom(name=relation_id812, terms=terms816) - result818 = _t1465 - record_span!(parser, span_start817, "Atom") - return result818 + _t1534 = Proto.Atom(name=relation_id846, terms=terms850) + result852 = _t1534 + record_span!(parser, span_start851, "Atom") + return result852 end function parse_pragma(parser::ParserState)::Proto.Pragma - span_start824 = span_start(parser) + span_start858 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "pragma") - _t1466 = parse_name(parser) - name819 = _t1466 - xs820 = Proto.Term[] - cond821 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) - while cond821 - _t1467 = parse_term(parser) - item822 = _t1467 - push!(xs820, item822) - cond821 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + _t1535 = parse_name(parser) + name853 = _t1535 + xs854 = Proto.Term[] + cond855 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + while cond855 + _t1536 = parse_term(parser) + item856 = _t1536 + push!(xs854, item856) + cond855 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) end - terms823 = xs820 + terms857 = xs854 consume_literal!(parser, ")") - _t1468 = Proto.Pragma(name=name819, terms=terms823) - result825 = _t1468 - record_span!(parser, span_start824, "Pragma") - return result825 + _t1537 = Proto.Pragma(name=name853, terms=terms857) + result859 = _t1537 + record_span!(parser, span_start858, "Pragma") + return result859 end function parse_primitive(parser::ParserState)::Proto.Primitive - span_start841 = span_start(parser) + span_start875 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "primitive", 1) - _t1470 = 9 + _t1539 = 9 else if match_lookahead_literal(parser, ">=", 1) - _t1471 = 4 + _t1540 = 4 else if match_lookahead_literal(parser, ">", 1) - _t1472 = 3 + _t1541 = 3 else if match_lookahead_literal(parser, "=", 1) - _t1473 = 0 + _t1542 = 0 else if match_lookahead_literal(parser, "<=", 1) - _t1474 = 2 + _t1543 = 2 else if match_lookahead_literal(parser, "<", 1) - _t1475 = 1 + _t1544 = 1 else if match_lookahead_literal(parser, "/", 1) - _t1476 = 8 + _t1545 = 8 else if match_lookahead_literal(parser, "-", 1) - _t1477 = 6 + _t1546 = 6 else if match_lookahead_literal(parser, "+", 1) - _t1478 = 5 + _t1547 = 5 else if match_lookahead_literal(parser, "*", 1) - _t1479 = 7 + _t1548 = 7 else - _t1479 = -1 + _t1548 = -1 end - _t1478 = _t1479 + _t1547 = _t1548 end - _t1477 = _t1478 + _t1546 = _t1547 end - _t1476 = _t1477 + _t1545 = _t1546 end - _t1475 = _t1476 + _t1544 = _t1545 end - _t1474 = _t1475 + _t1543 = _t1544 end - _t1473 = _t1474 + _t1542 = _t1543 end - _t1472 = _t1473 + _t1541 = _t1542 end - _t1471 = _t1472 + _t1540 = _t1541 end - _t1470 = _t1471 + _t1539 = _t1540 end - _t1469 = _t1470 + _t1538 = _t1539 else - _t1469 = -1 + _t1538 = -1 end - prediction826 = _t1469 - if prediction826 == 9 + prediction860 = _t1538 + if prediction860 == 9 consume_literal!(parser, "(") consume_literal!(parser, "primitive") - _t1481 = parse_name(parser) - name836 = _t1481 - xs837 = Proto.RelTerm[] - cond838 = ((((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) - while cond838 - _t1482 = parse_rel_term(parser) - item839 = _t1482 - push!(xs837, item839) - cond838 = ((((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + _t1550 = parse_name(parser) + name870 = _t1550 + xs871 = Proto.RelTerm[] + cond872 = ((((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + while cond872 + _t1551 = parse_rel_term(parser) + item873 = _t1551 + push!(xs871, item873) + cond872 = ((((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) end - rel_terms840 = xs837 + rel_terms874 = xs871 consume_literal!(parser, ")") - _t1483 = Proto.Primitive(name=name836, terms=rel_terms840) - _t1480 = _t1483 + _t1552 = Proto.Primitive(name=name870, terms=rel_terms874) + _t1549 = _t1552 else - if prediction826 == 8 - _t1485 = parse_divide(parser) - divide835 = _t1485 - _t1484 = divide835 + if prediction860 == 8 + _t1554 = parse_divide(parser) + divide869 = _t1554 + _t1553 = divide869 else - if prediction826 == 7 - _t1487 = parse_multiply(parser) - multiply834 = _t1487 - _t1486 = multiply834 + if prediction860 == 7 + _t1556 = parse_multiply(parser) + multiply868 = _t1556 + _t1555 = multiply868 else - if prediction826 == 6 - _t1489 = parse_minus(parser) - minus833 = _t1489 - _t1488 = minus833 + if prediction860 == 6 + _t1558 = parse_minus(parser) + minus867 = _t1558 + _t1557 = minus867 else - if prediction826 == 5 - _t1491 = parse_add(parser) - add832 = _t1491 - _t1490 = add832 + if prediction860 == 5 + _t1560 = parse_add(parser) + add866 = _t1560 + _t1559 = add866 else - if prediction826 == 4 - _t1493 = parse_gt_eq(parser) - gt_eq831 = _t1493 - _t1492 = gt_eq831 + if prediction860 == 4 + _t1562 = parse_gt_eq(parser) + gt_eq865 = _t1562 + _t1561 = gt_eq865 else - if prediction826 == 3 - _t1495 = parse_gt(parser) - gt830 = _t1495 - _t1494 = gt830 + if prediction860 == 3 + _t1564 = parse_gt(parser) + gt864 = _t1564 + _t1563 = gt864 else - if prediction826 == 2 - _t1497 = parse_lt_eq(parser) - lt_eq829 = _t1497 - _t1496 = lt_eq829 + if prediction860 == 2 + _t1566 = parse_lt_eq(parser) + lt_eq863 = _t1566 + _t1565 = lt_eq863 else - if prediction826 == 1 - _t1499 = parse_lt(parser) - lt828 = _t1499 - _t1498 = lt828 + if prediction860 == 1 + _t1568 = parse_lt(parser) + lt862 = _t1568 + _t1567 = lt862 else - if prediction826 == 0 - _t1501 = parse_eq(parser) - eq827 = _t1501 - _t1500 = eq827 + if prediction860 == 0 + _t1570 = parse_eq(parser) + eq861 = _t1570 + _t1569 = eq861 else throw(ParseError("Unexpected token in primitive" * ": " * string(lookahead(parser, 0)))) end - _t1498 = _t1500 + _t1567 = _t1569 end - _t1496 = _t1498 + _t1565 = _t1567 end - _t1494 = _t1496 + _t1563 = _t1565 end - _t1492 = _t1494 + _t1561 = _t1563 end - _t1490 = _t1492 + _t1559 = _t1561 end - _t1488 = _t1490 + _t1557 = _t1559 end - _t1486 = _t1488 + _t1555 = _t1557 end - _t1484 = _t1486 + _t1553 = _t1555 end - _t1480 = _t1484 + _t1549 = _t1553 end - result842 = _t1480 - record_span!(parser, span_start841, "Primitive") - return result842 + result876 = _t1549 + record_span!(parser, span_start875, "Primitive") + return result876 end function parse_eq(parser::ParserState)::Proto.Primitive - span_start845 = span_start(parser) + span_start879 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "=") - _t1502 = parse_term(parser) - term843 = _t1502 - _t1503 = parse_term(parser) - term_3844 = _t1503 + _t1571 = parse_term(parser) + term877 = _t1571 + _t1572 = parse_term(parser) + term_3878 = _t1572 consume_literal!(parser, ")") - _t1504 = Proto.RelTerm(rel_term_type=OneOf(:term, term843)) - _t1505 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3844)) - _t1506 = Proto.Primitive(name="rel_primitive_eq", terms=Proto.RelTerm[_t1504, _t1505]) - result846 = _t1506 - record_span!(parser, span_start845, "Primitive") - return result846 + _t1573 = Proto.RelTerm(rel_term_type=OneOf(:term, term877)) + _t1574 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3878)) + _t1575 = Proto.Primitive(name="rel_primitive_eq", terms=Proto.RelTerm[_t1573, _t1574]) + result880 = _t1575 + record_span!(parser, span_start879, "Primitive") + return result880 end function parse_lt(parser::ParserState)::Proto.Primitive - span_start849 = span_start(parser) + span_start883 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "<") - _t1507 = parse_term(parser) - term847 = _t1507 - _t1508 = parse_term(parser) - term_3848 = _t1508 + _t1576 = parse_term(parser) + term881 = _t1576 + _t1577 = parse_term(parser) + term_3882 = _t1577 consume_literal!(parser, ")") - _t1509 = Proto.RelTerm(rel_term_type=OneOf(:term, term847)) - _t1510 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3848)) - _t1511 = Proto.Primitive(name="rel_primitive_lt_monotype", terms=Proto.RelTerm[_t1509, _t1510]) - result850 = _t1511 - record_span!(parser, span_start849, "Primitive") - return result850 + _t1578 = Proto.RelTerm(rel_term_type=OneOf(:term, term881)) + _t1579 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3882)) + _t1580 = Proto.Primitive(name="rel_primitive_lt_monotype", terms=Proto.RelTerm[_t1578, _t1579]) + result884 = _t1580 + record_span!(parser, span_start883, "Primitive") + return result884 end function parse_lt_eq(parser::ParserState)::Proto.Primitive - span_start853 = span_start(parser) + span_start887 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "<=") - _t1512 = parse_term(parser) - term851 = _t1512 - _t1513 = parse_term(parser) - term_3852 = _t1513 + _t1581 = parse_term(parser) + term885 = _t1581 + _t1582 = parse_term(parser) + term_3886 = _t1582 consume_literal!(parser, ")") - _t1514 = Proto.RelTerm(rel_term_type=OneOf(:term, term851)) - _t1515 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3852)) - _t1516 = Proto.Primitive(name="rel_primitive_lt_eq_monotype", terms=Proto.RelTerm[_t1514, _t1515]) - result854 = _t1516 - record_span!(parser, span_start853, "Primitive") - return result854 + _t1583 = Proto.RelTerm(rel_term_type=OneOf(:term, term885)) + _t1584 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3886)) + _t1585 = Proto.Primitive(name="rel_primitive_lt_eq_monotype", terms=Proto.RelTerm[_t1583, _t1584]) + result888 = _t1585 + record_span!(parser, span_start887, "Primitive") + return result888 end function parse_gt(parser::ParserState)::Proto.Primitive - span_start857 = span_start(parser) + span_start891 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, ">") - _t1517 = parse_term(parser) - term855 = _t1517 - _t1518 = parse_term(parser) - term_3856 = _t1518 + _t1586 = parse_term(parser) + term889 = _t1586 + _t1587 = parse_term(parser) + term_3890 = _t1587 consume_literal!(parser, ")") - _t1519 = Proto.RelTerm(rel_term_type=OneOf(:term, term855)) - _t1520 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3856)) - _t1521 = Proto.Primitive(name="rel_primitive_gt_monotype", terms=Proto.RelTerm[_t1519, _t1520]) - result858 = _t1521 - record_span!(parser, span_start857, "Primitive") - return result858 + _t1588 = Proto.RelTerm(rel_term_type=OneOf(:term, term889)) + _t1589 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3890)) + _t1590 = Proto.Primitive(name="rel_primitive_gt_monotype", terms=Proto.RelTerm[_t1588, _t1589]) + result892 = _t1590 + record_span!(parser, span_start891, "Primitive") + return result892 end function parse_gt_eq(parser::ParserState)::Proto.Primitive - span_start861 = span_start(parser) + span_start895 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, ">=") - _t1522 = parse_term(parser) - term859 = _t1522 - _t1523 = parse_term(parser) - term_3860 = _t1523 + _t1591 = parse_term(parser) + term893 = _t1591 + _t1592 = parse_term(parser) + term_3894 = _t1592 consume_literal!(parser, ")") - _t1524 = Proto.RelTerm(rel_term_type=OneOf(:term, term859)) - _t1525 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3860)) - _t1526 = Proto.Primitive(name="rel_primitive_gt_eq_monotype", terms=Proto.RelTerm[_t1524, _t1525]) - result862 = _t1526 - record_span!(parser, span_start861, "Primitive") - return result862 + _t1593 = Proto.RelTerm(rel_term_type=OneOf(:term, term893)) + _t1594 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3894)) + _t1595 = Proto.Primitive(name="rel_primitive_gt_eq_monotype", terms=Proto.RelTerm[_t1593, _t1594]) + result896 = _t1595 + record_span!(parser, span_start895, "Primitive") + return result896 end function parse_add(parser::ParserState)::Proto.Primitive - span_start866 = span_start(parser) + span_start900 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "+") - _t1527 = parse_term(parser) - term863 = _t1527 - _t1528 = parse_term(parser) - term_3864 = _t1528 - _t1529 = parse_term(parser) - term_4865 = _t1529 - consume_literal!(parser, ")") - _t1530 = Proto.RelTerm(rel_term_type=OneOf(:term, term863)) - _t1531 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3864)) - _t1532 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4865)) - _t1533 = Proto.Primitive(name="rel_primitive_add_monotype", terms=Proto.RelTerm[_t1530, _t1531, _t1532]) - result867 = _t1533 - record_span!(parser, span_start866, "Primitive") - return result867 + _t1596 = parse_term(parser) + term897 = _t1596 + _t1597 = parse_term(parser) + term_3898 = _t1597 + _t1598 = parse_term(parser) + term_4899 = _t1598 + consume_literal!(parser, ")") + _t1599 = Proto.RelTerm(rel_term_type=OneOf(:term, term897)) + _t1600 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3898)) + _t1601 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4899)) + _t1602 = Proto.Primitive(name="rel_primitive_add_monotype", terms=Proto.RelTerm[_t1599, _t1600, _t1601]) + result901 = _t1602 + record_span!(parser, span_start900, "Primitive") + return result901 end function parse_minus(parser::ParserState)::Proto.Primitive - span_start871 = span_start(parser) + span_start905 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "-") - _t1534 = parse_term(parser) - term868 = _t1534 - _t1535 = parse_term(parser) - term_3869 = _t1535 - _t1536 = parse_term(parser) - term_4870 = _t1536 - consume_literal!(parser, ")") - _t1537 = Proto.RelTerm(rel_term_type=OneOf(:term, term868)) - _t1538 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3869)) - _t1539 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4870)) - _t1540 = Proto.Primitive(name="rel_primitive_subtract_monotype", terms=Proto.RelTerm[_t1537, _t1538, _t1539]) - result872 = _t1540 - record_span!(parser, span_start871, "Primitive") - return result872 + _t1603 = parse_term(parser) + term902 = _t1603 + _t1604 = parse_term(parser) + term_3903 = _t1604 + _t1605 = parse_term(parser) + term_4904 = _t1605 + consume_literal!(parser, ")") + _t1606 = Proto.RelTerm(rel_term_type=OneOf(:term, term902)) + _t1607 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3903)) + _t1608 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4904)) + _t1609 = Proto.Primitive(name="rel_primitive_subtract_monotype", terms=Proto.RelTerm[_t1606, _t1607, _t1608]) + result906 = _t1609 + record_span!(parser, span_start905, "Primitive") + return result906 end function parse_multiply(parser::ParserState)::Proto.Primitive - span_start876 = span_start(parser) + span_start910 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "*") - _t1541 = parse_term(parser) - term873 = _t1541 - _t1542 = parse_term(parser) - term_3874 = _t1542 - _t1543 = parse_term(parser) - term_4875 = _t1543 - consume_literal!(parser, ")") - _t1544 = Proto.RelTerm(rel_term_type=OneOf(:term, term873)) - _t1545 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3874)) - _t1546 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4875)) - _t1547 = Proto.Primitive(name="rel_primitive_multiply_monotype", terms=Proto.RelTerm[_t1544, _t1545, _t1546]) - result877 = _t1547 - record_span!(parser, span_start876, "Primitive") - return result877 + _t1610 = parse_term(parser) + term907 = _t1610 + _t1611 = parse_term(parser) + term_3908 = _t1611 + _t1612 = parse_term(parser) + term_4909 = _t1612 + consume_literal!(parser, ")") + _t1613 = Proto.RelTerm(rel_term_type=OneOf(:term, term907)) + _t1614 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3908)) + _t1615 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4909)) + _t1616 = Proto.Primitive(name="rel_primitive_multiply_monotype", terms=Proto.RelTerm[_t1613, _t1614, _t1615]) + result911 = _t1616 + record_span!(parser, span_start910, "Primitive") + return result911 end function parse_divide(parser::ParserState)::Proto.Primitive - span_start881 = span_start(parser) + span_start915 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "/") - _t1548 = parse_term(parser) - term878 = _t1548 - _t1549 = parse_term(parser) - term_3879 = _t1549 - _t1550 = parse_term(parser) - term_4880 = _t1550 - consume_literal!(parser, ")") - _t1551 = Proto.RelTerm(rel_term_type=OneOf(:term, term878)) - _t1552 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3879)) - _t1553 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4880)) - _t1554 = Proto.Primitive(name="rel_primitive_divide_monotype", terms=Proto.RelTerm[_t1551, _t1552, _t1553]) - result882 = _t1554 - record_span!(parser, span_start881, "Primitive") - return result882 + _t1617 = parse_term(parser) + term912 = _t1617 + _t1618 = parse_term(parser) + term_3913 = _t1618 + _t1619 = parse_term(parser) + term_4914 = _t1619 + consume_literal!(parser, ")") + _t1620 = Proto.RelTerm(rel_term_type=OneOf(:term, term912)) + _t1621 = Proto.RelTerm(rel_term_type=OneOf(:term, term_3913)) + _t1622 = Proto.RelTerm(rel_term_type=OneOf(:term, term_4914)) + _t1623 = Proto.Primitive(name="rel_primitive_divide_monotype", terms=Proto.RelTerm[_t1620, _t1621, _t1622]) + result916 = _t1623 + record_span!(parser, span_start915, "Primitive") + return result916 end function parse_rel_term(parser::ParserState)::Proto.RelTerm - span_start886 = span_start(parser) + span_start920 = span_start(parser) if match_lookahead_literal(parser, "true", 0) - _t1555 = 1 + _t1624 = 1 else if match_lookahead_literal(parser, "missing", 0) - _t1556 = 1 + _t1625 = 1 else if match_lookahead_literal(parser, "false", 0) - _t1557 = 1 + _t1626 = 1 else if match_lookahead_literal(parser, "(", 0) - _t1558 = 1 + _t1627 = 1 else if match_lookahead_literal(parser, "#", 0) - _t1559 = 0 + _t1628 = 0 else if match_lookahead_terminal(parser, "UINT32", 0) - _t1560 = 1 + _t1629 = 1 else if match_lookahead_terminal(parser, "UINT128", 0) - _t1561 = 1 + _t1630 = 1 else if match_lookahead_terminal(parser, "SYMBOL", 0) - _t1562 = 1 + _t1631 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t1563 = 1 + _t1632 = 1 else if match_lookahead_terminal(parser, "INT32", 0) - _t1564 = 1 + _t1633 = 1 else if match_lookahead_terminal(parser, "INT128", 0) - _t1565 = 1 + _t1634 = 1 else if match_lookahead_terminal(parser, "INT", 0) - _t1566 = 1 + _t1635 = 1 else if match_lookahead_terminal(parser, "FLOAT32", 0) - _t1567 = 1 + _t1636 = 1 else if match_lookahead_terminal(parser, "FLOAT", 0) - _t1568 = 1 + _t1637 = 1 else if match_lookahead_terminal(parser, "DECIMAL", 0) - _t1569 = 1 + _t1638 = 1 else - _t1569 = -1 + _t1638 = -1 end - _t1568 = _t1569 + _t1637 = _t1638 end - _t1567 = _t1568 + _t1636 = _t1637 end - _t1566 = _t1567 + _t1635 = _t1636 end - _t1565 = _t1566 + _t1634 = _t1635 end - _t1564 = _t1565 + _t1633 = _t1634 end - _t1563 = _t1564 + _t1632 = _t1633 end - _t1562 = _t1563 + _t1631 = _t1632 end - _t1561 = _t1562 + _t1630 = _t1631 end - _t1560 = _t1561 + _t1629 = _t1630 end - _t1559 = _t1560 + _t1628 = _t1629 end - _t1558 = _t1559 + _t1627 = _t1628 end - _t1557 = _t1558 + _t1626 = _t1627 end - _t1556 = _t1557 + _t1625 = _t1626 end - _t1555 = _t1556 - end - prediction883 = _t1555 - if prediction883 == 1 - _t1571 = parse_term(parser) - term885 = _t1571 - _t1572 = Proto.RelTerm(rel_term_type=OneOf(:term, term885)) - _t1570 = _t1572 - else - if prediction883 == 0 - _t1574 = parse_specialized_value(parser) - specialized_value884 = _t1574 - _t1575 = Proto.RelTerm(rel_term_type=OneOf(:specialized_value, specialized_value884)) - _t1573 = _t1575 + _t1624 = _t1625 + end + prediction917 = _t1624 + if prediction917 == 1 + _t1640 = parse_term(parser) + term919 = _t1640 + _t1641 = Proto.RelTerm(rel_term_type=OneOf(:term, term919)) + _t1639 = _t1641 + else + if prediction917 == 0 + _t1643 = parse_specialized_value(parser) + specialized_value918 = _t1643 + _t1644 = Proto.RelTerm(rel_term_type=OneOf(:specialized_value, specialized_value918)) + _t1642 = _t1644 else throw(ParseError("Unexpected token in rel_term" * ": " * string(lookahead(parser, 0)))) end - _t1570 = _t1573 + _t1639 = _t1642 end - result887 = _t1570 - record_span!(parser, span_start886, "RelTerm") - return result887 + result921 = _t1639 + record_span!(parser, span_start920, "RelTerm") + return result921 end function parse_specialized_value(parser::ParserState)::Proto.Value - span_start889 = span_start(parser) + span_start923 = span_start(parser) consume_literal!(parser, "#") - _t1576 = parse_value(parser) - value888 = _t1576 - result890 = value888 - record_span!(parser, span_start889, "Value") - return result890 + _t1645 = parse_value(parser) + value922 = _t1645 + result924 = value922 + record_span!(parser, span_start923, "Value") + return result924 end function parse_rel_atom(parser::ParserState)::Proto.RelAtom - span_start896 = span_start(parser) + span_start930 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "relatom") - _t1577 = parse_name(parser) - name891 = _t1577 - xs892 = Proto.RelTerm[] - cond893 = ((((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) - while cond893 - _t1578 = parse_rel_term(parser) - item894 = _t1578 - push!(xs892, item894) - cond893 = ((((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + _t1646 = parse_name(parser) + name925 = _t1646 + xs926 = Proto.RelTerm[] + cond927 = ((((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + while cond927 + _t1647 = parse_rel_term(parser) + item928 = _t1647 + push!(xs926, item928) + cond927 = ((((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "SYMBOL", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) end - rel_terms895 = xs892 + rel_terms929 = xs926 consume_literal!(parser, ")") - _t1579 = Proto.RelAtom(name=name891, terms=rel_terms895) - result897 = _t1579 - record_span!(parser, span_start896, "RelAtom") - return result897 + _t1648 = Proto.RelAtom(name=name925, terms=rel_terms929) + result931 = _t1648 + record_span!(parser, span_start930, "RelAtom") + return result931 end function parse_cast(parser::ParserState)::Proto.Cast - span_start900 = span_start(parser) + span_start934 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "cast") - _t1580 = parse_term(parser) - term898 = _t1580 - _t1581 = parse_term(parser) - term_3899 = _t1581 + _t1649 = parse_term(parser) + term932 = _t1649 + _t1650 = parse_term(parser) + term_3933 = _t1650 consume_literal!(parser, ")") - _t1582 = Proto.Cast(input=term898, result=term_3899) - result901 = _t1582 - record_span!(parser, span_start900, "Cast") - return result901 + _t1651 = Proto.Cast(input=term932, result=term_3933) + result935 = _t1651 + record_span!(parser, span_start934, "Cast") + return result935 end function parse_attrs(parser::ParserState)::Vector{Proto.Attribute} consume_literal!(parser, "(") consume_literal!(parser, "attrs") - xs902 = Proto.Attribute[] - cond903 = match_lookahead_literal(parser, "(", 0) - while cond903 - _t1583 = parse_attribute(parser) - item904 = _t1583 - push!(xs902, item904) - cond903 = match_lookahead_literal(parser, "(", 0) + xs936 = Proto.Attribute[] + cond937 = match_lookahead_literal(parser, "(", 0) + while cond937 + _t1652 = parse_attribute(parser) + item938 = _t1652 + push!(xs936, item938) + cond937 = match_lookahead_literal(parser, "(", 0) end - attributes905 = xs902 + attributes939 = xs936 consume_literal!(parser, ")") - return attributes905 + return attributes939 end function parse_attribute(parser::ParserState)::Proto.Attribute - span_start911 = span_start(parser) + span_start945 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "attribute") - _t1584 = parse_name(parser) - name906 = _t1584 - xs907 = Proto.Value[] - cond908 = ((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) - while cond908 - _t1585 = parse_value(parser) - item909 = _t1585 - push!(xs907, item909) - cond908 = ((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) - end - values910 = xs907 - consume_literal!(parser, ")") - _t1586 = Proto.Attribute(name=name906, args=values910) - result912 = _t1586 - record_span!(parser, span_start911, "Attribute") - return result912 + _t1653 = parse_name(parser) + name940 = _t1653 + xs941 = Proto.Value[] + cond942 = ((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + while cond942 + _t1654 = parse_value(parser) + item943 = _t1654 + push!(xs941, item943) + cond942 = ((((((((((((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, "FLOAT32", 0)) || match_lookahead_terminal(parser, "INT", 0)) || match_lookahead_terminal(parser, "INT128", 0)) || match_lookahead_terminal(parser, "INT32", 0)) || match_lookahead_terminal(parser, "STRING", 0)) || match_lookahead_terminal(parser, "UINT128", 0)) || match_lookahead_terminal(parser, "UINT32", 0)) + end + values944 = xs941 + consume_literal!(parser, ")") + _t1655 = Proto.Attribute(name=name940, args=values944) + result946 = _t1655 + record_span!(parser, span_start945, "Attribute") + return result946 end function parse_algorithm(parser::ParserState)::Proto.Algorithm - span_start918 = span_start(parser) + span_start952 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "algorithm") - xs913 = Proto.RelationId[] - cond914 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond914 - _t1587 = parse_relation_id(parser) - item915 = _t1587 - push!(xs913, item915) - cond914 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + xs947 = Proto.RelationId[] + cond948 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond948 + _t1656 = parse_relation_id(parser) + item949 = _t1656 + push!(xs947, item949) + cond948 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) end - relation_ids916 = xs913 - _t1588 = parse_script(parser) - script917 = _t1588 + relation_ids950 = xs947 + _t1657 = parse_script(parser) + script951 = _t1657 consume_literal!(parser, ")") - _t1589 = Proto.Algorithm(var"#global"=relation_ids916, body=script917) - result919 = _t1589 - record_span!(parser, span_start918, "Algorithm") - return result919 + _t1658 = Proto.Algorithm(var"#global"=relation_ids950, body=script951) + result953 = _t1658 + record_span!(parser, span_start952, "Algorithm") + return result953 end function parse_script(parser::ParserState)::Proto.Script - span_start924 = span_start(parser) + span_start958 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "script") - xs920 = Proto.Construct[] - cond921 = match_lookahead_literal(parser, "(", 0) - while cond921 - _t1590 = parse_construct(parser) - item922 = _t1590 - push!(xs920, item922) - cond921 = match_lookahead_literal(parser, "(", 0) + xs954 = Proto.Construct[] + cond955 = match_lookahead_literal(parser, "(", 0) + while cond955 + _t1659 = parse_construct(parser) + item956 = _t1659 + push!(xs954, item956) + cond955 = match_lookahead_literal(parser, "(", 0) end - constructs923 = xs920 + constructs957 = xs954 consume_literal!(parser, ")") - _t1591 = Proto.Script(constructs=constructs923) - result925 = _t1591 - record_span!(parser, span_start924, "Script") - return result925 + _t1660 = Proto.Script(constructs=constructs957) + result959 = _t1660 + record_span!(parser, span_start958, "Script") + return result959 end function parse_construct(parser::ParserState)::Proto.Construct - span_start929 = span_start(parser) + span_start963 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "upsert", 1) - _t1593 = 1 + _t1662 = 1 else if match_lookahead_literal(parser, "monus", 1) - _t1594 = 1 + _t1663 = 1 else if match_lookahead_literal(parser, "monoid", 1) - _t1595 = 1 + _t1664 = 1 else if match_lookahead_literal(parser, "loop", 1) - _t1596 = 0 + _t1665 = 0 else if match_lookahead_literal(parser, "break", 1) - _t1597 = 1 + _t1666 = 1 else if match_lookahead_literal(parser, "assign", 1) - _t1598 = 1 + _t1667 = 1 else - _t1598 = -1 + _t1667 = -1 end - _t1597 = _t1598 + _t1666 = _t1667 end - _t1596 = _t1597 + _t1665 = _t1666 end - _t1595 = _t1596 + _t1664 = _t1665 end - _t1594 = _t1595 + _t1663 = _t1664 end - _t1593 = _t1594 + _t1662 = _t1663 end - _t1592 = _t1593 - else - _t1592 = -1 - end - prediction926 = _t1592 - if prediction926 == 1 - _t1600 = parse_instruction(parser) - instruction928 = _t1600 - _t1601 = Proto.Construct(construct_type=OneOf(:instruction, instruction928)) - _t1599 = _t1601 - else - if prediction926 == 0 - _t1603 = parse_loop(parser) - loop927 = _t1603 - _t1604 = Proto.Construct(construct_type=OneOf(:loop, loop927)) - _t1602 = _t1604 + _t1661 = _t1662 + else + _t1661 = -1 + end + prediction960 = _t1661 + if prediction960 == 1 + _t1669 = parse_instruction(parser) + instruction962 = _t1669 + _t1670 = Proto.Construct(construct_type=OneOf(:instruction, instruction962)) + _t1668 = _t1670 + else + if prediction960 == 0 + _t1672 = parse_loop(parser) + loop961 = _t1672 + _t1673 = Proto.Construct(construct_type=OneOf(:loop, loop961)) + _t1671 = _t1673 else throw(ParseError("Unexpected token in construct" * ": " * string(lookahead(parser, 0)))) end - _t1599 = _t1602 + _t1668 = _t1671 end - result930 = _t1599 - record_span!(parser, span_start929, "Construct") - return result930 + result964 = _t1668 + record_span!(parser, span_start963, "Construct") + return result964 end function parse_loop(parser::ParserState)::Proto.Loop - span_start933 = span_start(parser) + span_start967 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "loop") - _t1605 = parse_init(parser) - init931 = _t1605 - _t1606 = parse_script(parser) - script932 = _t1606 + _t1674 = parse_init(parser) + init965 = _t1674 + _t1675 = parse_script(parser) + script966 = _t1675 consume_literal!(parser, ")") - _t1607 = Proto.Loop(init=init931, body=script932) - result934 = _t1607 - record_span!(parser, span_start933, "Loop") - return result934 + _t1676 = Proto.Loop(init=init965, body=script966) + result968 = _t1676 + record_span!(parser, span_start967, "Loop") + return result968 end function parse_init(parser::ParserState)::Vector{Proto.Instruction} consume_literal!(parser, "(") consume_literal!(parser, "init") - xs935 = Proto.Instruction[] - cond936 = match_lookahead_literal(parser, "(", 0) - while cond936 - _t1608 = parse_instruction(parser) - item937 = _t1608 - push!(xs935, item937) - cond936 = match_lookahead_literal(parser, "(", 0) + xs969 = Proto.Instruction[] + cond970 = match_lookahead_literal(parser, "(", 0) + while cond970 + _t1677 = parse_instruction(parser) + item971 = _t1677 + push!(xs969, item971) + cond970 = match_lookahead_literal(parser, "(", 0) end - instructions938 = xs935 + instructions972 = xs969 consume_literal!(parser, ")") - return instructions938 + return instructions972 end function parse_instruction(parser::ParserState)::Proto.Instruction - span_start945 = span_start(parser) + span_start979 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "upsert", 1) - _t1610 = 1 + _t1679 = 1 else if match_lookahead_literal(parser, "monus", 1) - _t1611 = 4 + _t1680 = 4 else if match_lookahead_literal(parser, "monoid", 1) - _t1612 = 3 + _t1681 = 3 else if match_lookahead_literal(parser, "break", 1) - _t1613 = 2 + _t1682 = 2 else if match_lookahead_literal(parser, "assign", 1) - _t1614 = 0 + _t1683 = 0 else - _t1614 = -1 + _t1683 = -1 end - _t1613 = _t1614 + _t1682 = _t1683 end - _t1612 = _t1613 + _t1681 = _t1682 end - _t1611 = _t1612 + _t1680 = _t1681 end - _t1610 = _t1611 + _t1679 = _t1680 end - _t1609 = _t1610 - else - _t1609 = -1 - end - prediction939 = _t1609 - if prediction939 == 4 - _t1616 = parse_monus_def(parser) - monus_def944 = _t1616 - _t1617 = Proto.Instruction(instr_type=OneOf(:monus_def, monus_def944)) - _t1615 = _t1617 - else - if prediction939 == 3 - _t1619 = parse_monoid_def(parser) - monoid_def943 = _t1619 - _t1620 = Proto.Instruction(instr_type=OneOf(:monoid_def, monoid_def943)) - _t1618 = _t1620 + _t1678 = _t1679 + else + _t1678 = -1 + end + prediction973 = _t1678 + if prediction973 == 4 + _t1685 = parse_monus_def(parser) + monus_def978 = _t1685 + _t1686 = Proto.Instruction(instr_type=OneOf(:monus_def, monus_def978)) + _t1684 = _t1686 + else + if prediction973 == 3 + _t1688 = parse_monoid_def(parser) + monoid_def977 = _t1688 + _t1689 = Proto.Instruction(instr_type=OneOf(:monoid_def, monoid_def977)) + _t1687 = _t1689 else - if prediction939 == 2 - _t1622 = parse_break(parser) - break942 = _t1622 - _t1623 = Proto.Instruction(instr_type=OneOf(:var"#break", break942)) - _t1621 = _t1623 + if prediction973 == 2 + _t1691 = parse_break(parser) + break976 = _t1691 + _t1692 = Proto.Instruction(instr_type=OneOf(:var"#break", break976)) + _t1690 = _t1692 else - if prediction939 == 1 - _t1625 = parse_upsert(parser) - upsert941 = _t1625 - _t1626 = Proto.Instruction(instr_type=OneOf(:upsert, upsert941)) - _t1624 = _t1626 + if prediction973 == 1 + _t1694 = parse_upsert(parser) + upsert975 = _t1694 + _t1695 = Proto.Instruction(instr_type=OneOf(:upsert, upsert975)) + _t1693 = _t1695 else - if prediction939 == 0 - _t1628 = parse_assign(parser) - assign940 = _t1628 - _t1629 = Proto.Instruction(instr_type=OneOf(:assign, assign940)) - _t1627 = _t1629 + if prediction973 == 0 + _t1697 = parse_assign(parser) + assign974 = _t1697 + _t1698 = Proto.Instruction(instr_type=OneOf(:assign, assign974)) + _t1696 = _t1698 else throw(ParseError("Unexpected token in instruction" * ": " * string(lookahead(parser, 0)))) end - _t1624 = _t1627 + _t1693 = _t1696 end - _t1621 = _t1624 + _t1690 = _t1693 end - _t1618 = _t1621 + _t1687 = _t1690 end - _t1615 = _t1618 + _t1684 = _t1687 end - result946 = _t1615 - record_span!(parser, span_start945, "Instruction") - return result946 + result980 = _t1684 + record_span!(parser, span_start979, "Instruction") + return result980 end function parse_assign(parser::ParserState)::Proto.Assign - span_start950 = span_start(parser) + span_start984 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "assign") - _t1630 = parse_relation_id(parser) - relation_id947 = _t1630 - _t1631 = parse_abstraction(parser) - abstraction948 = _t1631 + _t1699 = parse_relation_id(parser) + relation_id981 = _t1699 + _t1700 = parse_abstraction(parser) + abstraction982 = _t1700 if match_lookahead_literal(parser, "(", 0) - _t1633 = parse_attrs(parser) - _t1632 = _t1633 + _t1702 = parse_attrs(parser) + _t1701 = _t1702 else - _t1632 = nothing + _t1701 = nothing end - attrs949 = _t1632 + attrs983 = _t1701 consume_literal!(parser, ")") - _t1634 = Proto.Assign(name=relation_id947, body=abstraction948, attrs=(!isnothing(attrs949) ? attrs949 : Proto.Attribute[])) - result951 = _t1634 - record_span!(parser, span_start950, "Assign") - return result951 + _t1703 = Proto.Assign(name=relation_id981, body=abstraction982, attrs=(!isnothing(attrs983) ? attrs983 : Proto.Attribute[])) + result985 = _t1703 + record_span!(parser, span_start984, "Assign") + return result985 end function parse_upsert(parser::ParserState)::Proto.Upsert - span_start955 = span_start(parser) + span_start989 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "upsert") - _t1635 = parse_relation_id(parser) - relation_id952 = _t1635 - _t1636 = parse_abstraction_with_arity(parser) - abstraction_with_arity953 = _t1636 + _t1704 = parse_relation_id(parser) + relation_id986 = _t1704 + _t1705 = parse_abstraction_with_arity(parser) + abstraction_with_arity987 = _t1705 if match_lookahead_literal(parser, "(", 0) - _t1638 = parse_attrs(parser) - _t1637 = _t1638 + _t1707 = parse_attrs(parser) + _t1706 = _t1707 else - _t1637 = nothing + _t1706 = nothing end - attrs954 = _t1637 + attrs988 = _t1706 consume_literal!(parser, ")") - _t1639 = Proto.Upsert(name=relation_id952, body=abstraction_with_arity953[1], attrs=(!isnothing(attrs954) ? attrs954 : Proto.Attribute[]), value_arity=abstraction_with_arity953[2]) - result956 = _t1639 - record_span!(parser, span_start955, "Upsert") - return result956 + _t1708 = Proto.Upsert(name=relation_id986, body=abstraction_with_arity987[1], attrs=(!isnothing(attrs988) ? attrs988 : Proto.Attribute[]), value_arity=abstraction_with_arity987[2]) + result990 = _t1708 + record_span!(parser, span_start989, "Upsert") + return result990 end function parse_abstraction_with_arity(parser::ParserState)::Tuple{Proto.Abstraction, Int64} consume_literal!(parser, "(") - _t1640 = parse_bindings(parser) - bindings957 = _t1640 - _t1641 = parse_formula(parser) - formula958 = _t1641 + _t1709 = parse_bindings(parser) + bindings991 = _t1709 + _t1710 = parse_formula(parser) + formula992 = _t1710 consume_literal!(parser, ")") - _t1642 = Proto.Abstraction(vars=vcat(bindings957[1], !isnothing(bindings957[2]) ? bindings957[2] : []), value=formula958) - return (_t1642, length(bindings957[2]),) + _t1711 = Proto.Abstraction(vars=vcat(bindings991[1], !isnothing(bindings991[2]) ? bindings991[2] : []), value=formula992) + return (_t1711, length(bindings991[2]),) end function parse_break(parser::ParserState)::Proto.Break - span_start962 = span_start(parser) + span_start996 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "break") - _t1643 = parse_relation_id(parser) - relation_id959 = _t1643 - _t1644 = parse_abstraction(parser) - abstraction960 = _t1644 + _t1712 = parse_relation_id(parser) + relation_id993 = _t1712 + _t1713 = parse_abstraction(parser) + abstraction994 = _t1713 if match_lookahead_literal(parser, "(", 0) - _t1646 = parse_attrs(parser) - _t1645 = _t1646 + _t1715 = parse_attrs(parser) + _t1714 = _t1715 else - _t1645 = nothing + _t1714 = nothing end - attrs961 = _t1645 + attrs995 = _t1714 consume_literal!(parser, ")") - _t1647 = Proto.Break(name=relation_id959, body=abstraction960, attrs=(!isnothing(attrs961) ? attrs961 : Proto.Attribute[])) - result963 = _t1647 - record_span!(parser, span_start962, "Break") - return result963 + _t1716 = Proto.Break(name=relation_id993, body=abstraction994, attrs=(!isnothing(attrs995) ? attrs995 : Proto.Attribute[])) + result997 = _t1716 + record_span!(parser, span_start996, "Break") + return result997 end function parse_monoid_def(parser::ParserState)::Proto.MonoidDef - span_start968 = span_start(parser) + span_start1002 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "monoid") - _t1648 = parse_monoid(parser) - monoid964 = _t1648 - _t1649 = parse_relation_id(parser) - relation_id965 = _t1649 - _t1650 = parse_abstraction_with_arity(parser) - abstraction_with_arity966 = _t1650 + _t1717 = parse_monoid(parser) + monoid998 = _t1717 + _t1718 = parse_relation_id(parser) + relation_id999 = _t1718 + _t1719 = parse_abstraction_with_arity(parser) + abstraction_with_arity1000 = _t1719 if match_lookahead_literal(parser, "(", 0) - _t1652 = parse_attrs(parser) - _t1651 = _t1652 + _t1721 = parse_attrs(parser) + _t1720 = _t1721 else - _t1651 = nothing + _t1720 = nothing end - attrs967 = _t1651 + attrs1001 = _t1720 consume_literal!(parser, ")") - _t1653 = Proto.MonoidDef(monoid=monoid964, name=relation_id965, body=abstraction_with_arity966[1], attrs=(!isnothing(attrs967) ? attrs967 : Proto.Attribute[]), value_arity=abstraction_with_arity966[2]) - result969 = _t1653 - record_span!(parser, span_start968, "MonoidDef") - return result969 + _t1722 = Proto.MonoidDef(monoid=monoid998, name=relation_id999, body=abstraction_with_arity1000[1], attrs=(!isnothing(attrs1001) ? attrs1001 : Proto.Attribute[]), value_arity=abstraction_with_arity1000[2]) + result1003 = _t1722 + record_span!(parser, span_start1002, "MonoidDef") + return result1003 end function parse_monoid(parser::ParserState)::Proto.Monoid - span_start975 = span_start(parser) + span_start1009 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "sum", 1) - _t1655 = 3 + _t1724 = 3 else if match_lookahead_literal(parser, "or", 1) - _t1656 = 0 + _t1725 = 0 else if match_lookahead_literal(parser, "min", 1) - _t1657 = 1 + _t1726 = 1 else if match_lookahead_literal(parser, "max", 1) - _t1658 = 2 + _t1727 = 2 else - _t1658 = -1 + _t1727 = -1 end - _t1657 = _t1658 + _t1726 = _t1727 end - _t1656 = _t1657 + _t1725 = _t1726 end - _t1655 = _t1656 + _t1724 = _t1725 end - _t1654 = _t1655 - else - _t1654 = -1 - end - prediction970 = _t1654 - if prediction970 == 3 - _t1660 = parse_sum_monoid(parser) - sum_monoid974 = _t1660 - _t1661 = Proto.Monoid(value=OneOf(:sum_monoid, sum_monoid974)) - _t1659 = _t1661 - else - if prediction970 == 2 - _t1663 = parse_max_monoid(parser) - max_monoid973 = _t1663 - _t1664 = Proto.Monoid(value=OneOf(:max_monoid, max_monoid973)) - _t1662 = _t1664 + _t1723 = _t1724 + else + _t1723 = -1 + end + prediction1004 = _t1723 + if prediction1004 == 3 + _t1729 = parse_sum_monoid(parser) + sum_monoid1008 = _t1729 + _t1730 = Proto.Monoid(value=OneOf(:sum_monoid, sum_monoid1008)) + _t1728 = _t1730 + else + if prediction1004 == 2 + _t1732 = parse_max_monoid(parser) + max_monoid1007 = _t1732 + _t1733 = Proto.Monoid(value=OneOf(:max_monoid, max_monoid1007)) + _t1731 = _t1733 else - if prediction970 == 1 - _t1666 = parse_min_monoid(parser) - min_monoid972 = _t1666 - _t1667 = Proto.Monoid(value=OneOf(:min_monoid, min_monoid972)) - _t1665 = _t1667 + if prediction1004 == 1 + _t1735 = parse_min_monoid(parser) + min_monoid1006 = _t1735 + _t1736 = Proto.Monoid(value=OneOf(:min_monoid, min_monoid1006)) + _t1734 = _t1736 else - if prediction970 == 0 - _t1669 = parse_or_monoid(parser) - or_monoid971 = _t1669 - _t1670 = Proto.Monoid(value=OneOf(:or_monoid, or_monoid971)) - _t1668 = _t1670 + if prediction1004 == 0 + _t1738 = parse_or_monoid(parser) + or_monoid1005 = _t1738 + _t1739 = Proto.Monoid(value=OneOf(:or_monoid, or_monoid1005)) + _t1737 = _t1739 else throw(ParseError("Unexpected token in monoid" * ": " * string(lookahead(parser, 0)))) end - _t1665 = _t1668 + _t1734 = _t1737 end - _t1662 = _t1665 + _t1731 = _t1734 end - _t1659 = _t1662 + _t1728 = _t1731 end - result976 = _t1659 - record_span!(parser, span_start975, "Monoid") - return result976 + result1010 = _t1728 + record_span!(parser, span_start1009, "Monoid") + return result1010 end function parse_or_monoid(parser::ParserState)::Proto.OrMonoid - span_start977 = span_start(parser) + span_start1011 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "or") consume_literal!(parser, ")") - _t1671 = Proto.OrMonoid() - result978 = _t1671 - record_span!(parser, span_start977, "OrMonoid") - return result978 + _t1740 = Proto.OrMonoid() + result1012 = _t1740 + record_span!(parser, span_start1011, "OrMonoid") + return result1012 end function parse_min_monoid(parser::ParserState)::Proto.MinMonoid - span_start980 = span_start(parser) + span_start1014 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "min") - _t1672 = parse_type(parser) - type979 = _t1672 + _t1741 = parse_type(parser) + type1013 = _t1741 consume_literal!(parser, ")") - _t1673 = Proto.MinMonoid(var"#type"=type979) - result981 = _t1673 - record_span!(parser, span_start980, "MinMonoid") - return result981 + _t1742 = Proto.MinMonoid(var"#type"=type1013) + result1015 = _t1742 + record_span!(parser, span_start1014, "MinMonoid") + return result1015 end function parse_max_monoid(parser::ParserState)::Proto.MaxMonoid - span_start983 = span_start(parser) + span_start1017 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "max") - _t1674 = parse_type(parser) - type982 = _t1674 + _t1743 = parse_type(parser) + type1016 = _t1743 consume_literal!(parser, ")") - _t1675 = Proto.MaxMonoid(var"#type"=type982) - result984 = _t1675 - record_span!(parser, span_start983, "MaxMonoid") - return result984 + _t1744 = Proto.MaxMonoid(var"#type"=type1016) + result1018 = _t1744 + record_span!(parser, span_start1017, "MaxMonoid") + return result1018 end function parse_sum_monoid(parser::ParserState)::Proto.SumMonoid - span_start986 = span_start(parser) + span_start1020 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "sum") - _t1676 = parse_type(parser) - type985 = _t1676 + _t1745 = parse_type(parser) + type1019 = _t1745 consume_literal!(parser, ")") - _t1677 = Proto.SumMonoid(var"#type"=type985) - result987 = _t1677 - record_span!(parser, span_start986, "SumMonoid") - return result987 + _t1746 = Proto.SumMonoid(var"#type"=type1019) + result1021 = _t1746 + record_span!(parser, span_start1020, "SumMonoid") + return result1021 end function parse_monus_def(parser::ParserState)::Proto.MonusDef - span_start992 = span_start(parser) + span_start1026 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "monus") - _t1678 = parse_monoid(parser) - monoid988 = _t1678 - _t1679 = parse_relation_id(parser) - relation_id989 = _t1679 - _t1680 = parse_abstraction_with_arity(parser) - abstraction_with_arity990 = _t1680 + _t1747 = parse_monoid(parser) + monoid1022 = _t1747 + _t1748 = parse_relation_id(parser) + relation_id1023 = _t1748 + _t1749 = parse_abstraction_with_arity(parser) + abstraction_with_arity1024 = _t1749 if match_lookahead_literal(parser, "(", 0) - _t1682 = parse_attrs(parser) - _t1681 = _t1682 + _t1751 = parse_attrs(parser) + _t1750 = _t1751 else - _t1681 = nothing + _t1750 = nothing end - attrs991 = _t1681 + attrs1025 = _t1750 consume_literal!(parser, ")") - _t1683 = Proto.MonusDef(monoid=monoid988, name=relation_id989, body=abstraction_with_arity990[1], attrs=(!isnothing(attrs991) ? attrs991 : Proto.Attribute[]), value_arity=abstraction_with_arity990[2]) - result993 = _t1683 - record_span!(parser, span_start992, "MonusDef") - return result993 + _t1752 = Proto.MonusDef(monoid=monoid1022, name=relation_id1023, body=abstraction_with_arity1024[1], attrs=(!isnothing(attrs1025) ? attrs1025 : Proto.Attribute[]), value_arity=abstraction_with_arity1024[2]) + result1027 = _t1752 + record_span!(parser, span_start1026, "MonusDef") + return result1027 end function parse_constraint(parser::ParserState)::Proto.Constraint - span_start998 = span_start(parser) + span_start1032 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "functional_dependency") - _t1684 = parse_relation_id(parser) - relation_id994 = _t1684 - _t1685 = parse_abstraction(parser) - abstraction995 = _t1685 - _t1686 = parse_functional_dependency_keys(parser) - functional_dependency_keys996 = _t1686 - _t1687 = parse_functional_dependency_values(parser) - functional_dependency_values997 = _t1687 - consume_literal!(parser, ")") - _t1688 = Proto.FunctionalDependency(guard=abstraction995, keys=functional_dependency_keys996, values=functional_dependency_values997) - _t1689 = Proto.Constraint(constraint_type=OneOf(:functional_dependency, _t1688), name=relation_id994) - result999 = _t1689 - record_span!(parser, span_start998, "Constraint") - return result999 + _t1753 = parse_relation_id(parser) + relation_id1028 = _t1753 + _t1754 = parse_abstraction(parser) + abstraction1029 = _t1754 + _t1755 = parse_functional_dependency_keys(parser) + functional_dependency_keys1030 = _t1755 + _t1756 = parse_functional_dependency_values(parser) + functional_dependency_values1031 = _t1756 + consume_literal!(parser, ")") + _t1757 = Proto.FunctionalDependency(guard=abstraction1029, keys=functional_dependency_keys1030, values=functional_dependency_values1031) + _t1758 = Proto.Constraint(constraint_type=OneOf(:functional_dependency, _t1757), name=relation_id1028) + result1033 = _t1758 + record_span!(parser, span_start1032, "Constraint") + return result1033 end function parse_functional_dependency_keys(parser::ParserState)::Vector{Proto.Var} consume_literal!(parser, "(") consume_literal!(parser, "keys") - xs1000 = Proto.Var[] - cond1001 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond1001 - _t1690 = parse_var(parser) - item1002 = _t1690 - push!(xs1000, item1002) - cond1001 = match_lookahead_terminal(parser, "SYMBOL", 0) + xs1034 = Proto.Var[] + cond1035 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond1035 + _t1759 = parse_var(parser) + item1036 = _t1759 + push!(xs1034, item1036) + cond1035 = match_lookahead_terminal(parser, "SYMBOL", 0) end - vars1003 = xs1000 + vars1037 = xs1034 consume_literal!(parser, ")") - return vars1003 + return vars1037 end function parse_functional_dependency_values(parser::ParserState)::Vector{Proto.Var} consume_literal!(parser, "(") consume_literal!(parser, "values") - xs1004 = Proto.Var[] - cond1005 = match_lookahead_terminal(parser, "SYMBOL", 0) - while cond1005 - _t1691 = parse_var(parser) - item1006 = _t1691 - push!(xs1004, item1006) - cond1005 = match_lookahead_terminal(parser, "SYMBOL", 0) + xs1038 = Proto.Var[] + cond1039 = match_lookahead_terminal(parser, "SYMBOL", 0) + while cond1039 + _t1760 = parse_var(parser) + item1040 = _t1760 + push!(xs1038, item1040) + cond1039 = match_lookahead_terminal(parser, "SYMBOL", 0) end - vars1007 = xs1004 + vars1041 = xs1038 consume_literal!(parser, ")") - return vars1007 + return vars1041 end function parse_data(parser::ParserState)::Proto.Data - span_start1012 = span_start(parser) + span_start1047 = span_start(parser) if match_lookahead_literal(parser, "(", 0) - if match_lookahead_literal(parser, "edb", 1) - _t1693 = 0 + if match_lookahead_literal(parser, "iceberg_data", 1) + _t1762 = 3 else - if match_lookahead_literal(parser, "csv_data", 1) - _t1694 = 2 + if match_lookahead_literal(parser, "edb", 1) + _t1763 = 0 else - if match_lookahead_literal(parser, "betree_relation", 1) - _t1695 = 1 + if match_lookahead_literal(parser, "csv_data", 1) + _t1764 = 2 else - _t1695 = -1 + if match_lookahead_literal(parser, "betree_relation", 1) + _t1765 = 1 + else + _t1765 = -1 + end + _t1764 = _t1765 end - _t1694 = _t1695 + _t1763 = _t1764 end - _t1693 = _t1694 + _t1762 = _t1763 end - _t1692 = _t1693 - else - _t1692 = -1 - end - prediction1008 = _t1692 - if prediction1008 == 2 - _t1697 = parse_csv_data(parser) - csv_data1011 = _t1697 - _t1698 = Proto.Data(data_type=OneOf(:csv_data, csv_data1011)) - _t1696 = _t1698 - else - if prediction1008 == 1 - _t1700 = parse_betree_relation(parser) - betree_relation1010 = _t1700 - _t1701 = Proto.Data(data_type=OneOf(:betree_relation, betree_relation1010)) - _t1699 = _t1701 + _t1761 = _t1762 + else + _t1761 = -1 + end + prediction1042 = _t1761 + if prediction1042 == 3 + _t1767 = parse_iceberg_data(parser) + iceberg_data1046 = _t1767 + _t1768 = Proto.Data(data_type=OneOf(:iceberg_data, iceberg_data1046)) + _t1766 = _t1768 + else + if prediction1042 == 2 + _t1770 = parse_csv_data(parser) + csv_data1045 = _t1770 + _t1771 = Proto.Data(data_type=OneOf(:csv_data, csv_data1045)) + _t1769 = _t1771 else - if prediction1008 == 0 - _t1703 = parse_edb(parser) - edb1009 = _t1703 - _t1704 = Proto.Data(data_type=OneOf(:edb, edb1009)) - _t1702 = _t1704 + if prediction1042 == 1 + _t1773 = parse_betree_relation(parser) + betree_relation1044 = _t1773 + _t1774 = Proto.Data(data_type=OneOf(:betree_relation, betree_relation1044)) + _t1772 = _t1774 else - throw(ParseError("Unexpected token in data" * ": " * string(lookahead(parser, 0)))) + if prediction1042 == 0 + _t1776 = parse_edb(parser) + edb1043 = _t1776 + _t1777 = Proto.Data(data_type=OneOf(:edb, edb1043)) + _t1775 = _t1777 + else + throw(ParseError("Unexpected token in data" * ": " * string(lookahead(parser, 0)))) + end + _t1772 = _t1775 end - _t1699 = _t1702 + _t1769 = _t1772 end - _t1696 = _t1699 + _t1766 = _t1769 end - result1013 = _t1696 - record_span!(parser, span_start1012, "Data") - return result1013 + result1048 = _t1766 + record_span!(parser, span_start1047, "Data") + return result1048 end function parse_edb(parser::ParserState)::Proto.EDB - span_start1017 = span_start(parser) + span_start1052 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "edb") - _t1705 = parse_relation_id(parser) - relation_id1014 = _t1705 - _t1706 = parse_edb_path(parser) - edb_path1015 = _t1706 - _t1707 = parse_edb_types(parser) - edb_types1016 = _t1707 - consume_literal!(parser, ")") - _t1708 = Proto.EDB(target_id=relation_id1014, path=edb_path1015, types=edb_types1016) - result1018 = _t1708 - record_span!(parser, span_start1017, "EDB") - return result1018 + _t1778 = parse_relation_id(parser) + relation_id1049 = _t1778 + _t1779 = parse_edb_path(parser) + edb_path1050 = _t1779 + _t1780 = parse_edb_types(parser) + edb_types1051 = _t1780 + consume_literal!(parser, ")") + _t1781 = Proto.EDB(target_id=relation_id1049, path=edb_path1050, types=edb_types1051) + result1053 = _t1781 + record_span!(parser, span_start1052, "EDB") + return result1053 end function parse_edb_path(parser::ParserState)::Vector{String} consume_literal!(parser, "[") - xs1019 = String[] - cond1020 = match_lookahead_terminal(parser, "STRING", 0) - while cond1020 - item1021 = consume_terminal!(parser, "STRING") - push!(xs1019, item1021) - cond1020 = match_lookahead_terminal(parser, "STRING", 0) - end - strings1022 = xs1019 + xs1054 = String[] + cond1055 = match_lookahead_terminal(parser, "STRING", 0) + while cond1055 + item1056 = consume_terminal!(parser, "STRING") + push!(xs1054, item1056) + cond1055 = match_lookahead_terminal(parser, "STRING", 0) + end + strings1057 = xs1054 consume_literal!(parser, "]") - return strings1022 + return strings1057 end function parse_edb_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "[") - xs1023 = Proto.var"#Type"[] - cond1024 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - while cond1024 - _t1709 = parse_type(parser) - item1025 = _t1709 - push!(xs1023, item1025) - cond1024 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - end - types1026 = xs1023 + xs1058 = Proto.var"#Type"[] + cond1059 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + while cond1059 + _t1782 = parse_type(parser) + item1060 = _t1782 + push!(xs1058, item1060) + cond1059 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + end + types1061 = xs1058 consume_literal!(parser, "]") - return types1026 + return types1061 end function parse_betree_relation(parser::ParserState)::Proto.BeTreeRelation - span_start1029 = span_start(parser) + span_start1064 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "betree_relation") - _t1710 = parse_relation_id(parser) - relation_id1027 = _t1710 - _t1711 = parse_betree_info(parser) - betree_info1028 = _t1711 + _t1783 = parse_relation_id(parser) + relation_id1062 = _t1783 + _t1784 = parse_betree_info(parser) + betree_info1063 = _t1784 consume_literal!(parser, ")") - _t1712 = Proto.BeTreeRelation(name=relation_id1027, relation_info=betree_info1028) - result1030 = _t1712 - record_span!(parser, span_start1029, "BeTreeRelation") - return result1030 + _t1785 = Proto.BeTreeRelation(name=relation_id1062, relation_info=betree_info1063) + result1065 = _t1785 + record_span!(parser, span_start1064, "BeTreeRelation") + return result1065 end function parse_betree_info(parser::ParserState)::Proto.BeTreeInfo - span_start1034 = span_start(parser) + span_start1069 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "betree_info") - _t1713 = parse_betree_info_key_types(parser) - betree_info_key_types1031 = _t1713 - _t1714 = parse_betree_info_value_types(parser) - betree_info_value_types1032 = _t1714 - _t1715 = parse_config_dict(parser) - config_dict1033 = _t1715 + _t1786 = parse_betree_info_key_types(parser) + betree_info_key_types1066 = _t1786 + _t1787 = parse_betree_info_value_types(parser) + betree_info_value_types1067 = _t1787 + _t1788 = parse_config_dict(parser) + config_dict1068 = _t1788 consume_literal!(parser, ")") - _t1716 = construct_betree_info(parser, betree_info_key_types1031, betree_info_value_types1032, config_dict1033) - result1035 = _t1716 - record_span!(parser, span_start1034, "BeTreeInfo") - return result1035 + _t1789 = construct_betree_info(parser, betree_info_key_types1066, betree_info_value_types1067, config_dict1068) + result1070 = _t1789 + record_span!(parser, span_start1069, "BeTreeInfo") + return result1070 end function parse_betree_info_key_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "(") consume_literal!(parser, "key_types") - xs1036 = Proto.var"#Type"[] - cond1037 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - while cond1037 - _t1717 = parse_type(parser) - item1038 = _t1717 - push!(xs1036, item1038) - cond1037 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + xs1071 = Proto.var"#Type"[] + cond1072 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + while cond1072 + _t1790 = parse_type(parser) + item1073 = _t1790 + push!(xs1071, item1073) + cond1072 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) end - types1039 = xs1036 + types1074 = xs1071 consume_literal!(parser, ")") - return types1039 + return types1074 end function parse_betree_info_value_types(parser::ParserState)::Vector{Proto.var"#Type"} consume_literal!(parser, "(") consume_literal!(parser, "value_types") - xs1040 = Proto.var"#Type"[] - cond1041 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - while cond1041 - _t1718 = parse_type(parser) - item1042 = _t1718 - push!(xs1040, item1042) - cond1041 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + xs1075 = Proto.var"#Type"[] + cond1076 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + while cond1076 + _t1791 = parse_type(parser) + item1077 = _t1791 + push!(xs1075, item1077) + cond1076 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) end - types1043 = xs1040 + types1078 = xs1075 consume_literal!(parser, ")") - return types1043 + return types1078 end function parse_csv_data(parser::ParserState)::Proto.CSVData - span_start1048 = span_start(parser) + span_start1083 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "csv_data") - _t1719 = parse_csvlocator(parser) - csvlocator1044 = _t1719 - _t1720 = parse_csv_config(parser) - csv_config1045 = _t1720 - _t1721 = parse_gnf_columns(parser) - gnf_columns1046 = _t1721 - _t1722 = parse_csv_asof(parser) - csv_asof1047 = _t1722 + _t1792 = parse_csvlocator(parser) + csvlocator1079 = _t1792 + _t1793 = parse_csv_config(parser) + csv_config1080 = _t1793 + _t1794 = parse_gnf_columns(parser) + gnf_columns1081 = _t1794 + _t1795 = parse_csv_asof(parser) + csv_asof1082 = _t1795 consume_literal!(parser, ")") - _t1723 = Proto.CSVData(locator=csvlocator1044, config=csv_config1045, columns=gnf_columns1046, asof=csv_asof1047) - result1049 = _t1723 - record_span!(parser, span_start1048, "CSVData") - return result1049 + _t1796 = Proto.CSVData(locator=csvlocator1079, config=csv_config1080, columns=gnf_columns1081, asof=csv_asof1082) + result1084 = _t1796 + record_span!(parser, span_start1083, "CSVData") + return result1084 end function parse_csvlocator(parser::ParserState)::Proto.CSVLocator - span_start1052 = span_start(parser) + span_start1087 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "csv_locator") if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "paths", 1)) - _t1725 = parse_csv_locator_paths(parser) - _t1724 = _t1725 + _t1798 = parse_csv_locator_paths(parser) + _t1797 = _t1798 else - _t1724 = nothing + _t1797 = nothing end - csv_locator_paths1050 = _t1724 + csv_locator_paths1085 = _t1797 if match_lookahead_literal(parser, "(", 0) - _t1727 = parse_csv_locator_inline_data(parser) - _t1726 = _t1727 + _t1800 = parse_csv_locator_inline_data(parser) + _t1799 = _t1800 else - _t1726 = nothing + _t1799 = nothing end - csv_locator_inline_data1051 = _t1726 + csv_locator_inline_data1086 = _t1799 consume_literal!(parser, ")") - _t1728 = Proto.CSVLocator(paths=(!isnothing(csv_locator_paths1050) ? csv_locator_paths1050 : String[]), inline_data=Vector{UInt8}((!isnothing(csv_locator_inline_data1051) ? csv_locator_inline_data1051 : ""))) - result1053 = _t1728 - record_span!(parser, span_start1052, "CSVLocator") - return result1053 + _t1801 = Proto.CSVLocator(paths=(!isnothing(csv_locator_paths1085) ? csv_locator_paths1085 : String[]), inline_data=Vector{UInt8}((!isnothing(csv_locator_inline_data1086) ? csv_locator_inline_data1086 : ""))) + result1088 = _t1801 + record_span!(parser, span_start1087, "CSVLocator") + return result1088 end function parse_csv_locator_paths(parser::ParserState)::Vector{String} consume_literal!(parser, "(") consume_literal!(parser, "paths") - xs1054 = String[] - cond1055 = match_lookahead_terminal(parser, "STRING", 0) - while cond1055 - item1056 = consume_terminal!(parser, "STRING") - push!(xs1054, item1056) - cond1055 = match_lookahead_terminal(parser, "STRING", 0) + xs1089 = String[] + cond1090 = match_lookahead_terminal(parser, "STRING", 0) + while cond1090 + item1091 = consume_terminal!(parser, "STRING") + push!(xs1089, item1091) + cond1090 = match_lookahead_terminal(parser, "STRING", 0) end - strings1057 = xs1054 + strings1092 = xs1089 consume_literal!(parser, ")") - return strings1057 + return strings1092 end function parse_csv_locator_inline_data(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "inline_data") - string1058 = consume_terminal!(parser, "STRING") + string1093 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1058 + return string1093 end function parse_csv_config(parser::ParserState)::Proto.CSVConfig - span_start1060 = span_start(parser) + span_start1095 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "csv_config") - _t1729 = parse_config_dict(parser) - config_dict1059 = _t1729 + _t1802 = parse_config_dict(parser) + config_dict1094 = _t1802 consume_literal!(parser, ")") - _t1730 = construct_csv_config(parser, config_dict1059) - result1061 = _t1730 - record_span!(parser, span_start1060, "CSVConfig") - return result1061 + _t1803 = construct_csv_config(parser, config_dict1094) + result1096 = _t1803 + record_span!(parser, span_start1095, "CSVConfig") + return result1096 end function parse_gnf_columns(parser::ParserState)::Vector{Proto.GNFColumn} consume_literal!(parser, "(") consume_literal!(parser, "columns") - xs1062 = Proto.GNFColumn[] - cond1063 = match_lookahead_literal(parser, "(", 0) - while cond1063 - _t1731 = parse_gnf_column(parser) - item1064 = _t1731 - push!(xs1062, item1064) - cond1063 = match_lookahead_literal(parser, "(", 0) + xs1097 = Proto.GNFColumn[] + cond1098 = match_lookahead_literal(parser, "(", 0) + while cond1098 + _t1804 = parse_gnf_column(parser) + item1099 = _t1804 + push!(xs1097, item1099) + cond1098 = match_lookahead_literal(parser, "(", 0) end - gnf_columns1065 = xs1062 + gnf_columns1100 = xs1097 consume_literal!(parser, ")") - return gnf_columns1065 + return gnf_columns1100 end function parse_gnf_column(parser::ParserState)::Proto.GNFColumn - span_start1072 = span_start(parser) + span_start1107 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "column") - _t1732 = parse_gnf_column_path(parser) - gnf_column_path1066 = _t1732 + _t1805 = parse_gnf_column_path(parser) + gnf_column_path1101 = _t1805 if (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - _t1734 = parse_relation_id(parser) - _t1733 = _t1734 + _t1807 = parse_relation_id(parser) + _t1806 = _t1807 else - _t1733 = nothing + _t1806 = nothing end - relation_id1067 = _t1733 + relation_id1102 = _t1806 consume_literal!(parser, "[") - xs1068 = Proto.var"#Type"[] - cond1069 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - while cond1069 - _t1735 = parse_type(parser) - item1070 = _t1735 - push!(xs1068, item1070) - cond1069 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) - end - types1071 = xs1068 + xs1103 = Proto.var"#Type"[] + cond1104 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + while cond1104 + _t1808 = parse_type(parser) + item1105 = _t1808 + push!(xs1103, item1105) + cond1104 = (((((((((((((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, "FLOAT32", 0)) || match_lookahead_literal(parser, "INT", 0)) || match_lookahead_literal(parser, "INT128", 0)) || match_lookahead_literal(parser, "INT32", 0)) || match_lookahead_literal(parser, "MISSING", 0)) || match_lookahead_literal(parser, "STRING", 0)) || match_lookahead_literal(parser, "UINT128", 0)) || match_lookahead_literal(parser, "UINT32", 0)) || match_lookahead_literal(parser, "UNKNOWN", 0)) + end + types1106 = xs1103 consume_literal!(parser, "]") consume_literal!(parser, ")") - _t1736 = Proto.GNFColumn(column_path=gnf_column_path1066, target_id=relation_id1067, types=types1071) - result1073 = _t1736 - record_span!(parser, span_start1072, "GNFColumn") - return result1073 + _t1809 = Proto.GNFColumn(column_path=gnf_column_path1101, target_id=relation_id1102, types=types1106) + result1108 = _t1809 + record_span!(parser, span_start1107, "GNFColumn") + return result1108 end function parse_gnf_column_path(parser::ParserState)::Vector{String} if match_lookahead_literal(parser, "[", 0) - _t1737 = 1 + _t1810 = 1 else if match_lookahead_terminal(parser, "STRING", 0) - _t1738 = 0 + _t1811 = 0 else - _t1738 = -1 + _t1811 = -1 end - _t1737 = _t1738 + _t1810 = _t1811 end - prediction1074 = _t1737 - if prediction1074 == 1 + prediction1109 = _t1810 + if prediction1109 == 1 consume_literal!(parser, "[") - xs1076 = String[] - cond1077 = match_lookahead_terminal(parser, "STRING", 0) - while cond1077 - item1078 = consume_terminal!(parser, "STRING") - push!(xs1076, item1078) - cond1077 = match_lookahead_terminal(parser, "STRING", 0) + xs1111 = String[] + cond1112 = match_lookahead_terminal(parser, "STRING", 0) + while cond1112 + item1113 = consume_terminal!(parser, "STRING") + push!(xs1111, item1113) + cond1112 = match_lookahead_terminal(parser, "STRING", 0) end - strings1079 = xs1076 + strings1114 = xs1111 consume_literal!(parser, "]") - _t1739 = strings1079 + _t1812 = strings1114 else - if prediction1074 == 0 - string1075 = consume_terminal!(parser, "STRING") - _t1740 = String[string1075] + if prediction1109 == 0 + string1110 = consume_terminal!(parser, "STRING") + _t1813 = String[string1110] else throw(ParseError("Unexpected token in gnf_column_path" * ": " * string(lookahead(parser, 0)))) end - _t1739 = _t1740 + _t1812 = _t1813 end - return _t1739 + return _t1812 end function parse_csv_asof(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "asof") - string1080 = consume_terminal!(parser, "STRING") + string1115 = consume_terminal!(parser, "STRING") + consume_literal!(parser, ")") + return string1115 +end + +function parse_iceberg_data(parser::ParserState)::Proto.IcebergData + span_start1120 = span_start(parser) + consume_literal!(parser, "(") + consume_literal!(parser, "iceberg_data") + _t1814 = parse_iceberg_locator(parser) + iceberg_locator1116 = _t1814 + _t1815 = parse_iceberg_config(parser) + iceberg_config1117 = _t1815 + _t1816 = parse_gnf_columns(parser) + gnf_columns1118 = _t1816 + if match_lookahead_literal(parser, "(", 0) + _t1818 = parse_iceberg_to_snapshot(parser) + _t1817 = _t1818 + else + _t1817 = nothing + end + iceberg_to_snapshot1119 = _t1817 + consume_literal!(parser, ")") + _t1819 = Proto.IcebergData(locator=iceberg_locator1116, config=iceberg_config1117, columns=gnf_columns1118, to_snapshot=iceberg_to_snapshot1119) + result1121 = _t1819 + record_span!(parser, span_start1120, "IcebergData") + return result1121 +end + +function parse_iceberg_locator(parser::ParserState)::Proto.IcebergLocator + span_start1125 = span_start(parser) + consume_literal!(parser, "(") + consume_literal!(parser, "iceberg_locator") + string1122 = consume_terminal!(parser, "STRING") + _t1820 = parse_iceberg_locator_namespace(parser) + iceberg_locator_namespace1123 = _t1820 + string_41124 = consume_terminal!(parser, "STRING") + consume_literal!(parser, ")") + _t1821 = Proto.IcebergLocator(table_name=string1122, namespace=iceberg_locator_namespace1123, warehouse=string_41124) + result1126 = _t1821 + record_span!(parser, span_start1125, "IcebergLocator") + return result1126 +end + +function parse_iceberg_locator_namespace(parser::ParserState)::Vector{String} + consume_literal!(parser, "(") + consume_literal!(parser, "namespace") + xs1127 = String[] + cond1128 = match_lookahead_terminal(parser, "STRING", 0) + while cond1128 + item1129 = consume_terminal!(parser, "STRING") + push!(xs1127, item1129) + cond1128 = match_lookahead_terminal(parser, "STRING", 0) + end + strings1130 = xs1127 consume_literal!(parser, ")") - return string1080 + return strings1130 +end + +function parse_iceberg_config(parser::ParserState)::Proto.IcebergConfig + span_start1135 = span_start(parser) + consume_literal!(parser, "(") + consume_literal!(parser, "iceberg_config") + string1131 = consume_terminal!(parser, "STRING") + if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "scope", 1)) + _t1823 = parse_iceberg_config_scope(parser) + _t1822 = _t1823 + else + _t1822 = nothing + end + iceberg_config_scope1132 = _t1822 + if (match_lookahead_literal(parser, "(", 0) && match_lookahead_literal(parser, "properties", 1)) + _t1825 = parse_iceberg_config_properties(parser) + _t1824 = _t1825 + else + _t1824 = nothing + end + iceberg_config_properties1133 = _t1824 + if match_lookahead_literal(parser, "(", 0) + _t1827 = parse_iceberg_config_credentials(parser) + _t1826 = _t1827 + else + _t1826 = nothing + end + iceberg_config_credentials1134 = _t1826 + consume_literal!(parser, ")") + _t1828 = construct_iceberg_config(parser, string1131, iceberg_config_scope1132, iceberg_config_properties1133, iceberg_config_credentials1134) + result1136 = _t1828 + record_span!(parser, span_start1135, "IcebergConfig") + return result1136 +end + +function parse_iceberg_config_scope(parser::ParserState)::String + consume_literal!(parser, "(") + consume_literal!(parser, "scope") + string1137 = consume_terminal!(parser, "STRING") + consume_literal!(parser, ")") + return string1137 +end + +function parse_iceberg_config_properties(parser::ParserState)::Vector{Tuple{String, String}} + consume_literal!(parser, "(") + consume_literal!(parser, "properties") + xs1138 = Tuple{String, String}[] + cond1139 = match_lookahead_literal(parser, "(", 0) + while cond1139 + _t1829 = parse_iceberg_kv_pair(parser) + item1140 = _t1829 + push!(xs1138, item1140) + cond1139 = match_lookahead_literal(parser, "(", 0) + end + iceberg_kv_pairs1141 = xs1138 + consume_literal!(parser, ")") + return iceberg_kv_pairs1141 +end + +function parse_iceberg_kv_pair(parser::ParserState)::Tuple{String, String} + consume_literal!(parser, "(") + string1142 = consume_terminal!(parser, "STRING") + string_21143 = consume_terminal!(parser, "STRING") + consume_literal!(parser, ")") + return (string1142, string_21143,) +end + +function parse_iceberg_config_credentials(parser::ParserState)::Vector{Tuple{String, String}} + consume_literal!(parser, "(") + consume_literal!(parser, "credentials") + xs1144 = Tuple{String, String}[] + cond1145 = match_lookahead_literal(parser, "(", 0) + while cond1145 + _t1830 = parse_iceberg_kv_pair(parser) + item1146 = _t1830 + push!(xs1144, item1146) + cond1145 = match_lookahead_literal(parser, "(", 0) + end + iceberg_kv_pairs1147 = xs1144 + consume_literal!(parser, ")") + return iceberg_kv_pairs1147 +end + +function parse_iceberg_to_snapshot(parser::ParserState)::String + consume_literal!(parser, "(") + consume_literal!(parser, "to_snapshot") + string1148 = consume_terminal!(parser, "STRING") + consume_literal!(parser, ")") + return string1148 end function parse_undefine(parser::ParserState)::Proto.Undefine - span_start1082 = span_start(parser) + span_start1150 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "undefine") - _t1741 = parse_fragment_id(parser) - fragment_id1081 = _t1741 + _t1831 = parse_fragment_id(parser) + fragment_id1149 = _t1831 consume_literal!(parser, ")") - _t1742 = Proto.Undefine(fragment_id=fragment_id1081) - result1083 = _t1742 - record_span!(parser, span_start1082, "Undefine") - return result1083 + _t1832 = Proto.Undefine(fragment_id=fragment_id1149) + result1151 = _t1832 + record_span!(parser, span_start1150, "Undefine") + return result1151 end function parse_context(parser::ParserState)::Proto.Context - span_start1088 = span_start(parser) + span_start1156 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "context") - xs1084 = Proto.RelationId[] - cond1085 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) - while cond1085 - _t1743 = parse_relation_id(parser) - item1086 = _t1743 - push!(xs1084, item1086) - cond1085 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + xs1152 = Proto.RelationId[] + cond1153 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) + while cond1153 + _t1833 = parse_relation_id(parser) + item1154 = _t1833 + push!(xs1152, item1154) + cond1153 = (match_lookahead_literal(parser, ":", 0) || match_lookahead_terminal(parser, "UINT128", 0)) end - relation_ids1087 = xs1084 + relation_ids1155 = xs1152 consume_literal!(parser, ")") - _t1744 = Proto.Context(relations=relation_ids1087) - result1089 = _t1744 - record_span!(parser, span_start1088, "Context") - return result1089 + _t1834 = Proto.Context(relations=relation_ids1155) + result1157 = _t1834 + record_span!(parser, span_start1156, "Context") + return result1157 end function parse_snapshot(parser::ParserState)::Proto.Snapshot - span_start1094 = span_start(parser) + span_start1162 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "snapshot") - xs1090 = Proto.SnapshotMapping[] - cond1091 = match_lookahead_literal(parser, "[", 0) - while cond1091 - _t1745 = parse_snapshot_mapping(parser) - item1092 = _t1745 - push!(xs1090, item1092) - cond1091 = match_lookahead_literal(parser, "[", 0) + xs1158 = Proto.SnapshotMapping[] + cond1159 = match_lookahead_literal(parser, "[", 0) + while cond1159 + _t1835 = parse_snapshot_mapping(parser) + item1160 = _t1835 + push!(xs1158, item1160) + cond1159 = match_lookahead_literal(parser, "[", 0) end - snapshot_mappings1093 = xs1090 + snapshot_mappings1161 = xs1158 consume_literal!(parser, ")") - _t1746 = Proto.Snapshot(mappings=snapshot_mappings1093) - result1095 = _t1746 - record_span!(parser, span_start1094, "Snapshot") - return result1095 + _t1836 = Proto.Snapshot(mappings=snapshot_mappings1161) + result1163 = _t1836 + record_span!(parser, span_start1162, "Snapshot") + return result1163 end function parse_snapshot_mapping(parser::ParserState)::Proto.SnapshotMapping - span_start1098 = span_start(parser) - _t1747 = parse_edb_path(parser) - edb_path1096 = _t1747 - _t1748 = parse_relation_id(parser) - relation_id1097 = _t1748 - _t1749 = Proto.SnapshotMapping(destination_path=edb_path1096, source_relation=relation_id1097) - result1099 = _t1749 - record_span!(parser, span_start1098, "SnapshotMapping") - return result1099 + span_start1166 = span_start(parser) + _t1837 = parse_edb_path(parser) + edb_path1164 = _t1837 + _t1838 = parse_relation_id(parser) + relation_id1165 = _t1838 + _t1839 = Proto.SnapshotMapping(destination_path=edb_path1164, source_relation=relation_id1165) + result1167 = _t1839 + record_span!(parser, span_start1166, "SnapshotMapping") + return result1167 end function parse_epoch_reads(parser::ParserState)::Vector{Proto.Read} consume_literal!(parser, "(") consume_literal!(parser, "reads") - xs1100 = Proto.Read[] - cond1101 = match_lookahead_literal(parser, "(", 0) - while cond1101 - _t1750 = parse_read(parser) - item1102 = _t1750 - push!(xs1100, item1102) - cond1101 = match_lookahead_literal(parser, "(", 0) + xs1168 = Proto.Read[] + cond1169 = match_lookahead_literal(parser, "(", 0) + while cond1169 + _t1840 = parse_read(parser) + item1170 = _t1840 + push!(xs1168, item1170) + cond1169 = match_lookahead_literal(parser, "(", 0) end - reads1103 = xs1100 + reads1171 = xs1168 consume_literal!(parser, ")") - return reads1103 + return reads1171 end function parse_read(parser::ParserState)::Proto.Read - span_start1110 = span_start(parser) + span_start1178 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "what_if", 1) - _t1752 = 2 + _t1842 = 2 else if match_lookahead_literal(parser, "output", 1) - _t1753 = 1 + _t1843 = 1 else if match_lookahead_literal(parser, "export", 1) - _t1754 = 4 + _t1844 = 4 else if match_lookahead_literal(parser, "demand", 1) - _t1755 = 0 + _t1845 = 0 else if match_lookahead_literal(parser, "abort", 1) - _t1756 = 3 + _t1846 = 3 else - _t1756 = -1 + _t1846 = -1 end - _t1755 = _t1756 + _t1845 = _t1846 end - _t1754 = _t1755 + _t1844 = _t1845 end - _t1753 = _t1754 + _t1843 = _t1844 end - _t1752 = _t1753 + _t1842 = _t1843 end - _t1751 = _t1752 - else - _t1751 = -1 - end - prediction1104 = _t1751 - if prediction1104 == 4 - _t1758 = parse_export(parser) - export1109 = _t1758 - _t1759 = Proto.Read(read_type=OneOf(:var"#export", export1109)) - _t1757 = _t1759 - else - if prediction1104 == 3 - _t1761 = parse_abort(parser) - abort1108 = _t1761 - _t1762 = Proto.Read(read_type=OneOf(:abort, abort1108)) - _t1760 = _t1762 + _t1841 = _t1842 + else + _t1841 = -1 + end + prediction1172 = _t1841 + if prediction1172 == 4 + _t1848 = parse_export(parser) + export1177 = _t1848 + _t1849 = Proto.Read(read_type=OneOf(:var"#export", export1177)) + _t1847 = _t1849 + else + if prediction1172 == 3 + _t1851 = parse_abort(parser) + abort1176 = _t1851 + _t1852 = Proto.Read(read_type=OneOf(:abort, abort1176)) + _t1850 = _t1852 else - if prediction1104 == 2 - _t1764 = parse_what_if(parser) - what_if1107 = _t1764 - _t1765 = Proto.Read(read_type=OneOf(:what_if, what_if1107)) - _t1763 = _t1765 + if prediction1172 == 2 + _t1854 = parse_what_if(parser) + what_if1175 = _t1854 + _t1855 = Proto.Read(read_type=OneOf(:what_if, what_if1175)) + _t1853 = _t1855 else - if prediction1104 == 1 - _t1767 = parse_output(parser) - output1106 = _t1767 - _t1768 = Proto.Read(read_type=OneOf(:output, output1106)) - _t1766 = _t1768 + if prediction1172 == 1 + _t1857 = parse_output(parser) + output1174 = _t1857 + _t1858 = Proto.Read(read_type=OneOf(:output, output1174)) + _t1856 = _t1858 else - if prediction1104 == 0 - _t1770 = parse_demand(parser) - demand1105 = _t1770 - _t1771 = Proto.Read(read_type=OneOf(:demand, demand1105)) - _t1769 = _t1771 + if prediction1172 == 0 + _t1860 = parse_demand(parser) + demand1173 = _t1860 + _t1861 = Proto.Read(read_type=OneOf(:demand, demand1173)) + _t1859 = _t1861 else throw(ParseError("Unexpected token in read" * ": " * string(lookahead(parser, 0)))) end - _t1766 = _t1769 + _t1856 = _t1859 end - _t1763 = _t1766 + _t1853 = _t1856 end - _t1760 = _t1763 + _t1850 = _t1853 end - _t1757 = _t1760 + _t1847 = _t1850 end - result1111 = _t1757 - record_span!(parser, span_start1110, "Read") - return result1111 + result1179 = _t1847 + record_span!(parser, span_start1178, "Read") + return result1179 end function parse_demand(parser::ParserState)::Proto.Demand - span_start1113 = span_start(parser) + span_start1181 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "demand") - _t1772 = parse_relation_id(parser) - relation_id1112 = _t1772 + _t1862 = parse_relation_id(parser) + relation_id1180 = _t1862 consume_literal!(parser, ")") - _t1773 = Proto.Demand(relation_id=relation_id1112) - result1114 = _t1773 - record_span!(parser, span_start1113, "Demand") - return result1114 + _t1863 = Proto.Demand(relation_id=relation_id1180) + result1182 = _t1863 + record_span!(parser, span_start1181, "Demand") + return result1182 end function parse_output(parser::ParserState)::Proto.Output - span_start1117 = span_start(parser) + span_start1185 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "output") - _t1774 = parse_name(parser) - name1115 = _t1774 - _t1775 = parse_relation_id(parser) - relation_id1116 = _t1775 + _t1864 = parse_name(parser) + name1183 = _t1864 + _t1865 = parse_relation_id(parser) + relation_id1184 = _t1865 consume_literal!(parser, ")") - _t1776 = Proto.Output(name=name1115, relation_id=relation_id1116) - result1118 = _t1776 - record_span!(parser, span_start1117, "Output") - return result1118 + _t1866 = Proto.Output(name=name1183, relation_id=relation_id1184) + result1186 = _t1866 + record_span!(parser, span_start1185, "Output") + return result1186 end function parse_what_if(parser::ParserState)::Proto.WhatIf - span_start1121 = span_start(parser) + span_start1189 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "what_if") - _t1777 = parse_name(parser) - name1119 = _t1777 - _t1778 = parse_epoch(parser) - epoch1120 = _t1778 + _t1867 = parse_name(parser) + name1187 = _t1867 + _t1868 = parse_epoch(parser) + epoch1188 = _t1868 consume_literal!(parser, ")") - _t1779 = Proto.WhatIf(branch=name1119, epoch=epoch1120) - result1122 = _t1779 - record_span!(parser, span_start1121, "WhatIf") - return result1122 + _t1869 = Proto.WhatIf(branch=name1187, epoch=epoch1188) + result1190 = _t1869 + record_span!(parser, span_start1189, "WhatIf") + return result1190 end function parse_abort(parser::ParserState)::Proto.Abort - span_start1125 = span_start(parser) + span_start1193 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "abort") if (match_lookahead_literal(parser, ":", 0) && match_lookahead_terminal(parser, "SYMBOL", 1)) - _t1781 = parse_name(parser) - _t1780 = _t1781 + _t1871 = parse_name(parser) + _t1870 = _t1871 else - _t1780 = nothing + _t1870 = nothing end - name1123 = _t1780 - _t1782 = parse_relation_id(parser) - relation_id1124 = _t1782 + name1191 = _t1870 + _t1872 = parse_relation_id(parser) + relation_id1192 = _t1872 consume_literal!(parser, ")") - _t1783 = Proto.Abort(name=(!isnothing(name1123) ? name1123 : "abort"), relation_id=relation_id1124) - result1126 = _t1783 - record_span!(parser, span_start1125, "Abort") - return result1126 + _t1873 = Proto.Abort(name=(!isnothing(name1191) ? name1191 : "abort"), relation_id=relation_id1192) + result1194 = _t1873 + record_span!(parser, span_start1193, "Abort") + return result1194 end function parse_export(parser::ParserState)::Proto.Export - span_start1128 = span_start(parser) + span_start1196 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "export") - _t1784 = parse_export_csv_config(parser) - export_csv_config1127 = _t1784 + _t1874 = parse_export_csv_config(parser) + export_csv_config1195 = _t1874 consume_literal!(parser, ")") - _t1785 = Proto.Export(export_config=OneOf(:csv_config, export_csv_config1127)) - result1129 = _t1785 - record_span!(parser, span_start1128, "Export") - return result1129 + _t1875 = Proto.Export(export_config=OneOf(:csv_config, export_csv_config1195)) + result1197 = _t1875 + record_span!(parser, span_start1196, "Export") + return result1197 end function parse_export_csv_config(parser::ParserState)::Proto.ExportCSVConfig - span_start1137 = span_start(parser) + span_start1205 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "export_csv_config_v2", 1) - _t1787 = 0 + _t1877 = 0 else if match_lookahead_literal(parser, "export_csv_config", 1) - _t1788 = 1 + _t1878 = 1 else - _t1788 = -1 + _t1878 = -1 end - _t1787 = _t1788 + _t1877 = _t1878 end - _t1786 = _t1787 + _t1876 = _t1877 else - _t1786 = -1 + _t1876 = -1 end - prediction1130 = _t1786 - if prediction1130 == 1 + prediction1198 = _t1876 + if prediction1198 == 1 consume_literal!(parser, "(") consume_literal!(parser, "export_csv_config") - _t1790 = parse_export_csv_path(parser) - export_csv_path1134 = _t1790 - _t1791 = parse_export_csv_columns_list(parser) - export_csv_columns_list1135 = _t1791 - _t1792 = parse_config_dict(parser) - config_dict1136 = _t1792 + _t1880 = parse_export_csv_path(parser) + export_csv_path1202 = _t1880 + _t1881 = parse_export_csv_columns_list(parser) + export_csv_columns_list1203 = _t1881 + _t1882 = parse_config_dict(parser) + config_dict1204 = _t1882 consume_literal!(parser, ")") - _t1793 = construct_export_csv_config(parser, export_csv_path1134, export_csv_columns_list1135, config_dict1136) - _t1789 = _t1793 + _t1883 = construct_export_csv_config(parser, export_csv_path1202, export_csv_columns_list1203, config_dict1204) + _t1879 = _t1883 else - if prediction1130 == 0 + if prediction1198 == 0 consume_literal!(parser, "(") consume_literal!(parser, "export_csv_config_v2") - _t1795 = parse_export_csv_path(parser) - export_csv_path1131 = _t1795 - _t1796 = parse_export_csv_source(parser) - export_csv_source1132 = _t1796 - _t1797 = parse_csv_config(parser) - csv_config1133 = _t1797 + _t1885 = parse_export_csv_path(parser) + export_csv_path1199 = _t1885 + _t1886 = parse_export_csv_source(parser) + export_csv_source1200 = _t1886 + _t1887 = parse_csv_config(parser) + csv_config1201 = _t1887 consume_literal!(parser, ")") - _t1798 = construct_export_csv_config_with_source(parser, export_csv_path1131, export_csv_source1132, csv_config1133) - _t1794 = _t1798 + _t1888 = construct_export_csv_config_with_source(parser, export_csv_path1199, export_csv_source1200, csv_config1201) + _t1884 = _t1888 else throw(ParseError("Unexpected token in export_csv_config" * ": " * string(lookahead(parser, 0)))) end - _t1789 = _t1794 + _t1879 = _t1884 end - result1138 = _t1789 - record_span!(parser, span_start1137, "ExportCSVConfig") - return result1138 + result1206 = _t1879 + record_span!(parser, span_start1205, "ExportCSVConfig") + return result1206 end function parse_export_csv_path(parser::ParserState)::String consume_literal!(parser, "(") consume_literal!(parser, "path") - string1139 = consume_terminal!(parser, "STRING") + string1207 = consume_terminal!(parser, "STRING") consume_literal!(parser, ")") - return string1139 + return string1207 end function parse_export_csv_source(parser::ParserState)::Proto.ExportCSVSource - span_start1146 = span_start(parser) + span_start1214 = span_start(parser) if match_lookahead_literal(parser, "(", 0) if match_lookahead_literal(parser, "table_def", 1) - _t1800 = 1 + _t1890 = 1 else if match_lookahead_literal(parser, "gnf_columns", 1) - _t1801 = 0 + _t1891 = 0 else - _t1801 = -1 + _t1891 = -1 end - _t1800 = _t1801 + _t1890 = _t1891 end - _t1799 = _t1800 + _t1889 = _t1890 else - _t1799 = -1 + _t1889 = -1 end - prediction1140 = _t1799 - if prediction1140 == 1 + prediction1208 = _t1889 + if prediction1208 == 1 consume_literal!(parser, "(") consume_literal!(parser, "table_def") - _t1803 = parse_relation_id(parser) - relation_id1145 = _t1803 + _t1893 = parse_relation_id(parser) + relation_id1213 = _t1893 consume_literal!(parser, ")") - _t1804 = Proto.ExportCSVSource(csv_source=OneOf(:table_def, relation_id1145)) - _t1802 = _t1804 + _t1894 = Proto.ExportCSVSource(csv_source=OneOf(:table_def, relation_id1213)) + _t1892 = _t1894 else - if prediction1140 == 0 + if prediction1208 == 0 consume_literal!(parser, "(") consume_literal!(parser, "gnf_columns") - xs1141 = Proto.ExportCSVColumn[] - cond1142 = match_lookahead_literal(parser, "(", 0) - while cond1142 - _t1806 = parse_export_csv_column(parser) - item1143 = _t1806 - push!(xs1141, item1143) - cond1142 = match_lookahead_literal(parser, "(", 0) + xs1209 = Proto.ExportCSVColumn[] + cond1210 = match_lookahead_literal(parser, "(", 0) + while cond1210 + _t1896 = parse_export_csv_column(parser) + item1211 = _t1896 + push!(xs1209, item1211) + cond1210 = match_lookahead_literal(parser, "(", 0) end - export_csv_columns1144 = xs1141 + export_csv_columns1212 = xs1209 consume_literal!(parser, ")") - _t1807 = Proto.ExportCSVColumns(columns=export_csv_columns1144) - _t1808 = Proto.ExportCSVSource(csv_source=OneOf(:gnf_columns, _t1807)) - _t1805 = _t1808 + _t1897 = Proto.ExportCSVColumns(columns=export_csv_columns1212) + _t1898 = Proto.ExportCSVSource(csv_source=OneOf(:gnf_columns, _t1897)) + _t1895 = _t1898 else throw(ParseError("Unexpected token in export_csv_source" * ": " * string(lookahead(parser, 0)))) end - _t1802 = _t1805 + _t1892 = _t1895 end - result1147 = _t1802 - record_span!(parser, span_start1146, "ExportCSVSource") - return result1147 + result1215 = _t1892 + record_span!(parser, span_start1214, "ExportCSVSource") + return result1215 end function parse_export_csv_column(parser::ParserState)::Proto.ExportCSVColumn - span_start1150 = span_start(parser) + span_start1218 = span_start(parser) consume_literal!(parser, "(") consume_literal!(parser, "column") - string1148 = consume_terminal!(parser, "STRING") - _t1809 = parse_relation_id(parser) - relation_id1149 = _t1809 + string1216 = consume_terminal!(parser, "STRING") + _t1899 = parse_relation_id(parser) + relation_id1217 = _t1899 consume_literal!(parser, ")") - _t1810 = Proto.ExportCSVColumn(column_name=string1148, column_data=relation_id1149) - result1151 = _t1810 - record_span!(parser, span_start1150, "ExportCSVColumn") - return result1151 + _t1900 = Proto.ExportCSVColumn(column_name=string1216, column_data=relation_id1217) + result1219 = _t1900 + record_span!(parser, span_start1218, "ExportCSVColumn") + return result1219 end function parse_export_csv_columns_list(parser::ParserState)::Vector{Proto.ExportCSVColumn} consume_literal!(parser, "(") consume_literal!(parser, "columns") - xs1152 = Proto.ExportCSVColumn[] - cond1153 = match_lookahead_literal(parser, "(", 0) - while cond1153 - _t1811 = parse_export_csv_column(parser) - item1154 = _t1811 - push!(xs1152, item1154) - cond1153 = match_lookahead_literal(parser, "(", 0) + xs1220 = Proto.ExportCSVColumn[] + cond1221 = match_lookahead_literal(parser, "(", 0) + while cond1221 + _t1901 = parse_export_csv_column(parser) + item1222 = _t1901 + push!(xs1220, item1222) + cond1221 = match_lookahead_literal(parser, "(", 0) end - export_csv_columns1155 = xs1152 + export_csv_columns1223 = xs1220 consume_literal!(parser, ")") - return export_csv_columns1155 + return export_csv_columns1223 end diff --git a/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl b/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl index 727dec5a..29efb7af 100644 --- a/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl +++ b/sdks/julia/LogicalQueryProtocol.jl/src/pretty.jl @@ -338,151 +338,151 @@ end # --- Helper functions --- function _make_value_int32(pp::PrettyPrinter, v::Int32)::Proto.Value - _t1494 = Proto.Value(value=OneOf(:int32_value, v)) - return _t1494 + _t1594 = Proto.Value(value=OneOf(:int32_value, v)) + return _t1594 end function _make_value_int64(pp::PrettyPrinter, v::Int64)::Proto.Value - _t1495 = Proto.Value(value=OneOf(:int_value, v)) - return _t1495 + _t1595 = Proto.Value(value=OneOf(:int_value, v)) + return _t1595 end function _make_value_float64(pp::PrettyPrinter, v::Float64)::Proto.Value - _t1496 = Proto.Value(value=OneOf(:float_value, v)) - return _t1496 + _t1596 = Proto.Value(value=OneOf(:float_value, v)) + return _t1596 end function _make_value_string(pp::PrettyPrinter, v::String)::Proto.Value - _t1497 = Proto.Value(value=OneOf(:string_value, v)) - return _t1497 + _t1597 = Proto.Value(value=OneOf(:string_value, v)) + return _t1597 end function _make_value_boolean(pp::PrettyPrinter, v::Bool)::Proto.Value - _t1498 = Proto.Value(value=OneOf(:boolean_value, v)) - return _t1498 + _t1598 = Proto.Value(value=OneOf(:boolean_value, v)) + return _t1598 end function _make_value_uint128(pp::PrettyPrinter, v::Proto.UInt128Value)::Proto.Value - _t1499 = Proto.Value(value=OneOf(:uint128_value, v)) - return _t1499 + _t1599 = Proto.Value(value=OneOf(:uint128_value, v)) + return _t1599 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 - _t1500 = _make_value_string(pp, "auto") - push!(result, ("ivm.maintenance_level", _t1500,)) + _t1600 = _make_value_string(pp, "auto") + push!(result, ("ivm.maintenance_level", _t1600,)) else if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_ALL - _t1501 = _make_value_string(pp, "all") - push!(result, ("ivm.maintenance_level", _t1501,)) + _t1601 = _make_value_string(pp, "all") + push!(result, ("ivm.maintenance_level", _t1601,)) else if msg.ivm_config.level == Proto.MaintenanceLevel.MAINTENANCE_LEVEL_OFF - _t1502 = _make_value_string(pp, "off") - push!(result, ("ivm.maintenance_level", _t1502,)) + _t1602 = _make_value_string(pp, "off") + push!(result, ("ivm.maintenance_level", _t1602,)) end end end - _t1503 = _make_value_int64(pp, msg.semantics_version) - push!(result, ("semantics_version", _t1503,)) + _t1603 = _make_value_int64(pp, msg.semantics_version) + push!(result, ("semantics_version", _t1603,)) return sort(result) end function deconstruct_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig)::Vector{Tuple{String, Proto.Value}} result = Tuple{String, Proto.Value}[] - _t1504 = _make_value_int32(pp, msg.header_row) - push!(result, ("csv_header_row", _t1504,)) - _t1505 = _make_value_int64(pp, msg.skip) - push!(result, ("csv_skip", _t1505,)) + _t1604 = _make_value_int32(pp, msg.header_row) + push!(result, ("csv_header_row", _t1604,)) + _t1605 = _make_value_int64(pp, msg.skip) + push!(result, ("csv_skip", _t1605,)) if msg.new_line != "" - _t1506 = _make_value_string(pp, msg.new_line) - push!(result, ("csv_new_line", _t1506,)) - end - _t1507 = _make_value_string(pp, msg.delimiter) - push!(result, ("csv_delimiter", _t1507,)) - _t1508 = _make_value_string(pp, msg.quotechar) - push!(result, ("csv_quotechar", _t1508,)) - _t1509 = _make_value_string(pp, msg.escapechar) - push!(result, ("csv_escapechar", _t1509,)) + _t1606 = _make_value_string(pp, msg.new_line) + push!(result, ("csv_new_line", _t1606,)) + end + _t1607 = _make_value_string(pp, msg.delimiter) + push!(result, ("csv_delimiter", _t1607,)) + _t1608 = _make_value_string(pp, msg.quotechar) + push!(result, ("csv_quotechar", _t1608,)) + _t1609 = _make_value_string(pp, msg.escapechar) + push!(result, ("csv_escapechar", _t1609,)) if msg.comment != "" - _t1510 = _make_value_string(pp, msg.comment) - push!(result, ("csv_comment", _t1510,)) + _t1610 = _make_value_string(pp, msg.comment) + push!(result, ("csv_comment", _t1610,)) end for missing_string in msg.missing_strings - _t1511 = _make_value_string(pp, missing_string) - push!(result, ("csv_missing_strings", _t1511,)) - end - _t1512 = _make_value_string(pp, msg.decimal_separator) - push!(result, ("csv_decimal_separator", _t1512,)) - _t1513 = _make_value_string(pp, msg.encoding) - push!(result, ("csv_encoding", _t1513,)) - _t1514 = _make_value_string(pp, msg.compression) - push!(result, ("csv_compression", _t1514,)) + _t1611 = _make_value_string(pp, missing_string) + push!(result, ("csv_missing_strings", _t1611,)) + end + _t1612 = _make_value_string(pp, msg.decimal_separator) + push!(result, ("csv_decimal_separator", _t1612,)) + _t1613 = _make_value_string(pp, msg.encoding) + push!(result, ("csv_encoding", _t1613,)) + _t1614 = _make_value_string(pp, msg.compression) + push!(result, ("csv_compression", _t1614,)) if msg.partition_size_mb != 0 - _t1515 = _make_value_int64(pp, msg.partition_size_mb) - push!(result, ("csv_partition_size_mb", _t1515,)) + _t1615 = _make_value_int64(pp, msg.partition_size_mb) + push!(result, ("csv_partition_size_mb", _t1615,)) 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}[] - _t1516 = _make_value_float64(pp, msg.storage_config.epsilon) - push!(result, ("betree_config_epsilon", _t1516,)) - _t1517 = _make_value_int64(pp, msg.storage_config.max_pivots) - push!(result, ("betree_config_max_pivots", _t1517,)) - _t1518 = _make_value_int64(pp, msg.storage_config.max_deltas) - push!(result, ("betree_config_max_deltas", _t1518,)) - _t1519 = _make_value_int64(pp, msg.storage_config.max_leaf) - push!(result, ("betree_config_max_leaf", _t1519,)) + _t1616 = _make_value_float64(pp, msg.storage_config.epsilon) + push!(result, ("betree_config_epsilon", _t1616,)) + _t1617 = _make_value_int64(pp, msg.storage_config.max_pivots) + push!(result, ("betree_config_max_pivots", _t1617,)) + _t1618 = _make_value_int64(pp, msg.storage_config.max_deltas) + push!(result, ("betree_config_max_deltas", _t1618,)) + _t1619 = _make_value_int64(pp, msg.storage_config.max_leaf) + push!(result, ("betree_config_max_leaf", _t1619,)) if _has_proto_field(msg.relation_locator, Symbol("root_pageid")) if !isnothing(_get_oneof_field(msg.relation_locator, :root_pageid)) - _t1520 = _make_value_uint128(pp, _get_oneof_field(msg.relation_locator, :root_pageid)) - push!(result, ("betree_locator_root_pageid", _t1520,)) + _t1620 = _make_value_uint128(pp, _get_oneof_field(msg.relation_locator, :root_pageid)) + push!(result, ("betree_locator_root_pageid", _t1620,)) end end if _has_proto_field(msg.relation_locator, Symbol("inline_data")) if !isnothing(_get_oneof_field(msg.relation_locator, :inline_data)) - _t1521 = _make_value_string(pp, String(copy(_get_oneof_field(msg.relation_locator, :inline_data)))) - push!(result, ("betree_locator_inline_data", _t1521,)) + _t1621 = _make_value_string(pp, String(copy(_get_oneof_field(msg.relation_locator, :inline_data)))) + push!(result, ("betree_locator_inline_data", _t1621,)) end end - _t1522 = _make_value_int64(pp, msg.relation_locator.element_count) - push!(result, ("betree_locator_element_count", _t1522,)) - _t1523 = _make_value_int64(pp, msg.relation_locator.tree_height) - push!(result, ("betree_locator_tree_height", _t1523,)) + _t1622 = _make_value_int64(pp, msg.relation_locator.element_count) + push!(result, ("betree_locator_element_count", _t1622,)) + _t1623 = _make_value_int64(pp, msg.relation_locator.tree_height) + push!(result, ("betree_locator_tree_height", _t1623,)) 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) - _t1524 = _make_value_int64(pp, msg.partition_size) - push!(result, ("partition_size", _t1524,)) + _t1624 = _make_value_int64(pp, msg.partition_size) + push!(result, ("partition_size", _t1624,)) end if !isnothing(msg.compression) - _t1525 = _make_value_string(pp, msg.compression) - push!(result, ("compression", _t1525,)) + _t1625 = _make_value_string(pp, msg.compression) + push!(result, ("compression", _t1625,)) end if !isnothing(msg.syntax_header_row) - _t1526 = _make_value_boolean(pp, msg.syntax_header_row) - push!(result, ("syntax_header_row", _t1526,)) + _t1626 = _make_value_boolean(pp, msg.syntax_header_row) + push!(result, ("syntax_header_row", _t1626,)) end if !isnothing(msg.syntax_missing_string) - _t1527 = _make_value_string(pp, msg.syntax_missing_string) - push!(result, ("syntax_missing_string", _t1527,)) + _t1627 = _make_value_string(pp, msg.syntax_missing_string) + push!(result, ("syntax_missing_string", _t1627,)) end if !isnothing(msg.syntax_delim) - _t1528 = _make_value_string(pp, msg.syntax_delim) - push!(result, ("syntax_delim", _t1528,)) + _t1628 = _make_value_string(pp, msg.syntax_delim) + push!(result, ("syntax_delim", _t1628,)) end if !isnothing(msg.syntax_quotechar) - _t1529 = _make_value_string(pp, msg.syntax_quotechar) - push!(result, ("syntax_quotechar", _t1529,)) + _t1629 = _make_value_string(pp, msg.syntax_quotechar) + push!(result, ("syntax_quotechar", _t1629,)) end if !isnothing(msg.syntax_escapechar) - _t1530 = _make_value_string(pp, msg.syntax_escapechar) - push!(result, ("syntax_escapechar", _t1530,)) + _t1630 = _make_value_string(pp, msg.syntax_escapechar) + push!(result, ("syntax_escapechar", _t1630,)) end return sort(result) end @@ -497,7 +497,7 @@ function deconstruct_relation_id_uint128(pp::PrettyPrinter, msg::Proto.RelationI if isnothing(name) return relation_id_to_uint128(pp, msg) else - _t1531 = nothing + _t1631 = nothing end return nothing end @@ -516,47 +516,47 @@ end # --- Pretty-print functions --- function pretty_transaction(pp::PrettyPrinter, msg::Proto.Transaction) - flat678 = try_flat(pp, msg, pretty_transaction) - if !isnothing(flat678) - write(pp, flat678) + flat725 = try_flat(pp, msg, pretty_transaction) + if !isnothing(flat725) + write(pp, flat725) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("configure")) - _t1338 = _dollar_dollar.configure + _t1432 = _dollar_dollar.configure else - _t1338 = nothing + _t1432 = nothing end if _has_proto_field(_dollar_dollar, Symbol("sync")) - _t1339 = _dollar_dollar.sync + _t1433 = _dollar_dollar.sync else - _t1339 = nothing + _t1433 = nothing end - fields669 = (_t1338, _t1339, _dollar_dollar.epochs,) - unwrapped_fields670 = fields669 + fields716 = (_t1432, _t1433, _dollar_dollar.epochs,) + unwrapped_fields717 = fields716 write(pp, "(transaction") indent_sexp!(pp) - field671 = unwrapped_fields670[1] - if !isnothing(field671) + field718 = unwrapped_fields717[1] + if !isnothing(field718) newline(pp) - opt_val672 = field671 - pretty_configure(pp, opt_val672) + opt_val719 = field718 + pretty_configure(pp, opt_val719) end - field673 = unwrapped_fields670[2] - if !isnothing(field673) + field720 = unwrapped_fields717[2] + if !isnothing(field720) newline(pp) - opt_val674 = field673 - pretty_sync(pp, opt_val674) + opt_val721 = field720 + pretty_sync(pp, opt_val721) end - field675 = unwrapped_fields670[3] - if !isempty(field675) + field722 = unwrapped_fields717[3] + if !isempty(field722) newline(pp) - for (i1340, elem676) in enumerate(field675) - i677 = i1340 - 1 - if (i677 > 0) + for (i1434, elem723) in enumerate(field722) + i724 = i1434 - 1 + if (i724 > 0) newline(pp) end - pretty_epoch(pp, elem676) + pretty_epoch(pp, elem723) end end dedent!(pp) @@ -566,19 +566,19 @@ function pretty_transaction(pp::PrettyPrinter, msg::Proto.Transaction) end function pretty_configure(pp::PrettyPrinter, msg::Proto.Configure) - flat681 = try_flat(pp, msg, pretty_configure) - if !isnothing(flat681) - write(pp, flat681) + flat728 = try_flat(pp, msg, pretty_configure) + if !isnothing(flat728) + write(pp, flat728) return nothing else _dollar_dollar = msg - _t1341 = deconstruct_configure(pp, _dollar_dollar) - fields679 = _t1341 - unwrapped_fields680 = fields679 + _t1435 = deconstruct_configure(pp, _dollar_dollar) + fields726 = _t1435 + unwrapped_fields727 = fields726 write(pp, "(configure") indent_sexp!(pp) newline(pp) - pretty_config_dict(pp, unwrapped_fields680) + pretty_config_dict(pp, unwrapped_fields727) dedent!(pp) write(pp, ")") end @@ -586,22 +586,22 @@ function pretty_configure(pp::PrettyPrinter, msg::Proto.Configure) end function pretty_config_dict(pp::PrettyPrinter, msg::Vector{Tuple{String, Proto.Value}}) - flat685 = try_flat(pp, msg, pretty_config_dict) - if !isnothing(flat685) - write(pp, flat685) + flat732 = try_flat(pp, msg, pretty_config_dict) + if !isnothing(flat732) + write(pp, flat732) return nothing else - fields682 = msg + fields729 = msg write(pp, "{") indent!(pp) - if !isempty(fields682) + if !isempty(fields729) newline(pp) - for (i1342, elem683) in enumerate(fields682) - i684 = i1342 - 1 - if (i684 > 0) + for (i1436, elem730) in enumerate(fields729) + i731 = i1436 - 1 + if (i731 > 0) newline(pp) end - pretty_config_key_value(pp, elem683) + pretty_config_key_value(pp, elem730) end end dedent!(pp) @@ -611,163 +611,163 @@ 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}) - flat690 = try_flat(pp, msg, pretty_config_key_value) - if !isnothing(flat690) - write(pp, flat690) + flat737 = try_flat(pp, msg, pretty_config_key_value) + if !isnothing(flat737) + write(pp, flat737) return nothing else _dollar_dollar = msg - fields686 = (_dollar_dollar[1], _dollar_dollar[2],) - unwrapped_fields687 = fields686 + fields733 = (_dollar_dollar[1], _dollar_dollar[2],) + unwrapped_fields734 = fields733 write(pp, ":") - field688 = unwrapped_fields687[1] - write(pp, field688) + field735 = unwrapped_fields734[1] + write(pp, field735) write(pp, " ") - field689 = unwrapped_fields687[2] - pretty_value(pp, field689) + field736 = unwrapped_fields734[2] + pretty_value(pp, field736) end return nothing end function pretty_value(pp::PrettyPrinter, msg::Proto.Value) - flat716 = try_flat(pp, msg, pretty_value) - if !isnothing(flat716) - write(pp, flat716) + flat763 = try_flat(pp, msg, pretty_value) + if !isnothing(flat763) + write(pp, flat763) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("date_value")) - _t1343 = _get_oneof_field(_dollar_dollar, :date_value) + _t1437 = _get_oneof_field(_dollar_dollar, :date_value) else - _t1343 = nothing + _t1437 = nothing end - deconstruct_result714 = _t1343 - if !isnothing(deconstruct_result714) - unwrapped715 = deconstruct_result714 - pretty_date(pp, unwrapped715) + deconstruct_result761 = _t1437 + if !isnothing(deconstruct_result761) + unwrapped762 = deconstruct_result761 + pretty_date(pp, unwrapped762) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("datetime_value")) - _t1344 = _get_oneof_field(_dollar_dollar, :datetime_value) + _t1438 = _get_oneof_field(_dollar_dollar, :datetime_value) else - _t1344 = nothing + _t1438 = nothing end - deconstruct_result712 = _t1344 - if !isnothing(deconstruct_result712) - unwrapped713 = deconstruct_result712 - pretty_datetime(pp, unwrapped713) + deconstruct_result759 = _t1438 + if !isnothing(deconstruct_result759) + unwrapped760 = deconstruct_result759 + pretty_datetime(pp, unwrapped760) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("string_value")) - _t1345 = _get_oneof_field(_dollar_dollar, :string_value) + _t1439 = _get_oneof_field(_dollar_dollar, :string_value) else - _t1345 = nothing + _t1439 = nothing end - deconstruct_result710 = _t1345 - if !isnothing(deconstruct_result710) - unwrapped711 = deconstruct_result710 - write(pp, format_string(pp, unwrapped711)) + deconstruct_result757 = _t1439 + if !isnothing(deconstruct_result757) + unwrapped758 = deconstruct_result757 + write(pp, format_string(pp, unwrapped758)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int_value")) - _t1346 = _get_oneof_field(_dollar_dollar, :int_value) + _t1440 = _get_oneof_field(_dollar_dollar, :int_value) else - _t1346 = nothing + _t1440 = nothing end - deconstruct_result708 = _t1346 - if !isnothing(deconstruct_result708) - unwrapped709 = deconstruct_result708 - write(pp, format_int(pp, unwrapped709)) + deconstruct_result755 = _t1440 + if !isnothing(deconstruct_result755) + unwrapped756 = deconstruct_result755 + write(pp, format_int(pp, unwrapped756)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float_value")) - _t1347 = _get_oneof_field(_dollar_dollar, :float_value) + _t1441 = _get_oneof_field(_dollar_dollar, :float_value) else - _t1347 = nothing + _t1441 = nothing end - deconstruct_result706 = _t1347 - if !isnothing(deconstruct_result706) - unwrapped707 = deconstruct_result706 - write(pp, format_float(pp, unwrapped707)) + deconstruct_result753 = _t1441 + if !isnothing(deconstruct_result753) + unwrapped754 = deconstruct_result753 + write(pp, format_float(pp, unwrapped754)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint128_value")) - _t1348 = _get_oneof_field(_dollar_dollar, :uint128_value) + _t1442 = _get_oneof_field(_dollar_dollar, :uint128_value) else - _t1348 = nothing + _t1442 = nothing end - deconstruct_result704 = _t1348 - if !isnothing(deconstruct_result704) - unwrapped705 = deconstruct_result704 - write(pp, format_uint128(pp, unwrapped705)) + deconstruct_result751 = _t1442 + if !isnothing(deconstruct_result751) + unwrapped752 = deconstruct_result751 + write(pp, format_uint128(pp, unwrapped752)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int128_value")) - _t1349 = _get_oneof_field(_dollar_dollar, :int128_value) + _t1443 = _get_oneof_field(_dollar_dollar, :int128_value) else - _t1349 = nothing + _t1443 = nothing end - deconstruct_result702 = _t1349 - if !isnothing(deconstruct_result702) - unwrapped703 = deconstruct_result702 - write(pp, format_int128(pp, unwrapped703)) + deconstruct_result749 = _t1443 + if !isnothing(deconstruct_result749) + unwrapped750 = deconstruct_result749 + write(pp, format_int128(pp, unwrapped750)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("decimal_value")) - _t1350 = _get_oneof_field(_dollar_dollar, :decimal_value) + _t1444 = _get_oneof_field(_dollar_dollar, :decimal_value) else - _t1350 = nothing + _t1444 = nothing end - deconstruct_result700 = _t1350 - if !isnothing(deconstruct_result700) - unwrapped701 = deconstruct_result700 - write(pp, format_decimal(pp, unwrapped701)) + deconstruct_result747 = _t1444 + if !isnothing(deconstruct_result747) + unwrapped748 = deconstruct_result747 + write(pp, format_decimal(pp, unwrapped748)) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("boolean_value")) - _t1351 = _get_oneof_field(_dollar_dollar, :boolean_value) + _t1445 = _get_oneof_field(_dollar_dollar, :boolean_value) else - _t1351 = nothing + _t1445 = nothing end - deconstruct_result698 = _t1351 - if !isnothing(deconstruct_result698) - unwrapped699 = deconstruct_result698 - pretty_boolean_value(pp, unwrapped699) + deconstruct_result745 = _t1445 + if !isnothing(deconstruct_result745) + unwrapped746 = deconstruct_result745 + pretty_boolean_value(pp, unwrapped746) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int32_value")) - _t1352 = _get_oneof_field(_dollar_dollar, :int32_value) + _t1446 = _get_oneof_field(_dollar_dollar, :int32_value) else - _t1352 = nothing + _t1446 = nothing end - deconstruct_result696 = _t1352 - if !isnothing(deconstruct_result696) - unwrapped697 = deconstruct_result696 - write(pp, (string(Int64(unwrapped697)) * "i32")) + deconstruct_result743 = _t1446 + if !isnothing(deconstruct_result743) + unwrapped744 = deconstruct_result743 + write(pp, (string(Int64(unwrapped744)) * "i32")) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float32_value")) - _t1353 = _get_oneof_field(_dollar_dollar, :float32_value) + _t1447 = _get_oneof_field(_dollar_dollar, :float32_value) else - _t1353 = nothing + _t1447 = nothing end - deconstruct_result694 = _t1353 - if !isnothing(deconstruct_result694) - unwrapped695 = deconstruct_result694 - write(pp, (lowercase(string(unwrapped695)) * "f32")) + deconstruct_result741 = _t1447 + if !isnothing(deconstruct_result741) + unwrapped742 = deconstruct_result741 + write(pp, (lowercase(string(unwrapped742)) * "f32")) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint32_value")) - _t1354 = _get_oneof_field(_dollar_dollar, :uint32_value) + _t1448 = _get_oneof_field(_dollar_dollar, :uint32_value) else - _t1354 = nothing + _t1448 = nothing end - deconstruct_result692 = _t1354 - if !isnothing(deconstruct_result692) - unwrapped693 = deconstruct_result692 - write(pp, (string(Int64(unwrapped693)) * "u32")) + deconstruct_result739 = _t1448 + if !isnothing(deconstruct_result739) + unwrapped740 = deconstruct_result739 + write(pp, (string(Int64(unwrapped740)) * "u32")) else - fields691 = msg + fields738 = msg write(pp, "missing") end end @@ -786,25 +786,25 @@ function pretty_value(pp::PrettyPrinter, msg::Proto.Value) end function pretty_date(pp::PrettyPrinter, msg::Proto.DateValue) - flat722 = try_flat(pp, msg, pretty_date) - if !isnothing(flat722) - write(pp, flat722) + flat769 = try_flat(pp, msg, pretty_date) + if !isnothing(flat769) + write(pp, flat769) return nothing else _dollar_dollar = msg - fields717 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) - unwrapped_fields718 = fields717 + fields764 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day),) + unwrapped_fields765 = fields764 write(pp, "(date") indent_sexp!(pp) newline(pp) - field719 = unwrapped_fields718[1] - write(pp, format_int(pp, field719)) + field766 = unwrapped_fields765[1] + write(pp, format_int(pp, field766)) newline(pp) - field720 = unwrapped_fields718[2] - write(pp, format_int(pp, field720)) + field767 = unwrapped_fields765[2] + write(pp, format_int(pp, field767)) newline(pp) - field721 = unwrapped_fields718[3] - write(pp, format_int(pp, field721)) + field768 = unwrapped_fields765[3] + write(pp, format_int(pp, field768)) dedent!(pp) write(pp, ")") end @@ -812,39 +812,39 @@ function pretty_date(pp::PrettyPrinter, msg::Proto.DateValue) end function pretty_datetime(pp::PrettyPrinter, msg::Proto.DateTimeValue) - flat733 = try_flat(pp, msg, pretty_datetime) - if !isnothing(flat733) - write(pp, flat733) + flat780 = try_flat(pp, msg, pretty_datetime) + if !isnothing(flat780) + write(pp, flat780) return nothing else _dollar_dollar = msg - fields723 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day), Int64(_dollar_dollar.hour), Int64(_dollar_dollar.minute), Int64(_dollar_dollar.second), Int64(_dollar_dollar.microsecond),) - unwrapped_fields724 = fields723 + fields770 = (Int64(_dollar_dollar.year), Int64(_dollar_dollar.month), Int64(_dollar_dollar.day), Int64(_dollar_dollar.hour), Int64(_dollar_dollar.minute), Int64(_dollar_dollar.second), Int64(_dollar_dollar.microsecond),) + unwrapped_fields771 = fields770 write(pp, "(datetime") indent_sexp!(pp) newline(pp) - field725 = unwrapped_fields724[1] - write(pp, format_int(pp, field725)) + field772 = unwrapped_fields771[1] + write(pp, format_int(pp, field772)) newline(pp) - field726 = unwrapped_fields724[2] - write(pp, format_int(pp, field726)) + field773 = unwrapped_fields771[2] + write(pp, format_int(pp, field773)) newline(pp) - field727 = unwrapped_fields724[3] - write(pp, format_int(pp, field727)) + field774 = unwrapped_fields771[3] + write(pp, format_int(pp, field774)) newline(pp) - field728 = unwrapped_fields724[4] - write(pp, format_int(pp, field728)) + field775 = unwrapped_fields771[4] + write(pp, format_int(pp, field775)) newline(pp) - field729 = unwrapped_fields724[5] - write(pp, format_int(pp, field729)) + field776 = unwrapped_fields771[5] + write(pp, format_int(pp, field776)) newline(pp) - field730 = unwrapped_fields724[6] - write(pp, format_int(pp, field730)) - field731 = unwrapped_fields724[7] - if !isnothing(field731) + field777 = unwrapped_fields771[6] + write(pp, format_int(pp, field777)) + field778 = unwrapped_fields771[7] + if !isnothing(field778) newline(pp) - opt_val732 = field731 - write(pp, format_int(pp, opt_val732)) + opt_val779 = field778 + write(pp, format_int(pp, opt_val779)) end dedent!(pp) write(pp, ")") @@ -855,24 +855,24 @@ end function pretty_boolean_value(pp::PrettyPrinter, msg::Bool) _dollar_dollar = msg if _dollar_dollar - _t1355 = () + _t1449 = () else - _t1355 = nothing + _t1449 = nothing end - deconstruct_result736 = _t1355 - if !isnothing(deconstruct_result736) - unwrapped737 = deconstruct_result736 + deconstruct_result783 = _t1449 + if !isnothing(deconstruct_result783) + unwrapped784 = deconstruct_result783 write(pp, "true") else _dollar_dollar = msg if !_dollar_dollar - _t1356 = () + _t1450 = () else - _t1356 = nothing + _t1450 = nothing end - deconstruct_result734 = _t1356 - if !isnothing(deconstruct_result734) - unwrapped735 = deconstruct_result734 + deconstruct_result781 = _t1450 + if !isnothing(deconstruct_result781) + unwrapped782 = deconstruct_result781 write(pp, "false") else throw(ParseError("No matching rule for boolean_value")) @@ -882,24 +882,24 @@ function pretty_boolean_value(pp::PrettyPrinter, msg::Bool) end function pretty_sync(pp::PrettyPrinter, msg::Proto.Sync) - flat742 = try_flat(pp, msg, pretty_sync) - if !isnothing(flat742) - write(pp, flat742) + flat789 = try_flat(pp, msg, pretty_sync) + if !isnothing(flat789) + write(pp, flat789) return nothing else _dollar_dollar = msg - fields738 = _dollar_dollar.fragments - unwrapped_fields739 = fields738 + fields785 = _dollar_dollar.fragments + unwrapped_fields786 = fields785 write(pp, "(sync") indent_sexp!(pp) - if !isempty(unwrapped_fields739) + if !isempty(unwrapped_fields786) newline(pp) - for (i1357, elem740) in enumerate(unwrapped_fields739) - i741 = i1357 - 1 - if (i741 > 0) + for (i1451, elem787) in enumerate(unwrapped_fields786) + i788 = i1451 - 1 + if (i788 > 0) newline(pp) end - pretty_fragment_id(pp, elem740) + pretty_fragment_id(pp, elem787) end end dedent!(pp) @@ -909,52 +909,52 @@ function pretty_sync(pp::PrettyPrinter, msg::Proto.Sync) end function pretty_fragment_id(pp::PrettyPrinter, msg::Proto.FragmentId) - flat745 = try_flat(pp, msg, pretty_fragment_id) - if !isnothing(flat745) - write(pp, flat745) + flat792 = try_flat(pp, msg, pretty_fragment_id) + if !isnothing(flat792) + write(pp, flat792) return nothing else _dollar_dollar = msg - fields743 = fragment_id_to_string(pp, _dollar_dollar) - unwrapped_fields744 = fields743 + fields790 = fragment_id_to_string(pp, _dollar_dollar) + unwrapped_fields791 = fields790 write(pp, ":") - write(pp, unwrapped_fields744) + write(pp, unwrapped_fields791) end return nothing end function pretty_epoch(pp::PrettyPrinter, msg::Proto.Epoch) - flat752 = try_flat(pp, msg, pretty_epoch) - if !isnothing(flat752) - write(pp, flat752) + flat799 = try_flat(pp, msg, pretty_epoch) + if !isnothing(flat799) + write(pp, flat799) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.writes) - _t1358 = _dollar_dollar.writes + _t1452 = _dollar_dollar.writes else - _t1358 = nothing + _t1452 = nothing end if !isempty(_dollar_dollar.reads) - _t1359 = _dollar_dollar.reads + _t1453 = _dollar_dollar.reads else - _t1359 = nothing + _t1453 = nothing end - fields746 = (_t1358, _t1359,) - unwrapped_fields747 = fields746 + fields793 = (_t1452, _t1453,) + unwrapped_fields794 = fields793 write(pp, "(epoch") indent_sexp!(pp) - field748 = unwrapped_fields747[1] - if !isnothing(field748) + field795 = unwrapped_fields794[1] + if !isnothing(field795) newline(pp) - opt_val749 = field748 - pretty_epoch_writes(pp, opt_val749) + opt_val796 = field795 + pretty_epoch_writes(pp, opt_val796) end - field750 = unwrapped_fields747[2] - if !isnothing(field750) + field797 = unwrapped_fields794[2] + if !isnothing(field797) newline(pp) - opt_val751 = field750 - pretty_epoch_reads(pp, opt_val751) + opt_val798 = field797 + pretty_epoch_reads(pp, opt_val798) end dedent!(pp) write(pp, ")") @@ -963,22 +963,22 @@ function pretty_epoch(pp::PrettyPrinter, msg::Proto.Epoch) end function pretty_epoch_writes(pp::PrettyPrinter, msg::Vector{Proto.Write}) - flat756 = try_flat(pp, msg, pretty_epoch_writes) - if !isnothing(flat756) - write(pp, flat756) + flat803 = try_flat(pp, msg, pretty_epoch_writes) + if !isnothing(flat803) + write(pp, flat803) return nothing else - fields753 = msg + fields800 = msg write(pp, "(writes") indent_sexp!(pp) - if !isempty(fields753) + if !isempty(fields800) newline(pp) - for (i1360, elem754) in enumerate(fields753) - i755 = i1360 - 1 - if (i755 > 0) + for (i1454, elem801) in enumerate(fields800) + i802 = i1454 - 1 + if (i802 > 0) newline(pp) end - pretty_write(pp, elem754) + pretty_write(pp, elem801) end end dedent!(pp) @@ -988,54 +988,54 @@ function pretty_epoch_writes(pp::PrettyPrinter, msg::Vector{Proto.Write}) end function pretty_write(pp::PrettyPrinter, msg::Proto.Write) - flat765 = try_flat(pp, msg, pretty_write) - if !isnothing(flat765) - write(pp, flat765) + flat812 = try_flat(pp, msg, pretty_write) + if !isnothing(flat812) + write(pp, flat812) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("define")) - _t1361 = _get_oneof_field(_dollar_dollar, :define) + _t1455 = _get_oneof_field(_dollar_dollar, :define) else - _t1361 = nothing + _t1455 = nothing end - deconstruct_result763 = _t1361 - if !isnothing(deconstruct_result763) - unwrapped764 = deconstruct_result763 - pretty_define(pp, unwrapped764) + deconstruct_result810 = _t1455 + if !isnothing(deconstruct_result810) + unwrapped811 = deconstruct_result810 + pretty_define(pp, unwrapped811) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("undefine")) - _t1362 = _get_oneof_field(_dollar_dollar, :undefine) + _t1456 = _get_oneof_field(_dollar_dollar, :undefine) else - _t1362 = nothing + _t1456 = nothing end - deconstruct_result761 = _t1362 - if !isnothing(deconstruct_result761) - unwrapped762 = deconstruct_result761 - pretty_undefine(pp, unwrapped762) + deconstruct_result808 = _t1456 + if !isnothing(deconstruct_result808) + unwrapped809 = deconstruct_result808 + pretty_undefine(pp, unwrapped809) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("context")) - _t1363 = _get_oneof_field(_dollar_dollar, :context) + _t1457 = _get_oneof_field(_dollar_dollar, :context) else - _t1363 = nothing + _t1457 = nothing end - deconstruct_result759 = _t1363 - if !isnothing(deconstruct_result759) - unwrapped760 = deconstruct_result759 - pretty_context(pp, unwrapped760) + deconstruct_result806 = _t1457 + if !isnothing(deconstruct_result806) + unwrapped807 = deconstruct_result806 + pretty_context(pp, unwrapped807) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("snapshot")) - _t1364 = _get_oneof_field(_dollar_dollar, :snapshot) + _t1458 = _get_oneof_field(_dollar_dollar, :snapshot) else - _t1364 = nothing + _t1458 = nothing end - deconstruct_result757 = _t1364 - if !isnothing(deconstruct_result757) - unwrapped758 = deconstruct_result757 - pretty_snapshot(pp, unwrapped758) + deconstruct_result804 = _t1458 + if !isnothing(deconstruct_result804) + unwrapped805 = deconstruct_result804 + pretty_snapshot(pp, unwrapped805) else throw(ParseError("No matching rule for write")) end @@ -1047,18 +1047,18 @@ function pretty_write(pp::PrettyPrinter, msg::Proto.Write) end function pretty_define(pp::PrettyPrinter, msg::Proto.Define) - flat768 = try_flat(pp, msg, pretty_define) - if !isnothing(flat768) - write(pp, flat768) + flat815 = try_flat(pp, msg, pretty_define) + if !isnothing(flat815) + write(pp, flat815) return nothing else _dollar_dollar = msg - fields766 = _dollar_dollar.fragment - unwrapped_fields767 = fields766 + fields813 = _dollar_dollar.fragment + unwrapped_fields814 = fields813 write(pp, "(define") indent_sexp!(pp) newline(pp) - pretty_fragment(pp, unwrapped_fields767) + pretty_fragment(pp, unwrapped_fields814) dedent!(pp) write(pp, ")") end @@ -1066,29 +1066,29 @@ function pretty_define(pp::PrettyPrinter, msg::Proto.Define) end function pretty_fragment(pp::PrettyPrinter, msg::Proto.Fragment) - flat775 = try_flat(pp, msg, pretty_fragment) - if !isnothing(flat775) - write(pp, flat775) + flat822 = try_flat(pp, msg, pretty_fragment) + if !isnothing(flat822) + write(pp, flat822) return nothing else _dollar_dollar = msg start_pretty_fragment(pp, _dollar_dollar) - fields769 = (_dollar_dollar.id, _dollar_dollar.declarations,) - unwrapped_fields770 = fields769 + fields816 = (_dollar_dollar.id, _dollar_dollar.declarations,) + unwrapped_fields817 = fields816 write(pp, "(fragment") indent_sexp!(pp) newline(pp) - field771 = unwrapped_fields770[1] - pretty_new_fragment_id(pp, field771) - field772 = unwrapped_fields770[2] - if !isempty(field772) + field818 = unwrapped_fields817[1] + pretty_new_fragment_id(pp, field818) + field819 = unwrapped_fields817[2] + if !isempty(field819) newline(pp) - for (i1365, elem773) in enumerate(field772) - i774 = i1365 - 1 - if (i774 > 0) + for (i1459, elem820) in enumerate(field819) + i821 = i1459 - 1 + if (i821 > 0) newline(pp) end - pretty_declaration(pp, elem773) + pretty_declaration(pp, elem820) end end dedent!(pp) @@ -1098,66 +1098,66 @@ function pretty_fragment(pp::PrettyPrinter, msg::Proto.Fragment) end function pretty_new_fragment_id(pp::PrettyPrinter, msg::Proto.FragmentId) - flat777 = try_flat(pp, msg, pretty_new_fragment_id) - if !isnothing(flat777) - write(pp, flat777) + flat824 = try_flat(pp, msg, pretty_new_fragment_id) + if !isnothing(flat824) + write(pp, flat824) return nothing else - fields776 = msg - pretty_fragment_id(pp, fields776) + fields823 = msg + pretty_fragment_id(pp, fields823) end return nothing end function pretty_declaration(pp::PrettyPrinter, msg::Proto.Declaration) - flat786 = try_flat(pp, msg, pretty_declaration) - if !isnothing(flat786) - write(pp, flat786) + flat833 = try_flat(pp, msg, pretty_declaration) + if !isnothing(flat833) + write(pp, flat833) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("def")) - _t1366 = _get_oneof_field(_dollar_dollar, :def) + _t1460 = _get_oneof_field(_dollar_dollar, :def) else - _t1366 = nothing + _t1460 = nothing end - deconstruct_result784 = _t1366 - if !isnothing(deconstruct_result784) - unwrapped785 = deconstruct_result784 - pretty_def(pp, unwrapped785) + deconstruct_result831 = _t1460 + if !isnothing(deconstruct_result831) + unwrapped832 = deconstruct_result831 + pretty_def(pp, unwrapped832) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("algorithm")) - _t1367 = _get_oneof_field(_dollar_dollar, :algorithm) + _t1461 = _get_oneof_field(_dollar_dollar, :algorithm) else - _t1367 = nothing + _t1461 = nothing end - deconstruct_result782 = _t1367 - if !isnothing(deconstruct_result782) - unwrapped783 = deconstruct_result782 - pretty_algorithm(pp, unwrapped783) + deconstruct_result829 = _t1461 + if !isnothing(deconstruct_result829) + unwrapped830 = deconstruct_result829 + pretty_algorithm(pp, unwrapped830) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("constraint")) - _t1368 = _get_oneof_field(_dollar_dollar, :constraint) + _t1462 = _get_oneof_field(_dollar_dollar, :constraint) else - _t1368 = nothing + _t1462 = nothing end - deconstruct_result780 = _t1368 - if !isnothing(deconstruct_result780) - unwrapped781 = deconstruct_result780 - pretty_constraint(pp, unwrapped781) + deconstruct_result827 = _t1462 + if !isnothing(deconstruct_result827) + unwrapped828 = deconstruct_result827 + pretty_constraint(pp, unwrapped828) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("data")) - _t1369 = _get_oneof_field(_dollar_dollar, :data) + _t1463 = _get_oneof_field(_dollar_dollar, :data) else - _t1369 = nothing + _t1463 = nothing end - deconstruct_result778 = _t1369 - if !isnothing(deconstruct_result778) - unwrapped779 = deconstruct_result778 - pretty_data(pp, unwrapped779) + deconstruct_result825 = _t1463 + if !isnothing(deconstruct_result825) + unwrapped826 = deconstruct_result825 + pretty_data(pp, unwrapped826) else throw(ParseError("No matching rule for declaration")) end @@ -1169,32 +1169,32 @@ function pretty_declaration(pp::PrettyPrinter, msg::Proto.Declaration) end function pretty_def(pp::PrettyPrinter, msg::Proto.Def) - flat793 = try_flat(pp, msg, pretty_def) - if !isnothing(flat793) - write(pp, flat793) + flat840 = try_flat(pp, msg, pretty_def) + if !isnothing(flat840) + write(pp, flat840) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1370 = _dollar_dollar.attrs + _t1464 = _dollar_dollar.attrs else - _t1370 = nothing + _t1464 = nothing end - fields787 = (_dollar_dollar.name, _dollar_dollar.body, _t1370,) - unwrapped_fields788 = fields787 + fields834 = (_dollar_dollar.name, _dollar_dollar.body, _t1464,) + unwrapped_fields835 = fields834 write(pp, "(def") indent_sexp!(pp) newline(pp) - field789 = unwrapped_fields788[1] - pretty_relation_id(pp, field789) + field836 = unwrapped_fields835[1] + pretty_relation_id(pp, field836) newline(pp) - field790 = unwrapped_fields788[2] - pretty_abstraction(pp, field790) - field791 = unwrapped_fields788[3] - if !isnothing(field791) + field837 = unwrapped_fields835[2] + pretty_abstraction(pp, field837) + field838 = unwrapped_fields835[3] + if !isnothing(field838) newline(pp) - opt_val792 = field791 - pretty_attrs(pp, opt_val792) + opt_val839 = field838 + pretty_attrs(pp, opt_val839) end dedent!(pp) write(pp, ")") @@ -1203,30 +1203,30 @@ function pretty_def(pp::PrettyPrinter, msg::Proto.Def) end function pretty_relation_id(pp::PrettyPrinter, msg::Proto.RelationId) - flat798 = try_flat(pp, msg, pretty_relation_id) - if !isnothing(flat798) - write(pp, flat798) + flat845 = try_flat(pp, msg, pretty_relation_id) + if !isnothing(flat845) + write(pp, flat845) return nothing else _dollar_dollar = msg if !isnothing(relation_id_to_string(pp, _dollar_dollar)) - _t1372 = deconstruct_relation_id_string(pp, _dollar_dollar) - _t1371 = _t1372 + _t1466 = deconstruct_relation_id_string(pp, _dollar_dollar) + _t1465 = _t1466 else - _t1371 = nothing + _t1465 = nothing end - deconstruct_result796 = _t1371 - if !isnothing(deconstruct_result796) - unwrapped797 = deconstruct_result796 + deconstruct_result843 = _t1465 + if !isnothing(deconstruct_result843) + unwrapped844 = deconstruct_result843 write(pp, ":") - write(pp, unwrapped797) + write(pp, unwrapped844) else _dollar_dollar = msg - _t1373 = deconstruct_relation_id_uint128(pp, _dollar_dollar) - deconstruct_result794 = _t1373 - if !isnothing(deconstruct_result794) - unwrapped795 = deconstruct_result794 - write(pp, format_uint128(pp, unwrapped795)) + _t1467 = deconstruct_relation_id_uint128(pp, _dollar_dollar) + deconstruct_result841 = _t1467 + if !isnothing(deconstruct_result841) + unwrapped842 = deconstruct_result841 + write(pp, format_uint128(pp, unwrapped842)) else throw(ParseError("No matching rule for relation_id")) end @@ -1236,22 +1236,22 @@ function pretty_relation_id(pp::PrettyPrinter, msg::Proto.RelationId) end function pretty_abstraction(pp::PrettyPrinter, msg::Proto.Abstraction) - flat803 = try_flat(pp, msg, pretty_abstraction) - if !isnothing(flat803) - write(pp, flat803) + flat850 = try_flat(pp, msg, pretty_abstraction) + if !isnothing(flat850) + write(pp, flat850) return nothing else _dollar_dollar = msg - _t1374 = deconstruct_bindings(pp, _dollar_dollar) - fields799 = (_t1374, _dollar_dollar.value,) - unwrapped_fields800 = fields799 + _t1468 = deconstruct_bindings(pp, _dollar_dollar) + fields846 = (_t1468, _dollar_dollar.value,) + unwrapped_fields847 = fields846 write(pp, "(") indent!(pp) - field801 = unwrapped_fields800[1] - pretty_bindings(pp, field801) + field848 = unwrapped_fields847[1] + pretty_bindings(pp, field848) newline(pp) - field802 = unwrapped_fields800[2] - pretty_formula(pp, field802) + field849 = unwrapped_fields847[2] + pretty_formula(pp, field849) dedent!(pp) write(pp, ")") end @@ -1259,34 +1259,34 @@ function pretty_abstraction(pp::PrettyPrinter, msg::Proto.Abstraction) end function pretty_bindings(pp::PrettyPrinter, msg::Tuple{Vector{Proto.Binding}, Vector{Proto.Binding}}) - flat811 = try_flat(pp, msg, pretty_bindings) - if !isnothing(flat811) - write(pp, flat811) + flat858 = try_flat(pp, msg, pretty_bindings) + if !isnothing(flat858) + write(pp, flat858) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar[2]) - _t1375 = _dollar_dollar[2] + _t1469 = _dollar_dollar[2] else - _t1375 = nothing + _t1469 = nothing end - fields804 = (_dollar_dollar[1], _t1375,) - unwrapped_fields805 = fields804 + fields851 = (_dollar_dollar[1], _t1469,) + unwrapped_fields852 = fields851 write(pp, "[") indent!(pp) - field806 = unwrapped_fields805[1] - for (i1376, elem807) in enumerate(field806) - i808 = i1376 - 1 - if (i808 > 0) + field853 = unwrapped_fields852[1] + for (i1470, elem854) in enumerate(field853) + i855 = i1470 - 1 + if (i855 > 0) newline(pp) end - pretty_binding(pp, elem807) + pretty_binding(pp, elem854) end - field809 = unwrapped_fields805[2] - if !isnothing(field809) + field856 = unwrapped_fields852[2] + if !isnothing(field856) newline(pp) - opt_val810 = field809 - pretty_value_bindings(pp, opt_val810) + opt_val857 = field856 + pretty_value_bindings(pp, opt_val857) end dedent!(pp) write(pp, "]") @@ -1295,182 +1295,182 @@ function pretty_bindings(pp::PrettyPrinter, msg::Tuple{Vector{Proto.Binding}, Ve end function pretty_binding(pp::PrettyPrinter, msg::Proto.Binding) - flat816 = try_flat(pp, msg, pretty_binding) - if !isnothing(flat816) - write(pp, flat816) + flat863 = try_flat(pp, msg, pretty_binding) + if !isnothing(flat863) + write(pp, flat863) return nothing else _dollar_dollar = msg - fields812 = (_dollar_dollar.var.name, _dollar_dollar.var"#type",) - unwrapped_fields813 = fields812 - field814 = unwrapped_fields813[1] - write(pp, field814) + fields859 = (_dollar_dollar.var.name, _dollar_dollar.var"#type",) + unwrapped_fields860 = fields859 + field861 = unwrapped_fields860[1] + write(pp, field861) write(pp, "::") - field815 = unwrapped_fields813[2] - pretty_type(pp, field815) + field862 = unwrapped_fields860[2] + pretty_type(pp, field862) end return nothing end function pretty_type(pp::PrettyPrinter, msg::Proto.var"#Type") - flat845 = try_flat(pp, msg, pretty_type) - if !isnothing(flat845) - write(pp, flat845) + flat892 = try_flat(pp, msg, pretty_type) + if !isnothing(flat892) + write(pp, flat892) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("unspecified_type")) - _t1377 = _get_oneof_field(_dollar_dollar, :unspecified_type) + _t1471 = _get_oneof_field(_dollar_dollar, :unspecified_type) else - _t1377 = nothing + _t1471 = nothing end - deconstruct_result843 = _t1377 - if !isnothing(deconstruct_result843) - unwrapped844 = deconstruct_result843 - pretty_unspecified_type(pp, unwrapped844) + deconstruct_result890 = _t1471 + if !isnothing(deconstruct_result890) + unwrapped891 = deconstruct_result890 + pretty_unspecified_type(pp, unwrapped891) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("string_type")) - _t1378 = _get_oneof_field(_dollar_dollar, :string_type) + _t1472 = _get_oneof_field(_dollar_dollar, :string_type) else - _t1378 = nothing + _t1472 = nothing end - deconstruct_result841 = _t1378 - if !isnothing(deconstruct_result841) - unwrapped842 = deconstruct_result841 - pretty_string_type(pp, unwrapped842) + deconstruct_result888 = _t1472 + if !isnothing(deconstruct_result888) + unwrapped889 = deconstruct_result888 + pretty_string_type(pp, unwrapped889) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int_type")) - _t1379 = _get_oneof_field(_dollar_dollar, :int_type) + _t1473 = _get_oneof_field(_dollar_dollar, :int_type) else - _t1379 = nothing + _t1473 = nothing end - deconstruct_result839 = _t1379 - if !isnothing(deconstruct_result839) - unwrapped840 = deconstruct_result839 - pretty_int_type(pp, unwrapped840) + deconstruct_result886 = _t1473 + if !isnothing(deconstruct_result886) + unwrapped887 = deconstruct_result886 + pretty_int_type(pp, unwrapped887) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float_type")) - _t1380 = _get_oneof_field(_dollar_dollar, :float_type) + _t1474 = _get_oneof_field(_dollar_dollar, :float_type) else - _t1380 = nothing + _t1474 = nothing end - deconstruct_result837 = _t1380 - if !isnothing(deconstruct_result837) - unwrapped838 = deconstruct_result837 - pretty_float_type(pp, unwrapped838) + deconstruct_result884 = _t1474 + if !isnothing(deconstruct_result884) + unwrapped885 = deconstruct_result884 + pretty_float_type(pp, unwrapped885) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint128_type")) - _t1381 = _get_oneof_field(_dollar_dollar, :uint128_type) + _t1475 = _get_oneof_field(_dollar_dollar, :uint128_type) else - _t1381 = nothing + _t1475 = nothing end - deconstruct_result835 = _t1381 - if !isnothing(deconstruct_result835) - unwrapped836 = deconstruct_result835 - pretty_uint128_type(pp, unwrapped836) + deconstruct_result882 = _t1475 + if !isnothing(deconstruct_result882) + unwrapped883 = deconstruct_result882 + pretty_uint128_type(pp, unwrapped883) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int128_type")) - _t1382 = _get_oneof_field(_dollar_dollar, :int128_type) + _t1476 = _get_oneof_field(_dollar_dollar, :int128_type) else - _t1382 = nothing + _t1476 = nothing end - deconstruct_result833 = _t1382 - if !isnothing(deconstruct_result833) - unwrapped834 = deconstruct_result833 - pretty_int128_type(pp, unwrapped834) + deconstruct_result880 = _t1476 + if !isnothing(deconstruct_result880) + unwrapped881 = deconstruct_result880 + pretty_int128_type(pp, unwrapped881) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("date_type")) - _t1383 = _get_oneof_field(_dollar_dollar, :date_type) + _t1477 = _get_oneof_field(_dollar_dollar, :date_type) else - _t1383 = nothing + _t1477 = nothing end - deconstruct_result831 = _t1383 - if !isnothing(deconstruct_result831) - unwrapped832 = deconstruct_result831 - pretty_date_type(pp, unwrapped832) + deconstruct_result878 = _t1477 + if !isnothing(deconstruct_result878) + unwrapped879 = deconstruct_result878 + pretty_date_type(pp, unwrapped879) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("datetime_type")) - _t1384 = _get_oneof_field(_dollar_dollar, :datetime_type) + _t1478 = _get_oneof_field(_dollar_dollar, :datetime_type) else - _t1384 = nothing + _t1478 = nothing end - deconstruct_result829 = _t1384 - if !isnothing(deconstruct_result829) - unwrapped830 = deconstruct_result829 - pretty_datetime_type(pp, unwrapped830) + deconstruct_result876 = _t1478 + if !isnothing(deconstruct_result876) + unwrapped877 = deconstruct_result876 + pretty_datetime_type(pp, unwrapped877) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("missing_type")) - _t1385 = _get_oneof_field(_dollar_dollar, :missing_type) + _t1479 = _get_oneof_field(_dollar_dollar, :missing_type) else - _t1385 = nothing + _t1479 = nothing end - deconstruct_result827 = _t1385 - if !isnothing(deconstruct_result827) - unwrapped828 = deconstruct_result827 - pretty_missing_type(pp, unwrapped828) + deconstruct_result874 = _t1479 + if !isnothing(deconstruct_result874) + unwrapped875 = deconstruct_result874 + pretty_missing_type(pp, unwrapped875) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("decimal_type")) - _t1386 = _get_oneof_field(_dollar_dollar, :decimal_type) + _t1480 = _get_oneof_field(_dollar_dollar, :decimal_type) else - _t1386 = nothing + _t1480 = nothing end - deconstruct_result825 = _t1386 - if !isnothing(deconstruct_result825) - unwrapped826 = deconstruct_result825 - pretty_decimal_type(pp, unwrapped826) + deconstruct_result872 = _t1480 + if !isnothing(deconstruct_result872) + unwrapped873 = deconstruct_result872 + pretty_decimal_type(pp, unwrapped873) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("boolean_type")) - _t1387 = _get_oneof_field(_dollar_dollar, :boolean_type) + _t1481 = _get_oneof_field(_dollar_dollar, :boolean_type) else - _t1387 = nothing + _t1481 = nothing end - deconstruct_result823 = _t1387 - if !isnothing(deconstruct_result823) - unwrapped824 = deconstruct_result823 - pretty_boolean_type(pp, unwrapped824) + deconstruct_result870 = _t1481 + if !isnothing(deconstruct_result870) + unwrapped871 = deconstruct_result870 + pretty_boolean_type(pp, unwrapped871) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("int32_type")) - _t1388 = _get_oneof_field(_dollar_dollar, :int32_type) + _t1482 = _get_oneof_field(_dollar_dollar, :int32_type) else - _t1388 = nothing + _t1482 = nothing end - deconstruct_result821 = _t1388 - if !isnothing(deconstruct_result821) - unwrapped822 = deconstruct_result821 - pretty_int32_type(pp, unwrapped822) + deconstruct_result868 = _t1482 + if !isnothing(deconstruct_result868) + unwrapped869 = deconstruct_result868 + pretty_int32_type(pp, unwrapped869) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("float32_type")) - _t1389 = _get_oneof_field(_dollar_dollar, :float32_type) + _t1483 = _get_oneof_field(_dollar_dollar, :float32_type) else - _t1389 = nothing + _t1483 = nothing end - deconstruct_result819 = _t1389 - if !isnothing(deconstruct_result819) - unwrapped820 = deconstruct_result819 - pretty_float32_type(pp, unwrapped820) + deconstruct_result866 = _t1483 + if !isnothing(deconstruct_result866) + unwrapped867 = deconstruct_result866 + pretty_float32_type(pp, unwrapped867) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("uint32_type")) - _t1390 = _get_oneof_field(_dollar_dollar, :uint32_type) + _t1484 = _get_oneof_field(_dollar_dollar, :uint32_type) else - _t1390 = nothing + _t1484 = nothing end - deconstruct_result817 = _t1390 - if !isnothing(deconstruct_result817) - unwrapped818 = deconstruct_result817 - pretty_uint32_type(pp, unwrapped818) + deconstruct_result864 = _t1484 + if !isnothing(deconstruct_result864) + unwrapped865 = deconstruct_result864 + pretty_uint32_type(pp, unwrapped865) else throw(ParseError("No matching rule for type")) end @@ -1492,76 +1492,76 @@ function pretty_type(pp::PrettyPrinter, msg::Proto.var"#Type") end function pretty_unspecified_type(pp::PrettyPrinter, msg::Proto.UnspecifiedType) - fields846 = msg + fields893 = msg write(pp, "UNKNOWN") return nothing end function pretty_string_type(pp::PrettyPrinter, msg::Proto.StringType) - fields847 = msg + fields894 = msg write(pp, "STRING") return nothing end function pretty_int_type(pp::PrettyPrinter, msg::Proto.IntType) - fields848 = msg + fields895 = msg write(pp, "INT") return nothing end function pretty_float_type(pp::PrettyPrinter, msg::Proto.FloatType) - fields849 = msg + fields896 = msg write(pp, "FLOAT") return nothing end function pretty_uint128_type(pp::PrettyPrinter, msg::Proto.UInt128Type) - fields850 = msg + fields897 = msg write(pp, "UINT128") return nothing end function pretty_int128_type(pp::PrettyPrinter, msg::Proto.Int128Type) - fields851 = msg + fields898 = msg write(pp, "INT128") return nothing end function pretty_date_type(pp::PrettyPrinter, msg::Proto.DateType) - fields852 = msg + fields899 = msg write(pp, "DATE") return nothing end function pretty_datetime_type(pp::PrettyPrinter, msg::Proto.DateTimeType) - fields853 = msg + fields900 = msg write(pp, "DATETIME") return nothing end function pretty_missing_type(pp::PrettyPrinter, msg::Proto.MissingType) - fields854 = msg + fields901 = msg write(pp, "MISSING") return nothing end function pretty_decimal_type(pp::PrettyPrinter, msg::Proto.DecimalType) - flat859 = try_flat(pp, msg, pretty_decimal_type) - if !isnothing(flat859) - write(pp, flat859) + flat906 = try_flat(pp, msg, pretty_decimal_type) + if !isnothing(flat906) + write(pp, flat906) return nothing else _dollar_dollar = msg - fields855 = (Int64(_dollar_dollar.precision), Int64(_dollar_dollar.scale),) - unwrapped_fields856 = fields855 + fields902 = (Int64(_dollar_dollar.precision), Int64(_dollar_dollar.scale),) + unwrapped_fields903 = fields902 write(pp, "(DECIMAL") indent_sexp!(pp) newline(pp) - field857 = unwrapped_fields856[1] - write(pp, format_int(pp, field857)) + field904 = unwrapped_fields903[1] + write(pp, format_int(pp, field904)) newline(pp) - field858 = unwrapped_fields856[2] - write(pp, format_int(pp, field858)) + field905 = unwrapped_fields903[2] + write(pp, format_int(pp, field905)) dedent!(pp) write(pp, ")") end @@ -1569,45 +1569,45 @@ function pretty_decimal_type(pp::PrettyPrinter, msg::Proto.DecimalType) end function pretty_boolean_type(pp::PrettyPrinter, msg::Proto.BooleanType) - fields860 = msg + fields907 = msg write(pp, "BOOLEAN") return nothing end function pretty_int32_type(pp::PrettyPrinter, msg::Proto.Int32Type) - fields861 = msg + fields908 = msg write(pp, "INT32") return nothing end function pretty_float32_type(pp::PrettyPrinter, msg::Proto.Float32Type) - fields862 = msg + fields909 = msg write(pp, "FLOAT32") return nothing end function pretty_uint32_type(pp::PrettyPrinter, msg::Proto.UInt32Type) - fields863 = msg + fields910 = msg write(pp, "UINT32") return nothing end function pretty_value_bindings(pp::PrettyPrinter, msg::Vector{Proto.Binding}) - flat867 = try_flat(pp, msg, pretty_value_bindings) - if !isnothing(flat867) - write(pp, flat867) + flat914 = try_flat(pp, msg, pretty_value_bindings) + if !isnothing(flat914) + write(pp, flat914) return nothing else - fields864 = msg + fields911 = msg write(pp, "|") - if !isempty(fields864) + if !isempty(fields911) write(pp, " ") - for (i1391, elem865) in enumerate(fields864) - i866 = i1391 - 1 - if (i866 > 0) + for (i1485, elem912) in enumerate(fields911) + i913 = i1485 - 1 + if (i913 > 0) newline(pp) end - pretty_binding(pp, elem865) + pretty_binding(pp, elem912) end end end @@ -1615,153 +1615,153 @@ function pretty_value_bindings(pp::PrettyPrinter, msg::Vector{Proto.Binding}) end function pretty_formula(pp::PrettyPrinter, msg::Proto.Formula) - flat894 = try_flat(pp, msg, pretty_formula) - if !isnothing(flat894) - write(pp, flat894) + flat941 = try_flat(pp, msg, pretty_formula) + if !isnothing(flat941) + write(pp, flat941) return nothing else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("conjunction")) && isempty(_get_oneof_field(_dollar_dollar, :conjunction).args)) - _t1392 = _get_oneof_field(_dollar_dollar, :conjunction) + _t1486 = _get_oneof_field(_dollar_dollar, :conjunction) else - _t1392 = nothing + _t1486 = nothing end - deconstruct_result892 = _t1392 - if !isnothing(deconstruct_result892) - unwrapped893 = deconstruct_result892 - pretty_true(pp, unwrapped893) + deconstruct_result939 = _t1486 + if !isnothing(deconstruct_result939) + unwrapped940 = deconstruct_result939 + pretty_true(pp, unwrapped940) else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("disjunction")) && isempty(_get_oneof_field(_dollar_dollar, :disjunction).args)) - _t1393 = _get_oneof_field(_dollar_dollar, :disjunction) + _t1487 = _get_oneof_field(_dollar_dollar, :disjunction) else - _t1393 = nothing + _t1487 = nothing end - deconstruct_result890 = _t1393 - if !isnothing(deconstruct_result890) - unwrapped891 = deconstruct_result890 - pretty_false(pp, unwrapped891) + deconstruct_result937 = _t1487 + if !isnothing(deconstruct_result937) + unwrapped938 = deconstruct_result937 + pretty_false(pp, unwrapped938) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("exists")) - _t1394 = _get_oneof_field(_dollar_dollar, :exists) + _t1488 = _get_oneof_field(_dollar_dollar, :exists) else - _t1394 = nothing + _t1488 = nothing end - deconstruct_result888 = _t1394 - if !isnothing(deconstruct_result888) - unwrapped889 = deconstruct_result888 - pretty_exists(pp, unwrapped889) + deconstruct_result935 = _t1488 + if !isnothing(deconstruct_result935) + unwrapped936 = deconstruct_result935 + pretty_exists(pp, unwrapped936) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("reduce")) - _t1395 = _get_oneof_field(_dollar_dollar, :reduce) + _t1489 = _get_oneof_field(_dollar_dollar, :reduce) else - _t1395 = nothing + _t1489 = nothing end - deconstruct_result886 = _t1395 - if !isnothing(deconstruct_result886) - unwrapped887 = deconstruct_result886 - pretty_reduce(pp, unwrapped887) + deconstruct_result933 = _t1489 + if !isnothing(deconstruct_result933) + unwrapped934 = deconstruct_result933 + pretty_reduce(pp, unwrapped934) else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("conjunction")) && !isempty(_get_oneof_field(_dollar_dollar, :conjunction).args)) - _t1396 = _get_oneof_field(_dollar_dollar, :conjunction) + _t1490 = _get_oneof_field(_dollar_dollar, :conjunction) else - _t1396 = nothing + _t1490 = nothing end - deconstruct_result884 = _t1396 - if !isnothing(deconstruct_result884) - unwrapped885 = deconstruct_result884 - pretty_conjunction(pp, unwrapped885) + deconstruct_result931 = _t1490 + if !isnothing(deconstruct_result931) + unwrapped932 = deconstruct_result931 + pretty_conjunction(pp, unwrapped932) else _dollar_dollar = msg if (_has_proto_field(_dollar_dollar, Symbol("disjunction")) && !isempty(_get_oneof_field(_dollar_dollar, :disjunction).args)) - _t1397 = _get_oneof_field(_dollar_dollar, :disjunction) + _t1491 = _get_oneof_field(_dollar_dollar, :disjunction) else - _t1397 = nothing + _t1491 = nothing end - deconstruct_result882 = _t1397 - if !isnothing(deconstruct_result882) - unwrapped883 = deconstruct_result882 - pretty_disjunction(pp, unwrapped883) + deconstruct_result929 = _t1491 + if !isnothing(deconstruct_result929) + unwrapped930 = deconstruct_result929 + pretty_disjunction(pp, unwrapped930) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("not")) - _t1398 = _get_oneof_field(_dollar_dollar, :not) + _t1492 = _get_oneof_field(_dollar_dollar, :not) else - _t1398 = nothing + _t1492 = nothing end - deconstruct_result880 = _t1398 - if !isnothing(deconstruct_result880) - unwrapped881 = deconstruct_result880 - pretty_not(pp, unwrapped881) + deconstruct_result927 = _t1492 + if !isnothing(deconstruct_result927) + unwrapped928 = deconstruct_result927 + pretty_not(pp, unwrapped928) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("ffi")) - _t1399 = _get_oneof_field(_dollar_dollar, :ffi) + _t1493 = _get_oneof_field(_dollar_dollar, :ffi) else - _t1399 = nothing + _t1493 = nothing end - deconstruct_result878 = _t1399 - if !isnothing(deconstruct_result878) - unwrapped879 = deconstruct_result878 - pretty_ffi(pp, unwrapped879) + deconstruct_result925 = _t1493 + if !isnothing(deconstruct_result925) + unwrapped926 = deconstruct_result925 + pretty_ffi(pp, unwrapped926) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("atom")) - _t1400 = _get_oneof_field(_dollar_dollar, :atom) + _t1494 = _get_oneof_field(_dollar_dollar, :atom) else - _t1400 = nothing + _t1494 = nothing end - deconstruct_result876 = _t1400 - if !isnothing(deconstruct_result876) - unwrapped877 = deconstruct_result876 - pretty_atom(pp, unwrapped877) + deconstruct_result923 = _t1494 + if !isnothing(deconstruct_result923) + unwrapped924 = deconstruct_result923 + pretty_atom(pp, unwrapped924) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("pragma")) - _t1401 = _get_oneof_field(_dollar_dollar, :pragma) + _t1495 = _get_oneof_field(_dollar_dollar, :pragma) else - _t1401 = nothing + _t1495 = nothing end - deconstruct_result874 = _t1401 - if !isnothing(deconstruct_result874) - unwrapped875 = deconstruct_result874 - pretty_pragma(pp, unwrapped875) + deconstruct_result921 = _t1495 + if !isnothing(deconstruct_result921) + unwrapped922 = deconstruct_result921 + pretty_pragma(pp, unwrapped922) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("primitive")) - _t1402 = _get_oneof_field(_dollar_dollar, :primitive) + _t1496 = _get_oneof_field(_dollar_dollar, :primitive) else - _t1402 = nothing + _t1496 = nothing end - deconstruct_result872 = _t1402 - if !isnothing(deconstruct_result872) - unwrapped873 = deconstruct_result872 - pretty_primitive(pp, unwrapped873) + deconstruct_result919 = _t1496 + if !isnothing(deconstruct_result919) + unwrapped920 = deconstruct_result919 + pretty_primitive(pp, unwrapped920) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("rel_atom")) - _t1403 = _get_oneof_field(_dollar_dollar, :rel_atom) + _t1497 = _get_oneof_field(_dollar_dollar, :rel_atom) else - _t1403 = nothing + _t1497 = nothing end - deconstruct_result870 = _t1403 - if !isnothing(deconstruct_result870) - unwrapped871 = deconstruct_result870 - pretty_rel_atom(pp, unwrapped871) + deconstruct_result917 = _t1497 + if !isnothing(deconstruct_result917) + unwrapped918 = deconstruct_result917 + pretty_rel_atom(pp, unwrapped918) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("cast")) - _t1404 = _get_oneof_field(_dollar_dollar, :cast) + _t1498 = _get_oneof_field(_dollar_dollar, :cast) else - _t1404 = nothing + _t1498 = nothing end - deconstruct_result868 = _t1404 - if !isnothing(deconstruct_result868) - unwrapped869 = deconstruct_result868 - pretty_cast(pp, unwrapped869) + deconstruct_result915 = _t1498 + if !isnothing(deconstruct_result915) + unwrapped916 = deconstruct_result915 + pretty_cast(pp, unwrapped916) else throw(ParseError("No matching rule for formula")) end @@ -1782,35 +1782,35 @@ function pretty_formula(pp::PrettyPrinter, msg::Proto.Formula) end function pretty_true(pp::PrettyPrinter, msg::Proto.Conjunction) - fields895 = msg + fields942 = msg write(pp, "(true)") return nothing end function pretty_false(pp::PrettyPrinter, msg::Proto.Disjunction) - fields896 = msg + fields943 = msg write(pp, "(false)") return nothing end function pretty_exists(pp::PrettyPrinter, msg::Proto.Exists) - flat901 = try_flat(pp, msg, pretty_exists) - if !isnothing(flat901) - write(pp, flat901) + flat948 = try_flat(pp, msg, pretty_exists) + if !isnothing(flat948) + write(pp, flat948) return nothing else _dollar_dollar = msg - _t1405 = deconstruct_bindings(pp, _dollar_dollar.body) - fields897 = (_t1405, _dollar_dollar.body.value,) - unwrapped_fields898 = fields897 + _t1499 = deconstruct_bindings(pp, _dollar_dollar.body) + fields944 = (_t1499, _dollar_dollar.body.value,) + unwrapped_fields945 = fields944 write(pp, "(exists") indent_sexp!(pp) newline(pp) - field899 = unwrapped_fields898[1] - pretty_bindings(pp, field899) + field946 = unwrapped_fields945[1] + pretty_bindings(pp, field946) newline(pp) - field900 = unwrapped_fields898[2] - pretty_formula(pp, field900) + field947 = unwrapped_fields945[2] + pretty_formula(pp, field947) dedent!(pp) write(pp, ")") end @@ -1818,25 +1818,25 @@ function pretty_exists(pp::PrettyPrinter, msg::Proto.Exists) end function pretty_reduce(pp::PrettyPrinter, msg::Proto.Reduce) - flat907 = try_flat(pp, msg, pretty_reduce) - if !isnothing(flat907) - write(pp, flat907) + flat954 = try_flat(pp, msg, pretty_reduce) + if !isnothing(flat954) + write(pp, flat954) return nothing else _dollar_dollar = msg - fields902 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) - unwrapped_fields903 = fields902 + fields949 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) + unwrapped_fields950 = fields949 write(pp, "(reduce") indent_sexp!(pp) newline(pp) - field904 = unwrapped_fields903[1] - pretty_abstraction(pp, field904) + field951 = unwrapped_fields950[1] + pretty_abstraction(pp, field951) newline(pp) - field905 = unwrapped_fields903[2] - pretty_abstraction(pp, field905) + field952 = unwrapped_fields950[2] + pretty_abstraction(pp, field952) newline(pp) - field906 = unwrapped_fields903[3] - pretty_terms(pp, field906) + field953 = unwrapped_fields950[3] + pretty_terms(pp, field953) dedent!(pp) write(pp, ")") end @@ -1844,22 +1844,22 @@ function pretty_reduce(pp::PrettyPrinter, msg::Proto.Reduce) end function pretty_terms(pp::PrettyPrinter, msg::Vector{Proto.Term}) - flat911 = try_flat(pp, msg, pretty_terms) - if !isnothing(flat911) - write(pp, flat911) + flat958 = try_flat(pp, msg, pretty_terms) + if !isnothing(flat958) + write(pp, flat958) return nothing else - fields908 = msg + fields955 = msg write(pp, "(terms") indent_sexp!(pp) - if !isempty(fields908) + if !isempty(fields955) newline(pp) - for (i1406, elem909) in enumerate(fields908) - i910 = i1406 - 1 - if (i910 > 0) + for (i1500, elem956) in enumerate(fields955) + i957 = i1500 - 1 + if (i957 > 0) newline(pp) end - pretty_term(pp, elem909) + pretty_term(pp, elem956) end end dedent!(pp) @@ -1869,32 +1869,32 @@ function pretty_terms(pp::PrettyPrinter, msg::Vector{Proto.Term}) end function pretty_term(pp::PrettyPrinter, msg::Proto.Term) - flat916 = try_flat(pp, msg, pretty_term) - if !isnothing(flat916) - write(pp, flat916) + flat963 = try_flat(pp, msg, pretty_term) + if !isnothing(flat963) + write(pp, flat963) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("var")) - _t1407 = _get_oneof_field(_dollar_dollar, :var) + _t1501 = _get_oneof_field(_dollar_dollar, :var) else - _t1407 = nothing + _t1501 = nothing end - deconstruct_result914 = _t1407 - if !isnothing(deconstruct_result914) - unwrapped915 = deconstruct_result914 - pretty_var(pp, unwrapped915) + deconstruct_result961 = _t1501 + if !isnothing(deconstruct_result961) + unwrapped962 = deconstruct_result961 + pretty_var(pp, unwrapped962) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("constant")) - _t1408 = _get_oneof_field(_dollar_dollar, :constant) + _t1502 = _get_oneof_field(_dollar_dollar, :constant) else - _t1408 = nothing + _t1502 = nothing end - deconstruct_result912 = _t1408 - if !isnothing(deconstruct_result912) - unwrapped913 = deconstruct_result912 - pretty_constant(pp, unwrapped913) + deconstruct_result959 = _t1502 + if !isnothing(deconstruct_result959) + unwrapped960 = deconstruct_result959 + pretty_constant(pp, unwrapped960) else throw(ParseError("No matching rule for term")) end @@ -1904,50 +1904,50 @@ function pretty_term(pp::PrettyPrinter, msg::Proto.Term) end function pretty_var(pp::PrettyPrinter, msg::Proto.Var) - flat919 = try_flat(pp, msg, pretty_var) - if !isnothing(flat919) - write(pp, flat919) + flat966 = try_flat(pp, msg, pretty_var) + if !isnothing(flat966) + write(pp, flat966) return nothing else _dollar_dollar = msg - fields917 = _dollar_dollar.name - unwrapped_fields918 = fields917 - write(pp, unwrapped_fields918) + fields964 = _dollar_dollar.name + unwrapped_fields965 = fields964 + write(pp, unwrapped_fields965) end return nothing end function pretty_constant(pp::PrettyPrinter, msg::Proto.Value) - flat921 = try_flat(pp, msg, pretty_constant) - if !isnothing(flat921) - write(pp, flat921) + flat968 = try_flat(pp, msg, pretty_constant) + if !isnothing(flat968) + write(pp, flat968) return nothing else - fields920 = msg - pretty_value(pp, fields920) + fields967 = msg + pretty_value(pp, fields967) end return nothing end function pretty_conjunction(pp::PrettyPrinter, msg::Proto.Conjunction) - flat926 = try_flat(pp, msg, pretty_conjunction) - if !isnothing(flat926) - write(pp, flat926) + flat973 = try_flat(pp, msg, pretty_conjunction) + if !isnothing(flat973) + write(pp, flat973) return nothing else _dollar_dollar = msg - fields922 = _dollar_dollar.args - unwrapped_fields923 = fields922 + fields969 = _dollar_dollar.args + unwrapped_fields970 = fields969 write(pp, "(and") indent_sexp!(pp) - if !isempty(unwrapped_fields923) + if !isempty(unwrapped_fields970) newline(pp) - for (i1409, elem924) in enumerate(unwrapped_fields923) - i925 = i1409 - 1 - if (i925 > 0) + for (i1503, elem971) in enumerate(unwrapped_fields970) + i972 = i1503 - 1 + if (i972 > 0) newline(pp) end - pretty_formula(pp, elem924) + pretty_formula(pp, elem971) end end dedent!(pp) @@ -1957,24 +1957,24 @@ function pretty_conjunction(pp::PrettyPrinter, msg::Proto.Conjunction) end function pretty_disjunction(pp::PrettyPrinter, msg::Proto.Disjunction) - flat931 = try_flat(pp, msg, pretty_disjunction) - if !isnothing(flat931) - write(pp, flat931) + flat978 = try_flat(pp, msg, pretty_disjunction) + if !isnothing(flat978) + write(pp, flat978) return nothing else _dollar_dollar = msg - fields927 = _dollar_dollar.args - unwrapped_fields928 = fields927 + fields974 = _dollar_dollar.args + unwrapped_fields975 = fields974 write(pp, "(or") indent_sexp!(pp) - if !isempty(unwrapped_fields928) + if !isempty(unwrapped_fields975) newline(pp) - for (i1410, elem929) in enumerate(unwrapped_fields928) - i930 = i1410 - 1 - if (i930 > 0) + for (i1504, elem976) in enumerate(unwrapped_fields975) + i977 = i1504 - 1 + if (i977 > 0) newline(pp) end - pretty_formula(pp, elem929) + pretty_formula(pp, elem976) end end dedent!(pp) @@ -1984,18 +1984,18 @@ function pretty_disjunction(pp::PrettyPrinter, msg::Proto.Disjunction) end function pretty_not(pp::PrettyPrinter, msg::Proto.Not) - flat934 = try_flat(pp, msg, pretty_not) - if !isnothing(flat934) - write(pp, flat934) + flat981 = try_flat(pp, msg, pretty_not) + if !isnothing(flat981) + write(pp, flat981) return nothing else _dollar_dollar = msg - fields932 = _dollar_dollar.arg - unwrapped_fields933 = fields932 + fields979 = _dollar_dollar.arg + unwrapped_fields980 = fields979 write(pp, "(not") indent_sexp!(pp) newline(pp) - pretty_formula(pp, unwrapped_fields933) + pretty_formula(pp, unwrapped_fields980) dedent!(pp) write(pp, ")") end @@ -2003,25 +2003,25 @@ function pretty_not(pp::PrettyPrinter, msg::Proto.Not) end function pretty_ffi(pp::PrettyPrinter, msg::Proto.FFI) - flat940 = try_flat(pp, msg, pretty_ffi) - if !isnothing(flat940) - write(pp, flat940) + flat987 = try_flat(pp, msg, pretty_ffi) + if !isnothing(flat987) + write(pp, flat987) return nothing else _dollar_dollar = msg - fields935 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) - unwrapped_fields936 = fields935 + fields982 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) + unwrapped_fields983 = fields982 write(pp, "(ffi") indent_sexp!(pp) newline(pp) - field937 = unwrapped_fields936[1] - pretty_name(pp, field937) + field984 = unwrapped_fields983[1] + pretty_name(pp, field984) newline(pp) - field938 = unwrapped_fields936[2] - pretty_ffi_args(pp, field938) + field985 = unwrapped_fields983[2] + pretty_ffi_args(pp, field985) newline(pp) - field939 = unwrapped_fields936[3] - pretty_terms(pp, field939) + field986 = unwrapped_fields983[3] + pretty_terms(pp, field986) dedent!(pp) write(pp, ")") end @@ -2029,35 +2029,35 @@ function pretty_ffi(pp::PrettyPrinter, msg::Proto.FFI) end function pretty_name(pp::PrettyPrinter, msg::String) - flat942 = try_flat(pp, msg, pretty_name) - if !isnothing(flat942) - write(pp, flat942) + flat989 = try_flat(pp, msg, pretty_name) + if !isnothing(flat989) + write(pp, flat989) return nothing else - fields941 = msg + fields988 = msg write(pp, ":") - write(pp, fields941) + write(pp, fields988) end return nothing end function pretty_ffi_args(pp::PrettyPrinter, msg::Vector{Proto.Abstraction}) - flat946 = try_flat(pp, msg, pretty_ffi_args) - if !isnothing(flat946) - write(pp, flat946) + flat993 = try_flat(pp, msg, pretty_ffi_args) + if !isnothing(flat993) + write(pp, flat993) return nothing else - fields943 = msg + fields990 = msg write(pp, "(args") indent_sexp!(pp) - if !isempty(fields943) + if !isempty(fields990) newline(pp) - for (i1411, elem944) in enumerate(fields943) - i945 = i1411 - 1 - if (i945 > 0) + for (i1505, elem991) in enumerate(fields990) + i992 = i1505 - 1 + if (i992 > 0) newline(pp) end - pretty_abstraction(pp, elem944) + pretty_abstraction(pp, elem991) end end dedent!(pp) @@ -2067,28 +2067,28 @@ function pretty_ffi_args(pp::PrettyPrinter, msg::Vector{Proto.Abstraction}) end function pretty_atom(pp::PrettyPrinter, msg::Proto.Atom) - flat953 = try_flat(pp, msg, pretty_atom) - if !isnothing(flat953) - write(pp, flat953) + flat1000 = try_flat(pp, msg, pretty_atom) + if !isnothing(flat1000) + write(pp, flat1000) return nothing else _dollar_dollar = msg - fields947 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields948 = fields947 + fields994 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields995 = fields994 write(pp, "(atom") indent_sexp!(pp) newline(pp) - field949 = unwrapped_fields948[1] - pretty_relation_id(pp, field949) - field950 = unwrapped_fields948[2] - if !isempty(field950) + field996 = unwrapped_fields995[1] + pretty_relation_id(pp, field996) + field997 = unwrapped_fields995[2] + if !isempty(field997) newline(pp) - for (i1412, elem951) in enumerate(field950) - i952 = i1412 - 1 - if (i952 > 0) + for (i1506, elem998) in enumerate(field997) + i999 = i1506 - 1 + if (i999 > 0) newline(pp) end - pretty_term(pp, elem951) + pretty_term(pp, elem998) end end dedent!(pp) @@ -2098,28 +2098,28 @@ function pretty_atom(pp::PrettyPrinter, msg::Proto.Atom) end function pretty_pragma(pp::PrettyPrinter, msg::Proto.Pragma) - flat960 = try_flat(pp, msg, pretty_pragma) - if !isnothing(flat960) - write(pp, flat960) + flat1007 = try_flat(pp, msg, pretty_pragma) + if !isnothing(flat1007) + write(pp, flat1007) return nothing else _dollar_dollar = msg - fields954 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields955 = fields954 + fields1001 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1002 = fields1001 write(pp, "(pragma") indent_sexp!(pp) newline(pp) - field956 = unwrapped_fields955[1] - pretty_name(pp, field956) - field957 = unwrapped_fields955[2] - if !isempty(field957) + field1003 = unwrapped_fields1002[1] + pretty_name(pp, field1003) + field1004 = unwrapped_fields1002[2] + if !isempty(field1004) newline(pp) - for (i1413, elem958) in enumerate(field957) - i959 = i1413 - 1 - if (i959 > 0) + for (i1507, elem1005) in enumerate(field1004) + i1006 = i1507 - 1 + if (i1006 > 0) newline(pp) end - pretty_term(pp, elem958) + pretty_term(pp, elem1005) end end dedent!(pp) @@ -2129,118 +2129,118 @@ function pretty_pragma(pp::PrettyPrinter, msg::Proto.Pragma) end function pretty_primitive(pp::PrettyPrinter, msg::Proto.Primitive) - flat976 = try_flat(pp, msg, pretty_primitive) - if !isnothing(flat976) - write(pp, flat976) + flat1023 = try_flat(pp, msg, pretty_primitive) + if !isnothing(flat1023) + write(pp, flat1023) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq" - _t1414 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1508 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1414 = nothing + _t1508 = nothing end - guard_result975 = _t1414 - if !isnothing(guard_result975) + guard_result1022 = _t1508 + if !isnothing(guard_result1022) pretty_eq(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype" - _t1415 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1509 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1415 = nothing + _t1509 = nothing end - guard_result974 = _t1415 - if !isnothing(guard_result974) + guard_result1021 = _t1509 + if !isnothing(guard_result1021) pretty_lt(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype" - _t1416 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1510 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1416 = nothing + _t1510 = nothing end - guard_result973 = _t1416 - if !isnothing(guard_result973) + guard_result1020 = _t1510 + if !isnothing(guard_result1020) pretty_lt_eq(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype" - _t1417 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1511 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1417 = nothing + _t1511 = nothing end - guard_result972 = _t1417 - if !isnothing(guard_result972) + guard_result1019 = _t1511 + if !isnothing(guard_result1019) pretty_gt(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype" - _t1418 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1512 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1418 = nothing + _t1512 = nothing end - guard_result971 = _t1418 - if !isnothing(guard_result971) + guard_result1018 = _t1512 + if !isnothing(guard_result1018) pretty_gt_eq(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype" - _t1419 = (_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 - _t1419 = nothing + _t1513 = nothing end - guard_result970 = _t1419 - if !isnothing(guard_result970) + guard_result1017 = _t1513 + if !isnothing(guard_result1017) pretty_add(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype" - _t1420 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1514 = (_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 - _t1420 = nothing + _t1514 = nothing end - guard_result969 = _t1420 - if !isnothing(guard_result969) + guard_result1016 = _t1514 + if !isnothing(guard_result1016) pretty_minus(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype" - _t1421 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1515 = (_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 - _t1421 = nothing + _t1515 = nothing end - guard_result968 = _t1421 - if !isnothing(guard_result968) + guard_result1015 = _t1515 + if !isnothing(guard_result1015) pretty_multiply(pp, msg) else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype" - _t1422 = (_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 - _t1422 = nothing + _t1516 = nothing end - guard_result967 = _t1422 - if !isnothing(guard_result967) + guard_result1014 = _t1516 + if !isnothing(guard_result1014) pretty_divide(pp, msg) else _dollar_dollar = msg - fields961 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields962 = fields961 + fields1008 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1009 = fields1008 write(pp, "(primitive") indent_sexp!(pp) newline(pp) - field963 = unwrapped_fields962[1] - pretty_name(pp, field963) - field964 = unwrapped_fields962[2] - if !isempty(field964) + field1010 = unwrapped_fields1009[1] + pretty_name(pp, field1010) + field1011 = unwrapped_fields1009[2] + if !isempty(field1011) newline(pp) - for (i1423, elem965) in enumerate(field964) - i966 = i1423 - 1 - if (i966 > 0) + for (i1517, elem1012) in enumerate(field1011) + i1013 = i1517 - 1 + if (i1013 > 0) newline(pp) end - pretty_rel_term(pp, elem965) + pretty_rel_term(pp, elem1012) end end dedent!(pp) @@ -2259,27 +2259,27 @@ function pretty_primitive(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat981 = try_flat(pp, msg, pretty_eq) - if !isnothing(flat981) - write(pp, flat981) + flat1028 = try_flat(pp, msg, pretty_eq) + if !isnothing(flat1028) + write(pp, flat1028) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq" - _t1424 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1518 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1424 = nothing + _t1518 = nothing end - fields977 = _t1424 - unwrapped_fields978 = fields977 + fields1024 = _t1518 + unwrapped_fields1025 = fields1024 write(pp, "(=") indent_sexp!(pp) newline(pp) - field979 = unwrapped_fields978[1] - pretty_term(pp, field979) + field1026 = unwrapped_fields1025[1] + pretty_term(pp, field1026) newline(pp) - field980 = unwrapped_fields978[2] - pretty_term(pp, field980) + field1027 = unwrapped_fields1025[2] + pretty_term(pp, field1027) dedent!(pp) write(pp, ")") end @@ -2287,27 +2287,27 @@ function pretty_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_lt(pp::PrettyPrinter, msg::Proto.Primitive) - flat986 = try_flat(pp, msg, pretty_lt) - if !isnothing(flat986) - write(pp, flat986) + flat1033 = try_flat(pp, msg, pretty_lt) + if !isnothing(flat1033) + write(pp, flat1033) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype" - _t1425 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1519 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1425 = nothing + _t1519 = nothing end - fields982 = _t1425 - unwrapped_fields983 = fields982 + fields1029 = _t1519 + unwrapped_fields1030 = fields1029 write(pp, "(<") indent_sexp!(pp) newline(pp) - field984 = unwrapped_fields983[1] - pretty_term(pp, field984) + field1031 = unwrapped_fields1030[1] + pretty_term(pp, field1031) newline(pp) - field985 = unwrapped_fields983[2] - pretty_term(pp, field985) + field1032 = unwrapped_fields1030[2] + pretty_term(pp, field1032) dedent!(pp) write(pp, ")") end @@ -2315,27 +2315,27 @@ function pretty_lt(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_lt_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat991 = try_flat(pp, msg, pretty_lt_eq) - if !isnothing(flat991) - write(pp, flat991) + flat1038 = try_flat(pp, msg, pretty_lt_eq) + if !isnothing(flat1038) + write(pp, flat1038) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype" - _t1426 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1520 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1426 = nothing + _t1520 = nothing end - fields987 = _t1426 - unwrapped_fields988 = fields987 + fields1034 = _t1520 + unwrapped_fields1035 = fields1034 write(pp, "(<=") indent_sexp!(pp) newline(pp) - field989 = unwrapped_fields988[1] - pretty_term(pp, field989) + field1036 = unwrapped_fields1035[1] + pretty_term(pp, field1036) newline(pp) - field990 = unwrapped_fields988[2] - pretty_term(pp, field990) + field1037 = unwrapped_fields1035[2] + pretty_term(pp, field1037) dedent!(pp) write(pp, ")") end @@ -2343,27 +2343,27 @@ function pretty_lt_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_gt(pp::PrettyPrinter, msg::Proto.Primitive) - flat996 = try_flat(pp, msg, pretty_gt) - if !isnothing(flat996) - write(pp, flat996) + flat1043 = try_flat(pp, msg, pretty_gt) + if !isnothing(flat1043) + write(pp, flat1043) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype" - _t1427 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1521 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1427 = nothing + _t1521 = nothing end - fields992 = _t1427 - unwrapped_fields993 = fields992 + fields1039 = _t1521 + unwrapped_fields1040 = fields1039 write(pp, "(>") indent_sexp!(pp) newline(pp) - field994 = unwrapped_fields993[1] - pretty_term(pp, field994) + field1041 = unwrapped_fields1040[1] + pretty_term(pp, field1041) newline(pp) - field995 = unwrapped_fields993[2] - pretty_term(pp, field995) + field1042 = unwrapped_fields1040[2] + pretty_term(pp, field1042) dedent!(pp) write(pp, ")") end @@ -2371,27 +2371,27 @@ function pretty_gt(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_gt_eq(pp::PrettyPrinter, msg::Proto.Primitive) - flat1001 = try_flat(pp, msg, pretty_gt_eq) - if !isnothing(flat1001) - write(pp, flat1001) + flat1048 = try_flat(pp, msg, pretty_gt_eq) + if !isnothing(flat1048) + write(pp, flat1048) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype" - _t1428 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) + _t1522 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term),) else - _t1428 = nothing + _t1522 = nothing end - fields997 = _t1428 - unwrapped_fields998 = fields997 + fields1044 = _t1522 + unwrapped_fields1045 = fields1044 write(pp, "(>=") indent_sexp!(pp) newline(pp) - field999 = unwrapped_fields998[1] - pretty_term(pp, field999) + field1046 = unwrapped_fields1045[1] + pretty_term(pp, field1046) newline(pp) - field1000 = unwrapped_fields998[2] - pretty_term(pp, field1000) + field1047 = unwrapped_fields1045[2] + pretty_term(pp, field1047) dedent!(pp) write(pp, ")") end @@ -2399,30 +2399,30 @@ function pretty_gt_eq(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_add(pp::PrettyPrinter, msg::Proto.Primitive) - flat1007 = try_flat(pp, msg, pretty_add) - if !isnothing(flat1007) - write(pp, flat1007) + flat1054 = try_flat(pp, msg, pretty_add) + if !isnothing(flat1054) + write(pp, flat1054) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype" - _t1429 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1523 = (_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 - _t1429 = nothing + _t1523 = nothing end - fields1002 = _t1429 - unwrapped_fields1003 = fields1002 + fields1049 = _t1523 + unwrapped_fields1050 = fields1049 write(pp, "(+") indent_sexp!(pp) newline(pp) - field1004 = unwrapped_fields1003[1] - pretty_term(pp, field1004) + field1051 = unwrapped_fields1050[1] + pretty_term(pp, field1051) newline(pp) - field1005 = unwrapped_fields1003[2] - pretty_term(pp, field1005) + field1052 = unwrapped_fields1050[2] + pretty_term(pp, field1052) newline(pp) - field1006 = unwrapped_fields1003[3] - pretty_term(pp, field1006) + field1053 = unwrapped_fields1050[3] + pretty_term(pp, field1053) dedent!(pp) write(pp, ")") end @@ -2430,30 +2430,30 @@ function pretty_add(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_minus(pp::PrettyPrinter, msg::Proto.Primitive) - flat1013 = try_flat(pp, msg, pretty_minus) - if !isnothing(flat1013) - write(pp, flat1013) + flat1060 = try_flat(pp, msg, pretty_minus) + if !isnothing(flat1060) + write(pp, flat1060) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype" - _t1430 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1524 = (_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 - _t1430 = nothing + _t1524 = nothing end - fields1008 = _t1430 - unwrapped_fields1009 = fields1008 + fields1055 = _t1524 + unwrapped_fields1056 = fields1055 write(pp, "(-") indent_sexp!(pp) newline(pp) - field1010 = unwrapped_fields1009[1] - pretty_term(pp, field1010) + field1057 = unwrapped_fields1056[1] + pretty_term(pp, field1057) newline(pp) - field1011 = unwrapped_fields1009[2] - pretty_term(pp, field1011) + field1058 = unwrapped_fields1056[2] + pretty_term(pp, field1058) newline(pp) - field1012 = unwrapped_fields1009[3] - pretty_term(pp, field1012) + field1059 = unwrapped_fields1056[3] + pretty_term(pp, field1059) dedent!(pp) write(pp, ")") end @@ -2461,30 +2461,30 @@ function pretty_minus(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_multiply(pp::PrettyPrinter, msg::Proto.Primitive) - flat1019 = try_flat(pp, msg, pretty_multiply) - if !isnothing(flat1019) - write(pp, flat1019) + flat1066 = try_flat(pp, msg, pretty_multiply) + if !isnothing(flat1066) + write(pp, flat1066) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype" - _t1431 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _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),) else - _t1431 = nothing + _t1525 = nothing end - fields1014 = _t1431 - unwrapped_fields1015 = fields1014 + fields1061 = _t1525 + unwrapped_fields1062 = fields1061 write(pp, "(*") indent_sexp!(pp) newline(pp) - field1016 = unwrapped_fields1015[1] - pretty_term(pp, field1016) + field1063 = unwrapped_fields1062[1] + pretty_term(pp, field1063) newline(pp) - field1017 = unwrapped_fields1015[2] - pretty_term(pp, field1017) + field1064 = unwrapped_fields1062[2] + pretty_term(pp, field1064) newline(pp) - field1018 = unwrapped_fields1015[3] - pretty_term(pp, field1018) + field1065 = unwrapped_fields1062[3] + pretty_term(pp, field1065) dedent!(pp) write(pp, ")") end @@ -2492,30 +2492,30 @@ function pretty_multiply(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_divide(pp::PrettyPrinter, msg::Proto.Primitive) - flat1025 = try_flat(pp, msg, pretty_divide) - if !isnothing(flat1025) - write(pp, flat1025) + flat1072 = try_flat(pp, msg, pretty_divide) + if !isnothing(flat1072) + write(pp, flat1072) return nothing else _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype" - _t1432 = (_get_oneof_field(_dollar_dollar.terms[1], :term), _get_oneof_field(_dollar_dollar.terms[2], :term), _get_oneof_field(_dollar_dollar.terms[3], :term),) + _t1526 = (_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 - _t1432 = nothing + _t1526 = nothing end - fields1020 = _t1432 - unwrapped_fields1021 = fields1020 + fields1067 = _t1526 + unwrapped_fields1068 = fields1067 write(pp, "(/") indent_sexp!(pp) newline(pp) - field1022 = unwrapped_fields1021[1] - pretty_term(pp, field1022) + field1069 = unwrapped_fields1068[1] + pretty_term(pp, field1069) newline(pp) - field1023 = unwrapped_fields1021[2] - pretty_term(pp, field1023) + field1070 = unwrapped_fields1068[2] + pretty_term(pp, field1070) newline(pp) - field1024 = unwrapped_fields1021[3] - pretty_term(pp, field1024) + field1071 = unwrapped_fields1068[3] + pretty_term(pp, field1071) dedent!(pp) write(pp, ")") end @@ -2523,32 +2523,32 @@ function pretty_divide(pp::PrettyPrinter, msg::Proto.Primitive) end function pretty_rel_term(pp::PrettyPrinter, msg::Proto.RelTerm) - flat1030 = try_flat(pp, msg, pretty_rel_term) - if !isnothing(flat1030) - write(pp, flat1030) + flat1077 = try_flat(pp, msg, pretty_rel_term) + if !isnothing(flat1077) + write(pp, flat1077) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("specialized_value")) - _t1433 = _get_oneof_field(_dollar_dollar, :specialized_value) + _t1527 = _get_oneof_field(_dollar_dollar, :specialized_value) else - _t1433 = nothing + _t1527 = nothing end - deconstruct_result1028 = _t1433 - if !isnothing(deconstruct_result1028) - unwrapped1029 = deconstruct_result1028 - pretty_specialized_value(pp, unwrapped1029) + deconstruct_result1075 = _t1527 + if !isnothing(deconstruct_result1075) + unwrapped1076 = deconstruct_result1075 + pretty_specialized_value(pp, unwrapped1076) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("term")) - _t1434 = _get_oneof_field(_dollar_dollar, :term) + _t1528 = _get_oneof_field(_dollar_dollar, :term) else - _t1434 = nothing + _t1528 = nothing end - deconstruct_result1026 = _t1434 - if !isnothing(deconstruct_result1026) - unwrapped1027 = deconstruct_result1026 - pretty_term(pp, unwrapped1027) + deconstruct_result1073 = _t1528 + if !isnothing(deconstruct_result1073) + unwrapped1074 = deconstruct_result1073 + pretty_term(pp, unwrapped1074) else throw(ParseError("No matching rule for rel_term")) end @@ -2558,41 +2558,41 @@ function pretty_rel_term(pp::PrettyPrinter, msg::Proto.RelTerm) end function pretty_specialized_value(pp::PrettyPrinter, msg::Proto.Value) - flat1032 = try_flat(pp, msg, pretty_specialized_value) - if !isnothing(flat1032) - write(pp, flat1032) + flat1079 = try_flat(pp, msg, pretty_specialized_value) + if !isnothing(flat1079) + write(pp, flat1079) return nothing else - fields1031 = msg + fields1078 = msg write(pp, "#") - pretty_value(pp, fields1031) + pretty_value(pp, fields1078) end return nothing end function pretty_rel_atom(pp::PrettyPrinter, msg::Proto.RelAtom) - flat1039 = try_flat(pp, msg, pretty_rel_atom) - if !isnothing(flat1039) - write(pp, flat1039) + flat1086 = try_flat(pp, msg, pretty_rel_atom) + if !isnothing(flat1086) + write(pp, flat1086) return nothing else _dollar_dollar = msg - fields1033 = (_dollar_dollar.name, _dollar_dollar.terms,) - unwrapped_fields1034 = fields1033 + fields1080 = (_dollar_dollar.name, _dollar_dollar.terms,) + unwrapped_fields1081 = fields1080 write(pp, "(relatom") indent_sexp!(pp) newline(pp) - field1035 = unwrapped_fields1034[1] - pretty_name(pp, field1035) - field1036 = unwrapped_fields1034[2] - if !isempty(field1036) + field1082 = unwrapped_fields1081[1] + pretty_name(pp, field1082) + field1083 = unwrapped_fields1081[2] + if !isempty(field1083) newline(pp) - for (i1435, elem1037) in enumerate(field1036) - i1038 = i1435 - 1 - if (i1038 > 0) + for (i1529, elem1084) in enumerate(field1083) + i1085 = i1529 - 1 + if (i1085 > 0) newline(pp) end - pretty_rel_term(pp, elem1037) + pretty_rel_term(pp, elem1084) end end dedent!(pp) @@ -2602,22 +2602,22 @@ function pretty_rel_atom(pp::PrettyPrinter, msg::Proto.RelAtom) end function pretty_cast(pp::PrettyPrinter, msg::Proto.Cast) - flat1044 = try_flat(pp, msg, pretty_cast) - if !isnothing(flat1044) - write(pp, flat1044) + flat1091 = try_flat(pp, msg, pretty_cast) + if !isnothing(flat1091) + write(pp, flat1091) return nothing else _dollar_dollar = msg - fields1040 = (_dollar_dollar.input, _dollar_dollar.result,) - unwrapped_fields1041 = fields1040 + fields1087 = (_dollar_dollar.input, _dollar_dollar.result,) + unwrapped_fields1088 = fields1087 write(pp, "(cast") indent_sexp!(pp) newline(pp) - field1042 = unwrapped_fields1041[1] - pretty_term(pp, field1042) + field1089 = unwrapped_fields1088[1] + pretty_term(pp, field1089) newline(pp) - field1043 = unwrapped_fields1041[2] - pretty_term(pp, field1043) + field1090 = unwrapped_fields1088[2] + pretty_term(pp, field1090) dedent!(pp) write(pp, ")") end @@ -2625,22 +2625,22 @@ function pretty_cast(pp::PrettyPrinter, msg::Proto.Cast) end function pretty_attrs(pp::PrettyPrinter, msg::Vector{Proto.Attribute}) - flat1048 = try_flat(pp, msg, pretty_attrs) - if !isnothing(flat1048) - write(pp, flat1048) + flat1095 = try_flat(pp, msg, pretty_attrs) + if !isnothing(flat1095) + write(pp, flat1095) return nothing else - fields1045 = msg + fields1092 = msg write(pp, "(attrs") indent_sexp!(pp) - if !isempty(fields1045) + if !isempty(fields1092) newline(pp) - for (i1436, elem1046) in enumerate(fields1045) - i1047 = i1436 - 1 - if (i1047 > 0) + for (i1530, elem1093) in enumerate(fields1092) + i1094 = i1530 - 1 + if (i1094 > 0) newline(pp) end - pretty_attribute(pp, elem1046) + pretty_attribute(pp, elem1093) end end dedent!(pp) @@ -2650,28 +2650,28 @@ function pretty_attrs(pp::PrettyPrinter, msg::Vector{Proto.Attribute}) end function pretty_attribute(pp::PrettyPrinter, msg::Proto.Attribute) - flat1055 = try_flat(pp, msg, pretty_attribute) - if !isnothing(flat1055) - write(pp, flat1055) + flat1102 = try_flat(pp, msg, pretty_attribute) + if !isnothing(flat1102) + write(pp, flat1102) return nothing else _dollar_dollar = msg - fields1049 = (_dollar_dollar.name, _dollar_dollar.args,) - unwrapped_fields1050 = fields1049 + fields1096 = (_dollar_dollar.name, _dollar_dollar.args,) + unwrapped_fields1097 = fields1096 write(pp, "(attribute") indent_sexp!(pp) newline(pp) - field1051 = unwrapped_fields1050[1] - pretty_name(pp, field1051) - field1052 = unwrapped_fields1050[2] - if !isempty(field1052) + field1098 = unwrapped_fields1097[1] + pretty_name(pp, field1098) + field1099 = unwrapped_fields1097[2] + if !isempty(field1099) newline(pp) - for (i1437, elem1053) in enumerate(field1052) - i1054 = i1437 - 1 - if (i1054 > 0) + for (i1531, elem1100) in enumerate(field1099) + i1101 = i1531 - 1 + if (i1101 > 0) newline(pp) end - pretty_value(pp, elem1053) + pretty_value(pp, elem1100) end end dedent!(pp) @@ -2681,30 +2681,30 @@ function pretty_attribute(pp::PrettyPrinter, msg::Proto.Attribute) end function pretty_algorithm(pp::PrettyPrinter, msg::Proto.Algorithm) - flat1062 = try_flat(pp, msg, pretty_algorithm) - if !isnothing(flat1062) - write(pp, flat1062) + flat1109 = try_flat(pp, msg, pretty_algorithm) + if !isnothing(flat1109) + write(pp, flat1109) return nothing else _dollar_dollar = msg - fields1056 = (_dollar_dollar.var"#global", _dollar_dollar.body,) - unwrapped_fields1057 = fields1056 + fields1103 = (_dollar_dollar.var"#global", _dollar_dollar.body,) + unwrapped_fields1104 = fields1103 write(pp, "(algorithm") indent_sexp!(pp) - field1058 = unwrapped_fields1057[1] - if !isempty(field1058) + field1105 = unwrapped_fields1104[1] + if !isempty(field1105) newline(pp) - for (i1438, elem1059) in enumerate(field1058) - i1060 = i1438 - 1 - if (i1060 > 0) + for (i1532, elem1106) in enumerate(field1105) + i1107 = i1532 - 1 + if (i1107 > 0) newline(pp) end - pretty_relation_id(pp, elem1059) + pretty_relation_id(pp, elem1106) end end newline(pp) - field1061 = unwrapped_fields1057[2] - pretty_script(pp, field1061) + field1108 = unwrapped_fields1104[2] + pretty_script(pp, field1108) dedent!(pp) write(pp, ")") end @@ -2712,24 +2712,24 @@ function pretty_algorithm(pp::PrettyPrinter, msg::Proto.Algorithm) end function pretty_script(pp::PrettyPrinter, msg::Proto.Script) - flat1067 = try_flat(pp, msg, pretty_script) - if !isnothing(flat1067) - write(pp, flat1067) + flat1114 = try_flat(pp, msg, pretty_script) + if !isnothing(flat1114) + write(pp, flat1114) return nothing else _dollar_dollar = msg - fields1063 = _dollar_dollar.constructs - unwrapped_fields1064 = fields1063 + fields1110 = _dollar_dollar.constructs + unwrapped_fields1111 = fields1110 write(pp, "(script") indent_sexp!(pp) - if !isempty(unwrapped_fields1064) + if !isempty(unwrapped_fields1111) newline(pp) - for (i1439, elem1065) in enumerate(unwrapped_fields1064) - i1066 = i1439 - 1 - if (i1066 > 0) + for (i1533, elem1112) in enumerate(unwrapped_fields1111) + i1113 = i1533 - 1 + if (i1113 > 0) newline(pp) end - pretty_construct(pp, elem1065) + pretty_construct(pp, elem1112) end end dedent!(pp) @@ -2739,32 +2739,32 @@ function pretty_script(pp::PrettyPrinter, msg::Proto.Script) end function pretty_construct(pp::PrettyPrinter, msg::Proto.Construct) - flat1072 = try_flat(pp, msg, pretty_construct) - if !isnothing(flat1072) - write(pp, flat1072) + flat1119 = try_flat(pp, msg, pretty_construct) + if !isnothing(flat1119) + write(pp, flat1119) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("loop")) - _t1440 = _get_oneof_field(_dollar_dollar, :loop) + _t1534 = _get_oneof_field(_dollar_dollar, :loop) else - _t1440 = nothing + _t1534 = nothing end - deconstruct_result1070 = _t1440 - if !isnothing(deconstruct_result1070) - unwrapped1071 = deconstruct_result1070 - pretty_loop(pp, unwrapped1071) + deconstruct_result1117 = _t1534 + if !isnothing(deconstruct_result1117) + unwrapped1118 = deconstruct_result1117 + pretty_loop(pp, unwrapped1118) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("instruction")) - _t1441 = _get_oneof_field(_dollar_dollar, :instruction) + _t1535 = _get_oneof_field(_dollar_dollar, :instruction) else - _t1441 = nothing + _t1535 = nothing end - deconstruct_result1068 = _t1441 - if !isnothing(deconstruct_result1068) - unwrapped1069 = deconstruct_result1068 - pretty_instruction(pp, unwrapped1069) + deconstruct_result1115 = _t1535 + if !isnothing(deconstruct_result1115) + unwrapped1116 = deconstruct_result1115 + pretty_instruction(pp, unwrapped1116) else throw(ParseError("No matching rule for construct")) end @@ -2774,22 +2774,22 @@ function pretty_construct(pp::PrettyPrinter, msg::Proto.Construct) end function pretty_loop(pp::PrettyPrinter, msg::Proto.Loop) - flat1077 = try_flat(pp, msg, pretty_loop) - if !isnothing(flat1077) - write(pp, flat1077) + flat1124 = try_flat(pp, msg, pretty_loop) + if !isnothing(flat1124) + write(pp, flat1124) return nothing else _dollar_dollar = msg - fields1073 = (_dollar_dollar.init, _dollar_dollar.body,) - unwrapped_fields1074 = fields1073 + fields1120 = (_dollar_dollar.init, _dollar_dollar.body,) + unwrapped_fields1121 = fields1120 write(pp, "(loop") indent_sexp!(pp) newline(pp) - field1075 = unwrapped_fields1074[1] - pretty_init(pp, field1075) + field1122 = unwrapped_fields1121[1] + pretty_init(pp, field1122) newline(pp) - field1076 = unwrapped_fields1074[2] - pretty_script(pp, field1076) + field1123 = unwrapped_fields1121[2] + pretty_script(pp, field1123) dedent!(pp) write(pp, ")") end @@ -2797,22 +2797,22 @@ function pretty_loop(pp::PrettyPrinter, msg::Proto.Loop) end function pretty_init(pp::PrettyPrinter, msg::Vector{Proto.Instruction}) - flat1081 = try_flat(pp, msg, pretty_init) - if !isnothing(flat1081) - write(pp, flat1081) + flat1128 = try_flat(pp, msg, pretty_init) + if !isnothing(flat1128) + write(pp, flat1128) return nothing else - fields1078 = msg + fields1125 = msg write(pp, "(init") indent_sexp!(pp) - if !isempty(fields1078) + if !isempty(fields1125) newline(pp) - for (i1442, elem1079) in enumerate(fields1078) - i1080 = i1442 - 1 - if (i1080 > 0) + for (i1536, elem1126) in enumerate(fields1125) + i1127 = i1536 - 1 + if (i1127 > 0) newline(pp) end - pretty_instruction(pp, elem1079) + pretty_instruction(pp, elem1126) end end dedent!(pp) @@ -2822,65 +2822,65 @@ function pretty_init(pp::PrettyPrinter, msg::Vector{Proto.Instruction}) end function pretty_instruction(pp::PrettyPrinter, msg::Proto.Instruction) - flat1092 = try_flat(pp, msg, pretty_instruction) - if !isnothing(flat1092) - write(pp, flat1092) + flat1139 = try_flat(pp, msg, pretty_instruction) + if !isnothing(flat1139) + write(pp, flat1139) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("assign")) - _t1443 = _get_oneof_field(_dollar_dollar, :assign) + _t1537 = _get_oneof_field(_dollar_dollar, :assign) else - _t1443 = nothing + _t1537 = nothing end - deconstruct_result1090 = _t1443 - if !isnothing(deconstruct_result1090) - unwrapped1091 = deconstruct_result1090 - pretty_assign(pp, unwrapped1091) + deconstruct_result1137 = _t1537 + if !isnothing(deconstruct_result1137) + unwrapped1138 = deconstruct_result1137 + pretty_assign(pp, unwrapped1138) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("upsert")) - _t1444 = _get_oneof_field(_dollar_dollar, :upsert) + _t1538 = _get_oneof_field(_dollar_dollar, :upsert) else - _t1444 = nothing + _t1538 = nothing end - deconstruct_result1088 = _t1444 - if !isnothing(deconstruct_result1088) - unwrapped1089 = deconstruct_result1088 - pretty_upsert(pp, unwrapped1089) + deconstruct_result1135 = _t1538 + if !isnothing(deconstruct_result1135) + unwrapped1136 = deconstruct_result1135 + pretty_upsert(pp, unwrapped1136) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("#break")) - _t1445 = _get_oneof_field(_dollar_dollar, :var"#break") + _t1539 = _get_oneof_field(_dollar_dollar, :var"#break") else - _t1445 = nothing + _t1539 = nothing end - deconstruct_result1086 = _t1445 - if !isnothing(deconstruct_result1086) - unwrapped1087 = deconstruct_result1086 - pretty_break(pp, unwrapped1087) + deconstruct_result1133 = _t1539 + if !isnothing(deconstruct_result1133) + unwrapped1134 = deconstruct_result1133 + pretty_break(pp, unwrapped1134) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("monoid_def")) - _t1446 = _get_oneof_field(_dollar_dollar, :monoid_def) + _t1540 = _get_oneof_field(_dollar_dollar, :monoid_def) else - _t1446 = nothing + _t1540 = nothing end - deconstruct_result1084 = _t1446 - if !isnothing(deconstruct_result1084) - unwrapped1085 = deconstruct_result1084 - pretty_monoid_def(pp, unwrapped1085) + deconstruct_result1131 = _t1540 + if !isnothing(deconstruct_result1131) + unwrapped1132 = deconstruct_result1131 + pretty_monoid_def(pp, unwrapped1132) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("monus_def")) - _t1447 = _get_oneof_field(_dollar_dollar, :monus_def) + _t1541 = _get_oneof_field(_dollar_dollar, :monus_def) else - _t1447 = nothing + _t1541 = nothing end - deconstruct_result1082 = _t1447 - if !isnothing(deconstruct_result1082) - unwrapped1083 = deconstruct_result1082 - pretty_monus_def(pp, unwrapped1083) + deconstruct_result1129 = _t1541 + if !isnothing(deconstruct_result1129) + unwrapped1130 = deconstruct_result1129 + pretty_monus_def(pp, unwrapped1130) else throw(ParseError("No matching rule for instruction")) end @@ -2893,32 +2893,32 @@ function pretty_instruction(pp::PrettyPrinter, msg::Proto.Instruction) end function pretty_assign(pp::PrettyPrinter, msg::Proto.Assign) - flat1099 = try_flat(pp, msg, pretty_assign) - if !isnothing(flat1099) - write(pp, flat1099) + flat1146 = try_flat(pp, msg, pretty_assign) + if !isnothing(flat1146) + write(pp, flat1146) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1448 = _dollar_dollar.attrs + _t1542 = _dollar_dollar.attrs else - _t1448 = nothing + _t1542 = nothing end - fields1093 = (_dollar_dollar.name, _dollar_dollar.body, _t1448,) - unwrapped_fields1094 = fields1093 + fields1140 = (_dollar_dollar.name, _dollar_dollar.body, _t1542,) + unwrapped_fields1141 = fields1140 write(pp, "(assign") indent_sexp!(pp) newline(pp) - field1095 = unwrapped_fields1094[1] - pretty_relation_id(pp, field1095) + field1142 = unwrapped_fields1141[1] + pretty_relation_id(pp, field1142) newline(pp) - field1096 = unwrapped_fields1094[2] - pretty_abstraction(pp, field1096) - field1097 = unwrapped_fields1094[3] - if !isnothing(field1097) + field1143 = unwrapped_fields1141[2] + pretty_abstraction(pp, field1143) + field1144 = unwrapped_fields1141[3] + if !isnothing(field1144) newline(pp) - opt_val1098 = field1097 - pretty_attrs(pp, opt_val1098) + opt_val1145 = field1144 + pretty_attrs(pp, opt_val1145) end dedent!(pp) write(pp, ")") @@ -2927,32 +2927,32 @@ function pretty_assign(pp::PrettyPrinter, msg::Proto.Assign) end function pretty_upsert(pp::PrettyPrinter, msg::Proto.Upsert) - flat1106 = try_flat(pp, msg, pretty_upsert) - if !isnothing(flat1106) - write(pp, flat1106) + flat1153 = try_flat(pp, msg, pretty_upsert) + if !isnothing(flat1153) + write(pp, flat1153) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1449 = _dollar_dollar.attrs + _t1543 = _dollar_dollar.attrs else - _t1449 = nothing + _t1543 = nothing end - fields1100 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1449,) - unwrapped_fields1101 = fields1100 + fields1147 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1543,) + unwrapped_fields1148 = fields1147 write(pp, "(upsert") indent_sexp!(pp) newline(pp) - field1102 = unwrapped_fields1101[1] - pretty_relation_id(pp, field1102) + field1149 = unwrapped_fields1148[1] + pretty_relation_id(pp, field1149) newline(pp) - field1103 = unwrapped_fields1101[2] - pretty_abstraction_with_arity(pp, field1103) - field1104 = unwrapped_fields1101[3] - if !isnothing(field1104) + field1150 = unwrapped_fields1148[2] + pretty_abstraction_with_arity(pp, field1150) + field1151 = unwrapped_fields1148[3] + if !isnothing(field1151) newline(pp) - opt_val1105 = field1104 - pretty_attrs(pp, opt_val1105) + opt_val1152 = field1151 + pretty_attrs(pp, opt_val1152) end dedent!(pp) write(pp, ")") @@ -2961,22 +2961,22 @@ function pretty_upsert(pp::PrettyPrinter, msg::Proto.Upsert) end function pretty_abstraction_with_arity(pp::PrettyPrinter, msg::Tuple{Proto.Abstraction, Int64}) - flat1111 = try_flat(pp, msg, pretty_abstraction_with_arity) - if !isnothing(flat1111) - write(pp, flat1111) + flat1158 = try_flat(pp, msg, pretty_abstraction_with_arity) + if !isnothing(flat1158) + write(pp, flat1158) return nothing else _dollar_dollar = msg - _t1450 = deconstruct_bindings_with_arity(pp, _dollar_dollar[1], _dollar_dollar[2]) - fields1107 = (_t1450, _dollar_dollar[1].value,) - unwrapped_fields1108 = fields1107 + _t1544 = deconstruct_bindings_with_arity(pp, _dollar_dollar[1], _dollar_dollar[2]) + fields1154 = (_t1544, _dollar_dollar[1].value,) + unwrapped_fields1155 = fields1154 write(pp, "(") indent!(pp) - field1109 = unwrapped_fields1108[1] - pretty_bindings(pp, field1109) + field1156 = unwrapped_fields1155[1] + pretty_bindings(pp, field1156) newline(pp) - field1110 = unwrapped_fields1108[2] - pretty_formula(pp, field1110) + field1157 = unwrapped_fields1155[2] + pretty_formula(pp, field1157) dedent!(pp) write(pp, ")") end @@ -2984,32 +2984,32 @@ function pretty_abstraction_with_arity(pp::PrettyPrinter, msg::Tuple{Proto.Abstr end function pretty_break(pp::PrettyPrinter, msg::Proto.Break) - flat1118 = try_flat(pp, msg, pretty_break) - if !isnothing(flat1118) - write(pp, flat1118) + flat1165 = try_flat(pp, msg, pretty_break) + if !isnothing(flat1165) + write(pp, flat1165) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1451 = _dollar_dollar.attrs + _t1545 = _dollar_dollar.attrs else - _t1451 = nothing + _t1545 = nothing end - fields1112 = (_dollar_dollar.name, _dollar_dollar.body, _t1451,) - unwrapped_fields1113 = fields1112 + fields1159 = (_dollar_dollar.name, _dollar_dollar.body, _t1545,) + unwrapped_fields1160 = fields1159 write(pp, "(break") indent_sexp!(pp) newline(pp) - field1114 = unwrapped_fields1113[1] - pretty_relation_id(pp, field1114) + field1161 = unwrapped_fields1160[1] + pretty_relation_id(pp, field1161) newline(pp) - field1115 = unwrapped_fields1113[2] - pretty_abstraction(pp, field1115) - field1116 = unwrapped_fields1113[3] - if !isnothing(field1116) + field1162 = unwrapped_fields1160[2] + pretty_abstraction(pp, field1162) + field1163 = unwrapped_fields1160[3] + if !isnothing(field1163) newline(pp) - opt_val1117 = field1116 - pretty_attrs(pp, opt_val1117) + opt_val1164 = field1163 + pretty_attrs(pp, opt_val1164) end dedent!(pp) write(pp, ")") @@ -3018,35 +3018,35 @@ function pretty_break(pp::PrettyPrinter, msg::Proto.Break) end function pretty_monoid_def(pp::PrettyPrinter, msg::Proto.MonoidDef) - flat1126 = try_flat(pp, msg, pretty_monoid_def) - if !isnothing(flat1126) - write(pp, flat1126) + flat1173 = try_flat(pp, msg, pretty_monoid_def) + if !isnothing(flat1173) + write(pp, flat1173) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1452 = _dollar_dollar.attrs + _t1546 = _dollar_dollar.attrs else - _t1452 = nothing + _t1546 = nothing end - fields1119 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1452,) - unwrapped_fields1120 = fields1119 + fields1166 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1546,) + unwrapped_fields1167 = fields1166 write(pp, "(monoid") indent_sexp!(pp) newline(pp) - field1121 = unwrapped_fields1120[1] - pretty_monoid(pp, field1121) + field1168 = unwrapped_fields1167[1] + pretty_monoid(pp, field1168) newline(pp) - field1122 = unwrapped_fields1120[2] - pretty_relation_id(pp, field1122) + field1169 = unwrapped_fields1167[2] + pretty_relation_id(pp, field1169) newline(pp) - field1123 = unwrapped_fields1120[3] - pretty_abstraction_with_arity(pp, field1123) - field1124 = unwrapped_fields1120[4] - if !isnothing(field1124) + field1170 = unwrapped_fields1167[3] + pretty_abstraction_with_arity(pp, field1170) + field1171 = unwrapped_fields1167[4] + if !isnothing(field1171) newline(pp) - opt_val1125 = field1124 - pretty_attrs(pp, opt_val1125) + opt_val1172 = field1171 + pretty_attrs(pp, opt_val1172) end dedent!(pp) write(pp, ")") @@ -3055,54 +3055,54 @@ function pretty_monoid_def(pp::PrettyPrinter, msg::Proto.MonoidDef) end function pretty_monoid(pp::PrettyPrinter, msg::Proto.Monoid) - flat1135 = try_flat(pp, msg, pretty_monoid) - if !isnothing(flat1135) - write(pp, flat1135) + flat1182 = try_flat(pp, msg, pretty_monoid) + if !isnothing(flat1182) + write(pp, flat1182) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("or_monoid")) - _t1453 = _get_oneof_field(_dollar_dollar, :or_monoid) + _t1547 = _get_oneof_field(_dollar_dollar, :or_monoid) else - _t1453 = nothing + _t1547 = nothing end - deconstruct_result1133 = _t1453 - if !isnothing(deconstruct_result1133) - unwrapped1134 = deconstruct_result1133 - pretty_or_monoid(pp, unwrapped1134) + deconstruct_result1180 = _t1547 + if !isnothing(deconstruct_result1180) + unwrapped1181 = deconstruct_result1180 + pretty_or_monoid(pp, unwrapped1181) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("min_monoid")) - _t1454 = _get_oneof_field(_dollar_dollar, :min_monoid) + _t1548 = _get_oneof_field(_dollar_dollar, :min_monoid) else - _t1454 = nothing + _t1548 = nothing end - deconstruct_result1131 = _t1454 - if !isnothing(deconstruct_result1131) - unwrapped1132 = deconstruct_result1131 - pretty_min_monoid(pp, unwrapped1132) + deconstruct_result1178 = _t1548 + if !isnothing(deconstruct_result1178) + unwrapped1179 = deconstruct_result1178 + pretty_min_monoid(pp, unwrapped1179) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("max_monoid")) - _t1455 = _get_oneof_field(_dollar_dollar, :max_monoid) + _t1549 = _get_oneof_field(_dollar_dollar, :max_monoid) else - _t1455 = nothing + _t1549 = nothing end - deconstruct_result1129 = _t1455 - if !isnothing(deconstruct_result1129) - unwrapped1130 = deconstruct_result1129 - pretty_max_monoid(pp, unwrapped1130) + deconstruct_result1176 = _t1549 + if !isnothing(deconstruct_result1176) + unwrapped1177 = deconstruct_result1176 + pretty_max_monoid(pp, unwrapped1177) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("sum_monoid")) - _t1456 = _get_oneof_field(_dollar_dollar, :sum_monoid) + _t1550 = _get_oneof_field(_dollar_dollar, :sum_monoid) else - _t1456 = nothing + _t1550 = nothing end - deconstruct_result1127 = _t1456 - if !isnothing(deconstruct_result1127) - unwrapped1128 = deconstruct_result1127 - pretty_sum_monoid(pp, unwrapped1128) + deconstruct_result1174 = _t1550 + if !isnothing(deconstruct_result1174) + unwrapped1175 = deconstruct_result1174 + pretty_sum_monoid(pp, unwrapped1175) else throw(ParseError("No matching rule for monoid")) end @@ -3114,24 +3114,24 @@ function pretty_monoid(pp::PrettyPrinter, msg::Proto.Monoid) end function pretty_or_monoid(pp::PrettyPrinter, msg::Proto.OrMonoid) - fields1136 = msg + fields1183 = msg write(pp, "(or)") return nothing end function pretty_min_monoid(pp::PrettyPrinter, msg::Proto.MinMonoid) - flat1139 = try_flat(pp, msg, pretty_min_monoid) - if !isnothing(flat1139) - write(pp, flat1139) + flat1186 = try_flat(pp, msg, pretty_min_monoid) + if !isnothing(flat1186) + write(pp, flat1186) return nothing else _dollar_dollar = msg - fields1137 = _dollar_dollar.var"#type" - unwrapped_fields1138 = fields1137 + fields1184 = _dollar_dollar.var"#type" + unwrapped_fields1185 = fields1184 write(pp, "(min") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1138) + pretty_type(pp, unwrapped_fields1185) dedent!(pp) write(pp, ")") end @@ -3139,18 +3139,18 @@ function pretty_min_monoid(pp::PrettyPrinter, msg::Proto.MinMonoid) end function pretty_max_monoid(pp::PrettyPrinter, msg::Proto.MaxMonoid) - flat1142 = try_flat(pp, msg, pretty_max_monoid) - if !isnothing(flat1142) - write(pp, flat1142) + flat1189 = try_flat(pp, msg, pretty_max_monoid) + if !isnothing(flat1189) + write(pp, flat1189) return nothing else _dollar_dollar = msg - fields1140 = _dollar_dollar.var"#type" - unwrapped_fields1141 = fields1140 + fields1187 = _dollar_dollar.var"#type" + unwrapped_fields1188 = fields1187 write(pp, "(max") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1141) + pretty_type(pp, unwrapped_fields1188) dedent!(pp) write(pp, ")") end @@ -3158,18 +3158,18 @@ function pretty_max_monoid(pp::PrettyPrinter, msg::Proto.MaxMonoid) end function pretty_sum_monoid(pp::PrettyPrinter, msg::Proto.SumMonoid) - flat1145 = try_flat(pp, msg, pretty_sum_monoid) - if !isnothing(flat1145) - write(pp, flat1145) + flat1192 = try_flat(pp, msg, pretty_sum_monoid) + if !isnothing(flat1192) + write(pp, flat1192) return nothing else _dollar_dollar = msg - fields1143 = _dollar_dollar.var"#type" - unwrapped_fields1144 = fields1143 + fields1190 = _dollar_dollar.var"#type" + unwrapped_fields1191 = fields1190 write(pp, "(sum") indent_sexp!(pp) newline(pp) - pretty_type(pp, unwrapped_fields1144) + pretty_type(pp, unwrapped_fields1191) dedent!(pp) write(pp, ")") end @@ -3177,35 +3177,35 @@ function pretty_sum_monoid(pp::PrettyPrinter, msg::Proto.SumMonoid) end function pretty_monus_def(pp::PrettyPrinter, msg::Proto.MonusDef) - flat1153 = try_flat(pp, msg, pretty_monus_def) - if !isnothing(flat1153) - write(pp, flat1153) + flat1200 = try_flat(pp, msg, pretty_monus_def) + if !isnothing(flat1200) + write(pp, flat1200) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.attrs) - _t1457 = _dollar_dollar.attrs + _t1551 = _dollar_dollar.attrs else - _t1457 = nothing + _t1551 = nothing end - fields1146 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1457,) - unwrapped_fields1147 = fields1146 + fields1193 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1551,) + unwrapped_fields1194 = fields1193 write(pp, "(monus") indent_sexp!(pp) newline(pp) - field1148 = unwrapped_fields1147[1] - pretty_monoid(pp, field1148) + field1195 = unwrapped_fields1194[1] + pretty_monoid(pp, field1195) newline(pp) - field1149 = unwrapped_fields1147[2] - pretty_relation_id(pp, field1149) + field1196 = unwrapped_fields1194[2] + pretty_relation_id(pp, field1196) newline(pp) - field1150 = unwrapped_fields1147[3] - pretty_abstraction_with_arity(pp, field1150) - field1151 = unwrapped_fields1147[4] - if !isnothing(field1151) + field1197 = unwrapped_fields1194[3] + pretty_abstraction_with_arity(pp, field1197) + field1198 = unwrapped_fields1194[4] + if !isnothing(field1198) newline(pp) - opt_val1152 = field1151 - pretty_attrs(pp, opt_val1152) + opt_val1199 = field1198 + pretty_attrs(pp, opt_val1199) end dedent!(pp) write(pp, ")") @@ -3214,28 +3214,28 @@ function pretty_monus_def(pp::PrettyPrinter, msg::Proto.MonusDef) end function pretty_constraint(pp::PrettyPrinter, msg::Proto.Constraint) - flat1160 = try_flat(pp, msg, pretty_constraint) - if !isnothing(flat1160) - write(pp, flat1160) + flat1207 = try_flat(pp, msg, pretty_constraint) + if !isnothing(flat1207) + write(pp, flat1207) return nothing else _dollar_dollar = msg - fields1154 = (_dollar_dollar.name, _get_oneof_field(_dollar_dollar, :functional_dependency).guard, _get_oneof_field(_dollar_dollar, :functional_dependency).keys, _get_oneof_field(_dollar_dollar, :functional_dependency).values,) - unwrapped_fields1155 = fields1154 + fields1201 = (_dollar_dollar.name, _get_oneof_field(_dollar_dollar, :functional_dependency).guard, _get_oneof_field(_dollar_dollar, :functional_dependency).keys, _get_oneof_field(_dollar_dollar, :functional_dependency).values,) + unwrapped_fields1202 = fields1201 write(pp, "(functional_dependency") indent_sexp!(pp) newline(pp) - field1156 = unwrapped_fields1155[1] - pretty_relation_id(pp, field1156) + field1203 = unwrapped_fields1202[1] + pretty_relation_id(pp, field1203) newline(pp) - field1157 = unwrapped_fields1155[2] - pretty_abstraction(pp, field1157) + field1204 = unwrapped_fields1202[2] + pretty_abstraction(pp, field1204) newline(pp) - field1158 = unwrapped_fields1155[3] - pretty_functional_dependency_keys(pp, field1158) + field1205 = unwrapped_fields1202[3] + pretty_functional_dependency_keys(pp, field1205) newline(pp) - field1159 = unwrapped_fields1155[4] - pretty_functional_dependency_values(pp, field1159) + field1206 = unwrapped_fields1202[4] + pretty_functional_dependency_values(pp, field1206) dedent!(pp) write(pp, ")") end @@ -3243,22 +3243,22 @@ function pretty_constraint(pp::PrettyPrinter, msg::Proto.Constraint) end function pretty_functional_dependency_keys(pp::PrettyPrinter, msg::Vector{Proto.Var}) - flat1164 = try_flat(pp, msg, pretty_functional_dependency_keys) - if !isnothing(flat1164) - write(pp, flat1164) + flat1211 = try_flat(pp, msg, pretty_functional_dependency_keys) + if !isnothing(flat1211) + write(pp, flat1211) return nothing else - fields1161 = msg + fields1208 = msg write(pp, "(keys") indent_sexp!(pp) - if !isempty(fields1161) + if !isempty(fields1208) newline(pp) - for (i1458, elem1162) in enumerate(fields1161) - i1163 = i1458 - 1 - if (i1163 > 0) + for (i1552, elem1209) in enumerate(fields1208) + i1210 = i1552 - 1 + if (i1210 > 0) newline(pp) end - pretty_var(pp, elem1162) + pretty_var(pp, elem1209) end end dedent!(pp) @@ -3268,22 +3268,22 @@ function pretty_functional_dependency_keys(pp::PrettyPrinter, msg::Vector{Proto. end function pretty_functional_dependency_values(pp::PrettyPrinter, msg::Vector{Proto.Var}) - flat1168 = try_flat(pp, msg, pretty_functional_dependency_values) - if !isnothing(flat1168) - write(pp, flat1168) + flat1215 = try_flat(pp, msg, pretty_functional_dependency_values) + if !isnothing(flat1215) + write(pp, flat1215) return nothing else - fields1165 = msg + fields1212 = msg write(pp, "(values") indent_sexp!(pp) - if !isempty(fields1165) + if !isempty(fields1212) newline(pp) - for (i1459, elem1166) in enumerate(fields1165) - i1167 = i1459 - 1 - if (i1167 > 0) + for (i1553, elem1213) in enumerate(fields1212) + i1214 = i1553 - 1 + if (i1214 > 0) newline(pp) end - pretty_var(pp, elem1166) + pretty_var(pp, elem1213) end end dedent!(pp) @@ -3293,45 +3293,57 @@ function pretty_functional_dependency_values(pp::PrettyPrinter, msg::Vector{Prot end function pretty_data(pp::PrettyPrinter, msg::Proto.Data) - flat1175 = try_flat(pp, msg, pretty_data) - if !isnothing(flat1175) - write(pp, flat1175) + flat1224 = try_flat(pp, msg, pretty_data) + if !isnothing(flat1224) + write(pp, flat1224) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("edb")) - _t1460 = _get_oneof_field(_dollar_dollar, :edb) + _t1554 = _get_oneof_field(_dollar_dollar, :edb) else - _t1460 = nothing + _t1554 = nothing end - deconstruct_result1173 = _t1460 - if !isnothing(deconstruct_result1173) - unwrapped1174 = deconstruct_result1173 - pretty_edb(pp, unwrapped1174) + deconstruct_result1222 = _t1554 + if !isnothing(deconstruct_result1222) + unwrapped1223 = deconstruct_result1222 + pretty_edb(pp, unwrapped1223) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("betree_relation")) - _t1461 = _get_oneof_field(_dollar_dollar, :betree_relation) + _t1555 = _get_oneof_field(_dollar_dollar, :betree_relation) else - _t1461 = nothing + _t1555 = nothing end - deconstruct_result1171 = _t1461 - if !isnothing(deconstruct_result1171) - unwrapped1172 = deconstruct_result1171 - pretty_betree_relation(pp, unwrapped1172) + deconstruct_result1220 = _t1555 + if !isnothing(deconstruct_result1220) + unwrapped1221 = deconstruct_result1220 + pretty_betree_relation(pp, unwrapped1221) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("csv_data")) - _t1462 = _get_oneof_field(_dollar_dollar, :csv_data) + _t1556 = _get_oneof_field(_dollar_dollar, :csv_data) else - _t1462 = nothing + _t1556 = nothing end - deconstruct_result1169 = _t1462 - if !isnothing(deconstruct_result1169) - unwrapped1170 = deconstruct_result1169 - pretty_csv_data(pp, unwrapped1170) + deconstruct_result1218 = _t1556 + if !isnothing(deconstruct_result1218) + unwrapped1219 = deconstruct_result1218 + pretty_csv_data(pp, unwrapped1219) else - throw(ParseError("No matching rule for data")) + _dollar_dollar = msg + if _has_proto_field(_dollar_dollar, Symbol("iceberg_data")) + _t1557 = _get_oneof_field(_dollar_dollar, :iceberg_data) + else + _t1557 = nothing + end + deconstruct_result1216 = _t1557 + if !isnothing(deconstruct_result1216) + unwrapped1217 = deconstruct_result1216 + pretty_iceberg_data(pp, unwrapped1217) + else + throw(ParseError("No matching rule for data")) + end end end end @@ -3340,25 +3352,25 @@ function pretty_data(pp::PrettyPrinter, msg::Proto.Data) end function pretty_edb(pp::PrettyPrinter, msg::Proto.EDB) - flat1181 = try_flat(pp, msg, pretty_edb) - if !isnothing(flat1181) - write(pp, flat1181) + flat1230 = try_flat(pp, msg, pretty_edb) + if !isnothing(flat1230) + write(pp, flat1230) return nothing else _dollar_dollar = msg - fields1176 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) - unwrapped_fields1177 = fields1176 + fields1225 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) + unwrapped_fields1226 = fields1225 write(pp, "(edb") indent_sexp!(pp) newline(pp) - field1178 = unwrapped_fields1177[1] - pretty_relation_id(pp, field1178) + field1227 = unwrapped_fields1226[1] + pretty_relation_id(pp, field1227) newline(pp) - field1179 = unwrapped_fields1177[2] - pretty_edb_path(pp, field1179) + field1228 = unwrapped_fields1226[2] + pretty_edb_path(pp, field1228) newline(pp) - field1180 = unwrapped_fields1177[3] - pretty_edb_types(pp, field1180) + field1229 = unwrapped_fields1226[3] + pretty_edb_types(pp, field1229) dedent!(pp) write(pp, ")") end @@ -3366,20 +3378,20 @@ function pretty_edb(pp::PrettyPrinter, msg::Proto.EDB) end function pretty_edb_path(pp::PrettyPrinter, msg::Vector{String}) - flat1185 = try_flat(pp, msg, pretty_edb_path) - if !isnothing(flat1185) - write(pp, flat1185) + flat1234 = try_flat(pp, msg, pretty_edb_path) + if !isnothing(flat1234) + write(pp, flat1234) return nothing else - fields1182 = msg + fields1231 = msg write(pp, "[") indent!(pp) - for (i1463, elem1183) in enumerate(fields1182) - i1184 = i1463 - 1 - if (i1184 > 0) + for (i1558, elem1232) in enumerate(fields1231) + i1233 = i1558 - 1 + if (i1233 > 0) newline(pp) end - write(pp, format_string(pp, elem1183)) + write(pp, format_string(pp, elem1232)) end dedent!(pp) write(pp, "]") @@ -3388,20 +3400,20 @@ function pretty_edb_path(pp::PrettyPrinter, msg::Vector{String}) end function pretty_edb_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) - flat1189 = try_flat(pp, msg, pretty_edb_types) - if !isnothing(flat1189) - write(pp, flat1189) + flat1238 = try_flat(pp, msg, pretty_edb_types) + if !isnothing(flat1238) + write(pp, flat1238) return nothing else - fields1186 = msg + fields1235 = msg write(pp, "[") indent!(pp) - for (i1464, elem1187) in enumerate(fields1186) - i1188 = i1464 - 1 - if (i1188 > 0) + for (i1559, elem1236) in enumerate(fields1235) + i1237 = i1559 - 1 + if (i1237 > 0) newline(pp) end - pretty_type(pp, elem1187) + pretty_type(pp, elem1236) end dedent!(pp) write(pp, "]") @@ -3410,22 +3422,22 @@ function pretty_edb_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) end function pretty_betree_relation(pp::PrettyPrinter, msg::Proto.BeTreeRelation) - flat1194 = try_flat(pp, msg, pretty_betree_relation) - if !isnothing(flat1194) - write(pp, flat1194) + flat1243 = try_flat(pp, msg, pretty_betree_relation) + if !isnothing(flat1243) + write(pp, flat1243) return nothing else _dollar_dollar = msg - fields1190 = (_dollar_dollar.name, _dollar_dollar.relation_info,) - unwrapped_fields1191 = fields1190 + fields1239 = (_dollar_dollar.name, _dollar_dollar.relation_info,) + unwrapped_fields1240 = fields1239 write(pp, "(betree_relation") indent_sexp!(pp) newline(pp) - field1192 = unwrapped_fields1191[1] - pretty_relation_id(pp, field1192) + field1241 = unwrapped_fields1240[1] + pretty_relation_id(pp, field1241) newline(pp) - field1193 = unwrapped_fields1191[2] - pretty_betree_info(pp, field1193) + field1242 = unwrapped_fields1240[2] + pretty_betree_info(pp, field1242) dedent!(pp) write(pp, ")") end @@ -3433,26 +3445,26 @@ function pretty_betree_relation(pp::PrettyPrinter, msg::Proto.BeTreeRelation) end function pretty_betree_info(pp::PrettyPrinter, msg::Proto.BeTreeInfo) - flat1200 = try_flat(pp, msg, pretty_betree_info) - if !isnothing(flat1200) - write(pp, flat1200) + flat1249 = try_flat(pp, msg, pretty_betree_info) + if !isnothing(flat1249) + write(pp, flat1249) return nothing else _dollar_dollar = msg - _t1465 = deconstruct_betree_info_config(pp, _dollar_dollar) - fields1195 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1465,) - unwrapped_fields1196 = fields1195 + _t1560 = deconstruct_betree_info_config(pp, _dollar_dollar) + fields1244 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1560,) + unwrapped_fields1245 = fields1244 write(pp, "(betree_info") indent_sexp!(pp) newline(pp) - field1197 = unwrapped_fields1196[1] - pretty_betree_info_key_types(pp, field1197) + field1246 = unwrapped_fields1245[1] + pretty_betree_info_key_types(pp, field1246) newline(pp) - field1198 = unwrapped_fields1196[2] - pretty_betree_info_value_types(pp, field1198) + field1247 = unwrapped_fields1245[2] + pretty_betree_info_value_types(pp, field1247) newline(pp) - field1199 = unwrapped_fields1196[3] - pretty_config_dict(pp, field1199) + field1248 = unwrapped_fields1245[3] + pretty_config_dict(pp, field1248) dedent!(pp) write(pp, ")") end @@ -3460,22 +3472,22 @@ function pretty_betree_info(pp::PrettyPrinter, msg::Proto.BeTreeInfo) end function pretty_betree_info_key_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) - flat1204 = try_flat(pp, msg, pretty_betree_info_key_types) - if !isnothing(flat1204) - write(pp, flat1204) + flat1253 = try_flat(pp, msg, pretty_betree_info_key_types) + if !isnothing(flat1253) + write(pp, flat1253) return nothing else - fields1201 = msg + fields1250 = msg write(pp, "(key_types") indent_sexp!(pp) - if !isempty(fields1201) + if !isempty(fields1250) newline(pp) - for (i1466, elem1202) in enumerate(fields1201) - i1203 = i1466 - 1 - if (i1203 > 0) + for (i1561, elem1251) in enumerate(fields1250) + i1252 = i1561 - 1 + if (i1252 > 0) newline(pp) end - pretty_type(pp, elem1202) + pretty_type(pp, elem1251) end end dedent!(pp) @@ -3485,22 +3497,22 @@ function pretty_betree_info_key_types(pp::PrettyPrinter, msg::Vector{Proto.var"# end function pretty_betree_info_value_types(pp::PrettyPrinter, msg::Vector{Proto.var"#Type"}) - flat1208 = try_flat(pp, msg, pretty_betree_info_value_types) - if !isnothing(flat1208) - write(pp, flat1208) + flat1257 = try_flat(pp, msg, pretty_betree_info_value_types) + if !isnothing(flat1257) + write(pp, flat1257) return nothing else - fields1205 = msg + fields1254 = msg write(pp, "(value_types") indent_sexp!(pp) - if !isempty(fields1205) + if !isempty(fields1254) newline(pp) - for (i1467, elem1206) in enumerate(fields1205) - i1207 = i1467 - 1 - if (i1207 > 0) + for (i1562, elem1255) in enumerate(fields1254) + i1256 = i1562 - 1 + if (i1256 > 0) newline(pp) end - pretty_type(pp, elem1206) + pretty_type(pp, elem1255) end end dedent!(pp) @@ -3510,28 +3522,28 @@ function pretty_betree_info_value_types(pp::PrettyPrinter, msg::Vector{Proto.var end function pretty_csv_data(pp::PrettyPrinter, msg::Proto.CSVData) - flat1215 = try_flat(pp, msg, pretty_csv_data) - if !isnothing(flat1215) - write(pp, flat1215) + flat1264 = try_flat(pp, msg, pretty_csv_data) + if !isnothing(flat1264) + write(pp, flat1264) return nothing else _dollar_dollar = msg - fields1209 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) - unwrapped_fields1210 = fields1209 + fields1258 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) + unwrapped_fields1259 = fields1258 write(pp, "(csv_data") indent_sexp!(pp) newline(pp) - field1211 = unwrapped_fields1210[1] - pretty_csvlocator(pp, field1211) + field1260 = unwrapped_fields1259[1] + pretty_csvlocator(pp, field1260) newline(pp) - field1212 = unwrapped_fields1210[2] - pretty_csv_config(pp, field1212) + field1261 = unwrapped_fields1259[2] + pretty_csv_config(pp, field1261) newline(pp) - field1213 = unwrapped_fields1210[3] - pretty_gnf_columns(pp, field1213) + field1262 = unwrapped_fields1259[3] + pretty_gnf_columns(pp, field1262) newline(pp) - field1214 = unwrapped_fields1210[4] - pretty_csv_asof(pp, field1214) + field1263 = unwrapped_fields1259[4] + pretty_csv_asof(pp, field1263) dedent!(pp) write(pp, ")") end @@ -3539,37 +3551,37 @@ function pretty_csv_data(pp::PrettyPrinter, msg::Proto.CSVData) end function pretty_csvlocator(pp::PrettyPrinter, msg::Proto.CSVLocator) - flat1222 = try_flat(pp, msg, pretty_csvlocator) - if !isnothing(flat1222) - write(pp, flat1222) + flat1271 = try_flat(pp, msg, pretty_csvlocator) + if !isnothing(flat1271) + write(pp, flat1271) return nothing else _dollar_dollar = msg if !isempty(_dollar_dollar.paths) - _t1468 = _dollar_dollar.paths + _t1563 = _dollar_dollar.paths else - _t1468 = nothing + _t1563 = nothing end if String(copy(_dollar_dollar.inline_data)) != "" - _t1469 = String(copy(_dollar_dollar.inline_data)) + _t1564 = String(copy(_dollar_dollar.inline_data)) else - _t1469 = nothing + _t1564 = nothing end - fields1216 = (_t1468, _t1469,) - unwrapped_fields1217 = fields1216 + fields1265 = (_t1563, _t1564,) + unwrapped_fields1266 = fields1265 write(pp, "(csv_locator") indent_sexp!(pp) - field1218 = unwrapped_fields1217[1] - if !isnothing(field1218) + field1267 = unwrapped_fields1266[1] + if !isnothing(field1267) newline(pp) - opt_val1219 = field1218 - pretty_csv_locator_paths(pp, opt_val1219) + opt_val1268 = field1267 + pretty_csv_locator_paths(pp, opt_val1268) end - field1220 = unwrapped_fields1217[2] - if !isnothing(field1220) + field1269 = unwrapped_fields1266[2] + if !isnothing(field1269) newline(pp) - opt_val1221 = field1220 - pretty_csv_locator_inline_data(pp, opt_val1221) + opt_val1270 = field1269 + pretty_csv_locator_inline_data(pp, opt_val1270) end dedent!(pp) write(pp, ")") @@ -3578,22 +3590,22 @@ function pretty_csvlocator(pp::PrettyPrinter, msg::Proto.CSVLocator) end function pretty_csv_locator_paths(pp::PrettyPrinter, msg::Vector{String}) - flat1226 = try_flat(pp, msg, pretty_csv_locator_paths) - if !isnothing(flat1226) - write(pp, flat1226) + flat1275 = try_flat(pp, msg, pretty_csv_locator_paths) + if !isnothing(flat1275) + write(pp, flat1275) return nothing else - fields1223 = msg + fields1272 = msg write(pp, "(paths") indent_sexp!(pp) - if !isempty(fields1223) + if !isempty(fields1272) newline(pp) - for (i1470, elem1224) in enumerate(fields1223) - i1225 = i1470 - 1 - if (i1225 > 0) + for (i1565, elem1273) in enumerate(fields1272) + i1274 = i1565 - 1 + if (i1274 > 0) newline(pp) end - write(pp, format_string(pp, elem1224)) + write(pp, format_string(pp, elem1273)) end end dedent!(pp) @@ -3603,16 +3615,16 @@ function pretty_csv_locator_paths(pp::PrettyPrinter, msg::Vector{String}) end function pretty_csv_locator_inline_data(pp::PrettyPrinter, msg::String) - flat1228 = try_flat(pp, msg, pretty_csv_locator_inline_data) - if !isnothing(flat1228) - write(pp, flat1228) + flat1277 = try_flat(pp, msg, pretty_csv_locator_inline_data) + if !isnothing(flat1277) + write(pp, flat1277) return nothing else - fields1227 = msg + fields1276 = msg write(pp, "(inline_data") indent_sexp!(pp) newline(pp) - write(pp, format_string(pp, fields1227)) + write(pp, format_string(pp, fields1276)) dedent!(pp) write(pp, ")") end @@ -3620,19 +3632,19 @@ function pretty_csv_locator_inline_data(pp::PrettyPrinter, msg::String) end function pretty_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig) - flat1231 = try_flat(pp, msg, pretty_csv_config) - if !isnothing(flat1231) - write(pp, flat1231) + flat1280 = try_flat(pp, msg, pretty_csv_config) + if !isnothing(flat1280) + write(pp, flat1280) return nothing else _dollar_dollar = msg - _t1471 = deconstruct_csv_config(pp, _dollar_dollar) - fields1229 = _t1471 - unwrapped_fields1230 = fields1229 + _t1566 = deconstruct_csv_config(pp, _dollar_dollar) + fields1278 = _t1566 + unwrapped_fields1279 = fields1278 write(pp, "(csv_config") indent_sexp!(pp) newline(pp) - pretty_config_dict(pp, unwrapped_fields1230) + pretty_config_dict(pp, unwrapped_fields1279) dedent!(pp) write(pp, ")") end @@ -3640,22 +3652,22 @@ function pretty_csv_config(pp::PrettyPrinter, msg::Proto.CSVConfig) end function pretty_gnf_columns(pp::PrettyPrinter, msg::Vector{Proto.GNFColumn}) - flat1235 = try_flat(pp, msg, pretty_gnf_columns) - if !isnothing(flat1235) - write(pp, flat1235) + flat1284 = try_flat(pp, msg, pretty_gnf_columns) + if !isnothing(flat1284) + write(pp, flat1284) return nothing else - fields1232 = msg + fields1281 = msg write(pp, "(columns") indent_sexp!(pp) - if !isempty(fields1232) + if !isempty(fields1281) newline(pp) - for (i1472, elem1233) in enumerate(fields1232) - i1234 = i1472 - 1 - if (i1234 > 0) + for (i1567, elem1282) in enumerate(fields1281) + i1283 = i1567 - 1 + if (i1283 > 0) newline(pp) end - pretty_gnf_column(pp, elem1233) + pretty_gnf_column(pp, elem1282) end end dedent!(pp) @@ -3665,39 +3677,39 @@ function pretty_gnf_columns(pp::PrettyPrinter, msg::Vector{Proto.GNFColumn}) end function pretty_gnf_column(pp::PrettyPrinter, msg::Proto.GNFColumn) - flat1244 = try_flat(pp, msg, pretty_gnf_column) - if !isnothing(flat1244) - write(pp, flat1244) + flat1293 = try_flat(pp, msg, pretty_gnf_column) + if !isnothing(flat1293) + write(pp, flat1293) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("target_id")) - _t1473 = _dollar_dollar.target_id + _t1568 = _dollar_dollar.target_id else - _t1473 = nothing + _t1568 = nothing end - fields1236 = (_dollar_dollar.column_path, _t1473, _dollar_dollar.types,) - unwrapped_fields1237 = fields1236 + fields1285 = (_dollar_dollar.column_path, _t1568, _dollar_dollar.types,) + unwrapped_fields1286 = fields1285 write(pp, "(column") indent_sexp!(pp) newline(pp) - field1238 = unwrapped_fields1237[1] - pretty_gnf_column_path(pp, field1238) - field1239 = unwrapped_fields1237[2] - if !isnothing(field1239) + field1287 = unwrapped_fields1286[1] + pretty_gnf_column_path(pp, field1287) + field1288 = unwrapped_fields1286[2] + if !isnothing(field1288) newline(pp) - opt_val1240 = field1239 - pretty_relation_id(pp, opt_val1240) + opt_val1289 = field1288 + pretty_relation_id(pp, opt_val1289) end newline(pp) write(pp, "[") - field1241 = unwrapped_fields1237[3] - for (i1474, elem1242) in enumerate(field1241) - i1243 = i1474 - 1 - if (i1243 > 0) + field1290 = unwrapped_fields1286[3] + for (i1569, elem1291) in enumerate(field1290) + i1292 = i1569 - 1 + if (i1292 > 0) newline(pp) end - pretty_type(pp, elem1242) + pretty_type(pp, elem1291) end write(pp, "]") dedent!(pp) @@ -3707,39 +3719,39 @@ function pretty_gnf_column(pp::PrettyPrinter, msg::Proto.GNFColumn) end function pretty_gnf_column_path(pp::PrettyPrinter, msg::Vector{String}) - flat1251 = try_flat(pp, msg, pretty_gnf_column_path) - if !isnothing(flat1251) - write(pp, flat1251) + flat1300 = try_flat(pp, msg, pretty_gnf_column_path) + if !isnothing(flat1300) + write(pp, flat1300) return nothing else _dollar_dollar = msg if length(_dollar_dollar) == 1 - _t1475 = _dollar_dollar[1] + _t1570 = _dollar_dollar[1] else - _t1475 = nothing + _t1570 = nothing end - deconstruct_result1249 = _t1475 - if !isnothing(deconstruct_result1249) - unwrapped1250 = deconstruct_result1249 - write(pp, format_string(pp, unwrapped1250)) + deconstruct_result1298 = _t1570 + if !isnothing(deconstruct_result1298) + unwrapped1299 = deconstruct_result1298 + write(pp, format_string(pp, unwrapped1299)) else _dollar_dollar = msg if length(_dollar_dollar) != 1 - _t1476 = _dollar_dollar + _t1571 = _dollar_dollar else - _t1476 = nothing + _t1571 = nothing end - deconstruct_result1245 = _t1476 - if !isnothing(deconstruct_result1245) - unwrapped1246 = deconstruct_result1245 + deconstruct_result1294 = _t1571 + if !isnothing(deconstruct_result1294) + unwrapped1295 = deconstruct_result1294 write(pp, "[") indent!(pp) - for (i1477, elem1247) in enumerate(unwrapped1246) - i1248 = i1477 - 1 - if (i1248 > 0) + for (i1572, elem1296) in enumerate(unwrapped1295) + i1297 = i1572 - 1 + if (i1297 > 0) newline(pp) end - write(pp, format_string(pp, elem1247)) + write(pp, format_string(pp, elem1296)) end dedent!(pp) write(pp, "]") @@ -3752,16 +3764,253 @@ function pretty_gnf_column_path(pp::PrettyPrinter, msg::Vector{String}) end function pretty_csv_asof(pp::PrettyPrinter, msg::String) - flat1253 = try_flat(pp, msg, pretty_csv_asof) - if !isnothing(flat1253) - write(pp, flat1253) + flat1302 = try_flat(pp, msg, pretty_csv_asof) + if !isnothing(flat1302) + write(pp, flat1302) return nothing else - fields1252 = msg + fields1301 = msg write(pp, "(asof") indent_sexp!(pp) newline(pp) - write(pp, format_string(pp, fields1252)) + write(pp, format_string(pp, fields1301)) + dedent!(pp) + write(pp, ")") + end + return nothing +end + +function pretty_iceberg_data(pp::PrettyPrinter, msg::Proto.IcebergData) + flat1310 = try_flat(pp, msg, pretty_iceberg_data) + if !isnothing(flat1310) + write(pp, flat1310) + return nothing + else + _dollar_dollar = msg + fields1303 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.to_snapshot,) + unwrapped_fields1304 = fields1303 + write(pp, "(iceberg_data") + indent_sexp!(pp) + newline(pp) + field1305 = unwrapped_fields1304[1] + pretty_iceberg_locator(pp, field1305) + newline(pp) + field1306 = unwrapped_fields1304[2] + pretty_iceberg_config(pp, field1306) + newline(pp) + field1307 = unwrapped_fields1304[3] + pretty_gnf_columns(pp, field1307) + field1308 = unwrapped_fields1304[4] + if !isnothing(field1308) + newline(pp) + opt_val1309 = field1308 + pretty_iceberg_to_snapshot(pp, opt_val1309) + end + dedent!(pp) + write(pp, ")") + end + return nothing +end + +function pretty_iceberg_locator(pp::PrettyPrinter, msg::Proto.IcebergLocator) + flat1316 = try_flat(pp, msg, pretty_iceberg_locator) + if !isnothing(flat1316) + write(pp, flat1316) + return nothing + else + _dollar_dollar = msg + fields1311 = (_dollar_dollar.table_name, _dollar_dollar.namespace, _dollar_dollar.warehouse,) + unwrapped_fields1312 = fields1311 + write(pp, "(iceberg_locator") + indent_sexp!(pp) + newline(pp) + field1313 = unwrapped_fields1312[1] + write(pp, format_string(pp, field1313)) + newline(pp) + field1314 = unwrapped_fields1312[2] + pretty_iceberg_locator_namespace(pp, field1314) + newline(pp) + field1315 = unwrapped_fields1312[3] + write(pp, format_string(pp, field1315)) + dedent!(pp) + write(pp, ")") + end + return nothing +end + +function pretty_iceberg_locator_namespace(pp::PrettyPrinter, msg::Vector{String}) + flat1320 = try_flat(pp, msg, pretty_iceberg_locator_namespace) + if !isnothing(flat1320) + write(pp, flat1320) + return nothing + else + fields1317 = msg + write(pp, "(namespace") + indent_sexp!(pp) + if !isempty(fields1317) + newline(pp) + for (i1573, elem1318) in enumerate(fields1317) + i1319 = i1573 - 1 + if (i1319 > 0) + newline(pp) + end + write(pp, format_string(pp, elem1318)) + end + end + dedent!(pp) + write(pp, ")") + end + return nothing +end + +function pretty_iceberg_config(pp::PrettyPrinter, msg::Proto.IcebergConfig) + flat1330 = try_flat(pp, msg, pretty_iceberg_config) + if !isnothing(flat1330) + write(pp, flat1330) + return nothing + else + _dollar_dollar = msg + if _dollar_dollar.scope != "" + _t1574 = _dollar_dollar.scope + else + _t1574 = nothing + end + if !isempty(sort([(k, v) for (k, v) in _dollar_dollar.properties])) + _t1575 = sort([(k, v) for (k, v) in _dollar_dollar.properties]) + else + _t1575 = nothing + end + fields1321 = (_dollar_dollar.catalog_uri, _t1574, _t1575, nothing,) + unwrapped_fields1322 = fields1321 + write(pp, "(iceberg_config") + indent_sexp!(pp) + newline(pp) + field1323 = unwrapped_fields1322[1] + write(pp, format_string(pp, field1323)) + field1324 = unwrapped_fields1322[2] + if !isnothing(field1324) + newline(pp) + opt_val1325 = field1324 + pretty_iceberg_config_scope(pp, opt_val1325) + end + field1326 = unwrapped_fields1322[3] + if !isnothing(field1326) + newline(pp) + opt_val1327 = field1326 + pretty_iceberg_config_properties(pp, opt_val1327) + end + field1328 = unwrapped_fields1322[4] + if !isnothing(field1328) + newline(pp) + opt_val1329 = field1328 + pretty_iceberg_config_credentials(pp, opt_val1329) + end + dedent!(pp) + write(pp, ")") + end + return nothing +end + +function pretty_iceberg_config_scope(pp::PrettyPrinter, msg::String) + flat1332 = try_flat(pp, msg, pretty_iceberg_config_scope) + if !isnothing(flat1332) + write(pp, flat1332) + return nothing + else + fields1331 = msg + write(pp, "(scope") + indent_sexp!(pp) + newline(pp) + write(pp, format_string(pp, fields1331)) + dedent!(pp) + write(pp, ")") + end + return nothing +end + +function pretty_iceberg_config_properties(pp::PrettyPrinter, msg::Vector{Tuple{String, String}}) + flat1336 = try_flat(pp, msg, pretty_iceberg_config_properties) + if !isnothing(flat1336) + write(pp, flat1336) + return nothing + else + fields1333 = msg + write(pp, "(properties") + indent_sexp!(pp) + if !isempty(fields1333) + newline(pp) + for (i1576, elem1334) in enumerate(fields1333) + i1335 = i1576 - 1 + if (i1335 > 0) + newline(pp) + end + pretty_iceberg_kv_pair(pp, elem1334) + end + end + dedent!(pp) + write(pp, ")") + end + return nothing +end + +function pretty_iceberg_kv_pair(pp::PrettyPrinter, msg::Tuple{String, String}) + flat1341 = try_flat(pp, msg, pretty_iceberg_kv_pair) + if !isnothing(flat1341) + write(pp, flat1341) + return nothing + else + _dollar_dollar = msg + fields1337 = (_dollar_dollar[1], _dollar_dollar[2],) + unwrapped_fields1338 = fields1337 + write(pp, "(") + indent!(pp) + field1339 = unwrapped_fields1338[1] + write(pp, format_string(pp, field1339)) + newline(pp) + field1340 = unwrapped_fields1338[2] + write(pp, format_string(pp, field1340)) + dedent!(pp) + write(pp, ")") + end + return nothing +end + +function pretty_iceberg_config_credentials(pp::PrettyPrinter, msg::Vector{Tuple{String, String}}) + flat1345 = try_flat(pp, msg, pretty_iceberg_config_credentials) + if !isnothing(flat1345) + write(pp, flat1345) + return nothing + else + fields1342 = msg + write(pp, "(credentials") + indent_sexp!(pp) + if !isempty(fields1342) + newline(pp) + for (i1577, elem1343) in enumerate(fields1342) + i1344 = i1577 - 1 + if (i1344 > 0) + newline(pp) + end + pretty_iceberg_kv_pair(pp, elem1343) + end + end + dedent!(pp) + write(pp, ")") + end + return nothing +end + +function pretty_iceberg_to_snapshot(pp::PrettyPrinter, msg::String) + flat1347 = try_flat(pp, msg, pretty_iceberg_to_snapshot) + if !isnothing(flat1347) + write(pp, flat1347) + return nothing + else + fields1346 = msg + write(pp, "(to_snapshot") + indent_sexp!(pp) + newline(pp) + write(pp, format_string(pp, fields1346)) dedent!(pp) write(pp, ")") end @@ -3769,18 +4018,18 @@ function pretty_csv_asof(pp::PrettyPrinter, msg::String) end function pretty_undefine(pp::PrettyPrinter, msg::Proto.Undefine) - flat1256 = try_flat(pp, msg, pretty_undefine) - if !isnothing(flat1256) - write(pp, flat1256) + flat1350 = try_flat(pp, msg, pretty_undefine) + if !isnothing(flat1350) + write(pp, flat1350) return nothing else _dollar_dollar = msg - fields1254 = _dollar_dollar.fragment_id - unwrapped_fields1255 = fields1254 + fields1348 = _dollar_dollar.fragment_id + unwrapped_fields1349 = fields1348 write(pp, "(undefine") indent_sexp!(pp) newline(pp) - pretty_fragment_id(pp, unwrapped_fields1255) + pretty_fragment_id(pp, unwrapped_fields1349) dedent!(pp) write(pp, ")") end @@ -3788,24 +4037,24 @@ function pretty_undefine(pp::PrettyPrinter, msg::Proto.Undefine) end function pretty_context(pp::PrettyPrinter, msg::Proto.Context) - flat1261 = try_flat(pp, msg, pretty_context) - if !isnothing(flat1261) - write(pp, flat1261) + flat1355 = try_flat(pp, msg, pretty_context) + if !isnothing(flat1355) + write(pp, flat1355) return nothing else _dollar_dollar = msg - fields1257 = _dollar_dollar.relations - unwrapped_fields1258 = fields1257 + fields1351 = _dollar_dollar.relations + unwrapped_fields1352 = fields1351 write(pp, "(context") indent_sexp!(pp) - if !isempty(unwrapped_fields1258) + if !isempty(unwrapped_fields1352) newline(pp) - for (i1478, elem1259) in enumerate(unwrapped_fields1258) - i1260 = i1478 - 1 - if (i1260 > 0) + for (i1578, elem1353) in enumerate(unwrapped_fields1352) + i1354 = i1578 - 1 + if (i1354 > 0) newline(pp) end - pretty_relation_id(pp, elem1259) + pretty_relation_id(pp, elem1353) end end dedent!(pp) @@ -3815,24 +4064,24 @@ function pretty_context(pp::PrettyPrinter, msg::Proto.Context) end function pretty_snapshot(pp::PrettyPrinter, msg::Proto.Snapshot) - flat1266 = try_flat(pp, msg, pretty_snapshot) - if !isnothing(flat1266) - write(pp, flat1266) + flat1360 = try_flat(pp, msg, pretty_snapshot) + if !isnothing(flat1360) + write(pp, flat1360) return nothing else _dollar_dollar = msg - fields1262 = _dollar_dollar.mappings - unwrapped_fields1263 = fields1262 + fields1356 = _dollar_dollar.mappings + unwrapped_fields1357 = fields1356 write(pp, "(snapshot") indent_sexp!(pp) - if !isempty(unwrapped_fields1263) + if !isempty(unwrapped_fields1357) newline(pp) - for (i1479, elem1264) in enumerate(unwrapped_fields1263) - i1265 = i1479 - 1 - if (i1265 > 0) + for (i1579, elem1358) in enumerate(unwrapped_fields1357) + i1359 = i1579 - 1 + if (i1359 > 0) newline(pp) end - pretty_snapshot_mapping(pp, elem1264) + pretty_snapshot_mapping(pp, elem1358) end end dedent!(pp) @@ -3842,40 +4091,40 @@ function pretty_snapshot(pp::PrettyPrinter, msg::Proto.Snapshot) end function pretty_snapshot_mapping(pp::PrettyPrinter, msg::Proto.SnapshotMapping) - flat1271 = try_flat(pp, msg, pretty_snapshot_mapping) - if !isnothing(flat1271) - write(pp, flat1271) + flat1365 = try_flat(pp, msg, pretty_snapshot_mapping) + if !isnothing(flat1365) + write(pp, flat1365) return nothing else _dollar_dollar = msg - fields1267 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) - unwrapped_fields1268 = fields1267 - field1269 = unwrapped_fields1268[1] - pretty_edb_path(pp, field1269) + fields1361 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) + unwrapped_fields1362 = fields1361 + field1363 = unwrapped_fields1362[1] + pretty_edb_path(pp, field1363) write(pp, " ") - field1270 = unwrapped_fields1268[2] - pretty_relation_id(pp, field1270) + field1364 = unwrapped_fields1362[2] + pretty_relation_id(pp, field1364) end return nothing end function pretty_epoch_reads(pp::PrettyPrinter, msg::Vector{Proto.Read}) - flat1275 = try_flat(pp, msg, pretty_epoch_reads) - if !isnothing(flat1275) - write(pp, flat1275) + flat1369 = try_flat(pp, msg, pretty_epoch_reads) + if !isnothing(flat1369) + write(pp, flat1369) return nothing else - fields1272 = msg + fields1366 = msg write(pp, "(reads") indent_sexp!(pp) - if !isempty(fields1272) + if !isempty(fields1366) newline(pp) - for (i1480, elem1273) in enumerate(fields1272) - i1274 = i1480 - 1 - if (i1274 > 0) + for (i1580, elem1367) in enumerate(fields1366) + i1368 = i1580 - 1 + if (i1368 > 0) newline(pp) end - pretty_read(pp, elem1273) + pretty_read(pp, elem1367) end end dedent!(pp) @@ -3885,65 +4134,65 @@ function pretty_epoch_reads(pp::PrettyPrinter, msg::Vector{Proto.Read}) end function pretty_read(pp::PrettyPrinter, msg::Proto.Read) - flat1286 = try_flat(pp, msg, pretty_read) - if !isnothing(flat1286) - write(pp, flat1286) + flat1380 = try_flat(pp, msg, pretty_read) + if !isnothing(flat1380) + write(pp, flat1380) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("demand")) - _t1481 = _get_oneof_field(_dollar_dollar, :demand) + _t1581 = _get_oneof_field(_dollar_dollar, :demand) else - _t1481 = nothing + _t1581 = nothing end - deconstruct_result1284 = _t1481 - if !isnothing(deconstruct_result1284) - unwrapped1285 = deconstruct_result1284 - pretty_demand(pp, unwrapped1285) + deconstruct_result1378 = _t1581 + if !isnothing(deconstruct_result1378) + unwrapped1379 = deconstruct_result1378 + pretty_demand(pp, unwrapped1379) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("output")) - _t1482 = _get_oneof_field(_dollar_dollar, :output) + _t1582 = _get_oneof_field(_dollar_dollar, :output) else - _t1482 = nothing + _t1582 = nothing end - deconstruct_result1282 = _t1482 - if !isnothing(deconstruct_result1282) - unwrapped1283 = deconstruct_result1282 - pretty_output(pp, unwrapped1283) + deconstruct_result1376 = _t1582 + if !isnothing(deconstruct_result1376) + unwrapped1377 = deconstruct_result1376 + pretty_output(pp, unwrapped1377) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("what_if")) - _t1483 = _get_oneof_field(_dollar_dollar, :what_if) + _t1583 = _get_oneof_field(_dollar_dollar, :what_if) else - _t1483 = nothing + _t1583 = nothing end - deconstruct_result1280 = _t1483 - if !isnothing(deconstruct_result1280) - unwrapped1281 = deconstruct_result1280 - pretty_what_if(pp, unwrapped1281) + deconstruct_result1374 = _t1583 + if !isnothing(deconstruct_result1374) + unwrapped1375 = deconstruct_result1374 + pretty_what_if(pp, unwrapped1375) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("abort")) - _t1484 = _get_oneof_field(_dollar_dollar, :abort) + _t1584 = _get_oneof_field(_dollar_dollar, :abort) else - _t1484 = nothing + _t1584 = nothing end - deconstruct_result1278 = _t1484 - if !isnothing(deconstruct_result1278) - unwrapped1279 = deconstruct_result1278 - pretty_abort(pp, unwrapped1279) + deconstruct_result1372 = _t1584 + if !isnothing(deconstruct_result1372) + unwrapped1373 = deconstruct_result1372 + pretty_abort(pp, unwrapped1373) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("#export")) - _t1485 = _get_oneof_field(_dollar_dollar, :var"#export") + _t1585 = _get_oneof_field(_dollar_dollar, :var"#export") else - _t1485 = nothing + _t1585 = nothing end - deconstruct_result1276 = _t1485 - if !isnothing(deconstruct_result1276) - unwrapped1277 = deconstruct_result1276 - pretty_export(pp, unwrapped1277) + deconstruct_result1370 = _t1585 + if !isnothing(deconstruct_result1370) + unwrapped1371 = deconstruct_result1370 + pretty_export(pp, unwrapped1371) else throw(ParseError("No matching rule for read")) end @@ -3956,18 +4205,18 @@ function pretty_read(pp::PrettyPrinter, msg::Proto.Read) end function pretty_demand(pp::PrettyPrinter, msg::Proto.Demand) - flat1289 = try_flat(pp, msg, pretty_demand) - if !isnothing(flat1289) - write(pp, flat1289) + flat1383 = try_flat(pp, msg, pretty_demand) + if !isnothing(flat1383) + write(pp, flat1383) return nothing else _dollar_dollar = msg - fields1287 = _dollar_dollar.relation_id - unwrapped_fields1288 = fields1287 + fields1381 = _dollar_dollar.relation_id + unwrapped_fields1382 = fields1381 write(pp, "(demand") indent_sexp!(pp) newline(pp) - pretty_relation_id(pp, unwrapped_fields1288) + pretty_relation_id(pp, unwrapped_fields1382) dedent!(pp) write(pp, ")") end @@ -3975,22 +4224,22 @@ function pretty_demand(pp::PrettyPrinter, msg::Proto.Demand) end function pretty_output(pp::PrettyPrinter, msg::Proto.Output) - flat1294 = try_flat(pp, msg, pretty_output) - if !isnothing(flat1294) - write(pp, flat1294) + flat1388 = try_flat(pp, msg, pretty_output) + if !isnothing(flat1388) + write(pp, flat1388) return nothing else _dollar_dollar = msg - fields1290 = (_dollar_dollar.name, _dollar_dollar.relation_id,) - unwrapped_fields1291 = fields1290 + fields1384 = (_dollar_dollar.name, _dollar_dollar.relation_id,) + unwrapped_fields1385 = fields1384 write(pp, "(output") indent_sexp!(pp) newline(pp) - field1292 = unwrapped_fields1291[1] - pretty_name(pp, field1292) + field1386 = unwrapped_fields1385[1] + pretty_name(pp, field1386) newline(pp) - field1293 = unwrapped_fields1291[2] - pretty_relation_id(pp, field1293) + field1387 = unwrapped_fields1385[2] + pretty_relation_id(pp, field1387) dedent!(pp) write(pp, ")") end @@ -3998,22 +4247,22 @@ function pretty_output(pp::PrettyPrinter, msg::Proto.Output) end function pretty_what_if(pp::PrettyPrinter, msg::Proto.WhatIf) - flat1299 = try_flat(pp, msg, pretty_what_if) - if !isnothing(flat1299) - write(pp, flat1299) + flat1393 = try_flat(pp, msg, pretty_what_if) + if !isnothing(flat1393) + write(pp, flat1393) return nothing else _dollar_dollar = msg - fields1295 = (_dollar_dollar.branch, _dollar_dollar.epoch,) - unwrapped_fields1296 = fields1295 + fields1389 = (_dollar_dollar.branch, _dollar_dollar.epoch,) + unwrapped_fields1390 = fields1389 write(pp, "(what_if") indent_sexp!(pp) newline(pp) - field1297 = unwrapped_fields1296[1] - pretty_name(pp, field1297) + field1391 = unwrapped_fields1390[1] + pretty_name(pp, field1391) newline(pp) - field1298 = unwrapped_fields1296[2] - pretty_epoch(pp, field1298) + field1392 = unwrapped_fields1390[2] + pretty_epoch(pp, field1392) dedent!(pp) write(pp, ")") end @@ -4021,30 +4270,30 @@ function pretty_what_if(pp::PrettyPrinter, msg::Proto.WhatIf) end function pretty_abort(pp::PrettyPrinter, msg::Proto.Abort) - flat1305 = try_flat(pp, msg, pretty_abort) - if !isnothing(flat1305) - write(pp, flat1305) + flat1399 = try_flat(pp, msg, pretty_abort) + if !isnothing(flat1399) + write(pp, flat1399) return nothing else _dollar_dollar = msg if _dollar_dollar.name != "abort" - _t1486 = _dollar_dollar.name + _t1586 = _dollar_dollar.name else - _t1486 = nothing + _t1586 = nothing end - fields1300 = (_t1486, _dollar_dollar.relation_id,) - unwrapped_fields1301 = fields1300 + fields1394 = (_t1586, _dollar_dollar.relation_id,) + unwrapped_fields1395 = fields1394 write(pp, "(abort") indent_sexp!(pp) - field1302 = unwrapped_fields1301[1] - if !isnothing(field1302) + field1396 = unwrapped_fields1395[1] + if !isnothing(field1396) newline(pp) - opt_val1303 = field1302 - pretty_name(pp, opt_val1303) + opt_val1397 = field1396 + pretty_name(pp, opt_val1397) end newline(pp) - field1304 = unwrapped_fields1301[2] - pretty_relation_id(pp, field1304) + field1398 = unwrapped_fields1395[2] + pretty_relation_id(pp, field1398) dedent!(pp) write(pp, ")") end @@ -4052,18 +4301,18 @@ function pretty_abort(pp::PrettyPrinter, msg::Proto.Abort) end function pretty_export(pp::PrettyPrinter, msg::Proto.Export) - flat1308 = try_flat(pp, msg, pretty_export) - if !isnothing(flat1308) - write(pp, flat1308) + flat1402 = try_flat(pp, msg, pretty_export) + if !isnothing(flat1402) + write(pp, flat1402) return nothing else _dollar_dollar = msg - fields1306 = _get_oneof_field(_dollar_dollar, :csv_config) - unwrapped_fields1307 = fields1306 + fields1400 = _get_oneof_field(_dollar_dollar, :csv_config) + unwrapped_fields1401 = fields1400 write(pp, "(export") indent_sexp!(pp) newline(pp) - pretty_export_csv_config(pp, unwrapped_fields1307) + pretty_export_csv_config(pp, unwrapped_fields1401) dedent!(pp) write(pp, ")") end @@ -4071,55 +4320,55 @@ function pretty_export(pp::PrettyPrinter, msg::Proto.Export) end function pretty_export_csv_config(pp::PrettyPrinter, msg::Proto.ExportCSVConfig) - flat1319 = try_flat(pp, msg, pretty_export_csv_config) - if !isnothing(flat1319) - write(pp, flat1319) + flat1413 = try_flat(pp, msg, pretty_export_csv_config) + if !isnothing(flat1413) + write(pp, flat1413) return nothing else _dollar_dollar = msg if length(_dollar_dollar.data_columns) == 0 - _t1487 = (_dollar_dollar.path, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) + _t1587 = (_dollar_dollar.path, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) else - _t1487 = nothing + _t1587 = nothing end - deconstruct_result1314 = _t1487 - if !isnothing(deconstruct_result1314) - unwrapped1315 = deconstruct_result1314 + deconstruct_result1408 = _t1587 + if !isnothing(deconstruct_result1408) + unwrapped1409 = deconstruct_result1408 write(pp, "(export_csv_config_v2") indent_sexp!(pp) newline(pp) - field1316 = unwrapped1315[1] - pretty_export_csv_path(pp, field1316) + field1410 = unwrapped1409[1] + pretty_export_csv_path(pp, field1410) newline(pp) - field1317 = unwrapped1315[2] - pretty_export_csv_source(pp, field1317) + field1411 = unwrapped1409[2] + pretty_export_csv_source(pp, field1411) newline(pp) - field1318 = unwrapped1315[3] - pretty_csv_config(pp, field1318) + field1412 = unwrapped1409[3] + pretty_csv_config(pp, field1412) dedent!(pp) write(pp, ")") else _dollar_dollar = msg if length(_dollar_dollar.data_columns) != 0 - _t1489 = deconstruct_export_csv_config(pp, _dollar_dollar) - _t1488 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1489,) + _t1589 = deconstruct_export_csv_config(pp, _dollar_dollar) + _t1588 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1589,) else - _t1488 = nothing + _t1588 = nothing end - deconstruct_result1309 = _t1488 - if !isnothing(deconstruct_result1309) - unwrapped1310 = deconstruct_result1309 + deconstruct_result1403 = _t1588 + if !isnothing(deconstruct_result1403) + unwrapped1404 = deconstruct_result1403 write(pp, "(export_csv_config") indent_sexp!(pp) newline(pp) - field1311 = unwrapped1310[1] - pretty_export_csv_path(pp, field1311) + field1405 = unwrapped1404[1] + pretty_export_csv_path(pp, field1405) newline(pp) - field1312 = unwrapped1310[2] - pretty_export_csv_columns_list(pp, field1312) + field1406 = unwrapped1404[2] + pretty_export_csv_columns_list(pp, field1406) newline(pp) - field1313 = unwrapped1310[3] - pretty_config_dict(pp, field1313) + field1407 = unwrapped1404[3] + pretty_config_dict(pp, field1407) dedent!(pp) write(pp, ")") else @@ -4131,16 +4380,16 @@ function pretty_export_csv_config(pp::PrettyPrinter, msg::Proto.ExportCSVConfig) end function pretty_export_csv_path(pp::PrettyPrinter, msg::String) - flat1321 = try_flat(pp, msg, pretty_export_csv_path) - if !isnothing(flat1321) - write(pp, flat1321) + flat1415 = try_flat(pp, msg, pretty_export_csv_path) + if !isnothing(flat1415) + write(pp, flat1415) return nothing else - fields1320 = msg + fields1414 = msg write(pp, "(path") indent_sexp!(pp) newline(pp) - write(pp, format_string(pp, fields1320)) + write(pp, format_string(pp, fields1414)) dedent!(pp) write(pp, ")") end @@ -4148,30 +4397,30 @@ function pretty_export_csv_path(pp::PrettyPrinter, msg::String) end function pretty_export_csv_source(pp::PrettyPrinter, msg::Proto.ExportCSVSource) - flat1328 = try_flat(pp, msg, pretty_export_csv_source) - if !isnothing(flat1328) - write(pp, flat1328) + flat1422 = try_flat(pp, msg, pretty_export_csv_source) + if !isnothing(flat1422) + write(pp, flat1422) return nothing else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("gnf_columns")) - _t1490 = _get_oneof_field(_dollar_dollar, :gnf_columns).columns + _t1590 = _get_oneof_field(_dollar_dollar, :gnf_columns).columns else - _t1490 = nothing + _t1590 = nothing end - deconstruct_result1324 = _t1490 - if !isnothing(deconstruct_result1324) - unwrapped1325 = deconstruct_result1324 + deconstruct_result1418 = _t1590 + if !isnothing(deconstruct_result1418) + unwrapped1419 = deconstruct_result1418 write(pp, "(gnf_columns") indent_sexp!(pp) - if !isempty(unwrapped1325) + if !isempty(unwrapped1419) newline(pp) - for (i1491, elem1326) in enumerate(unwrapped1325) - i1327 = i1491 - 1 - if (i1327 > 0) + for (i1591, elem1420) in enumerate(unwrapped1419) + i1421 = i1591 - 1 + if (i1421 > 0) newline(pp) end - pretty_export_csv_column(pp, elem1326) + pretty_export_csv_column(pp, elem1420) end end dedent!(pp) @@ -4179,17 +4428,17 @@ function pretty_export_csv_source(pp::PrettyPrinter, msg::Proto.ExportCSVSource) else _dollar_dollar = msg if _has_proto_field(_dollar_dollar, Symbol("table_def")) - _t1492 = _get_oneof_field(_dollar_dollar, :table_def) + _t1592 = _get_oneof_field(_dollar_dollar, :table_def) else - _t1492 = nothing + _t1592 = nothing end - deconstruct_result1322 = _t1492 - if !isnothing(deconstruct_result1322) - unwrapped1323 = deconstruct_result1322 + deconstruct_result1416 = _t1592 + if !isnothing(deconstruct_result1416) + unwrapped1417 = deconstruct_result1416 write(pp, "(table_def") indent_sexp!(pp) newline(pp) - pretty_relation_id(pp, unwrapped1323) + pretty_relation_id(pp, unwrapped1417) dedent!(pp) write(pp, ")") else @@ -4201,22 +4450,22 @@ function pretty_export_csv_source(pp::PrettyPrinter, msg::Proto.ExportCSVSource) end function pretty_export_csv_column(pp::PrettyPrinter, msg::Proto.ExportCSVColumn) - flat1333 = try_flat(pp, msg, pretty_export_csv_column) - if !isnothing(flat1333) - write(pp, flat1333) + flat1427 = try_flat(pp, msg, pretty_export_csv_column) + if !isnothing(flat1427) + write(pp, flat1427) return nothing else _dollar_dollar = msg - fields1329 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) - unwrapped_fields1330 = fields1329 + fields1423 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) + unwrapped_fields1424 = fields1423 write(pp, "(column") indent_sexp!(pp) newline(pp) - field1331 = unwrapped_fields1330[1] - write(pp, format_string(pp, field1331)) + field1425 = unwrapped_fields1424[1] + write(pp, format_string(pp, field1425)) newline(pp) - field1332 = unwrapped_fields1330[2] - pretty_relation_id(pp, field1332) + field1426 = unwrapped_fields1424[2] + pretty_relation_id(pp, field1426) dedent!(pp) write(pp, ")") end @@ -4224,22 +4473,22 @@ function pretty_export_csv_column(pp::PrettyPrinter, msg::Proto.ExportCSVColumn) end function pretty_export_csv_columns_list(pp::PrettyPrinter, msg::Vector{Proto.ExportCSVColumn}) - flat1337 = try_flat(pp, msg, pretty_export_csv_columns_list) - if !isnothing(flat1337) - write(pp, flat1337) + flat1431 = try_flat(pp, msg, pretty_export_csv_columns_list) + if !isnothing(flat1431) + write(pp, flat1431) return nothing else - fields1334 = msg + fields1428 = msg write(pp, "(columns") indent_sexp!(pp) - if !isempty(fields1334) + if !isempty(fields1428) newline(pp) - for (i1493, elem1335) in enumerate(fields1334) - i1336 = i1493 - 1 - if (i1336 > 0) + for (i1593, elem1429) in enumerate(fields1428) + i1430 = i1593 - 1 + if (i1430 > 0) newline(pp) end - pretty_export_csv_column(pp, elem1335) + pretty_export_csv_column(pp, elem1429) end end dedent!(pp) @@ -4254,12 +4503,12 @@ end function pretty_debug_info(pp::PrettyPrinter, msg::Proto.DebugInfo) write(pp, "(debug_info") indent_sexp!(pp) - for (i1532, _rid) in enumerate(msg.ids) - _idx = i1532 - 1 + for (i1632, _rid) in enumerate(msg.ids) + _idx = i1632 - 1 newline(pp) write(pp, "(") - _t1533 = Proto.UInt128Value(low=_rid.id_low, high=_rid.id_high) - _pprint_dispatch(pp, _t1533) + _t1633 = Proto.UInt128Value(low=_rid.id_low, high=_rid.id_high) + _pprint_dispatch(pp, _t1633) write(pp, " ") write(pp, format_string(pp, msg.orig_names[_idx + 1])) write(pp, ")") @@ -4331,8 +4580,8 @@ function pretty_functional_dependency(pp::PrettyPrinter, msg::Proto.FunctionalDe _pprint_dispatch(pp, msg.guard) newline(pp) write(pp, ":keys (") - for (i1534, _elem) in enumerate(msg.keys) - _idx = i1534 - 1 + for (i1634, _elem) in enumerate(msg.keys) + _idx = i1634 - 1 if (_idx > 0) write(pp, " ") end @@ -4341,8 +4590,8 @@ function pretty_functional_dependency(pp::PrettyPrinter, msg::Proto.FunctionalDe write(pp, ")") newline(pp) write(pp, ":values (") - for (i1535, _elem) in enumerate(msg.values) - _idx = i1535 - 1 + for (i1635, _elem) in enumerate(msg.values) + _idx = i1635 - 1 if (_idx > 0) write(pp, " ") end @@ -4373,8 +4622,8 @@ function pretty_export_csv_columns(pp::PrettyPrinter, msg::Proto.ExportCSVColumn indent_sexp!(pp) newline(pp) write(pp, ":columns (") - for (i1536, _elem) in enumerate(msg.columns) - _idx = i1536 - 1 + for (i1636, _elem) in enumerate(msg.columns) + _idx = i1636 - 1 if (_idx > 0) write(pp, " ") end @@ -4503,6 +4752,11 @@ _pprint_dispatch(pp::PrettyPrinter, x::Proto.CSVLocator) = pretty_csvlocator(pp, _pprint_dispatch(pp::PrettyPrinter, x::Proto.CSVConfig) = pretty_csv_config(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Vector{Proto.GNFColumn}) = pretty_gnf_columns(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.GNFColumn) = pretty_gnf_column(pp, x) +_pprint_dispatch(pp::PrettyPrinter, x::Proto.IcebergData) = pretty_iceberg_data(pp, x) +_pprint_dispatch(pp::PrettyPrinter, x::Proto.IcebergLocator) = pretty_iceberg_locator(pp, x) +_pprint_dispatch(pp::PrettyPrinter, x::Proto.IcebergConfig) = pretty_iceberg_config(pp, x) +_pprint_dispatch(pp::PrettyPrinter, x::Vector{Tuple{String, String}}) = pretty_iceberg_config_properties(pp, x) +_pprint_dispatch(pp::PrettyPrinter, x::Tuple{String, String}) = pretty_iceberg_kv_pair(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.Undefine) = pretty_undefine(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.Context) = pretty_context(pp, x) _pprint_dispatch(pp::PrettyPrinter, x::Proto.Snapshot) = pretty_snapshot(pp, x) diff --git a/sdks/python/src/lqp/gen/parser.py b/sdks/python/src/lqp/gen/parser.py index 0c8c07f2..bbc61a09 100644 --- a/sdks/python/src/lqp/gen/parser.py +++ b/sdks/python/src/lqp/gen/parser.py @@ -416,179 +416,179 @@ def relation_id_to_uint128(self, msg): def _extract_value_int32(self, value: logic_pb2.Value | None, default: int) -> int: if value is not None: assert value is not None - _t1812 = value.HasField("int32_value") + _t1902 = value.HasField("int32_value") else: - _t1812 = False - if _t1812: + _t1902 = False + if _t1902: assert value is not None return value.int32_value else: - _t1813 = None + _t1903 = None return int(default) def _extract_value_int64(self, value: logic_pb2.Value | None, default: int) -> int: if value is not None: assert value is not None - _t1814 = value.HasField("int_value") + _t1904 = value.HasField("int_value") else: - _t1814 = False - if _t1814: + _t1904 = False + if _t1904: assert value is not None return value.int_value else: - _t1815 = None + _t1905 = None return default def _extract_value_string(self, value: logic_pb2.Value | None, default: str) -> str: if value is not None: assert value is not None - _t1816 = value.HasField("string_value") + _t1906 = value.HasField("string_value") else: - _t1816 = False - if _t1816: + _t1906 = False + if _t1906: assert value is not None return value.string_value else: - _t1817 = None + _t1907 = None return default def _extract_value_boolean(self, value: logic_pb2.Value | None, default: bool) -> bool: if value is not None: assert value is not None - _t1818 = value.HasField("boolean_value") + _t1908 = value.HasField("boolean_value") else: - _t1818 = False - if _t1818: + _t1908 = False + if _t1908: assert value is not None return value.boolean_value else: - _t1819 = None + _t1909 = None return default def _extract_value_string_list(self, value: logic_pb2.Value | None, default: Sequence[str]) -> Sequence[str]: if value is not None: assert value is not None - _t1820 = value.HasField("string_value") + _t1910 = value.HasField("string_value") else: - _t1820 = False - if _t1820: + _t1910 = False + if _t1910: assert value is not None return [value.string_value] else: - _t1821 = None + _t1911 = None return default def _try_extract_value_int64(self, value: logic_pb2.Value | None) -> int | None: if value is not None: assert value is not None - _t1822 = value.HasField("int_value") + _t1912 = value.HasField("int_value") else: - _t1822 = False - if _t1822: + _t1912 = False + if _t1912: assert value is not None return value.int_value else: - _t1823 = None + _t1913 = None return None def _try_extract_value_float64(self, value: logic_pb2.Value | None) -> float | None: if value is not None: assert value is not None - _t1824 = value.HasField("float_value") + _t1914 = value.HasField("float_value") else: - _t1824 = False - if _t1824: + _t1914 = False + if _t1914: assert value is not None return value.float_value else: - _t1825 = None + _t1915 = None return None def _try_extract_value_bytes(self, value: logic_pb2.Value | None) -> bytes | None: if value is not None: assert value is not None - _t1826 = value.HasField("string_value") + _t1916 = value.HasField("string_value") else: - _t1826 = False - if _t1826: + _t1916 = False + if _t1916: assert value is not None return value.string_value.encode() else: - _t1827 = None + _t1917 = None return None def _try_extract_value_uint128(self, value: logic_pb2.Value | None) -> logic_pb2.UInt128Value | None: if value is not None: assert value is not None - _t1828 = value.HasField("uint128_value") + _t1918 = value.HasField("uint128_value") else: - _t1828 = False - if _t1828: + _t1918 = False + if _t1918: assert value is not None return value.uint128_value else: - _t1829 = None + _t1919 = None return None def construct_csv_config(self, config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> logic_pb2.CSVConfig: config = dict(config_dict) - _t1830 = self._extract_value_int32(config.get("csv_header_row"), 1) - header_row = _t1830 - _t1831 = self._extract_value_int64(config.get("csv_skip"), 0) - skip = _t1831 - _t1832 = self._extract_value_string(config.get("csv_new_line"), "") - new_line = _t1832 - _t1833 = self._extract_value_string(config.get("csv_delimiter"), ",") - delimiter = _t1833 - _t1834 = self._extract_value_string(config.get("csv_quotechar"), '"') - quotechar = _t1834 - _t1835 = self._extract_value_string(config.get("csv_escapechar"), '"') - escapechar = _t1835 - _t1836 = self._extract_value_string(config.get("csv_comment"), "") - comment = _t1836 - _t1837 = self._extract_value_string_list(config.get("csv_missing_strings"), []) - missing_strings = _t1837 - _t1838 = self._extract_value_string(config.get("csv_decimal_separator"), ".") - decimal_separator = _t1838 - _t1839 = self._extract_value_string(config.get("csv_encoding"), "utf-8") - encoding = _t1839 - _t1840 = self._extract_value_string(config.get("csv_compression"), "auto") - compression = _t1840 - _t1841 = self._extract_value_int64(config.get("csv_partition_size_mb"), 0) - partition_size_mb = _t1841 - _t1842 = 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 _t1842 + _t1920 = self._extract_value_int32(config.get("csv_header_row"), 1) + header_row = _t1920 + _t1921 = self._extract_value_int64(config.get("csv_skip"), 0) + skip = _t1921 + _t1922 = self._extract_value_string(config.get("csv_new_line"), "") + new_line = _t1922 + _t1923 = self._extract_value_string(config.get("csv_delimiter"), ",") + delimiter = _t1923 + _t1924 = self._extract_value_string(config.get("csv_quotechar"), '"') + quotechar = _t1924 + _t1925 = self._extract_value_string(config.get("csv_escapechar"), '"') + escapechar = _t1925 + _t1926 = self._extract_value_string(config.get("csv_comment"), "") + comment = _t1926 + _t1927 = self._extract_value_string_list(config.get("csv_missing_strings"), []) + missing_strings = _t1927 + _t1928 = self._extract_value_string(config.get("csv_decimal_separator"), ".") + decimal_separator = _t1928 + _t1929 = self._extract_value_string(config.get("csv_encoding"), "utf-8") + encoding = _t1929 + _t1930 = self._extract_value_string(config.get("csv_compression"), "auto") + compression = _t1930 + _t1931 = self._extract_value_int64(config.get("csv_partition_size_mb"), 0) + partition_size_mb = _t1931 + _t1932 = 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 _t1932 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) - _t1843 = self._try_extract_value_float64(config.get("betree_config_epsilon")) - epsilon = _t1843 - _t1844 = self._try_extract_value_int64(config.get("betree_config_max_pivots")) - max_pivots = _t1844 - _t1845 = self._try_extract_value_int64(config.get("betree_config_max_deltas")) - max_deltas = _t1845 - _t1846 = self._try_extract_value_int64(config.get("betree_config_max_leaf")) - max_leaf = _t1846 - _t1847 = logic_pb2.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) - storage_config = _t1847 - _t1848 = self._try_extract_value_uint128(config.get("betree_locator_root_pageid")) - root_pageid = _t1848 - _t1849 = self._try_extract_value_bytes(config.get("betree_locator_inline_data")) - inline_data = _t1849 - _t1850 = self._try_extract_value_int64(config.get("betree_locator_element_count")) - element_count = _t1850 - _t1851 = self._try_extract_value_int64(config.get("betree_locator_tree_height")) - tree_height = _t1851 - _t1852 = logic_pb2.BeTreeLocator(root_pageid=root_pageid, inline_data=inline_data, element_count=element_count, tree_height=tree_height) - relation_locator = _t1852 - _t1853 = logic_pb2.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) - return _t1853 + _t1933 = self._try_extract_value_float64(config.get("betree_config_epsilon")) + epsilon = _t1933 + _t1934 = self._try_extract_value_int64(config.get("betree_config_max_pivots")) + max_pivots = _t1934 + _t1935 = self._try_extract_value_int64(config.get("betree_config_max_deltas")) + max_deltas = _t1935 + _t1936 = self._try_extract_value_int64(config.get("betree_config_max_leaf")) + max_leaf = _t1936 + _t1937 = logic_pb2.BeTreeConfig(epsilon=epsilon, max_pivots=max_pivots, max_deltas=max_deltas, max_leaf=max_leaf) + storage_config = _t1937 + _t1938 = self._try_extract_value_uint128(config.get("betree_locator_root_pageid")) + root_pageid = _t1938 + _t1939 = self._try_extract_value_bytes(config.get("betree_locator_inline_data")) + inline_data = _t1939 + _t1940 = self._try_extract_value_int64(config.get("betree_locator_element_count")) + element_count = _t1940 + _t1941 = self._try_extract_value_int64(config.get("betree_locator_tree_height")) + tree_height = _t1941 + _t1942 = logic_pb2.BeTreeLocator(root_pageid=root_pageid, inline_data=inline_data, element_count=element_count, tree_height=tree_height) + relation_locator = _t1942 + _t1943 = logic_pb2.BeTreeInfo(key_types=key_types, value_types=value_types, storage_config=storage_config, relation_locator=relation_locator) + return _t1943 def default_configure(self) -> transactions_pb2.Configure: - _t1854 = transactions_pb2.IVMConfig(level=transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) - ivm_config = _t1854 - _t1855 = transactions_pb2.Configure(semantics_version=0, ivm_config=ivm_config) - return _t1855 + _t1944 = transactions_pb2.IVMConfig(level=transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF) + ivm_config = _t1944 + _t1945 = transactions_pb2.Configure(semantics_version=0, ivm_config=ivm_config) + return _t1945 def construct_configure(self, config_dict: Sequence[tuple[str, logic_pb2.Value]]) -> transactions_pb2.Configure: config = dict(config_dict) @@ -605,2889 +605,3037 @@ 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 - _t1856 = transactions_pb2.IVMConfig(level=maintenance_level) - ivm_config = _t1856 - _t1857 = self._extract_value_int64(config.get("semantics_version"), 0) - semantics_version = _t1857 - _t1858 = transactions_pb2.Configure(semantics_version=semantics_version, ivm_config=ivm_config) - return _t1858 + _t1946 = transactions_pb2.IVMConfig(level=maintenance_level) + ivm_config = _t1946 + _t1947 = self._extract_value_int64(config.get("semantics_version"), 0) + semantics_version = _t1947 + _t1948 = transactions_pb2.Configure(semantics_version=semantics_version, ivm_config=ivm_config) + return _t1948 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) - _t1859 = self._extract_value_int64(config.get("partition_size"), 0) - partition_size = _t1859 - _t1860 = self._extract_value_string(config.get("compression"), "") - compression = _t1860 - _t1861 = self._extract_value_boolean(config.get("syntax_header_row"), True) - syntax_header_row = _t1861 - _t1862 = self._extract_value_string(config.get("syntax_missing_string"), "") - syntax_missing_string = _t1862 - _t1863 = self._extract_value_string(config.get("syntax_delim"), ",") - syntax_delim = _t1863 - _t1864 = self._extract_value_string(config.get("syntax_quotechar"), '"') - syntax_quotechar = _t1864 - _t1865 = self._extract_value_string(config.get("syntax_escapechar"), "\\") - syntax_escapechar = _t1865 - _t1866 = 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 _t1866 + _t1949 = self._extract_value_int64(config.get("partition_size"), 0) + partition_size = _t1949 + _t1950 = self._extract_value_string(config.get("compression"), "") + compression = _t1950 + _t1951 = self._extract_value_boolean(config.get("syntax_header_row"), True) + syntax_header_row = _t1951 + _t1952 = self._extract_value_string(config.get("syntax_missing_string"), "") + syntax_missing_string = _t1952 + _t1953 = self._extract_value_string(config.get("syntax_delim"), ",") + syntax_delim = _t1953 + _t1954 = self._extract_value_string(config.get("syntax_quotechar"), '"') + syntax_quotechar = _t1954 + _t1955 = self._extract_value_string(config.get("syntax_escapechar"), "\\") + syntax_escapechar = _t1955 + _t1956 = 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 _t1956 def construct_export_csv_config_with_source(self, path: str, csv_source: transactions_pb2.ExportCSVSource, csv_config: logic_pb2.CSVConfig) -> transactions_pb2.ExportCSVConfig: - _t1867 = transactions_pb2.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) - return _t1867 + _t1957 = transactions_pb2.ExportCSVConfig(path=path, csv_source=csv_source, csv_config=csv_config) + return _t1957 + + def construct_iceberg_config(self, catalog_uri: str, scope: str | None, properties: Sequence[tuple[str, str]] | None, credentials: Sequence[tuple[str, str]] | None) -> logic_pb2.IcebergConfig: + props = dict((properties if properties is not None else [])) + creds = dict((credentials if credentials is not None else [])) + _t1958 = logic_pb2.IcebergConfig(catalog_uri=catalog_uri, scope=(scope if scope is not None else ""), properties=props, credentials=creds) + return _t1958 # --- Parse methods --- def parse_transaction(self) -> transactions_pb2.Transaction: - span_start584 = self.span_start() + span_start618 = self.span_start() self.consume_literal("(") self.consume_literal("transaction") if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("configure", 1)): - _t1157 = self.parse_configure() - _t1156 = _t1157 + _t1225 = self.parse_configure() + _t1224 = _t1225 else: - _t1156 = None - configure578 = _t1156 + _t1224 = None + configure612 = _t1224 if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("sync", 1)): - _t1159 = self.parse_sync() - _t1158 = _t1159 - else: - _t1158 = None - sync579 = _t1158 - xs580 = [] - cond581 = self.match_lookahead_literal("(", 0) - while cond581: - _t1160 = self.parse_epoch() - item582 = _t1160 - xs580.append(item582) - cond581 = self.match_lookahead_literal("(", 0) - epochs583 = xs580 - self.consume_literal(")") - _t1161 = self.default_configure() - _t1162 = transactions_pb2.Transaction(epochs=epochs583, configure=(configure578 if configure578 is not None else _t1161), sync=sync579) - result585 = _t1162 - self.record_span(span_start584, "Transaction") - return result585 + _t1227 = self.parse_sync() + _t1226 = _t1227 + else: + _t1226 = None + sync613 = _t1226 + xs614 = [] + cond615 = self.match_lookahead_literal("(", 0) + while cond615: + _t1228 = self.parse_epoch() + item616 = _t1228 + xs614.append(item616) + cond615 = self.match_lookahead_literal("(", 0) + epochs617 = xs614 + self.consume_literal(")") + _t1229 = self.default_configure() + _t1230 = transactions_pb2.Transaction(epochs=epochs617, configure=(configure612 if configure612 is not None else _t1229), sync=sync613) + result619 = _t1230 + self.record_span(span_start618, "Transaction") + return result619 def parse_configure(self) -> transactions_pb2.Configure: - span_start587 = self.span_start() + span_start621 = self.span_start() self.consume_literal("(") self.consume_literal("configure") - _t1163 = self.parse_config_dict() - config_dict586 = _t1163 + _t1231 = self.parse_config_dict() + config_dict620 = _t1231 self.consume_literal(")") - _t1164 = self.construct_configure(config_dict586) - result588 = _t1164 - self.record_span(span_start587, "Configure") - return result588 + _t1232 = self.construct_configure(config_dict620) + result622 = _t1232 + self.record_span(span_start621, "Configure") + return result622 def parse_config_dict(self) -> Sequence[tuple[str, logic_pb2.Value]]: self.consume_literal("{") - xs589 = [] - cond590 = self.match_lookahead_literal(":", 0) - while cond590: - _t1165 = self.parse_config_key_value() - item591 = _t1165 - xs589.append(item591) - cond590 = self.match_lookahead_literal(":", 0) - config_key_values592 = xs589 + xs623 = [] + cond624 = self.match_lookahead_literal(":", 0) + while cond624: + _t1233 = self.parse_config_key_value() + item625 = _t1233 + xs623.append(item625) + cond624 = self.match_lookahead_literal(":", 0) + config_key_values626 = xs623 self.consume_literal("}") - return config_key_values592 + return config_key_values626 def parse_config_key_value(self) -> tuple[str, logic_pb2.Value]: self.consume_literal(":") - symbol593 = self.consume_terminal("SYMBOL") - _t1166 = self.parse_value() - value594 = _t1166 - return (symbol593, value594,) + symbol627 = self.consume_terminal("SYMBOL") + _t1234 = self.parse_value() + value628 = _t1234 + return (symbol627, value628,) def parse_value(self) -> logic_pb2.Value: - span_start608 = self.span_start() + span_start642 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1167 = 9 + _t1235 = 9 else: if self.match_lookahead_literal("missing", 0): - _t1168 = 8 + _t1236 = 8 else: if self.match_lookahead_literal("false", 0): - _t1169 = 9 + _t1237 = 9 else: if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("datetime", 1): - _t1171 = 1 + _t1239 = 1 else: if self.match_lookahead_literal("date", 1): - _t1172 = 0 + _t1240 = 0 else: - _t1172 = -1 - _t1171 = _t1172 - _t1170 = _t1171 + _t1240 = -1 + _t1239 = _t1240 + _t1238 = _t1239 else: if self.match_lookahead_terminal("UINT32", 0): - _t1173 = 12 + _t1241 = 12 else: if self.match_lookahead_terminal("UINT128", 0): - _t1174 = 5 + _t1242 = 5 else: if self.match_lookahead_terminal("STRING", 0): - _t1175 = 2 + _t1243 = 2 else: if self.match_lookahead_terminal("INT32", 0): - _t1176 = 10 + _t1244 = 10 else: if self.match_lookahead_terminal("INT128", 0): - _t1177 = 6 + _t1245 = 6 else: if self.match_lookahead_terminal("INT", 0): - _t1178 = 3 + _t1246 = 3 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1179 = 11 + _t1247 = 11 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1180 = 4 + _t1248 = 4 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1181 = 7 + _t1249 = 7 else: - _t1181 = -1 - _t1180 = _t1181 - _t1179 = _t1180 - _t1178 = _t1179 - _t1177 = _t1178 - _t1176 = _t1177 - _t1175 = _t1176 - _t1174 = _t1175 - _t1173 = _t1174 - _t1170 = _t1173 - _t1169 = _t1170 - _t1168 = _t1169 - _t1167 = _t1168 - prediction595 = _t1167 - if prediction595 == 12: - uint32607 = self.consume_terminal("UINT32") - _t1183 = logic_pb2.Value(uint32_value=uint32607) - _t1182 = _t1183 - else: - if prediction595 == 11: - float32606 = self.consume_terminal("FLOAT32") - _t1185 = logic_pb2.Value(float32_value=float32606) - _t1184 = _t1185 + _t1249 = -1 + _t1248 = _t1249 + _t1247 = _t1248 + _t1246 = _t1247 + _t1245 = _t1246 + _t1244 = _t1245 + _t1243 = _t1244 + _t1242 = _t1243 + _t1241 = _t1242 + _t1238 = _t1241 + _t1237 = _t1238 + _t1236 = _t1237 + _t1235 = _t1236 + prediction629 = _t1235 + if prediction629 == 12: + uint32641 = self.consume_terminal("UINT32") + _t1251 = logic_pb2.Value(uint32_value=uint32641) + _t1250 = _t1251 + else: + if prediction629 == 11: + float32640 = self.consume_terminal("FLOAT32") + _t1253 = logic_pb2.Value(float32_value=float32640) + _t1252 = _t1253 else: - if prediction595 == 10: - int32605 = self.consume_terminal("INT32") - _t1187 = logic_pb2.Value(int32_value=int32605) - _t1186 = _t1187 + if prediction629 == 10: + int32639 = self.consume_terminal("INT32") + _t1255 = logic_pb2.Value(int32_value=int32639) + _t1254 = _t1255 else: - if prediction595 == 9: - _t1189 = self.parse_boolean_value() - boolean_value604 = _t1189 - _t1190 = logic_pb2.Value(boolean_value=boolean_value604) - _t1188 = _t1190 + if prediction629 == 9: + _t1257 = self.parse_boolean_value() + boolean_value638 = _t1257 + _t1258 = logic_pb2.Value(boolean_value=boolean_value638) + _t1256 = _t1258 else: - if prediction595 == 8: + if prediction629 == 8: self.consume_literal("missing") - _t1192 = logic_pb2.MissingValue() - _t1193 = logic_pb2.Value(missing_value=_t1192) - _t1191 = _t1193 + _t1260 = logic_pb2.MissingValue() + _t1261 = logic_pb2.Value(missing_value=_t1260) + _t1259 = _t1261 else: - if prediction595 == 7: - decimal603 = self.consume_terminal("DECIMAL") - _t1195 = logic_pb2.Value(decimal_value=decimal603) - _t1194 = _t1195 + if prediction629 == 7: + decimal637 = self.consume_terminal("DECIMAL") + _t1263 = logic_pb2.Value(decimal_value=decimal637) + _t1262 = _t1263 else: - if prediction595 == 6: - int128602 = self.consume_terminal("INT128") - _t1197 = logic_pb2.Value(int128_value=int128602) - _t1196 = _t1197 + if prediction629 == 6: + int128636 = self.consume_terminal("INT128") + _t1265 = logic_pb2.Value(int128_value=int128636) + _t1264 = _t1265 else: - if prediction595 == 5: - uint128601 = self.consume_terminal("UINT128") - _t1199 = logic_pb2.Value(uint128_value=uint128601) - _t1198 = _t1199 + if prediction629 == 5: + uint128635 = self.consume_terminal("UINT128") + _t1267 = logic_pb2.Value(uint128_value=uint128635) + _t1266 = _t1267 else: - if prediction595 == 4: - float600 = self.consume_terminal("FLOAT") - _t1201 = logic_pb2.Value(float_value=float600) - _t1200 = _t1201 + if prediction629 == 4: + float634 = self.consume_terminal("FLOAT") + _t1269 = logic_pb2.Value(float_value=float634) + _t1268 = _t1269 else: - if prediction595 == 3: - int599 = self.consume_terminal("INT") - _t1203 = logic_pb2.Value(int_value=int599) - _t1202 = _t1203 + if prediction629 == 3: + int633 = self.consume_terminal("INT") + _t1271 = logic_pb2.Value(int_value=int633) + _t1270 = _t1271 else: - if prediction595 == 2: - string598 = self.consume_terminal("STRING") - _t1205 = logic_pb2.Value(string_value=string598) - _t1204 = _t1205 + if prediction629 == 2: + string632 = self.consume_terminal("STRING") + _t1273 = logic_pb2.Value(string_value=string632) + _t1272 = _t1273 else: - if prediction595 == 1: - _t1207 = self.parse_datetime() - datetime597 = _t1207 - _t1208 = logic_pb2.Value(datetime_value=datetime597) - _t1206 = _t1208 + if prediction629 == 1: + _t1275 = self.parse_datetime() + datetime631 = _t1275 + _t1276 = logic_pb2.Value(datetime_value=datetime631) + _t1274 = _t1276 else: - if prediction595 == 0: - _t1210 = self.parse_date() - date596 = _t1210 - _t1211 = logic_pb2.Value(date_value=date596) - _t1209 = _t1211 + if prediction629 == 0: + _t1278 = self.parse_date() + date630 = _t1278 + _t1279 = logic_pb2.Value(date_value=date630) + _t1277 = _t1279 else: raise ParseError("Unexpected token in value" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1206 = _t1209 - _t1204 = _t1206 - _t1202 = _t1204 - _t1200 = _t1202 - _t1198 = _t1200 - _t1196 = _t1198 - _t1194 = _t1196 - _t1191 = _t1194 - _t1188 = _t1191 - _t1186 = _t1188 - _t1184 = _t1186 - _t1182 = _t1184 - result609 = _t1182 - self.record_span(span_start608, "Value") - return result609 + _t1274 = _t1277 + _t1272 = _t1274 + _t1270 = _t1272 + _t1268 = _t1270 + _t1266 = _t1268 + _t1264 = _t1266 + _t1262 = _t1264 + _t1259 = _t1262 + _t1256 = _t1259 + _t1254 = _t1256 + _t1252 = _t1254 + _t1250 = _t1252 + result643 = _t1250 + self.record_span(span_start642, "Value") + return result643 def parse_date(self) -> logic_pb2.DateValue: - span_start613 = self.span_start() + span_start647 = self.span_start() self.consume_literal("(") self.consume_literal("date") - int610 = self.consume_terminal("INT") - int_3611 = self.consume_terminal("INT") - int_4612 = self.consume_terminal("INT") + int644 = self.consume_terminal("INT") + int_3645 = self.consume_terminal("INT") + int_4646 = self.consume_terminal("INT") self.consume_literal(")") - _t1212 = logic_pb2.DateValue(year=int(int610), month=int(int_3611), day=int(int_4612)) - result614 = _t1212 - self.record_span(span_start613, "DateValue") - return result614 + _t1280 = logic_pb2.DateValue(year=int(int644), month=int(int_3645), day=int(int_4646)) + result648 = _t1280 + self.record_span(span_start647, "DateValue") + return result648 def parse_datetime(self) -> logic_pb2.DateTimeValue: - span_start622 = self.span_start() + span_start656 = self.span_start() self.consume_literal("(") self.consume_literal("datetime") - int615 = self.consume_terminal("INT") - int_3616 = self.consume_terminal("INT") - int_4617 = self.consume_terminal("INT") - int_5618 = self.consume_terminal("INT") - int_6619 = self.consume_terminal("INT") - int_7620 = self.consume_terminal("INT") + int649 = self.consume_terminal("INT") + int_3650 = self.consume_terminal("INT") + int_4651 = self.consume_terminal("INT") + int_5652 = self.consume_terminal("INT") + int_6653 = self.consume_terminal("INT") + int_7654 = self.consume_terminal("INT") if self.match_lookahead_terminal("INT", 0): - _t1213 = self.consume_terminal("INT") + _t1281 = self.consume_terminal("INT") else: - _t1213 = None - int_8621 = _t1213 + _t1281 = None + int_8655 = _t1281 self.consume_literal(")") - _t1214 = logic_pb2.DateTimeValue(year=int(int615), month=int(int_3616), day=int(int_4617), hour=int(int_5618), minute=int(int_6619), second=int(int_7620), microsecond=int((int_8621 if int_8621 is not None else 0))) - result623 = _t1214 - self.record_span(span_start622, "DateTimeValue") - return result623 + _t1282 = logic_pb2.DateTimeValue(year=int(int649), month=int(int_3650), day=int(int_4651), hour=int(int_5652), minute=int(int_6653), second=int(int_7654), microsecond=int((int_8655 if int_8655 is not None else 0))) + result657 = _t1282 + self.record_span(span_start656, "DateTimeValue") + return result657 def parse_boolean_value(self) -> bool: if self.match_lookahead_literal("true", 0): - _t1215 = 0 + _t1283 = 0 else: if self.match_lookahead_literal("false", 0): - _t1216 = 1 + _t1284 = 1 else: - _t1216 = -1 - _t1215 = _t1216 - prediction624 = _t1215 - if prediction624 == 1: + _t1284 = -1 + _t1283 = _t1284 + prediction658 = _t1283 + if prediction658 == 1: self.consume_literal("false") - _t1217 = False + _t1285 = False else: - if prediction624 == 0: + if prediction658 == 0: self.consume_literal("true") - _t1218 = True + _t1286 = True else: raise ParseError("Unexpected token in boolean_value" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1217 = _t1218 - return _t1217 + _t1285 = _t1286 + return _t1285 def parse_sync(self) -> transactions_pb2.Sync: - span_start629 = self.span_start() + span_start663 = self.span_start() self.consume_literal("(") self.consume_literal("sync") - xs625 = [] - cond626 = self.match_lookahead_literal(":", 0) - while cond626: - _t1219 = self.parse_fragment_id() - item627 = _t1219 - xs625.append(item627) - cond626 = self.match_lookahead_literal(":", 0) - fragment_ids628 = xs625 - self.consume_literal(")") - _t1220 = transactions_pb2.Sync(fragments=fragment_ids628) - result630 = _t1220 - self.record_span(span_start629, "Sync") - return result630 + xs659 = [] + cond660 = self.match_lookahead_literal(":", 0) + while cond660: + _t1287 = self.parse_fragment_id() + item661 = _t1287 + xs659.append(item661) + cond660 = self.match_lookahead_literal(":", 0) + fragment_ids662 = xs659 + self.consume_literal(")") + _t1288 = transactions_pb2.Sync(fragments=fragment_ids662) + result664 = _t1288 + self.record_span(span_start663, "Sync") + return result664 def parse_fragment_id(self) -> fragments_pb2.FragmentId: - span_start632 = self.span_start() + span_start666 = self.span_start() self.consume_literal(":") - symbol631 = self.consume_terminal("SYMBOL") - result633 = fragments_pb2.FragmentId(id=symbol631.encode()) - self.record_span(span_start632, "FragmentId") - return result633 + symbol665 = self.consume_terminal("SYMBOL") + result667 = fragments_pb2.FragmentId(id=symbol665.encode()) + self.record_span(span_start666, "FragmentId") + return result667 def parse_epoch(self) -> transactions_pb2.Epoch: - span_start636 = self.span_start() + span_start670 = self.span_start() self.consume_literal("(") self.consume_literal("epoch") if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("writes", 1)): - _t1222 = self.parse_epoch_writes() - _t1221 = _t1222 + _t1290 = self.parse_epoch_writes() + _t1289 = _t1290 else: - _t1221 = None - epoch_writes634 = _t1221 + _t1289 = None + epoch_writes668 = _t1289 if self.match_lookahead_literal("(", 0): - _t1224 = self.parse_epoch_reads() - _t1223 = _t1224 + _t1292 = self.parse_epoch_reads() + _t1291 = _t1292 else: - _t1223 = None - epoch_reads635 = _t1223 + _t1291 = None + epoch_reads669 = _t1291 self.consume_literal(")") - _t1225 = transactions_pb2.Epoch(writes=(epoch_writes634 if epoch_writes634 is not None else []), reads=(epoch_reads635 if epoch_reads635 is not None else [])) - result637 = _t1225 - self.record_span(span_start636, "Epoch") - return result637 + _t1293 = transactions_pb2.Epoch(writes=(epoch_writes668 if epoch_writes668 is not None else []), reads=(epoch_reads669 if epoch_reads669 is not None else [])) + result671 = _t1293 + self.record_span(span_start670, "Epoch") + return result671 def parse_epoch_writes(self) -> Sequence[transactions_pb2.Write]: self.consume_literal("(") self.consume_literal("writes") - xs638 = [] - cond639 = self.match_lookahead_literal("(", 0) - while cond639: - _t1226 = self.parse_write() - item640 = _t1226 - xs638.append(item640) - cond639 = self.match_lookahead_literal("(", 0) - writes641 = xs638 + xs672 = [] + cond673 = self.match_lookahead_literal("(", 0) + while cond673: + _t1294 = self.parse_write() + item674 = _t1294 + xs672.append(item674) + cond673 = self.match_lookahead_literal("(", 0) + writes675 = xs672 self.consume_literal(")") - return writes641 + return writes675 def parse_write(self) -> transactions_pb2.Write: - span_start647 = self.span_start() + span_start681 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("undefine", 1): - _t1228 = 1 + _t1296 = 1 else: if self.match_lookahead_literal("snapshot", 1): - _t1229 = 3 + _t1297 = 3 else: if self.match_lookahead_literal("define", 1): - _t1230 = 0 + _t1298 = 0 else: if self.match_lookahead_literal("context", 1): - _t1231 = 2 + _t1299 = 2 else: - _t1231 = -1 - _t1230 = _t1231 - _t1229 = _t1230 - _t1228 = _t1229 - _t1227 = _t1228 - else: - _t1227 = -1 - prediction642 = _t1227 - if prediction642 == 3: - _t1233 = self.parse_snapshot() - snapshot646 = _t1233 - _t1234 = transactions_pb2.Write(snapshot=snapshot646) - _t1232 = _t1234 - else: - if prediction642 == 2: - _t1236 = self.parse_context() - context645 = _t1236 - _t1237 = transactions_pb2.Write(context=context645) - _t1235 = _t1237 + _t1299 = -1 + _t1298 = _t1299 + _t1297 = _t1298 + _t1296 = _t1297 + _t1295 = _t1296 + else: + _t1295 = -1 + prediction676 = _t1295 + if prediction676 == 3: + _t1301 = self.parse_snapshot() + snapshot680 = _t1301 + _t1302 = transactions_pb2.Write(snapshot=snapshot680) + _t1300 = _t1302 + else: + if prediction676 == 2: + _t1304 = self.parse_context() + context679 = _t1304 + _t1305 = transactions_pb2.Write(context=context679) + _t1303 = _t1305 else: - if prediction642 == 1: - _t1239 = self.parse_undefine() - undefine644 = _t1239 - _t1240 = transactions_pb2.Write(undefine=undefine644) - _t1238 = _t1240 + if prediction676 == 1: + _t1307 = self.parse_undefine() + undefine678 = _t1307 + _t1308 = transactions_pb2.Write(undefine=undefine678) + _t1306 = _t1308 else: - if prediction642 == 0: - _t1242 = self.parse_define() - define643 = _t1242 - _t1243 = transactions_pb2.Write(define=define643) - _t1241 = _t1243 + if prediction676 == 0: + _t1310 = self.parse_define() + define677 = _t1310 + _t1311 = transactions_pb2.Write(define=define677) + _t1309 = _t1311 else: raise ParseError("Unexpected token in write" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1238 = _t1241 - _t1235 = _t1238 - _t1232 = _t1235 - result648 = _t1232 - self.record_span(span_start647, "Write") - return result648 + _t1306 = _t1309 + _t1303 = _t1306 + _t1300 = _t1303 + result682 = _t1300 + self.record_span(span_start681, "Write") + return result682 def parse_define(self) -> transactions_pb2.Define: - span_start650 = self.span_start() + span_start684 = self.span_start() self.consume_literal("(") self.consume_literal("define") - _t1244 = self.parse_fragment() - fragment649 = _t1244 + _t1312 = self.parse_fragment() + fragment683 = _t1312 self.consume_literal(")") - _t1245 = transactions_pb2.Define(fragment=fragment649) - result651 = _t1245 - self.record_span(span_start650, "Define") - return result651 + _t1313 = transactions_pb2.Define(fragment=fragment683) + result685 = _t1313 + self.record_span(span_start684, "Define") + return result685 def parse_fragment(self) -> fragments_pb2.Fragment: - span_start657 = self.span_start() + span_start691 = self.span_start() self.consume_literal("(") self.consume_literal("fragment") - _t1246 = self.parse_new_fragment_id() - new_fragment_id652 = _t1246 - xs653 = [] - cond654 = self.match_lookahead_literal("(", 0) - while cond654: - _t1247 = self.parse_declaration() - item655 = _t1247 - xs653.append(item655) - cond654 = self.match_lookahead_literal("(", 0) - declarations656 = xs653 - self.consume_literal(")") - result658 = self.construct_fragment(new_fragment_id652, declarations656) - self.record_span(span_start657, "Fragment") - return result658 + _t1314 = self.parse_new_fragment_id() + new_fragment_id686 = _t1314 + xs687 = [] + cond688 = self.match_lookahead_literal("(", 0) + while cond688: + _t1315 = self.parse_declaration() + item689 = _t1315 + xs687.append(item689) + cond688 = self.match_lookahead_literal("(", 0) + declarations690 = xs687 + self.consume_literal(")") + result692 = self.construct_fragment(new_fragment_id686, declarations690) + self.record_span(span_start691, "Fragment") + return result692 def parse_new_fragment_id(self) -> fragments_pb2.FragmentId: - span_start660 = self.span_start() - _t1248 = self.parse_fragment_id() - fragment_id659 = _t1248 - self.start_fragment(fragment_id659) - result661 = fragment_id659 - self.record_span(span_start660, "FragmentId") - return result661 + span_start694 = self.span_start() + _t1316 = self.parse_fragment_id() + fragment_id693 = _t1316 + self.start_fragment(fragment_id693) + result695 = fragment_id693 + self.record_span(span_start694, "FragmentId") + return result695 def parse_declaration(self) -> logic_pb2.Declaration: - span_start667 = self.span_start() + span_start701 = self.span_start() if self.match_lookahead_literal("(", 0): - if self.match_lookahead_literal("functional_dependency", 1): - _t1250 = 2 + if self.match_lookahead_literal("iceberg_data", 1): + _t1318 = 3 else: - if self.match_lookahead_literal("edb", 1): - _t1251 = 3 + if self.match_lookahead_literal("functional_dependency", 1): + _t1319 = 2 else: - if self.match_lookahead_literal("def", 1): - _t1252 = 0 + if self.match_lookahead_literal("edb", 1): + _t1320 = 3 else: - if self.match_lookahead_literal("csv_data", 1): - _t1253 = 3 + if self.match_lookahead_literal("def", 1): + _t1321 = 0 else: - if self.match_lookahead_literal("betree_relation", 1): - _t1254 = 3 + if self.match_lookahead_literal("csv_data", 1): + _t1322 = 3 else: - if self.match_lookahead_literal("algorithm", 1): - _t1255 = 1 + if self.match_lookahead_literal("betree_relation", 1): + _t1323 = 3 else: - _t1255 = -1 - _t1254 = _t1255 - _t1253 = _t1254 - _t1252 = _t1253 - _t1251 = _t1252 - _t1250 = _t1251 - _t1249 = _t1250 - else: - _t1249 = -1 - prediction662 = _t1249 - if prediction662 == 3: - _t1257 = self.parse_data() - data666 = _t1257 - _t1258 = logic_pb2.Declaration(data=data666) - _t1256 = _t1258 - else: - if prediction662 == 2: - _t1260 = self.parse_constraint() - constraint665 = _t1260 - _t1261 = logic_pb2.Declaration(constraint=constraint665) - _t1259 = _t1261 + if self.match_lookahead_literal("algorithm", 1): + _t1324 = 1 + else: + _t1324 = -1 + _t1323 = _t1324 + _t1322 = _t1323 + _t1321 = _t1322 + _t1320 = _t1321 + _t1319 = _t1320 + _t1318 = _t1319 + _t1317 = _t1318 + else: + _t1317 = -1 + prediction696 = _t1317 + if prediction696 == 3: + _t1326 = self.parse_data() + data700 = _t1326 + _t1327 = logic_pb2.Declaration(data=data700) + _t1325 = _t1327 + else: + if prediction696 == 2: + _t1329 = self.parse_constraint() + constraint699 = _t1329 + _t1330 = logic_pb2.Declaration(constraint=constraint699) + _t1328 = _t1330 else: - if prediction662 == 1: - _t1263 = self.parse_algorithm() - algorithm664 = _t1263 - _t1264 = logic_pb2.Declaration(algorithm=algorithm664) - _t1262 = _t1264 + if prediction696 == 1: + _t1332 = self.parse_algorithm() + algorithm698 = _t1332 + _t1333 = logic_pb2.Declaration(algorithm=algorithm698) + _t1331 = _t1333 else: - if prediction662 == 0: - _t1266 = self.parse_def() - def663 = _t1266 - _t1267 = logic_pb2.Declaration() - getattr(_t1267, 'def').CopyFrom(def663) - _t1265 = _t1267 + if prediction696 == 0: + _t1335 = self.parse_def() + def697 = _t1335 + _t1336 = logic_pb2.Declaration() + getattr(_t1336, 'def').CopyFrom(def697) + _t1334 = _t1336 else: raise ParseError("Unexpected token in declaration" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1262 = _t1265 - _t1259 = _t1262 - _t1256 = _t1259 - result668 = _t1256 - self.record_span(span_start667, "Declaration") - return result668 + _t1331 = _t1334 + _t1328 = _t1331 + _t1325 = _t1328 + result702 = _t1325 + self.record_span(span_start701, "Declaration") + return result702 def parse_def(self) -> logic_pb2.Def: - span_start672 = self.span_start() + span_start706 = self.span_start() self.consume_literal("(") self.consume_literal("def") - _t1268 = self.parse_relation_id() - relation_id669 = _t1268 - _t1269 = self.parse_abstraction() - abstraction670 = _t1269 + _t1337 = self.parse_relation_id() + relation_id703 = _t1337 + _t1338 = self.parse_abstraction() + abstraction704 = _t1338 if self.match_lookahead_literal("(", 0): - _t1271 = self.parse_attrs() - _t1270 = _t1271 + _t1340 = self.parse_attrs() + _t1339 = _t1340 else: - _t1270 = None - attrs671 = _t1270 + _t1339 = None + attrs705 = _t1339 self.consume_literal(")") - _t1272 = logic_pb2.Def(name=relation_id669, body=abstraction670, attrs=(attrs671 if attrs671 is not None else [])) - result673 = _t1272 - self.record_span(span_start672, "Def") - return result673 + _t1341 = logic_pb2.Def(name=relation_id703, body=abstraction704, attrs=(attrs705 if attrs705 is not None else [])) + result707 = _t1341 + self.record_span(span_start706, "Def") + return result707 def parse_relation_id(self) -> logic_pb2.RelationId: - span_start677 = self.span_start() + span_start711 = self.span_start() if self.match_lookahead_literal(":", 0): - _t1273 = 0 + _t1342 = 0 else: if self.match_lookahead_terminal("UINT128", 0): - _t1274 = 1 + _t1343 = 1 else: - _t1274 = -1 - _t1273 = _t1274 - prediction674 = _t1273 - if prediction674 == 1: - uint128676 = self.consume_terminal("UINT128") - _t1275 = logic_pb2.RelationId(id_low=uint128676.low, id_high=uint128676.high) - else: - if prediction674 == 0: + _t1343 = -1 + _t1342 = _t1343 + prediction708 = _t1342 + if prediction708 == 1: + uint128710 = self.consume_terminal("UINT128") + _t1344 = logic_pb2.RelationId(id_low=uint128710.low, id_high=uint128710.high) + else: + if prediction708 == 0: self.consume_literal(":") - symbol675 = self.consume_terminal("SYMBOL") - _t1276 = self.relation_id_from_string(symbol675) + symbol709 = self.consume_terminal("SYMBOL") + _t1345 = self.relation_id_from_string(symbol709) else: raise ParseError("Unexpected token in relation_id" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1275 = _t1276 - result678 = _t1275 - self.record_span(span_start677, "RelationId") - return result678 + _t1344 = _t1345 + result712 = _t1344 + self.record_span(span_start711, "RelationId") + return result712 def parse_abstraction(self) -> logic_pb2.Abstraction: - span_start681 = self.span_start() + span_start715 = self.span_start() self.consume_literal("(") - _t1277 = self.parse_bindings() - bindings679 = _t1277 - _t1278 = self.parse_formula() - formula680 = _t1278 + _t1346 = self.parse_bindings() + bindings713 = _t1346 + _t1347 = self.parse_formula() + formula714 = _t1347 self.consume_literal(")") - _t1279 = logic_pb2.Abstraction(vars=(list(bindings679[0]) + list(bindings679[1] if bindings679[1] is not None else [])), value=formula680) - result682 = _t1279 - self.record_span(span_start681, "Abstraction") - return result682 + _t1348 = logic_pb2.Abstraction(vars=(list(bindings713[0]) + list(bindings713[1] if bindings713[1] is not None else [])), value=formula714) + result716 = _t1348 + self.record_span(span_start715, "Abstraction") + return result716 def parse_bindings(self) -> tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]: self.consume_literal("[") - xs683 = [] - cond684 = self.match_lookahead_terminal("SYMBOL", 0) - while cond684: - _t1280 = self.parse_binding() - item685 = _t1280 - xs683.append(item685) - cond684 = self.match_lookahead_terminal("SYMBOL", 0) - bindings686 = xs683 + xs717 = [] + cond718 = self.match_lookahead_terminal("SYMBOL", 0) + while cond718: + _t1349 = self.parse_binding() + item719 = _t1349 + xs717.append(item719) + cond718 = self.match_lookahead_terminal("SYMBOL", 0) + bindings720 = xs717 if self.match_lookahead_literal("|", 0): - _t1282 = self.parse_value_bindings() - _t1281 = _t1282 + _t1351 = self.parse_value_bindings() + _t1350 = _t1351 else: - _t1281 = None - value_bindings687 = _t1281 + _t1350 = None + value_bindings721 = _t1350 self.consume_literal("]") - return (bindings686, (value_bindings687 if value_bindings687 is not None else []),) + return (bindings720, (value_bindings721 if value_bindings721 is not None else []),) def parse_binding(self) -> logic_pb2.Binding: - span_start690 = self.span_start() - symbol688 = self.consume_terminal("SYMBOL") + span_start724 = self.span_start() + symbol722 = self.consume_terminal("SYMBOL") self.consume_literal("::") - _t1283 = self.parse_type() - type689 = _t1283 - _t1284 = logic_pb2.Var(name=symbol688) - _t1285 = logic_pb2.Binding(var=_t1284, type=type689) - result691 = _t1285 - self.record_span(span_start690, "Binding") - return result691 + _t1352 = self.parse_type() + type723 = _t1352 + _t1353 = logic_pb2.Var(name=symbol722) + _t1354 = logic_pb2.Binding(var=_t1353, type=type723) + result725 = _t1354 + self.record_span(span_start724, "Binding") + return result725 def parse_type(self) -> logic_pb2.Type: - span_start707 = self.span_start() + span_start741 = self.span_start() if self.match_lookahead_literal("UNKNOWN", 0): - _t1286 = 0 + _t1355 = 0 else: if self.match_lookahead_literal("UINT32", 0): - _t1287 = 13 + _t1356 = 13 else: if self.match_lookahead_literal("UINT128", 0): - _t1288 = 4 + _t1357 = 4 else: if self.match_lookahead_literal("STRING", 0): - _t1289 = 1 + _t1358 = 1 else: if self.match_lookahead_literal("MISSING", 0): - _t1290 = 8 + _t1359 = 8 else: if self.match_lookahead_literal("INT32", 0): - _t1291 = 11 + _t1360 = 11 else: if self.match_lookahead_literal("INT128", 0): - _t1292 = 5 + _t1361 = 5 else: if self.match_lookahead_literal("INT", 0): - _t1293 = 2 + _t1362 = 2 else: if self.match_lookahead_literal("FLOAT32", 0): - _t1294 = 12 + _t1363 = 12 else: if self.match_lookahead_literal("FLOAT", 0): - _t1295 = 3 + _t1364 = 3 else: if self.match_lookahead_literal("DATETIME", 0): - _t1296 = 7 + _t1365 = 7 else: if self.match_lookahead_literal("DATE", 0): - _t1297 = 6 + _t1366 = 6 else: if self.match_lookahead_literal("BOOLEAN", 0): - _t1298 = 10 + _t1367 = 10 else: if self.match_lookahead_literal("(", 0): - _t1299 = 9 + _t1368 = 9 else: - _t1299 = -1 - _t1298 = _t1299 - _t1297 = _t1298 - _t1296 = _t1297 - _t1295 = _t1296 - _t1294 = _t1295 - _t1293 = _t1294 - _t1292 = _t1293 - _t1291 = _t1292 - _t1290 = _t1291 - _t1289 = _t1290 - _t1288 = _t1289 - _t1287 = _t1288 - _t1286 = _t1287 - prediction692 = _t1286 - if prediction692 == 13: - _t1301 = self.parse_uint32_type() - uint32_type706 = _t1301 - _t1302 = logic_pb2.Type(uint32_type=uint32_type706) - _t1300 = _t1302 - else: - if prediction692 == 12: - _t1304 = self.parse_float32_type() - float32_type705 = _t1304 - _t1305 = logic_pb2.Type(float32_type=float32_type705) - _t1303 = _t1305 + _t1368 = -1 + _t1367 = _t1368 + _t1366 = _t1367 + _t1365 = _t1366 + _t1364 = _t1365 + _t1363 = _t1364 + _t1362 = _t1363 + _t1361 = _t1362 + _t1360 = _t1361 + _t1359 = _t1360 + _t1358 = _t1359 + _t1357 = _t1358 + _t1356 = _t1357 + _t1355 = _t1356 + prediction726 = _t1355 + if prediction726 == 13: + _t1370 = self.parse_uint32_type() + uint32_type740 = _t1370 + _t1371 = logic_pb2.Type(uint32_type=uint32_type740) + _t1369 = _t1371 + else: + if prediction726 == 12: + _t1373 = self.parse_float32_type() + float32_type739 = _t1373 + _t1374 = logic_pb2.Type(float32_type=float32_type739) + _t1372 = _t1374 else: - if prediction692 == 11: - _t1307 = self.parse_int32_type() - int32_type704 = _t1307 - _t1308 = logic_pb2.Type(int32_type=int32_type704) - _t1306 = _t1308 + if prediction726 == 11: + _t1376 = self.parse_int32_type() + int32_type738 = _t1376 + _t1377 = logic_pb2.Type(int32_type=int32_type738) + _t1375 = _t1377 else: - if prediction692 == 10: - _t1310 = self.parse_boolean_type() - boolean_type703 = _t1310 - _t1311 = logic_pb2.Type(boolean_type=boolean_type703) - _t1309 = _t1311 + if prediction726 == 10: + _t1379 = self.parse_boolean_type() + boolean_type737 = _t1379 + _t1380 = logic_pb2.Type(boolean_type=boolean_type737) + _t1378 = _t1380 else: - if prediction692 == 9: - _t1313 = self.parse_decimal_type() - decimal_type702 = _t1313 - _t1314 = logic_pb2.Type(decimal_type=decimal_type702) - _t1312 = _t1314 + if prediction726 == 9: + _t1382 = self.parse_decimal_type() + decimal_type736 = _t1382 + _t1383 = logic_pb2.Type(decimal_type=decimal_type736) + _t1381 = _t1383 else: - if prediction692 == 8: - _t1316 = self.parse_missing_type() - missing_type701 = _t1316 - _t1317 = logic_pb2.Type(missing_type=missing_type701) - _t1315 = _t1317 + if prediction726 == 8: + _t1385 = self.parse_missing_type() + missing_type735 = _t1385 + _t1386 = logic_pb2.Type(missing_type=missing_type735) + _t1384 = _t1386 else: - if prediction692 == 7: - _t1319 = self.parse_datetime_type() - datetime_type700 = _t1319 - _t1320 = logic_pb2.Type(datetime_type=datetime_type700) - _t1318 = _t1320 + if prediction726 == 7: + _t1388 = self.parse_datetime_type() + datetime_type734 = _t1388 + _t1389 = logic_pb2.Type(datetime_type=datetime_type734) + _t1387 = _t1389 else: - if prediction692 == 6: - _t1322 = self.parse_date_type() - date_type699 = _t1322 - _t1323 = logic_pb2.Type(date_type=date_type699) - _t1321 = _t1323 + if prediction726 == 6: + _t1391 = self.parse_date_type() + date_type733 = _t1391 + _t1392 = logic_pb2.Type(date_type=date_type733) + _t1390 = _t1392 else: - if prediction692 == 5: - _t1325 = self.parse_int128_type() - int128_type698 = _t1325 - _t1326 = logic_pb2.Type(int128_type=int128_type698) - _t1324 = _t1326 + if prediction726 == 5: + _t1394 = self.parse_int128_type() + int128_type732 = _t1394 + _t1395 = logic_pb2.Type(int128_type=int128_type732) + _t1393 = _t1395 else: - if prediction692 == 4: - _t1328 = self.parse_uint128_type() - uint128_type697 = _t1328 - _t1329 = logic_pb2.Type(uint128_type=uint128_type697) - _t1327 = _t1329 + if prediction726 == 4: + _t1397 = self.parse_uint128_type() + uint128_type731 = _t1397 + _t1398 = logic_pb2.Type(uint128_type=uint128_type731) + _t1396 = _t1398 else: - if prediction692 == 3: - _t1331 = self.parse_float_type() - float_type696 = _t1331 - _t1332 = logic_pb2.Type(float_type=float_type696) - _t1330 = _t1332 + if prediction726 == 3: + _t1400 = self.parse_float_type() + float_type730 = _t1400 + _t1401 = logic_pb2.Type(float_type=float_type730) + _t1399 = _t1401 else: - if prediction692 == 2: - _t1334 = self.parse_int_type() - int_type695 = _t1334 - _t1335 = logic_pb2.Type(int_type=int_type695) - _t1333 = _t1335 + if prediction726 == 2: + _t1403 = self.parse_int_type() + int_type729 = _t1403 + _t1404 = logic_pb2.Type(int_type=int_type729) + _t1402 = _t1404 else: - if prediction692 == 1: - _t1337 = self.parse_string_type() - string_type694 = _t1337 - _t1338 = logic_pb2.Type(string_type=string_type694) - _t1336 = _t1338 + if prediction726 == 1: + _t1406 = self.parse_string_type() + string_type728 = _t1406 + _t1407 = logic_pb2.Type(string_type=string_type728) + _t1405 = _t1407 else: - if prediction692 == 0: - _t1340 = self.parse_unspecified_type() - unspecified_type693 = _t1340 - _t1341 = logic_pb2.Type(unspecified_type=unspecified_type693) - _t1339 = _t1341 + if prediction726 == 0: + _t1409 = self.parse_unspecified_type() + unspecified_type727 = _t1409 + _t1410 = logic_pb2.Type(unspecified_type=unspecified_type727) + _t1408 = _t1410 else: raise ParseError("Unexpected token in type" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1336 = _t1339 - _t1333 = _t1336 - _t1330 = _t1333 - _t1327 = _t1330 - _t1324 = _t1327 - _t1321 = _t1324 - _t1318 = _t1321 - _t1315 = _t1318 - _t1312 = _t1315 - _t1309 = _t1312 - _t1306 = _t1309 - _t1303 = _t1306 - _t1300 = _t1303 - result708 = _t1300 - self.record_span(span_start707, "Type") - return result708 + _t1405 = _t1408 + _t1402 = _t1405 + _t1399 = _t1402 + _t1396 = _t1399 + _t1393 = _t1396 + _t1390 = _t1393 + _t1387 = _t1390 + _t1384 = _t1387 + _t1381 = _t1384 + _t1378 = _t1381 + _t1375 = _t1378 + _t1372 = _t1375 + _t1369 = _t1372 + result742 = _t1369 + self.record_span(span_start741, "Type") + return result742 def parse_unspecified_type(self) -> logic_pb2.UnspecifiedType: - span_start709 = self.span_start() + span_start743 = self.span_start() self.consume_literal("UNKNOWN") - _t1342 = logic_pb2.UnspecifiedType() - result710 = _t1342 - self.record_span(span_start709, "UnspecifiedType") - return result710 + _t1411 = logic_pb2.UnspecifiedType() + result744 = _t1411 + self.record_span(span_start743, "UnspecifiedType") + return result744 def parse_string_type(self) -> logic_pb2.StringType: - span_start711 = self.span_start() + span_start745 = self.span_start() self.consume_literal("STRING") - _t1343 = logic_pb2.StringType() - result712 = _t1343 - self.record_span(span_start711, "StringType") - return result712 + _t1412 = logic_pb2.StringType() + result746 = _t1412 + self.record_span(span_start745, "StringType") + return result746 def parse_int_type(self) -> logic_pb2.IntType: - span_start713 = self.span_start() + span_start747 = self.span_start() self.consume_literal("INT") - _t1344 = logic_pb2.IntType() - result714 = _t1344 - self.record_span(span_start713, "IntType") - return result714 + _t1413 = logic_pb2.IntType() + result748 = _t1413 + self.record_span(span_start747, "IntType") + return result748 def parse_float_type(self) -> logic_pb2.FloatType: - span_start715 = self.span_start() + span_start749 = self.span_start() self.consume_literal("FLOAT") - _t1345 = logic_pb2.FloatType() - result716 = _t1345 - self.record_span(span_start715, "FloatType") - return result716 + _t1414 = logic_pb2.FloatType() + result750 = _t1414 + self.record_span(span_start749, "FloatType") + return result750 def parse_uint128_type(self) -> logic_pb2.UInt128Type: - span_start717 = self.span_start() + span_start751 = self.span_start() self.consume_literal("UINT128") - _t1346 = logic_pb2.UInt128Type() - result718 = _t1346 - self.record_span(span_start717, "UInt128Type") - return result718 + _t1415 = logic_pb2.UInt128Type() + result752 = _t1415 + self.record_span(span_start751, "UInt128Type") + return result752 def parse_int128_type(self) -> logic_pb2.Int128Type: - span_start719 = self.span_start() + span_start753 = self.span_start() self.consume_literal("INT128") - _t1347 = logic_pb2.Int128Type() - result720 = _t1347 - self.record_span(span_start719, "Int128Type") - return result720 + _t1416 = logic_pb2.Int128Type() + result754 = _t1416 + self.record_span(span_start753, "Int128Type") + return result754 def parse_date_type(self) -> logic_pb2.DateType: - span_start721 = self.span_start() + span_start755 = self.span_start() self.consume_literal("DATE") - _t1348 = logic_pb2.DateType() - result722 = _t1348 - self.record_span(span_start721, "DateType") - return result722 + _t1417 = logic_pb2.DateType() + result756 = _t1417 + self.record_span(span_start755, "DateType") + return result756 def parse_datetime_type(self) -> logic_pb2.DateTimeType: - span_start723 = self.span_start() + span_start757 = self.span_start() self.consume_literal("DATETIME") - _t1349 = logic_pb2.DateTimeType() - result724 = _t1349 - self.record_span(span_start723, "DateTimeType") - return result724 + _t1418 = logic_pb2.DateTimeType() + result758 = _t1418 + self.record_span(span_start757, "DateTimeType") + return result758 def parse_missing_type(self) -> logic_pb2.MissingType: - span_start725 = self.span_start() + span_start759 = self.span_start() self.consume_literal("MISSING") - _t1350 = logic_pb2.MissingType() - result726 = _t1350 - self.record_span(span_start725, "MissingType") - return result726 + _t1419 = logic_pb2.MissingType() + result760 = _t1419 + self.record_span(span_start759, "MissingType") + return result760 def parse_decimal_type(self) -> logic_pb2.DecimalType: - span_start729 = self.span_start() + span_start763 = self.span_start() self.consume_literal("(") self.consume_literal("DECIMAL") - int727 = self.consume_terminal("INT") - int_3728 = self.consume_terminal("INT") + int761 = self.consume_terminal("INT") + int_3762 = self.consume_terminal("INT") self.consume_literal(")") - _t1351 = logic_pb2.DecimalType(precision=int(int727), scale=int(int_3728)) - result730 = _t1351 - self.record_span(span_start729, "DecimalType") - return result730 + _t1420 = logic_pb2.DecimalType(precision=int(int761), scale=int(int_3762)) + result764 = _t1420 + self.record_span(span_start763, "DecimalType") + return result764 def parse_boolean_type(self) -> logic_pb2.BooleanType: - span_start731 = self.span_start() + span_start765 = self.span_start() self.consume_literal("BOOLEAN") - _t1352 = logic_pb2.BooleanType() - result732 = _t1352 - self.record_span(span_start731, "BooleanType") - return result732 + _t1421 = logic_pb2.BooleanType() + result766 = _t1421 + self.record_span(span_start765, "BooleanType") + return result766 def parse_int32_type(self) -> logic_pb2.Int32Type: - span_start733 = self.span_start() + span_start767 = self.span_start() self.consume_literal("INT32") - _t1353 = logic_pb2.Int32Type() - result734 = _t1353 - self.record_span(span_start733, "Int32Type") - return result734 + _t1422 = logic_pb2.Int32Type() + result768 = _t1422 + self.record_span(span_start767, "Int32Type") + return result768 def parse_float32_type(self) -> logic_pb2.Float32Type: - span_start735 = self.span_start() + span_start769 = self.span_start() self.consume_literal("FLOAT32") - _t1354 = logic_pb2.Float32Type() - result736 = _t1354 - self.record_span(span_start735, "Float32Type") - return result736 + _t1423 = logic_pb2.Float32Type() + result770 = _t1423 + self.record_span(span_start769, "Float32Type") + return result770 def parse_uint32_type(self) -> logic_pb2.UInt32Type: - span_start737 = self.span_start() + span_start771 = self.span_start() self.consume_literal("UINT32") - _t1355 = logic_pb2.UInt32Type() - result738 = _t1355 - self.record_span(span_start737, "UInt32Type") - return result738 + _t1424 = logic_pb2.UInt32Type() + result772 = _t1424 + self.record_span(span_start771, "UInt32Type") + return result772 def parse_value_bindings(self) -> Sequence[logic_pb2.Binding]: self.consume_literal("|") - xs739 = [] - cond740 = self.match_lookahead_terminal("SYMBOL", 0) - while cond740: - _t1356 = self.parse_binding() - item741 = _t1356 - xs739.append(item741) - cond740 = self.match_lookahead_terminal("SYMBOL", 0) - bindings742 = xs739 - return bindings742 + xs773 = [] + cond774 = self.match_lookahead_terminal("SYMBOL", 0) + while cond774: + _t1425 = self.parse_binding() + item775 = _t1425 + xs773.append(item775) + cond774 = self.match_lookahead_terminal("SYMBOL", 0) + bindings776 = xs773 + return bindings776 def parse_formula(self) -> logic_pb2.Formula: - span_start757 = self.span_start() + span_start791 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("true", 1): - _t1358 = 0 + _t1427 = 0 else: if self.match_lookahead_literal("relatom", 1): - _t1359 = 11 + _t1428 = 11 else: if self.match_lookahead_literal("reduce", 1): - _t1360 = 3 + _t1429 = 3 else: if self.match_lookahead_literal("primitive", 1): - _t1361 = 10 + _t1430 = 10 else: if self.match_lookahead_literal("pragma", 1): - _t1362 = 9 + _t1431 = 9 else: if self.match_lookahead_literal("or", 1): - _t1363 = 5 + _t1432 = 5 else: if self.match_lookahead_literal("not", 1): - _t1364 = 6 + _t1433 = 6 else: if self.match_lookahead_literal("ffi", 1): - _t1365 = 7 + _t1434 = 7 else: if self.match_lookahead_literal("false", 1): - _t1366 = 1 + _t1435 = 1 else: if self.match_lookahead_literal("exists", 1): - _t1367 = 2 + _t1436 = 2 else: if self.match_lookahead_literal("cast", 1): - _t1368 = 12 + _t1437 = 12 else: if self.match_lookahead_literal("atom", 1): - _t1369 = 8 + _t1438 = 8 else: if self.match_lookahead_literal("and", 1): - _t1370 = 4 + _t1439 = 4 else: if self.match_lookahead_literal(">=", 1): - _t1371 = 10 + _t1440 = 10 else: if self.match_lookahead_literal(">", 1): - _t1372 = 10 + _t1441 = 10 else: if self.match_lookahead_literal("=", 1): - _t1373 = 10 + _t1442 = 10 else: if self.match_lookahead_literal("<=", 1): - _t1374 = 10 + _t1443 = 10 else: if self.match_lookahead_literal("<", 1): - _t1375 = 10 + _t1444 = 10 else: if self.match_lookahead_literal("/", 1): - _t1376 = 10 + _t1445 = 10 else: if self.match_lookahead_literal("-", 1): - _t1377 = 10 + _t1446 = 10 else: if self.match_lookahead_literal("+", 1): - _t1378 = 10 + _t1447 = 10 else: if self.match_lookahead_literal("*", 1): - _t1379 = 10 + _t1448 = 10 else: - _t1379 = -1 - _t1378 = _t1379 - _t1377 = _t1378 - _t1376 = _t1377 - _t1375 = _t1376 - _t1374 = _t1375 - _t1373 = _t1374 - _t1372 = _t1373 - _t1371 = _t1372 - _t1370 = _t1371 - _t1369 = _t1370 - _t1368 = _t1369 - _t1367 = _t1368 - _t1366 = _t1367 - _t1365 = _t1366 - _t1364 = _t1365 - _t1363 = _t1364 - _t1362 = _t1363 - _t1361 = _t1362 - _t1360 = _t1361 - _t1359 = _t1360 - _t1358 = _t1359 - _t1357 = _t1358 - else: - _t1357 = -1 - prediction743 = _t1357 - if prediction743 == 12: - _t1381 = self.parse_cast() - cast756 = _t1381 - _t1382 = logic_pb2.Formula(cast=cast756) - _t1380 = _t1382 - else: - if prediction743 == 11: - _t1384 = self.parse_rel_atom() - rel_atom755 = _t1384 - _t1385 = logic_pb2.Formula(rel_atom=rel_atom755) - _t1383 = _t1385 + _t1448 = -1 + _t1447 = _t1448 + _t1446 = _t1447 + _t1445 = _t1446 + _t1444 = _t1445 + _t1443 = _t1444 + _t1442 = _t1443 + _t1441 = _t1442 + _t1440 = _t1441 + _t1439 = _t1440 + _t1438 = _t1439 + _t1437 = _t1438 + _t1436 = _t1437 + _t1435 = _t1436 + _t1434 = _t1435 + _t1433 = _t1434 + _t1432 = _t1433 + _t1431 = _t1432 + _t1430 = _t1431 + _t1429 = _t1430 + _t1428 = _t1429 + _t1427 = _t1428 + _t1426 = _t1427 + else: + _t1426 = -1 + prediction777 = _t1426 + if prediction777 == 12: + _t1450 = self.parse_cast() + cast790 = _t1450 + _t1451 = logic_pb2.Formula(cast=cast790) + _t1449 = _t1451 + else: + if prediction777 == 11: + _t1453 = self.parse_rel_atom() + rel_atom789 = _t1453 + _t1454 = logic_pb2.Formula(rel_atom=rel_atom789) + _t1452 = _t1454 else: - if prediction743 == 10: - _t1387 = self.parse_primitive() - primitive754 = _t1387 - _t1388 = logic_pb2.Formula(primitive=primitive754) - _t1386 = _t1388 + if prediction777 == 10: + _t1456 = self.parse_primitive() + primitive788 = _t1456 + _t1457 = logic_pb2.Formula(primitive=primitive788) + _t1455 = _t1457 else: - if prediction743 == 9: - _t1390 = self.parse_pragma() - pragma753 = _t1390 - _t1391 = logic_pb2.Formula(pragma=pragma753) - _t1389 = _t1391 + if prediction777 == 9: + _t1459 = self.parse_pragma() + pragma787 = _t1459 + _t1460 = logic_pb2.Formula(pragma=pragma787) + _t1458 = _t1460 else: - if prediction743 == 8: - _t1393 = self.parse_atom() - atom752 = _t1393 - _t1394 = logic_pb2.Formula(atom=atom752) - _t1392 = _t1394 + if prediction777 == 8: + _t1462 = self.parse_atom() + atom786 = _t1462 + _t1463 = logic_pb2.Formula(atom=atom786) + _t1461 = _t1463 else: - if prediction743 == 7: - _t1396 = self.parse_ffi() - ffi751 = _t1396 - _t1397 = logic_pb2.Formula(ffi=ffi751) - _t1395 = _t1397 + if prediction777 == 7: + _t1465 = self.parse_ffi() + ffi785 = _t1465 + _t1466 = logic_pb2.Formula(ffi=ffi785) + _t1464 = _t1466 else: - if prediction743 == 6: - _t1399 = self.parse_not() - not750 = _t1399 - _t1400 = logic_pb2.Formula() - getattr(_t1400, 'not').CopyFrom(not750) - _t1398 = _t1400 + if prediction777 == 6: + _t1468 = self.parse_not() + not784 = _t1468 + _t1469 = logic_pb2.Formula() + getattr(_t1469, 'not').CopyFrom(not784) + _t1467 = _t1469 else: - if prediction743 == 5: - _t1402 = self.parse_disjunction() - disjunction749 = _t1402 - _t1403 = logic_pb2.Formula(disjunction=disjunction749) - _t1401 = _t1403 + if prediction777 == 5: + _t1471 = self.parse_disjunction() + disjunction783 = _t1471 + _t1472 = logic_pb2.Formula(disjunction=disjunction783) + _t1470 = _t1472 else: - if prediction743 == 4: - _t1405 = self.parse_conjunction() - conjunction748 = _t1405 - _t1406 = logic_pb2.Formula(conjunction=conjunction748) - _t1404 = _t1406 + if prediction777 == 4: + _t1474 = self.parse_conjunction() + conjunction782 = _t1474 + _t1475 = logic_pb2.Formula(conjunction=conjunction782) + _t1473 = _t1475 else: - if prediction743 == 3: - _t1408 = self.parse_reduce() - reduce747 = _t1408 - _t1409 = logic_pb2.Formula(reduce=reduce747) - _t1407 = _t1409 + if prediction777 == 3: + _t1477 = self.parse_reduce() + reduce781 = _t1477 + _t1478 = logic_pb2.Formula(reduce=reduce781) + _t1476 = _t1478 else: - if prediction743 == 2: - _t1411 = self.parse_exists() - exists746 = _t1411 - _t1412 = logic_pb2.Formula(exists=exists746) - _t1410 = _t1412 + if prediction777 == 2: + _t1480 = self.parse_exists() + exists780 = _t1480 + _t1481 = logic_pb2.Formula(exists=exists780) + _t1479 = _t1481 else: - if prediction743 == 1: - _t1414 = self.parse_false() - false745 = _t1414 - _t1415 = logic_pb2.Formula(disjunction=false745) - _t1413 = _t1415 + if prediction777 == 1: + _t1483 = self.parse_false() + false779 = _t1483 + _t1484 = logic_pb2.Formula(disjunction=false779) + _t1482 = _t1484 else: - if prediction743 == 0: - _t1417 = self.parse_true() - true744 = _t1417 - _t1418 = logic_pb2.Formula(conjunction=true744) - _t1416 = _t1418 + if prediction777 == 0: + _t1486 = self.parse_true() + true778 = _t1486 + _t1487 = logic_pb2.Formula(conjunction=true778) + _t1485 = _t1487 else: raise ParseError("Unexpected token in formula" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1413 = _t1416 - _t1410 = _t1413 - _t1407 = _t1410 - _t1404 = _t1407 - _t1401 = _t1404 - _t1398 = _t1401 - _t1395 = _t1398 - _t1392 = _t1395 - _t1389 = _t1392 - _t1386 = _t1389 - _t1383 = _t1386 - _t1380 = _t1383 - result758 = _t1380 - self.record_span(span_start757, "Formula") - return result758 + _t1482 = _t1485 + _t1479 = _t1482 + _t1476 = _t1479 + _t1473 = _t1476 + _t1470 = _t1473 + _t1467 = _t1470 + _t1464 = _t1467 + _t1461 = _t1464 + _t1458 = _t1461 + _t1455 = _t1458 + _t1452 = _t1455 + _t1449 = _t1452 + result792 = _t1449 + self.record_span(span_start791, "Formula") + return result792 def parse_true(self) -> logic_pb2.Conjunction: - span_start759 = self.span_start() + span_start793 = self.span_start() self.consume_literal("(") self.consume_literal("true") self.consume_literal(")") - _t1419 = logic_pb2.Conjunction(args=[]) - result760 = _t1419 - self.record_span(span_start759, "Conjunction") - return result760 + _t1488 = logic_pb2.Conjunction(args=[]) + result794 = _t1488 + self.record_span(span_start793, "Conjunction") + return result794 def parse_false(self) -> logic_pb2.Disjunction: - span_start761 = self.span_start() + span_start795 = self.span_start() self.consume_literal("(") self.consume_literal("false") self.consume_literal(")") - _t1420 = logic_pb2.Disjunction(args=[]) - result762 = _t1420 - self.record_span(span_start761, "Disjunction") - return result762 + _t1489 = logic_pb2.Disjunction(args=[]) + result796 = _t1489 + self.record_span(span_start795, "Disjunction") + return result796 def parse_exists(self) -> logic_pb2.Exists: - span_start765 = self.span_start() + span_start799 = self.span_start() self.consume_literal("(") self.consume_literal("exists") - _t1421 = self.parse_bindings() - bindings763 = _t1421 - _t1422 = self.parse_formula() - formula764 = _t1422 - self.consume_literal(")") - _t1423 = logic_pb2.Abstraction(vars=(list(bindings763[0]) + list(bindings763[1] if bindings763[1] is not None else [])), value=formula764) - _t1424 = logic_pb2.Exists(body=_t1423) - result766 = _t1424 - self.record_span(span_start765, "Exists") - return result766 + _t1490 = self.parse_bindings() + bindings797 = _t1490 + _t1491 = self.parse_formula() + formula798 = _t1491 + self.consume_literal(")") + _t1492 = logic_pb2.Abstraction(vars=(list(bindings797[0]) + list(bindings797[1] if bindings797[1] is not None else [])), value=formula798) + _t1493 = logic_pb2.Exists(body=_t1492) + result800 = _t1493 + self.record_span(span_start799, "Exists") + return result800 def parse_reduce(self) -> logic_pb2.Reduce: - span_start770 = self.span_start() + span_start804 = self.span_start() self.consume_literal("(") self.consume_literal("reduce") - _t1425 = self.parse_abstraction() - abstraction767 = _t1425 - _t1426 = self.parse_abstraction() - abstraction_3768 = _t1426 - _t1427 = self.parse_terms() - terms769 = _t1427 - self.consume_literal(")") - _t1428 = logic_pb2.Reduce(op=abstraction767, body=abstraction_3768, terms=terms769) - result771 = _t1428 - self.record_span(span_start770, "Reduce") - return result771 + _t1494 = self.parse_abstraction() + abstraction801 = _t1494 + _t1495 = self.parse_abstraction() + abstraction_3802 = _t1495 + _t1496 = self.parse_terms() + terms803 = _t1496 + self.consume_literal(")") + _t1497 = logic_pb2.Reduce(op=abstraction801, body=abstraction_3802, terms=terms803) + result805 = _t1497 + self.record_span(span_start804, "Reduce") + return result805 def parse_terms(self) -> Sequence[logic_pb2.Term]: self.consume_literal("(") self.consume_literal("terms") - xs772 = [] - cond773 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - while cond773: - _t1429 = self.parse_term() - item774 = _t1429 - xs772.append(item774) - cond773 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - terms775 = xs772 + xs806 = [] + cond807 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + while cond807: + _t1498 = self.parse_term() + item808 = _t1498 + xs806.append(item808) + cond807 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + terms809 = xs806 self.consume_literal(")") - return terms775 + return terms809 def parse_term(self) -> logic_pb2.Term: - span_start779 = self.span_start() + span_start813 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1430 = 1 + _t1499 = 1 else: if self.match_lookahead_literal("missing", 0): - _t1431 = 1 + _t1500 = 1 else: if self.match_lookahead_literal("false", 0): - _t1432 = 1 + _t1501 = 1 else: if self.match_lookahead_literal("(", 0): - _t1433 = 1 + _t1502 = 1 else: if self.match_lookahead_terminal("UINT32", 0): - _t1434 = 1 + _t1503 = 1 else: if self.match_lookahead_terminal("UINT128", 0): - _t1435 = 1 + _t1504 = 1 else: if self.match_lookahead_terminal("SYMBOL", 0): - _t1436 = 0 + _t1505 = 0 else: if self.match_lookahead_terminal("STRING", 0): - _t1437 = 1 + _t1506 = 1 else: if self.match_lookahead_terminal("INT32", 0): - _t1438 = 1 + _t1507 = 1 else: if self.match_lookahead_terminal("INT128", 0): - _t1439 = 1 + _t1508 = 1 else: if self.match_lookahead_terminal("INT", 0): - _t1440 = 1 + _t1509 = 1 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1441 = 1 + _t1510 = 1 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1442 = 1 + _t1511 = 1 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1443 = 1 + _t1512 = 1 else: - _t1443 = -1 - _t1442 = _t1443 - _t1441 = _t1442 - _t1440 = _t1441 - _t1439 = _t1440 - _t1438 = _t1439 - _t1437 = _t1438 - _t1436 = _t1437 - _t1435 = _t1436 - _t1434 = _t1435 - _t1433 = _t1434 - _t1432 = _t1433 - _t1431 = _t1432 - _t1430 = _t1431 - prediction776 = _t1430 - if prediction776 == 1: - _t1445 = self.parse_constant() - constant778 = _t1445 - _t1446 = logic_pb2.Term(constant=constant778) - _t1444 = _t1446 - else: - if prediction776 == 0: - _t1448 = self.parse_var() - var777 = _t1448 - _t1449 = logic_pb2.Term(var=var777) - _t1447 = _t1449 + _t1512 = -1 + _t1511 = _t1512 + _t1510 = _t1511 + _t1509 = _t1510 + _t1508 = _t1509 + _t1507 = _t1508 + _t1506 = _t1507 + _t1505 = _t1506 + _t1504 = _t1505 + _t1503 = _t1504 + _t1502 = _t1503 + _t1501 = _t1502 + _t1500 = _t1501 + _t1499 = _t1500 + prediction810 = _t1499 + if prediction810 == 1: + _t1514 = self.parse_constant() + constant812 = _t1514 + _t1515 = logic_pb2.Term(constant=constant812) + _t1513 = _t1515 + else: + if prediction810 == 0: + _t1517 = self.parse_var() + var811 = _t1517 + _t1518 = logic_pb2.Term(var=var811) + _t1516 = _t1518 else: raise ParseError("Unexpected token in term" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1444 = _t1447 - result780 = _t1444 - self.record_span(span_start779, "Term") - return result780 + _t1513 = _t1516 + result814 = _t1513 + self.record_span(span_start813, "Term") + return result814 def parse_var(self) -> logic_pb2.Var: - span_start782 = self.span_start() - symbol781 = self.consume_terminal("SYMBOL") - _t1450 = logic_pb2.Var(name=symbol781) - result783 = _t1450 - self.record_span(span_start782, "Var") - return result783 + span_start816 = self.span_start() + symbol815 = self.consume_terminal("SYMBOL") + _t1519 = logic_pb2.Var(name=symbol815) + result817 = _t1519 + self.record_span(span_start816, "Var") + return result817 def parse_constant(self) -> logic_pb2.Value: - span_start785 = self.span_start() - _t1451 = self.parse_value() - value784 = _t1451 - result786 = value784 - self.record_span(span_start785, "Value") - return result786 + span_start819 = self.span_start() + _t1520 = self.parse_value() + value818 = _t1520 + result820 = value818 + self.record_span(span_start819, "Value") + return result820 def parse_conjunction(self) -> logic_pb2.Conjunction: - span_start791 = self.span_start() + span_start825 = self.span_start() self.consume_literal("(") self.consume_literal("and") - xs787 = [] - cond788 = self.match_lookahead_literal("(", 0) - while cond788: - _t1452 = self.parse_formula() - item789 = _t1452 - xs787.append(item789) - cond788 = self.match_lookahead_literal("(", 0) - formulas790 = xs787 - self.consume_literal(")") - _t1453 = logic_pb2.Conjunction(args=formulas790) - result792 = _t1453 - self.record_span(span_start791, "Conjunction") - return result792 + xs821 = [] + cond822 = self.match_lookahead_literal("(", 0) + while cond822: + _t1521 = self.parse_formula() + item823 = _t1521 + xs821.append(item823) + cond822 = self.match_lookahead_literal("(", 0) + formulas824 = xs821 + self.consume_literal(")") + _t1522 = logic_pb2.Conjunction(args=formulas824) + result826 = _t1522 + self.record_span(span_start825, "Conjunction") + return result826 def parse_disjunction(self) -> logic_pb2.Disjunction: - span_start797 = self.span_start() + span_start831 = self.span_start() self.consume_literal("(") self.consume_literal("or") - xs793 = [] - cond794 = self.match_lookahead_literal("(", 0) - while cond794: - _t1454 = self.parse_formula() - item795 = _t1454 - xs793.append(item795) - cond794 = self.match_lookahead_literal("(", 0) - formulas796 = xs793 - self.consume_literal(")") - _t1455 = logic_pb2.Disjunction(args=formulas796) - result798 = _t1455 - self.record_span(span_start797, "Disjunction") - return result798 + xs827 = [] + cond828 = self.match_lookahead_literal("(", 0) + while cond828: + _t1523 = self.parse_formula() + item829 = _t1523 + xs827.append(item829) + cond828 = self.match_lookahead_literal("(", 0) + formulas830 = xs827 + self.consume_literal(")") + _t1524 = logic_pb2.Disjunction(args=formulas830) + result832 = _t1524 + self.record_span(span_start831, "Disjunction") + return result832 def parse_not(self) -> logic_pb2.Not: - span_start800 = self.span_start() + span_start834 = self.span_start() self.consume_literal("(") self.consume_literal("not") - _t1456 = self.parse_formula() - formula799 = _t1456 + _t1525 = self.parse_formula() + formula833 = _t1525 self.consume_literal(")") - _t1457 = logic_pb2.Not(arg=formula799) - result801 = _t1457 - self.record_span(span_start800, "Not") - return result801 + _t1526 = logic_pb2.Not(arg=formula833) + result835 = _t1526 + self.record_span(span_start834, "Not") + return result835 def parse_ffi(self) -> logic_pb2.FFI: - span_start805 = self.span_start() + span_start839 = self.span_start() self.consume_literal("(") self.consume_literal("ffi") - _t1458 = self.parse_name() - name802 = _t1458 - _t1459 = self.parse_ffi_args() - ffi_args803 = _t1459 - _t1460 = self.parse_terms() - terms804 = _t1460 - self.consume_literal(")") - _t1461 = logic_pb2.FFI(name=name802, args=ffi_args803, terms=terms804) - result806 = _t1461 - self.record_span(span_start805, "FFI") - return result806 + _t1527 = self.parse_name() + name836 = _t1527 + _t1528 = self.parse_ffi_args() + ffi_args837 = _t1528 + _t1529 = self.parse_terms() + terms838 = _t1529 + self.consume_literal(")") + _t1530 = logic_pb2.FFI(name=name836, args=ffi_args837, terms=terms838) + result840 = _t1530 + self.record_span(span_start839, "FFI") + return result840 def parse_name(self) -> str: self.consume_literal(":") - symbol807 = self.consume_terminal("SYMBOL") - return symbol807 + symbol841 = self.consume_terminal("SYMBOL") + return symbol841 def parse_ffi_args(self) -> Sequence[logic_pb2.Abstraction]: self.consume_literal("(") self.consume_literal("args") - xs808 = [] - cond809 = self.match_lookahead_literal("(", 0) - while cond809: - _t1462 = self.parse_abstraction() - item810 = _t1462 - xs808.append(item810) - cond809 = self.match_lookahead_literal("(", 0) - abstractions811 = xs808 + xs842 = [] + cond843 = self.match_lookahead_literal("(", 0) + while cond843: + _t1531 = self.parse_abstraction() + item844 = _t1531 + xs842.append(item844) + cond843 = self.match_lookahead_literal("(", 0) + abstractions845 = xs842 self.consume_literal(")") - return abstractions811 + return abstractions845 def parse_atom(self) -> logic_pb2.Atom: - span_start817 = self.span_start() + span_start851 = self.span_start() self.consume_literal("(") self.consume_literal("atom") - _t1463 = self.parse_relation_id() - relation_id812 = _t1463 - xs813 = [] - cond814 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - while cond814: - _t1464 = self.parse_term() - item815 = _t1464 - xs813.append(item815) - cond814 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - terms816 = xs813 - self.consume_literal(")") - _t1465 = logic_pb2.Atom(name=relation_id812, terms=terms816) - result818 = _t1465 - self.record_span(span_start817, "Atom") - return result818 + _t1532 = self.parse_relation_id() + relation_id846 = _t1532 + xs847 = [] + cond848 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + while cond848: + _t1533 = self.parse_term() + item849 = _t1533 + xs847.append(item849) + cond848 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + terms850 = xs847 + self.consume_literal(")") + _t1534 = logic_pb2.Atom(name=relation_id846, terms=terms850) + result852 = _t1534 + self.record_span(span_start851, "Atom") + return result852 def parse_pragma(self) -> logic_pb2.Pragma: - span_start824 = self.span_start() + span_start858 = self.span_start() self.consume_literal("(") self.consume_literal("pragma") - _t1466 = self.parse_name() - name819 = _t1466 - xs820 = [] - cond821 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - while cond821: - _t1467 = self.parse_term() - item822 = _t1467 - xs820.append(item822) - cond821 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - terms823 = xs820 - self.consume_literal(")") - _t1468 = logic_pb2.Pragma(name=name819, terms=terms823) - result825 = _t1468 - self.record_span(span_start824, "Pragma") - return result825 + _t1535 = self.parse_name() + name853 = _t1535 + xs854 = [] + cond855 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + while cond855: + _t1536 = self.parse_term() + item856 = _t1536 + xs854.append(item856) + cond855 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + terms857 = xs854 + self.consume_literal(")") + _t1537 = logic_pb2.Pragma(name=name853, terms=terms857) + result859 = _t1537 + self.record_span(span_start858, "Pragma") + return result859 def parse_primitive(self) -> logic_pb2.Primitive: - span_start841 = self.span_start() + span_start875 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("primitive", 1): - _t1470 = 9 + _t1539 = 9 else: if self.match_lookahead_literal(">=", 1): - _t1471 = 4 + _t1540 = 4 else: if self.match_lookahead_literal(">", 1): - _t1472 = 3 + _t1541 = 3 else: if self.match_lookahead_literal("=", 1): - _t1473 = 0 + _t1542 = 0 else: if self.match_lookahead_literal("<=", 1): - _t1474 = 2 + _t1543 = 2 else: if self.match_lookahead_literal("<", 1): - _t1475 = 1 + _t1544 = 1 else: if self.match_lookahead_literal("/", 1): - _t1476 = 8 + _t1545 = 8 else: if self.match_lookahead_literal("-", 1): - _t1477 = 6 + _t1546 = 6 else: if self.match_lookahead_literal("+", 1): - _t1478 = 5 + _t1547 = 5 else: if self.match_lookahead_literal("*", 1): - _t1479 = 7 + _t1548 = 7 else: - _t1479 = -1 - _t1478 = _t1479 - _t1477 = _t1478 - _t1476 = _t1477 - _t1475 = _t1476 - _t1474 = _t1475 - _t1473 = _t1474 - _t1472 = _t1473 - _t1471 = _t1472 - _t1470 = _t1471 - _t1469 = _t1470 - else: - _t1469 = -1 - prediction826 = _t1469 - if prediction826 == 9: + _t1548 = -1 + _t1547 = _t1548 + _t1546 = _t1547 + _t1545 = _t1546 + _t1544 = _t1545 + _t1543 = _t1544 + _t1542 = _t1543 + _t1541 = _t1542 + _t1540 = _t1541 + _t1539 = _t1540 + _t1538 = _t1539 + else: + _t1538 = -1 + prediction860 = _t1538 + if prediction860 == 9: self.consume_literal("(") self.consume_literal("primitive") - _t1481 = self.parse_name() - name836 = _t1481 - xs837 = [] - cond838 = ((((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - while cond838: - _t1482 = self.parse_rel_term() - item839 = _t1482 - xs837.append(item839) - cond838 = ((((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - rel_terms840 = xs837 + _t1550 = self.parse_name() + name870 = _t1550 + xs871 = [] + cond872 = ((((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + while cond872: + _t1551 = self.parse_rel_term() + item873 = _t1551 + xs871.append(item873) + cond872 = ((((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + rel_terms874 = xs871 self.consume_literal(")") - _t1483 = logic_pb2.Primitive(name=name836, terms=rel_terms840) - _t1480 = _t1483 + _t1552 = logic_pb2.Primitive(name=name870, terms=rel_terms874) + _t1549 = _t1552 else: - if prediction826 == 8: - _t1485 = self.parse_divide() - divide835 = _t1485 - _t1484 = divide835 + if prediction860 == 8: + _t1554 = self.parse_divide() + divide869 = _t1554 + _t1553 = divide869 else: - if prediction826 == 7: - _t1487 = self.parse_multiply() - multiply834 = _t1487 - _t1486 = multiply834 + if prediction860 == 7: + _t1556 = self.parse_multiply() + multiply868 = _t1556 + _t1555 = multiply868 else: - if prediction826 == 6: - _t1489 = self.parse_minus() - minus833 = _t1489 - _t1488 = minus833 + if prediction860 == 6: + _t1558 = self.parse_minus() + minus867 = _t1558 + _t1557 = minus867 else: - if prediction826 == 5: - _t1491 = self.parse_add() - add832 = _t1491 - _t1490 = add832 + if prediction860 == 5: + _t1560 = self.parse_add() + add866 = _t1560 + _t1559 = add866 else: - if prediction826 == 4: - _t1493 = self.parse_gt_eq() - gt_eq831 = _t1493 - _t1492 = gt_eq831 + if prediction860 == 4: + _t1562 = self.parse_gt_eq() + gt_eq865 = _t1562 + _t1561 = gt_eq865 else: - if prediction826 == 3: - _t1495 = self.parse_gt() - gt830 = _t1495 - _t1494 = gt830 + if prediction860 == 3: + _t1564 = self.parse_gt() + gt864 = _t1564 + _t1563 = gt864 else: - if prediction826 == 2: - _t1497 = self.parse_lt_eq() - lt_eq829 = _t1497 - _t1496 = lt_eq829 + if prediction860 == 2: + _t1566 = self.parse_lt_eq() + lt_eq863 = _t1566 + _t1565 = lt_eq863 else: - if prediction826 == 1: - _t1499 = self.parse_lt() - lt828 = _t1499 - _t1498 = lt828 + if prediction860 == 1: + _t1568 = self.parse_lt() + lt862 = _t1568 + _t1567 = lt862 else: - if prediction826 == 0: - _t1501 = self.parse_eq() - eq827 = _t1501 - _t1500 = eq827 + if prediction860 == 0: + _t1570 = self.parse_eq() + eq861 = _t1570 + _t1569 = eq861 else: raise ParseError("Unexpected token in primitive" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1498 = _t1500 - _t1496 = _t1498 - _t1494 = _t1496 - _t1492 = _t1494 - _t1490 = _t1492 - _t1488 = _t1490 - _t1486 = _t1488 - _t1484 = _t1486 - _t1480 = _t1484 - result842 = _t1480 - self.record_span(span_start841, "Primitive") - return result842 + _t1567 = _t1569 + _t1565 = _t1567 + _t1563 = _t1565 + _t1561 = _t1563 + _t1559 = _t1561 + _t1557 = _t1559 + _t1555 = _t1557 + _t1553 = _t1555 + _t1549 = _t1553 + result876 = _t1549 + self.record_span(span_start875, "Primitive") + return result876 def parse_eq(self) -> logic_pb2.Primitive: - span_start845 = self.span_start() + span_start879 = self.span_start() self.consume_literal("(") self.consume_literal("=") - _t1502 = self.parse_term() - term843 = _t1502 - _t1503 = self.parse_term() - term_3844 = _t1503 - self.consume_literal(")") - _t1504 = logic_pb2.RelTerm(term=term843) - _t1505 = logic_pb2.RelTerm(term=term_3844) - _t1506 = logic_pb2.Primitive(name="rel_primitive_eq", terms=[_t1504, _t1505]) - result846 = _t1506 - self.record_span(span_start845, "Primitive") - return result846 + _t1571 = self.parse_term() + term877 = _t1571 + _t1572 = self.parse_term() + term_3878 = _t1572 + self.consume_literal(")") + _t1573 = logic_pb2.RelTerm(term=term877) + _t1574 = logic_pb2.RelTerm(term=term_3878) + _t1575 = logic_pb2.Primitive(name="rel_primitive_eq", terms=[_t1573, _t1574]) + result880 = _t1575 + self.record_span(span_start879, "Primitive") + return result880 def parse_lt(self) -> logic_pb2.Primitive: - span_start849 = self.span_start() + span_start883 = self.span_start() self.consume_literal("(") self.consume_literal("<") - _t1507 = self.parse_term() - term847 = _t1507 - _t1508 = self.parse_term() - term_3848 = _t1508 - self.consume_literal(")") - _t1509 = logic_pb2.RelTerm(term=term847) - _t1510 = logic_pb2.RelTerm(term=term_3848) - _t1511 = logic_pb2.Primitive(name="rel_primitive_lt_monotype", terms=[_t1509, _t1510]) - result850 = _t1511 - self.record_span(span_start849, "Primitive") - return result850 + _t1576 = self.parse_term() + term881 = _t1576 + _t1577 = self.parse_term() + term_3882 = _t1577 + self.consume_literal(")") + _t1578 = logic_pb2.RelTerm(term=term881) + _t1579 = logic_pb2.RelTerm(term=term_3882) + _t1580 = logic_pb2.Primitive(name="rel_primitive_lt_monotype", terms=[_t1578, _t1579]) + result884 = _t1580 + self.record_span(span_start883, "Primitive") + return result884 def parse_lt_eq(self) -> logic_pb2.Primitive: - span_start853 = self.span_start() + span_start887 = self.span_start() self.consume_literal("(") self.consume_literal("<=") - _t1512 = self.parse_term() - term851 = _t1512 - _t1513 = self.parse_term() - term_3852 = _t1513 - self.consume_literal(")") - _t1514 = logic_pb2.RelTerm(term=term851) - _t1515 = logic_pb2.RelTerm(term=term_3852) - _t1516 = logic_pb2.Primitive(name="rel_primitive_lt_eq_monotype", terms=[_t1514, _t1515]) - result854 = _t1516 - self.record_span(span_start853, "Primitive") - return result854 + _t1581 = self.parse_term() + term885 = _t1581 + _t1582 = self.parse_term() + term_3886 = _t1582 + self.consume_literal(")") + _t1583 = logic_pb2.RelTerm(term=term885) + _t1584 = logic_pb2.RelTerm(term=term_3886) + _t1585 = logic_pb2.Primitive(name="rel_primitive_lt_eq_monotype", terms=[_t1583, _t1584]) + result888 = _t1585 + self.record_span(span_start887, "Primitive") + return result888 def parse_gt(self) -> logic_pb2.Primitive: - span_start857 = self.span_start() + span_start891 = self.span_start() self.consume_literal("(") self.consume_literal(">") - _t1517 = self.parse_term() - term855 = _t1517 - _t1518 = self.parse_term() - term_3856 = _t1518 - self.consume_literal(")") - _t1519 = logic_pb2.RelTerm(term=term855) - _t1520 = logic_pb2.RelTerm(term=term_3856) - _t1521 = logic_pb2.Primitive(name="rel_primitive_gt_monotype", terms=[_t1519, _t1520]) - result858 = _t1521 - self.record_span(span_start857, "Primitive") - return result858 + _t1586 = self.parse_term() + term889 = _t1586 + _t1587 = self.parse_term() + term_3890 = _t1587 + self.consume_literal(")") + _t1588 = logic_pb2.RelTerm(term=term889) + _t1589 = logic_pb2.RelTerm(term=term_3890) + _t1590 = logic_pb2.Primitive(name="rel_primitive_gt_monotype", terms=[_t1588, _t1589]) + result892 = _t1590 + self.record_span(span_start891, "Primitive") + return result892 def parse_gt_eq(self) -> logic_pb2.Primitive: - span_start861 = self.span_start() + span_start895 = self.span_start() self.consume_literal("(") self.consume_literal(">=") - _t1522 = self.parse_term() - term859 = _t1522 - _t1523 = self.parse_term() - term_3860 = _t1523 - self.consume_literal(")") - _t1524 = logic_pb2.RelTerm(term=term859) - _t1525 = logic_pb2.RelTerm(term=term_3860) - _t1526 = logic_pb2.Primitive(name="rel_primitive_gt_eq_monotype", terms=[_t1524, _t1525]) - result862 = _t1526 - self.record_span(span_start861, "Primitive") - return result862 + _t1591 = self.parse_term() + term893 = _t1591 + _t1592 = self.parse_term() + term_3894 = _t1592 + self.consume_literal(")") + _t1593 = logic_pb2.RelTerm(term=term893) + _t1594 = logic_pb2.RelTerm(term=term_3894) + _t1595 = logic_pb2.Primitive(name="rel_primitive_gt_eq_monotype", terms=[_t1593, _t1594]) + result896 = _t1595 + self.record_span(span_start895, "Primitive") + return result896 def parse_add(self) -> logic_pb2.Primitive: - span_start866 = self.span_start() + span_start900 = self.span_start() self.consume_literal("(") self.consume_literal("+") - _t1527 = self.parse_term() - term863 = _t1527 - _t1528 = self.parse_term() - term_3864 = _t1528 - _t1529 = self.parse_term() - term_4865 = _t1529 - self.consume_literal(")") - _t1530 = logic_pb2.RelTerm(term=term863) - _t1531 = logic_pb2.RelTerm(term=term_3864) - _t1532 = logic_pb2.RelTerm(term=term_4865) - _t1533 = logic_pb2.Primitive(name="rel_primitive_add_monotype", terms=[_t1530, _t1531, _t1532]) - result867 = _t1533 - self.record_span(span_start866, "Primitive") - return result867 + _t1596 = self.parse_term() + term897 = _t1596 + _t1597 = self.parse_term() + term_3898 = _t1597 + _t1598 = self.parse_term() + term_4899 = _t1598 + self.consume_literal(")") + _t1599 = logic_pb2.RelTerm(term=term897) + _t1600 = logic_pb2.RelTerm(term=term_3898) + _t1601 = logic_pb2.RelTerm(term=term_4899) + _t1602 = logic_pb2.Primitive(name="rel_primitive_add_monotype", terms=[_t1599, _t1600, _t1601]) + result901 = _t1602 + self.record_span(span_start900, "Primitive") + return result901 def parse_minus(self) -> logic_pb2.Primitive: - span_start871 = self.span_start() + span_start905 = self.span_start() self.consume_literal("(") self.consume_literal("-") - _t1534 = self.parse_term() - term868 = _t1534 - _t1535 = self.parse_term() - term_3869 = _t1535 - _t1536 = self.parse_term() - term_4870 = _t1536 - self.consume_literal(")") - _t1537 = logic_pb2.RelTerm(term=term868) - _t1538 = logic_pb2.RelTerm(term=term_3869) - _t1539 = logic_pb2.RelTerm(term=term_4870) - _t1540 = logic_pb2.Primitive(name="rel_primitive_subtract_monotype", terms=[_t1537, _t1538, _t1539]) - result872 = _t1540 - self.record_span(span_start871, "Primitive") - return result872 + _t1603 = self.parse_term() + term902 = _t1603 + _t1604 = self.parse_term() + term_3903 = _t1604 + _t1605 = self.parse_term() + term_4904 = _t1605 + self.consume_literal(")") + _t1606 = logic_pb2.RelTerm(term=term902) + _t1607 = logic_pb2.RelTerm(term=term_3903) + _t1608 = logic_pb2.RelTerm(term=term_4904) + _t1609 = logic_pb2.Primitive(name="rel_primitive_subtract_monotype", terms=[_t1606, _t1607, _t1608]) + result906 = _t1609 + self.record_span(span_start905, "Primitive") + return result906 def parse_multiply(self) -> logic_pb2.Primitive: - span_start876 = self.span_start() + span_start910 = self.span_start() self.consume_literal("(") self.consume_literal("*") - _t1541 = self.parse_term() - term873 = _t1541 - _t1542 = self.parse_term() - term_3874 = _t1542 - _t1543 = self.parse_term() - term_4875 = _t1543 - self.consume_literal(")") - _t1544 = logic_pb2.RelTerm(term=term873) - _t1545 = logic_pb2.RelTerm(term=term_3874) - _t1546 = logic_pb2.RelTerm(term=term_4875) - _t1547 = logic_pb2.Primitive(name="rel_primitive_multiply_monotype", terms=[_t1544, _t1545, _t1546]) - result877 = _t1547 - self.record_span(span_start876, "Primitive") - return result877 + _t1610 = self.parse_term() + term907 = _t1610 + _t1611 = self.parse_term() + term_3908 = _t1611 + _t1612 = self.parse_term() + term_4909 = _t1612 + self.consume_literal(")") + _t1613 = logic_pb2.RelTerm(term=term907) + _t1614 = logic_pb2.RelTerm(term=term_3908) + _t1615 = logic_pb2.RelTerm(term=term_4909) + _t1616 = logic_pb2.Primitive(name="rel_primitive_multiply_monotype", terms=[_t1613, _t1614, _t1615]) + result911 = _t1616 + self.record_span(span_start910, "Primitive") + return result911 def parse_divide(self) -> logic_pb2.Primitive: - span_start881 = self.span_start() + span_start915 = self.span_start() self.consume_literal("(") self.consume_literal("/") - _t1548 = self.parse_term() - term878 = _t1548 - _t1549 = self.parse_term() - term_3879 = _t1549 - _t1550 = self.parse_term() - term_4880 = _t1550 - self.consume_literal(")") - _t1551 = logic_pb2.RelTerm(term=term878) - _t1552 = logic_pb2.RelTerm(term=term_3879) - _t1553 = logic_pb2.RelTerm(term=term_4880) - _t1554 = logic_pb2.Primitive(name="rel_primitive_divide_monotype", terms=[_t1551, _t1552, _t1553]) - result882 = _t1554 - self.record_span(span_start881, "Primitive") - return result882 + _t1617 = self.parse_term() + term912 = _t1617 + _t1618 = self.parse_term() + term_3913 = _t1618 + _t1619 = self.parse_term() + term_4914 = _t1619 + self.consume_literal(")") + _t1620 = logic_pb2.RelTerm(term=term912) + _t1621 = logic_pb2.RelTerm(term=term_3913) + _t1622 = logic_pb2.RelTerm(term=term_4914) + _t1623 = logic_pb2.Primitive(name="rel_primitive_divide_monotype", terms=[_t1620, _t1621, _t1622]) + result916 = _t1623 + self.record_span(span_start915, "Primitive") + return result916 def parse_rel_term(self) -> logic_pb2.RelTerm: - span_start886 = self.span_start() + span_start920 = self.span_start() if self.match_lookahead_literal("true", 0): - _t1555 = 1 + _t1624 = 1 else: if self.match_lookahead_literal("missing", 0): - _t1556 = 1 + _t1625 = 1 else: if self.match_lookahead_literal("false", 0): - _t1557 = 1 + _t1626 = 1 else: if self.match_lookahead_literal("(", 0): - _t1558 = 1 + _t1627 = 1 else: if self.match_lookahead_literal("#", 0): - _t1559 = 0 + _t1628 = 0 else: if self.match_lookahead_terminal("UINT32", 0): - _t1560 = 1 + _t1629 = 1 else: if self.match_lookahead_terminal("UINT128", 0): - _t1561 = 1 + _t1630 = 1 else: if self.match_lookahead_terminal("SYMBOL", 0): - _t1562 = 1 + _t1631 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t1563 = 1 + _t1632 = 1 else: if self.match_lookahead_terminal("INT32", 0): - _t1564 = 1 + _t1633 = 1 else: if self.match_lookahead_terminal("INT128", 0): - _t1565 = 1 + _t1634 = 1 else: if self.match_lookahead_terminal("INT", 0): - _t1566 = 1 + _t1635 = 1 else: if self.match_lookahead_terminal("FLOAT32", 0): - _t1567 = 1 + _t1636 = 1 else: if self.match_lookahead_terminal("FLOAT", 0): - _t1568 = 1 + _t1637 = 1 else: if self.match_lookahead_terminal("DECIMAL", 0): - _t1569 = 1 + _t1638 = 1 else: - _t1569 = -1 - _t1568 = _t1569 - _t1567 = _t1568 - _t1566 = _t1567 - _t1565 = _t1566 - _t1564 = _t1565 - _t1563 = _t1564 - _t1562 = _t1563 - _t1561 = _t1562 - _t1560 = _t1561 - _t1559 = _t1560 - _t1558 = _t1559 - _t1557 = _t1558 - _t1556 = _t1557 - _t1555 = _t1556 - prediction883 = _t1555 - if prediction883 == 1: - _t1571 = self.parse_term() - term885 = _t1571 - _t1572 = logic_pb2.RelTerm(term=term885) - _t1570 = _t1572 - else: - if prediction883 == 0: - _t1574 = self.parse_specialized_value() - specialized_value884 = _t1574 - _t1575 = logic_pb2.RelTerm(specialized_value=specialized_value884) - _t1573 = _t1575 + _t1638 = -1 + _t1637 = _t1638 + _t1636 = _t1637 + _t1635 = _t1636 + _t1634 = _t1635 + _t1633 = _t1634 + _t1632 = _t1633 + _t1631 = _t1632 + _t1630 = _t1631 + _t1629 = _t1630 + _t1628 = _t1629 + _t1627 = _t1628 + _t1626 = _t1627 + _t1625 = _t1626 + _t1624 = _t1625 + prediction917 = _t1624 + if prediction917 == 1: + _t1640 = self.parse_term() + term919 = _t1640 + _t1641 = logic_pb2.RelTerm(term=term919) + _t1639 = _t1641 + else: + if prediction917 == 0: + _t1643 = self.parse_specialized_value() + specialized_value918 = _t1643 + _t1644 = logic_pb2.RelTerm(specialized_value=specialized_value918) + _t1642 = _t1644 else: raise ParseError("Unexpected token in rel_term" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1570 = _t1573 - result887 = _t1570 - self.record_span(span_start886, "RelTerm") - return result887 + _t1639 = _t1642 + result921 = _t1639 + self.record_span(span_start920, "RelTerm") + return result921 def parse_specialized_value(self) -> logic_pb2.Value: - span_start889 = self.span_start() + span_start923 = self.span_start() self.consume_literal("#") - _t1576 = self.parse_value() - value888 = _t1576 - result890 = value888 - self.record_span(span_start889, "Value") - return result890 + _t1645 = self.parse_value() + value922 = _t1645 + result924 = value922 + self.record_span(span_start923, "Value") + return result924 def parse_rel_atom(self) -> logic_pb2.RelAtom: - span_start896 = self.span_start() + span_start930 = self.span_start() self.consume_literal("(") self.consume_literal("relatom") - _t1577 = self.parse_name() - name891 = _t1577 - xs892 = [] - cond893 = ((((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - while cond893: - _t1578 = self.parse_rel_term() - item894 = _t1578 - xs892.append(item894) - cond893 = ((((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - rel_terms895 = xs892 - self.consume_literal(")") - _t1579 = logic_pb2.RelAtom(name=name891, terms=rel_terms895) - result897 = _t1579 - self.record_span(span_start896, "RelAtom") - return result897 + _t1646 = self.parse_name() + name925 = _t1646 + xs926 = [] + cond927 = ((((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + while cond927: + _t1647 = self.parse_rel_term() + item928 = _t1647 + xs926.append(item928) + cond927 = ((((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("SYMBOL", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + rel_terms929 = xs926 + self.consume_literal(")") + _t1648 = logic_pb2.RelAtom(name=name925, terms=rel_terms929) + result931 = _t1648 + self.record_span(span_start930, "RelAtom") + return result931 def parse_cast(self) -> logic_pb2.Cast: - span_start900 = self.span_start() + span_start934 = self.span_start() self.consume_literal("(") self.consume_literal("cast") - _t1580 = self.parse_term() - term898 = _t1580 - _t1581 = self.parse_term() - term_3899 = _t1581 + _t1649 = self.parse_term() + term932 = _t1649 + _t1650 = self.parse_term() + term_3933 = _t1650 self.consume_literal(")") - _t1582 = logic_pb2.Cast(input=term898, result=term_3899) - result901 = _t1582 - self.record_span(span_start900, "Cast") - return result901 + _t1651 = logic_pb2.Cast(input=term932, result=term_3933) + result935 = _t1651 + self.record_span(span_start934, "Cast") + return result935 def parse_attrs(self) -> Sequence[logic_pb2.Attribute]: self.consume_literal("(") self.consume_literal("attrs") - xs902 = [] - cond903 = self.match_lookahead_literal("(", 0) - while cond903: - _t1583 = self.parse_attribute() - item904 = _t1583 - xs902.append(item904) - cond903 = self.match_lookahead_literal("(", 0) - attributes905 = xs902 + xs936 = [] + cond937 = self.match_lookahead_literal("(", 0) + while cond937: + _t1652 = self.parse_attribute() + item938 = _t1652 + xs936.append(item938) + cond937 = self.match_lookahead_literal("(", 0) + attributes939 = xs936 self.consume_literal(")") - return attributes905 + return attributes939 def parse_attribute(self) -> logic_pb2.Attribute: - span_start911 = self.span_start() + span_start945 = self.span_start() self.consume_literal("(") self.consume_literal("attribute") - _t1584 = self.parse_name() - name906 = _t1584 - xs907 = [] - cond908 = ((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - while cond908: - _t1585 = self.parse_value() - item909 = _t1585 - xs907.append(item909) - cond908 = ((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) - values910 = xs907 - self.consume_literal(")") - _t1586 = logic_pb2.Attribute(name=name906, args=values910) - result912 = _t1586 - self.record_span(span_start911, "Attribute") - return result912 + _t1653 = self.parse_name() + name940 = _t1653 + xs941 = [] + cond942 = ((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + while cond942: + _t1654 = self.parse_value() + item943 = _t1654 + xs941.append(item943) + cond942 = ((((((((((((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("FLOAT32", 0)) or self.match_lookahead_terminal("INT", 0)) or self.match_lookahead_terminal("INT128", 0)) or self.match_lookahead_terminal("INT32", 0)) or self.match_lookahead_terminal("STRING", 0)) or self.match_lookahead_terminal("UINT128", 0)) or self.match_lookahead_terminal("UINT32", 0)) + values944 = xs941 + self.consume_literal(")") + _t1655 = logic_pb2.Attribute(name=name940, args=values944) + result946 = _t1655 + self.record_span(span_start945, "Attribute") + return result946 def parse_algorithm(self) -> logic_pb2.Algorithm: - span_start918 = self.span_start() + span_start952 = self.span_start() self.consume_literal("(") self.consume_literal("algorithm") - xs913 = [] - cond914 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - while cond914: - _t1587 = self.parse_relation_id() - item915 = _t1587 - xs913.append(item915) - cond914 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - relation_ids916 = xs913 - _t1588 = self.parse_script() - script917 = _t1588 - self.consume_literal(")") - _t1589 = logic_pb2.Algorithm(body=script917) - getattr(_t1589, 'global').extend(relation_ids916) - result919 = _t1589 - self.record_span(span_start918, "Algorithm") - return result919 + xs947 = [] + cond948 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + while cond948: + _t1656 = self.parse_relation_id() + item949 = _t1656 + xs947.append(item949) + cond948 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + relation_ids950 = xs947 + _t1657 = self.parse_script() + script951 = _t1657 + self.consume_literal(")") + _t1658 = logic_pb2.Algorithm(body=script951) + getattr(_t1658, 'global').extend(relation_ids950) + result953 = _t1658 + self.record_span(span_start952, "Algorithm") + return result953 def parse_script(self) -> logic_pb2.Script: - span_start924 = self.span_start() + span_start958 = self.span_start() self.consume_literal("(") self.consume_literal("script") - xs920 = [] - cond921 = self.match_lookahead_literal("(", 0) - while cond921: - _t1590 = self.parse_construct() - item922 = _t1590 - xs920.append(item922) - cond921 = self.match_lookahead_literal("(", 0) - constructs923 = xs920 - self.consume_literal(")") - _t1591 = logic_pb2.Script(constructs=constructs923) - result925 = _t1591 - self.record_span(span_start924, "Script") - return result925 + xs954 = [] + cond955 = self.match_lookahead_literal("(", 0) + while cond955: + _t1659 = self.parse_construct() + item956 = _t1659 + xs954.append(item956) + cond955 = self.match_lookahead_literal("(", 0) + constructs957 = xs954 + self.consume_literal(")") + _t1660 = logic_pb2.Script(constructs=constructs957) + result959 = _t1660 + self.record_span(span_start958, "Script") + return result959 def parse_construct(self) -> logic_pb2.Construct: - span_start929 = self.span_start() + span_start963 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("upsert", 1): - _t1593 = 1 + _t1662 = 1 else: if self.match_lookahead_literal("monus", 1): - _t1594 = 1 + _t1663 = 1 else: if self.match_lookahead_literal("monoid", 1): - _t1595 = 1 + _t1664 = 1 else: if self.match_lookahead_literal("loop", 1): - _t1596 = 0 + _t1665 = 0 else: if self.match_lookahead_literal("break", 1): - _t1597 = 1 + _t1666 = 1 else: if self.match_lookahead_literal("assign", 1): - _t1598 = 1 + _t1667 = 1 else: - _t1598 = -1 - _t1597 = _t1598 - _t1596 = _t1597 - _t1595 = _t1596 - _t1594 = _t1595 - _t1593 = _t1594 - _t1592 = _t1593 - else: - _t1592 = -1 - prediction926 = _t1592 - if prediction926 == 1: - _t1600 = self.parse_instruction() - instruction928 = _t1600 - _t1601 = logic_pb2.Construct(instruction=instruction928) - _t1599 = _t1601 - else: - if prediction926 == 0: - _t1603 = self.parse_loop() - loop927 = _t1603 - _t1604 = logic_pb2.Construct(loop=loop927) - _t1602 = _t1604 + _t1667 = -1 + _t1666 = _t1667 + _t1665 = _t1666 + _t1664 = _t1665 + _t1663 = _t1664 + _t1662 = _t1663 + _t1661 = _t1662 + else: + _t1661 = -1 + prediction960 = _t1661 + if prediction960 == 1: + _t1669 = self.parse_instruction() + instruction962 = _t1669 + _t1670 = logic_pb2.Construct(instruction=instruction962) + _t1668 = _t1670 + else: + if prediction960 == 0: + _t1672 = self.parse_loop() + loop961 = _t1672 + _t1673 = logic_pb2.Construct(loop=loop961) + _t1671 = _t1673 else: raise ParseError("Unexpected token in construct" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1599 = _t1602 - result930 = _t1599 - self.record_span(span_start929, "Construct") - return result930 + _t1668 = _t1671 + result964 = _t1668 + self.record_span(span_start963, "Construct") + return result964 def parse_loop(self) -> logic_pb2.Loop: - span_start933 = self.span_start() + span_start967 = self.span_start() self.consume_literal("(") self.consume_literal("loop") - _t1605 = self.parse_init() - init931 = _t1605 - _t1606 = self.parse_script() - script932 = _t1606 + _t1674 = self.parse_init() + init965 = _t1674 + _t1675 = self.parse_script() + script966 = _t1675 self.consume_literal(")") - _t1607 = logic_pb2.Loop(init=init931, body=script932) - result934 = _t1607 - self.record_span(span_start933, "Loop") - return result934 + _t1676 = logic_pb2.Loop(init=init965, body=script966) + result968 = _t1676 + self.record_span(span_start967, "Loop") + return result968 def parse_init(self) -> Sequence[logic_pb2.Instruction]: self.consume_literal("(") self.consume_literal("init") - xs935 = [] - cond936 = self.match_lookahead_literal("(", 0) - while cond936: - _t1608 = self.parse_instruction() - item937 = _t1608 - xs935.append(item937) - cond936 = self.match_lookahead_literal("(", 0) - instructions938 = xs935 + xs969 = [] + cond970 = self.match_lookahead_literal("(", 0) + while cond970: + _t1677 = self.parse_instruction() + item971 = _t1677 + xs969.append(item971) + cond970 = self.match_lookahead_literal("(", 0) + instructions972 = xs969 self.consume_literal(")") - return instructions938 + return instructions972 def parse_instruction(self) -> logic_pb2.Instruction: - span_start945 = self.span_start() + span_start979 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("upsert", 1): - _t1610 = 1 + _t1679 = 1 else: if self.match_lookahead_literal("monus", 1): - _t1611 = 4 + _t1680 = 4 else: if self.match_lookahead_literal("monoid", 1): - _t1612 = 3 + _t1681 = 3 else: if self.match_lookahead_literal("break", 1): - _t1613 = 2 + _t1682 = 2 else: if self.match_lookahead_literal("assign", 1): - _t1614 = 0 + _t1683 = 0 else: - _t1614 = -1 - _t1613 = _t1614 - _t1612 = _t1613 - _t1611 = _t1612 - _t1610 = _t1611 - _t1609 = _t1610 - else: - _t1609 = -1 - prediction939 = _t1609 - if prediction939 == 4: - _t1616 = self.parse_monus_def() - monus_def944 = _t1616 - _t1617 = logic_pb2.Instruction(monus_def=monus_def944) - _t1615 = _t1617 - else: - if prediction939 == 3: - _t1619 = self.parse_monoid_def() - monoid_def943 = _t1619 - _t1620 = logic_pb2.Instruction(monoid_def=monoid_def943) - _t1618 = _t1620 + _t1683 = -1 + _t1682 = _t1683 + _t1681 = _t1682 + _t1680 = _t1681 + _t1679 = _t1680 + _t1678 = _t1679 + else: + _t1678 = -1 + prediction973 = _t1678 + if prediction973 == 4: + _t1685 = self.parse_monus_def() + monus_def978 = _t1685 + _t1686 = logic_pb2.Instruction(monus_def=monus_def978) + _t1684 = _t1686 + else: + if prediction973 == 3: + _t1688 = self.parse_monoid_def() + monoid_def977 = _t1688 + _t1689 = logic_pb2.Instruction(monoid_def=monoid_def977) + _t1687 = _t1689 else: - if prediction939 == 2: - _t1622 = self.parse_break() - break942 = _t1622 - _t1623 = logic_pb2.Instruction() - getattr(_t1623, 'break').CopyFrom(break942) - _t1621 = _t1623 + if prediction973 == 2: + _t1691 = self.parse_break() + break976 = _t1691 + _t1692 = logic_pb2.Instruction() + getattr(_t1692, 'break').CopyFrom(break976) + _t1690 = _t1692 else: - if prediction939 == 1: - _t1625 = self.parse_upsert() - upsert941 = _t1625 - _t1626 = logic_pb2.Instruction(upsert=upsert941) - _t1624 = _t1626 + if prediction973 == 1: + _t1694 = self.parse_upsert() + upsert975 = _t1694 + _t1695 = logic_pb2.Instruction(upsert=upsert975) + _t1693 = _t1695 else: - if prediction939 == 0: - _t1628 = self.parse_assign() - assign940 = _t1628 - _t1629 = logic_pb2.Instruction(assign=assign940) - _t1627 = _t1629 + if prediction973 == 0: + _t1697 = self.parse_assign() + assign974 = _t1697 + _t1698 = logic_pb2.Instruction(assign=assign974) + _t1696 = _t1698 else: raise ParseError("Unexpected token in instruction" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1624 = _t1627 - _t1621 = _t1624 - _t1618 = _t1621 - _t1615 = _t1618 - result946 = _t1615 - self.record_span(span_start945, "Instruction") - return result946 + _t1693 = _t1696 + _t1690 = _t1693 + _t1687 = _t1690 + _t1684 = _t1687 + result980 = _t1684 + self.record_span(span_start979, "Instruction") + return result980 def parse_assign(self) -> logic_pb2.Assign: - span_start950 = self.span_start() + span_start984 = self.span_start() self.consume_literal("(") self.consume_literal("assign") - _t1630 = self.parse_relation_id() - relation_id947 = _t1630 - _t1631 = self.parse_abstraction() - abstraction948 = _t1631 + _t1699 = self.parse_relation_id() + relation_id981 = _t1699 + _t1700 = self.parse_abstraction() + abstraction982 = _t1700 if self.match_lookahead_literal("(", 0): - _t1633 = self.parse_attrs() - _t1632 = _t1633 + _t1702 = self.parse_attrs() + _t1701 = _t1702 else: - _t1632 = None - attrs949 = _t1632 + _t1701 = None + attrs983 = _t1701 self.consume_literal(")") - _t1634 = logic_pb2.Assign(name=relation_id947, body=abstraction948, attrs=(attrs949 if attrs949 is not None else [])) - result951 = _t1634 - self.record_span(span_start950, "Assign") - return result951 + _t1703 = logic_pb2.Assign(name=relation_id981, body=abstraction982, attrs=(attrs983 if attrs983 is not None else [])) + result985 = _t1703 + self.record_span(span_start984, "Assign") + return result985 def parse_upsert(self) -> logic_pb2.Upsert: - span_start955 = self.span_start() + span_start989 = self.span_start() self.consume_literal("(") self.consume_literal("upsert") - _t1635 = self.parse_relation_id() - relation_id952 = _t1635 - _t1636 = self.parse_abstraction_with_arity() - abstraction_with_arity953 = _t1636 + _t1704 = self.parse_relation_id() + relation_id986 = _t1704 + _t1705 = self.parse_abstraction_with_arity() + abstraction_with_arity987 = _t1705 if self.match_lookahead_literal("(", 0): - _t1638 = self.parse_attrs() - _t1637 = _t1638 + _t1707 = self.parse_attrs() + _t1706 = _t1707 else: - _t1637 = None - attrs954 = _t1637 + _t1706 = None + attrs988 = _t1706 self.consume_literal(")") - _t1639 = logic_pb2.Upsert(name=relation_id952, body=abstraction_with_arity953[0], attrs=(attrs954 if attrs954 is not None else []), value_arity=abstraction_with_arity953[1]) - result956 = _t1639 - self.record_span(span_start955, "Upsert") - return result956 + _t1708 = logic_pb2.Upsert(name=relation_id986, body=abstraction_with_arity987[0], attrs=(attrs988 if attrs988 is not None else []), value_arity=abstraction_with_arity987[1]) + result990 = _t1708 + self.record_span(span_start989, "Upsert") + return result990 def parse_abstraction_with_arity(self) -> tuple[logic_pb2.Abstraction, int]: self.consume_literal("(") - _t1640 = self.parse_bindings() - bindings957 = _t1640 - _t1641 = self.parse_formula() - formula958 = _t1641 + _t1709 = self.parse_bindings() + bindings991 = _t1709 + _t1710 = self.parse_formula() + formula992 = _t1710 self.consume_literal(")") - _t1642 = logic_pb2.Abstraction(vars=(list(bindings957[0]) + list(bindings957[1] if bindings957[1] is not None else [])), value=formula958) - return (_t1642, len(bindings957[1]),) + _t1711 = logic_pb2.Abstraction(vars=(list(bindings991[0]) + list(bindings991[1] if bindings991[1] is not None else [])), value=formula992) + return (_t1711, len(bindings991[1]),) def parse_break(self) -> logic_pb2.Break: - span_start962 = self.span_start() + span_start996 = self.span_start() self.consume_literal("(") self.consume_literal("break") - _t1643 = self.parse_relation_id() - relation_id959 = _t1643 - _t1644 = self.parse_abstraction() - abstraction960 = _t1644 + _t1712 = self.parse_relation_id() + relation_id993 = _t1712 + _t1713 = self.parse_abstraction() + abstraction994 = _t1713 if self.match_lookahead_literal("(", 0): - _t1646 = self.parse_attrs() - _t1645 = _t1646 + _t1715 = self.parse_attrs() + _t1714 = _t1715 else: - _t1645 = None - attrs961 = _t1645 + _t1714 = None + attrs995 = _t1714 self.consume_literal(")") - _t1647 = logic_pb2.Break(name=relation_id959, body=abstraction960, attrs=(attrs961 if attrs961 is not None else [])) - result963 = _t1647 - self.record_span(span_start962, "Break") - return result963 + _t1716 = logic_pb2.Break(name=relation_id993, body=abstraction994, attrs=(attrs995 if attrs995 is not None else [])) + result997 = _t1716 + self.record_span(span_start996, "Break") + return result997 def parse_monoid_def(self) -> logic_pb2.MonoidDef: - span_start968 = self.span_start() + span_start1002 = self.span_start() self.consume_literal("(") self.consume_literal("monoid") - _t1648 = self.parse_monoid() - monoid964 = _t1648 - _t1649 = self.parse_relation_id() - relation_id965 = _t1649 - _t1650 = self.parse_abstraction_with_arity() - abstraction_with_arity966 = _t1650 + _t1717 = self.parse_monoid() + monoid998 = _t1717 + _t1718 = self.parse_relation_id() + relation_id999 = _t1718 + _t1719 = self.parse_abstraction_with_arity() + abstraction_with_arity1000 = _t1719 if self.match_lookahead_literal("(", 0): - _t1652 = self.parse_attrs() - _t1651 = _t1652 + _t1721 = self.parse_attrs() + _t1720 = _t1721 else: - _t1651 = None - attrs967 = _t1651 + _t1720 = None + attrs1001 = _t1720 self.consume_literal(")") - _t1653 = logic_pb2.MonoidDef(monoid=monoid964, name=relation_id965, body=abstraction_with_arity966[0], attrs=(attrs967 if attrs967 is not None else []), value_arity=abstraction_with_arity966[1]) - result969 = _t1653 - self.record_span(span_start968, "MonoidDef") - return result969 + _t1722 = logic_pb2.MonoidDef(monoid=monoid998, name=relation_id999, body=abstraction_with_arity1000[0], attrs=(attrs1001 if attrs1001 is not None else []), value_arity=abstraction_with_arity1000[1]) + result1003 = _t1722 + self.record_span(span_start1002, "MonoidDef") + return result1003 def parse_monoid(self) -> logic_pb2.Monoid: - span_start975 = self.span_start() + span_start1009 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("sum", 1): - _t1655 = 3 + _t1724 = 3 else: if self.match_lookahead_literal("or", 1): - _t1656 = 0 + _t1725 = 0 else: if self.match_lookahead_literal("min", 1): - _t1657 = 1 + _t1726 = 1 else: if self.match_lookahead_literal("max", 1): - _t1658 = 2 + _t1727 = 2 else: - _t1658 = -1 - _t1657 = _t1658 - _t1656 = _t1657 - _t1655 = _t1656 - _t1654 = _t1655 - else: - _t1654 = -1 - prediction970 = _t1654 - if prediction970 == 3: - _t1660 = self.parse_sum_monoid() - sum_monoid974 = _t1660 - _t1661 = logic_pb2.Monoid(sum_monoid=sum_monoid974) - _t1659 = _t1661 - else: - if prediction970 == 2: - _t1663 = self.parse_max_monoid() - max_monoid973 = _t1663 - _t1664 = logic_pb2.Monoid(max_monoid=max_monoid973) - _t1662 = _t1664 + _t1727 = -1 + _t1726 = _t1727 + _t1725 = _t1726 + _t1724 = _t1725 + _t1723 = _t1724 + else: + _t1723 = -1 + prediction1004 = _t1723 + if prediction1004 == 3: + _t1729 = self.parse_sum_monoid() + sum_monoid1008 = _t1729 + _t1730 = logic_pb2.Monoid(sum_monoid=sum_monoid1008) + _t1728 = _t1730 + else: + if prediction1004 == 2: + _t1732 = self.parse_max_monoid() + max_monoid1007 = _t1732 + _t1733 = logic_pb2.Monoid(max_monoid=max_monoid1007) + _t1731 = _t1733 else: - if prediction970 == 1: - _t1666 = self.parse_min_monoid() - min_monoid972 = _t1666 - _t1667 = logic_pb2.Monoid(min_monoid=min_monoid972) - _t1665 = _t1667 + if prediction1004 == 1: + _t1735 = self.parse_min_monoid() + min_monoid1006 = _t1735 + _t1736 = logic_pb2.Monoid(min_monoid=min_monoid1006) + _t1734 = _t1736 else: - if prediction970 == 0: - _t1669 = self.parse_or_monoid() - or_monoid971 = _t1669 - _t1670 = logic_pb2.Monoid(or_monoid=or_monoid971) - _t1668 = _t1670 + if prediction1004 == 0: + _t1738 = self.parse_or_monoid() + or_monoid1005 = _t1738 + _t1739 = logic_pb2.Monoid(or_monoid=or_monoid1005) + _t1737 = _t1739 else: raise ParseError("Unexpected token in monoid" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1665 = _t1668 - _t1662 = _t1665 - _t1659 = _t1662 - result976 = _t1659 - self.record_span(span_start975, "Monoid") - return result976 + _t1734 = _t1737 + _t1731 = _t1734 + _t1728 = _t1731 + result1010 = _t1728 + self.record_span(span_start1009, "Monoid") + return result1010 def parse_or_monoid(self) -> logic_pb2.OrMonoid: - span_start977 = self.span_start() + span_start1011 = self.span_start() self.consume_literal("(") self.consume_literal("or") self.consume_literal(")") - _t1671 = logic_pb2.OrMonoid() - result978 = _t1671 - self.record_span(span_start977, "OrMonoid") - return result978 + _t1740 = logic_pb2.OrMonoid() + result1012 = _t1740 + self.record_span(span_start1011, "OrMonoid") + return result1012 def parse_min_monoid(self) -> logic_pb2.MinMonoid: - span_start980 = self.span_start() + span_start1014 = self.span_start() self.consume_literal("(") self.consume_literal("min") - _t1672 = self.parse_type() - type979 = _t1672 + _t1741 = self.parse_type() + type1013 = _t1741 self.consume_literal(")") - _t1673 = logic_pb2.MinMonoid(type=type979) - result981 = _t1673 - self.record_span(span_start980, "MinMonoid") - return result981 + _t1742 = logic_pb2.MinMonoid(type=type1013) + result1015 = _t1742 + self.record_span(span_start1014, "MinMonoid") + return result1015 def parse_max_monoid(self) -> logic_pb2.MaxMonoid: - span_start983 = self.span_start() + span_start1017 = self.span_start() self.consume_literal("(") self.consume_literal("max") - _t1674 = self.parse_type() - type982 = _t1674 + _t1743 = self.parse_type() + type1016 = _t1743 self.consume_literal(")") - _t1675 = logic_pb2.MaxMonoid(type=type982) - result984 = _t1675 - self.record_span(span_start983, "MaxMonoid") - return result984 + _t1744 = logic_pb2.MaxMonoid(type=type1016) + result1018 = _t1744 + self.record_span(span_start1017, "MaxMonoid") + return result1018 def parse_sum_monoid(self) -> logic_pb2.SumMonoid: - span_start986 = self.span_start() + span_start1020 = self.span_start() self.consume_literal("(") self.consume_literal("sum") - _t1676 = self.parse_type() - type985 = _t1676 + _t1745 = self.parse_type() + type1019 = _t1745 self.consume_literal(")") - _t1677 = logic_pb2.SumMonoid(type=type985) - result987 = _t1677 - self.record_span(span_start986, "SumMonoid") - return result987 + _t1746 = logic_pb2.SumMonoid(type=type1019) + result1021 = _t1746 + self.record_span(span_start1020, "SumMonoid") + return result1021 def parse_monus_def(self) -> logic_pb2.MonusDef: - span_start992 = self.span_start() + span_start1026 = self.span_start() self.consume_literal("(") self.consume_literal("monus") - _t1678 = self.parse_monoid() - monoid988 = _t1678 - _t1679 = self.parse_relation_id() - relation_id989 = _t1679 - _t1680 = self.parse_abstraction_with_arity() - abstraction_with_arity990 = _t1680 + _t1747 = self.parse_monoid() + monoid1022 = _t1747 + _t1748 = self.parse_relation_id() + relation_id1023 = _t1748 + _t1749 = self.parse_abstraction_with_arity() + abstraction_with_arity1024 = _t1749 if self.match_lookahead_literal("(", 0): - _t1682 = self.parse_attrs() - _t1681 = _t1682 + _t1751 = self.parse_attrs() + _t1750 = _t1751 else: - _t1681 = None - attrs991 = _t1681 + _t1750 = None + attrs1025 = _t1750 self.consume_literal(")") - _t1683 = logic_pb2.MonusDef(monoid=monoid988, name=relation_id989, body=abstraction_with_arity990[0], attrs=(attrs991 if attrs991 is not None else []), value_arity=abstraction_with_arity990[1]) - result993 = _t1683 - self.record_span(span_start992, "MonusDef") - return result993 + _t1752 = logic_pb2.MonusDef(monoid=monoid1022, name=relation_id1023, body=abstraction_with_arity1024[0], attrs=(attrs1025 if attrs1025 is not None else []), value_arity=abstraction_with_arity1024[1]) + result1027 = _t1752 + self.record_span(span_start1026, "MonusDef") + return result1027 def parse_constraint(self) -> logic_pb2.Constraint: - span_start998 = self.span_start() + span_start1032 = self.span_start() self.consume_literal("(") self.consume_literal("functional_dependency") - _t1684 = self.parse_relation_id() - relation_id994 = _t1684 - _t1685 = self.parse_abstraction() - abstraction995 = _t1685 - _t1686 = self.parse_functional_dependency_keys() - functional_dependency_keys996 = _t1686 - _t1687 = self.parse_functional_dependency_values() - functional_dependency_values997 = _t1687 - self.consume_literal(")") - _t1688 = logic_pb2.FunctionalDependency(guard=abstraction995, keys=functional_dependency_keys996, values=functional_dependency_values997) - _t1689 = logic_pb2.Constraint(name=relation_id994, functional_dependency=_t1688) - result999 = _t1689 - self.record_span(span_start998, "Constraint") - return result999 + _t1753 = self.parse_relation_id() + relation_id1028 = _t1753 + _t1754 = self.parse_abstraction() + abstraction1029 = _t1754 + _t1755 = self.parse_functional_dependency_keys() + functional_dependency_keys1030 = _t1755 + _t1756 = self.parse_functional_dependency_values() + functional_dependency_values1031 = _t1756 + self.consume_literal(")") + _t1757 = logic_pb2.FunctionalDependency(guard=abstraction1029, keys=functional_dependency_keys1030, values=functional_dependency_values1031) + _t1758 = logic_pb2.Constraint(name=relation_id1028, functional_dependency=_t1757) + result1033 = _t1758 + self.record_span(span_start1032, "Constraint") + return result1033 def parse_functional_dependency_keys(self) -> Sequence[logic_pb2.Var]: self.consume_literal("(") self.consume_literal("keys") - xs1000 = [] - cond1001 = self.match_lookahead_terminal("SYMBOL", 0) - while cond1001: - _t1690 = self.parse_var() - item1002 = _t1690 - xs1000.append(item1002) - cond1001 = self.match_lookahead_terminal("SYMBOL", 0) - vars1003 = xs1000 + xs1034 = [] + cond1035 = self.match_lookahead_terminal("SYMBOL", 0) + while cond1035: + _t1759 = self.parse_var() + item1036 = _t1759 + xs1034.append(item1036) + cond1035 = self.match_lookahead_terminal("SYMBOL", 0) + vars1037 = xs1034 self.consume_literal(")") - return vars1003 + return vars1037 def parse_functional_dependency_values(self) -> Sequence[logic_pb2.Var]: self.consume_literal("(") self.consume_literal("values") - xs1004 = [] - cond1005 = self.match_lookahead_terminal("SYMBOL", 0) - while cond1005: - _t1691 = self.parse_var() - item1006 = _t1691 - xs1004.append(item1006) - cond1005 = self.match_lookahead_terminal("SYMBOL", 0) - vars1007 = xs1004 + xs1038 = [] + cond1039 = self.match_lookahead_terminal("SYMBOL", 0) + while cond1039: + _t1760 = self.parse_var() + item1040 = _t1760 + xs1038.append(item1040) + cond1039 = self.match_lookahead_terminal("SYMBOL", 0) + vars1041 = xs1038 self.consume_literal(")") - return vars1007 + return vars1041 def parse_data(self) -> logic_pb2.Data: - span_start1012 = self.span_start() + span_start1047 = self.span_start() if self.match_lookahead_literal("(", 0): - if self.match_lookahead_literal("edb", 1): - _t1693 = 0 + if self.match_lookahead_literal("iceberg_data", 1): + _t1762 = 3 else: - if self.match_lookahead_literal("csv_data", 1): - _t1694 = 2 + if self.match_lookahead_literal("edb", 1): + _t1763 = 0 else: - if self.match_lookahead_literal("betree_relation", 1): - _t1695 = 1 + if self.match_lookahead_literal("csv_data", 1): + _t1764 = 2 else: - _t1695 = -1 - _t1694 = _t1695 - _t1693 = _t1694 - _t1692 = _t1693 - else: - _t1692 = -1 - prediction1008 = _t1692 - if prediction1008 == 2: - _t1697 = self.parse_csv_data() - csv_data1011 = _t1697 - _t1698 = logic_pb2.Data(csv_data=csv_data1011) - _t1696 = _t1698 - else: - if prediction1008 == 1: - _t1700 = self.parse_betree_relation() - betree_relation1010 = _t1700 - _t1701 = logic_pb2.Data(betree_relation=betree_relation1010) - _t1699 = _t1701 + if self.match_lookahead_literal("betree_relation", 1): + _t1765 = 1 + else: + _t1765 = -1 + _t1764 = _t1765 + _t1763 = _t1764 + _t1762 = _t1763 + _t1761 = _t1762 + else: + _t1761 = -1 + prediction1042 = _t1761 + if prediction1042 == 3: + _t1767 = self.parse_iceberg_data() + iceberg_data1046 = _t1767 + _t1768 = logic_pb2.Data(iceberg_data=iceberg_data1046) + _t1766 = _t1768 + else: + if prediction1042 == 2: + _t1770 = self.parse_csv_data() + csv_data1045 = _t1770 + _t1771 = logic_pb2.Data(csv_data=csv_data1045) + _t1769 = _t1771 else: - if prediction1008 == 0: - _t1703 = self.parse_edb() - edb1009 = _t1703 - _t1704 = logic_pb2.Data(edb=edb1009) - _t1702 = _t1704 + if prediction1042 == 1: + _t1773 = self.parse_betree_relation() + betree_relation1044 = _t1773 + _t1774 = logic_pb2.Data(betree_relation=betree_relation1044) + _t1772 = _t1774 else: - raise ParseError("Unexpected token in data" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1699 = _t1702 - _t1696 = _t1699 - result1013 = _t1696 - self.record_span(span_start1012, "Data") - return result1013 + if prediction1042 == 0: + _t1776 = self.parse_edb() + edb1043 = _t1776 + _t1777 = logic_pb2.Data(edb=edb1043) + _t1775 = _t1777 + else: + raise ParseError("Unexpected token in data" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") + _t1772 = _t1775 + _t1769 = _t1772 + _t1766 = _t1769 + result1048 = _t1766 + self.record_span(span_start1047, "Data") + return result1048 def parse_edb(self) -> logic_pb2.EDB: - span_start1017 = self.span_start() + span_start1052 = self.span_start() self.consume_literal("(") self.consume_literal("edb") - _t1705 = self.parse_relation_id() - relation_id1014 = _t1705 - _t1706 = self.parse_edb_path() - edb_path1015 = _t1706 - _t1707 = self.parse_edb_types() - edb_types1016 = _t1707 - self.consume_literal(")") - _t1708 = logic_pb2.EDB(target_id=relation_id1014, path=edb_path1015, types=edb_types1016) - result1018 = _t1708 - self.record_span(span_start1017, "EDB") - return result1018 + _t1778 = self.parse_relation_id() + relation_id1049 = _t1778 + _t1779 = self.parse_edb_path() + edb_path1050 = _t1779 + _t1780 = self.parse_edb_types() + edb_types1051 = _t1780 + self.consume_literal(")") + _t1781 = logic_pb2.EDB(target_id=relation_id1049, path=edb_path1050, types=edb_types1051) + result1053 = _t1781 + self.record_span(span_start1052, "EDB") + return result1053 def parse_edb_path(self) -> Sequence[str]: self.consume_literal("[") - xs1019 = [] - cond1020 = self.match_lookahead_terminal("STRING", 0) - while cond1020: - item1021 = self.consume_terminal("STRING") - xs1019.append(item1021) - cond1020 = self.match_lookahead_terminal("STRING", 0) - strings1022 = xs1019 + xs1054 = [] + cond1055 = self.match_lookahead_terminal("STRING", 0) + while cond1055: + item1056 = self.consume_terminal("STRING") + xs1054.append(item1056) + cond1055 = self.match_lookahead_terminal("STRING", 0) + strings1057 = xs1054 self.consume_literal("]") - return strings1022 + return strings1057 def parse_edb_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("[") - xs1023 = [] - cond1024 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - while cond1024: - _t1709 = self.parse_type() - item1025 = _t1709 - xs1023.append(item1025) - cond1024 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - types1026 = xs1023 + xs1058 = [] + cond1059 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + while cond1059: + _t1782 = self.parse_type() + item1060 = _t1782 + xs1058.append(item1060) + cond1059 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + types1061 = xs1058 self.consume_literal("]") - return types1026 + return types1061 def parse_betree_relation(self) -> logic_pb2.BeTreeRelation: - span_start1029 = self.span_start() + span_start1064 = self.span_start() self.consume_literal("(") self.consume_literal("betree_relation") - _t1710 = self.parse_relation_id() - relation_id1027 = _t1710 - _t1711 = self.parse_betree_info() - betree_info1028 = _t1711 + _t1783 = self.parse_relation_id() + relation_id1062 = _t1783 + _t1784 = self.parse_betree_info() + betree_info1063 = _t1784 self.consume_literal(")") - _t1712 = logic_pb2.BeTreeRelation(name=relation_id1027, relation_info=betree_info1028) - result1030 = _t1712 - self.record_span(span_start1029, "BeTreeRelation") - return result1030 + _t1785 = logic_pb2.BeTreeRelation(name=relation_id1062, relation_info=betree_info1063) + result1065 = _t1785 + self.record_span(span_start1064, "BeTreeRelation") + return result1065 def parse_betree_info(self) -> logic_pb2.BeTreeInfo: - span_start1034 = self.span_start() + span_start1069 = self.span_start() self.consume_literal("(") self.consume_literal("betree_info") - _t1713 = self.parse_betree_info_key_types() - betree_info_key_types1031 = _t1713 - _t1714 = self.parse_betree_info_value_types() - betree_info_value_types1032 = _t1714 - _t1715 = self.parse_config_dict() - config_dict1033 = _t1715 - self.consume_literal(")") - _t1716 = self.construct_betree_info(betree_info_key_types1031, betree_info_value_types1032, config_dict1033) - result1035 = _t1716 - self.record_span(span_start1034, "BeTreeInfo") - return result1035 + _t1786 = self.parse_betree_info_key_types() + betree_info_key_types1066 = _t1786 + _t1787 = self.parse_betree_info_value_types() + betree_info_value_types1067 = _t1787 + _t1788 = self.parse_config_dict() + config_dict1068 = _t1788 + self.consume_literal(")") + _t1789 = self.construct_betree_info(betree_info_key_types1066, betree_info_value_types1067, config_dict1068) + result1070 = _t1789 + self.record_span(span_start1069, "BeTreeInfo") + return result1070 def parse_betree_info_key_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("(") self.consume_literal("key_types") - xs1036 = [] - cond1037 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - while cond1037: - _t1717 = self.parse_type() - item1038 = _t1717 - xs1036.append(item1038) - cond1037 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - types1039 = xs1036 + xs1071 = [] + cond1072 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + while cond1072: + _t1790 = self.parse_type() + item1073 = _t1790 + xs1071.append(item1073) + cond1072 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + types1074 = xs1071 self.consume_literal(")") - return types1039 + return types1074 def parse_betree_info_value_types(self) -> Sequence[logic_pb2.Type]: self.consume_literal("(") self.consume_literal("value_types") - xs1040 = [] - cond1041 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - while cond1041: - _t1718 = self.parse_type() - item1042 = _t1718 - xs1040.append(item1042) - cond1041 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - types1043 = xs1040 + xs1075 = [] + cond1076 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + while cond1076: + _t1791 = self.parse_type() + item1077 = _t1791 + xs1075.append(item1077) + cond1076 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + types1078 = xs1075 self.consume_literal(")") - return types1043 + return types1078 def parse_csv_data(self) -> logic_pb2.CSVData: - span_start1048 = self.span_start() + span_start1083 = self.span_start() self.consume_literal("(") self.consume_literal("csv_data") - _t1719 = self.parse_csvlocator() - csvlocator1044 = _t1719 - _t1720 = self.parse_csv_config() - csv_config1045 = _t1720 - _t1721 = self.parse_gnf_columns() - gnf_columns1046 = _t1721 - _t1722 = self.parse_csv_asof() - csv_asof1047 = _t1722 - self.consume_literal(")") - _t1723 = logic_pb2.CSVData(locator=csvlocator1044, config=csv_config1045, columns=gnf_columns1046, asof=csv_asof1047) - result1049 = _t1723 - self.record_span(span_start1048, "CSVData") - return result1049 + _t1792 = self.parse_csvlocator() + csvlocator1079 = _t1792 + _t1793 = self.parse_csv_config() + csv_config1080 = _t1793 + _t1794 = self.parse_gnf_columns() + gnf_columns1081 = _t1794 + _t1795 = self.parse_csv_asof() + csv_asof1082 = _t1795 + self.consume_literal(")") + _t1796 = logic_pb2.CSVData(locator=csvlocator1079, config=csv_config1080, columns=gnf_columns1081, asof=csv_asof1082) + result1084 = _t1796 + self.record_span(span_start1083, "CSVData") + return result1084 def parse_csvlocator(self) -> logic_pb2.CSVLocator: - span_start1052 = self.span_start() + span_start1087 = self.span_start() self.consume_literal("(") self.consume_literal("csv_locator") if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("paths", 1)): - _t1725 = self.parse_csv_locator_paths() - _t1724 = _t1725 + _t1798 = self.parse_csv_locator_paths() + _t1797 = _t1798 else: - _t1724 = None - csv_locator_paths1050 = _t1724 + _t1797 = None + csv_locator_paths1085 = _t1797 if self.match_lookahead_literal("(", 0): - _t1727 = self.parse_csv_locator_inline_data() - _t1726 = _t1727 + _t1800 = self.parse_csv_locator_inline_data() + _t1799 = _t1800 else: - _t1726 = None - csv_locator_inline_data1051 = _t1726 + _t1799 = None + csv_locator_inline_data1086 = _t1799 self.consume_literal(")") - _t1728 = logic_pb2.CSVLocator(paths=(csv_locator_paths1050 if csv_locator_paths1050 is not None else []), inline_data=(csv_locator_inline_data1051 if csv_locator_inline_data1051 is not None else "").encode()) - result1053 = _t1728 - self.record_span(span_start1052, "CSVLocator") - return result1053 + _t1801 = logic_pb2.CSVLocator(paths=(csv_locator_paths1085 if csv_locator_paths1085 is not None else []), inline_data=(csv_locator_inline_data1086 if csv_locator_inline_data1086 is not None else "").encode()) + result1088 = _t1801 + self.record_span(span_start1087, "CSVLocator") + return result1088 def parse_csv_locator_paths(self) -> Sequence[str]: self.consume_literal("(") self.consume_literal("paths") - xs1054 = [] - cond1055 = self.match_lookahead_terminal("STRING", 0) - while cond1055: - item1056 = self.consume_terminal("STRING") - xs1054.append(item1056) - cond1055 = self.match_lookahead_terminal("STRING", 0) - strings1057 = xs1054 + xs1089 = [] + cond1090 = self.match_lookahead_terminal("STRING", 0) + while cond1090: + item1091 = self.consume_terminal("STRING") + xs1089.append(item1091) + cond1090 = self.match_lookahead_terminal("STRING", 0) + strings1092 = xs1089 self.consume_literal(")") - return strings1057 + return strings1092 def parse_csv_locator_inline_data(self) -> str: self.consume_literal("(") self.consume_literal("inline_data") - string1058 = self.consume_terminal("STRING") + string1093 = self.consume_terminal("STRING") self.consume_literal(")") - return string1058 + return string1093 def parse_csv_config(self) -> logic_pb2.CSVConfig: - span_start1060 = self.span_start() + span_start1095 = self.span_start() self.consume_literal("(") self.consume_literal("csv_config") - _t1729 = self.parse_config_dict() - config_dict1059 = _t1729 + _t1802 = self.parse_config_dict() + config_dict1094 = _t1802 self.consume_literal(")") - _t1730 = self.construct_csv_config(config_dict1059) - result1061 = _t1730 - self.record_span(span_start1060, "CSVConfig") - return result1061 + _t1803 = self.construct_csv_config(config_dict1094) + result1096 = _t1803 + self.record_span(span_start1095, "CSVConfig") + return result1096 def parse_gnf_columns(self) -> Sequence[logic_pb2.GNFColumn]: self.consume_literal("(") self.consume_literal("columns") - xs1062 = [] - cond1063 = self.match_lookahead_literal("(", 0) - while cond1063: - _t1731 = self.parse_gnf_column() - item1064 = _t1731 - xs1062.append(item1064) - cond1063 = self.match_lookahead_literal("(", 0) - gnf_columns1065 = xs1062 + xs1097 = [] + cond1098 = self.match_lookahead_literal("(", 0) + while cond1098: + _t1804 = self.parse_gnf_column() + item1099 = _t1804 + xs1097.append(item1099) + cond1098 = self.match_lookahead_literal("(", 0) + gnf_columns1100 = xs1097 self.consume_literal(")") - return gnf_columns1065 + return gnf_columns1100 def parse_gnf_column(self) -> logic_pb2.GNFColumn: - span_start1072 = self.span_start() + span_start1107 = self.span_start() self.consume_literal("(") self.consume_literal("column") - _t1732 = self.parse_gnf_column_path() - gnf_column_path1066 = _t1732 + _t1805 = self.parse_gnf_column_path() + gnf_column_path1101 = _t1805 if (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)): - _t1734 = self.parse_relation_id() - _t1733 = _t1734 + _t1807 = self.parse_relation_id() + _t1806 = _t1807 else: - _t1733 = None - relation_id1067 = _t1733 + _t1806 = None + relation_id1102 = _t1806 self.consume_literal("[") - xs1068 = [] - cond1069 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - while cond1069: - _t1735 = self.parse_type() - item1070 = _t1735 - xs1068.append(item1070) - cond1069 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) - types1071 = xs1068 + xs1103 = [] + cond1104 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + while cond1104: + _t1808 = self.parse_type() + item1105 = _t1808 + xs1103.append(item1105) + cond1104 = (((((((((((((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("FLOAT32", 0)) or self.match_lookahead_literal("INT", 0)) or self.match_lookahead_literal("INT128", 0)) or self.match_lookahead_literal("INT32", 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("UINT32", 0)) or self.match_lookahead_literal("UNKNOWN", 0)) + types1106 = xs1103 self.consume_literal("]") self.consume_literal(")") - _t1736 = logic_pb2.GNFColumn(column_path=gnf_column_path1066, target_id=relation_id1067, types=types1071) - result1073 = _t1736 - self.record_span(span_start1072, "GNFColumn") - return result1073 + _t1809 = logic_pb2.GNFColumn(column_path=gnf_column_path1101, target_id=relation_id1102, types=types1106) + result1108 = _t1809 + self.record_span(span_start1107, "GNFColumn") + return result1108 def parse_gnf_column_path(self) -> Sequence[str]: if self.match_lookahead_literal("[", 0): - _t1737 = 1 + _t1810 = 1 else: if self.match_lookahead_terminal("STRING", 0): - _t1738 = 0 + _t1811 = 0 else: - _t1738 = -1 - _t1737 = _t1738 - prediction1074 = _t1737 - if prediction1074 == 1: + _t1811 = -1 + _t1810 = _t1811 + prediction1109 = _t1810 + if prediction1109 == 1: self.consume_literal("[") - xs1076 = [] - cond1077 = self.match_lookahead_terminal("STRING", 0) - while cond1077: - item1078 = self.consume_terminal("STRING") - xs1076.append(item1078) - cond1077 = self.match_lookahead_terminal("STRING", 0) - strings1079 = xs1076 + xs1111 = [] + cond1112 = self.match_lookahead_terminal("STRING", 0) + while cond1112: + item1113 = self.consume_terminal("STRING") + xs1111.append(item1113) + cond1112 = self.match_lookahead_terminal("STRING", 0) + strings1114 = xs1111 self.consume_literal("]") - _t1739 = strings1079 + _t1812 = strings1114 else: - if prediction1074 == 0: - string1075 = self.consume_terminal("STRING") - _t1740 = [string1075] + if prediction1109 == 0: + string1110 = self.consume_terminal("STRING") + _t1813 = [string1110] else: raise ParseError("Unexpected token in gnf_column_path" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1739 = _t1740 - return _t1739 + _t1812 = _t1813 + return _t1812 def parse_csv_asof(self) -> str: self.consume_literal("(") self.consume_literal("asof") - string1080 = self.consume_terminal("STRING") + string1115 = self.consume_terminal("STRING") + self.consume_literal(")") + return string1115 + + def parse_iceberg_data(self) -> logic_pb2.IcebergData: + span_start1120 = self.span_start() + self.consume_literal("(") + self.consume_literal("iceberg_data") + _t1814 = self.parse_iceberg_locator() + iceberg_locator1116 = _t1814 + _t1815 = self.parse_iceberg_config() + iceberg_config1117 = _t1815 + _t1816 = self.parse_gnf_columns() + gnf_columns1118 = _t1816 + if self.match_lookahead_literal("(", 0): + _t1818 = self.parse_iceberg_to_snapshot() + _t1817 = _t1818 + else: + _t1817 = None + iceberg_to_snapshot1119 = _t1817 self.consume_literal(")") - return string1080 + _t1819 = logic_pb2.IcebergData(locator=iceberg_locator1116, config=iceberg_config1117, columns=gnf_columns1118, to_snapshot=iceberg_to_snapshot1119) + result1121 = _t1819 + self.record_span(span_start1120, "IcebergData") + return result1121 + + def parse_iceberg_locator(self) -> logic_pb2.IcebergLocator: + span_start1125 = self.span_start() + self.consume_literal("(") + self.consume_literal("iceberg_locator") + string1122 = self.consume_terminal("STRING") + _t1820 = self.parse_iceberg_locator_namespace() + iceberg_locator_namespace1123 = _t1820 + string_41124 = self.consume_terminal("STRING") + self.consume_literal(")") + _t1821 = logic_pb2.IcebergLocator(table_name=string1122, namespace=iceberg_locator_namespace1123, warehouse=string_41124) + result1126 = _t1821 + self.record_span(span_start1125, "IcebergLocator") + return result1126 + + def parse_iceberg_locator_namespace(self) -> Sequence[str]: + self.consume_literal("(") + self.consume_literal("namespace") + xs1127 = [] + cond1128 = self.match_lookahead_terminal("STRING", 0) + while cond1128: + item1129 = self.consume_terminal("STRING") + xs1127.append(item1129) + cond1128 = self.match_lookahead_terminal("STRING", 0) + strings1130 = xs1127 + self.consume_literal(")") + return strings1130 + + def parse_iceberg_config(self) -> logic_pb2.IcebergConfig: + span_start1135 = self.span_start() + self.consume_literal("(") + self.consume_literal("iceberg_config") + string1131 = self.consume_terminal("STRING") + if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("scope", 1)): + _t1823 = self.parse_iceberg_config_scope() + _t1822 = _t1823 + else: + _t1822 = None + iceberg_config_scope1132 = _t1822 + if (self.match_lookahead_literal("(", 0) and self.match_lookahead_literal("properties", 1)): + _t1825 = self.parse_iceberg_config_properties() + _t1824 = _t1825 + else: + _t1824 = None + iceberg_config_properties1133 = _t1824 + if self.match_lookahead_literal("(", 0): + _t1827 = self.parse_iceberg_config_credentials() + _t1826 = _t1827 + else: + _t1826 = None + iceberg_config_credentials1134 = _t1826 + self.consume_literal(")") + _t1828 = self.construct_iceberg_config(string1131, iceberg_config_scope1132, iceberg_config_properties1133, iceberg_config_credentials1134) + result1136 = _t1828 + self.record_span(span_start1135, "IcebergConfig") + return result1136 + + def parse_iceberg_config_scope(self) -> str: + self.consume_literal("(") + self.consume_literal("scope") + string1137 = self.consume_terminal("STRING") + self.consume_literal(")") + return string1137 + + def parse_iceberg_config_properties(self) -> Sequence[tuple[str, str]]: + self.consume_literal("(") + self.consume_literal("properties") + xs1138 = [] + cond1139 = self.match_lookahead_literal("(", 0) + while cond1139: + _t1829 = self.parse_iceberg_kv_pair() + item1140 = _t1829 + xs1138.append(item1140) + cond1139 = self.match_lookahead_literal("(", 0) + iceberg_kv_pairs1141 = xs1138 + self.consume_literal(")") + return iceberg_kv_pairs1141 + + def parse_iceberg_kv_pair(self) -> tuple[str, str]: + self.consume_literal("(") + string1142 = self.consume_terminal("STRING") + string_21143 = self.consume_terminal("STRING") + self.consume_literal(")") + return (string1142, string_21143,) + + def parse_iceberg_config_credentials(self) -> Sequence[tuple[str, str]]: + self.consume_literal("(") + self.consume_literal("credentials") + xs1144 = [] + cond1145 = self.match_lookahead_literal("(", 0) + while cond1145: + _t1830 = self.parse_iceberg_kv_pair() + item1146 = _t1830 + xs1144.append(item1146) + cond1145 = self.match_lookahead_literal("(", 0) + iceberg_kv_pairs1147 = xs1144 + self.consume_literal(")") + return iceberg_kv_pairs1147 + + def parse_iceberg_to_snapshot(self) -> str: + self.consume_literal("(") + self.consume_literal("to_snapshot") + string1148 = self.consume_terminal("STRING") + self.consume_literal(")") + return string1148 def parse_undefine(self) -> transactions_pb2.Undefine: - span_start1082 = self.span_start() + span_start1150 = self.span_start() self.consume_literal("(") self.consume_literal("undefine") - _t1741 = self.parse_fragment_id() - fragment_id1081 = _t1741 + _t1831 = self.parse_fragment_id() + fragment_id1149 = _t1831 self.consume_literal(")") - _t1742 = transactions_pb2.Undefine(fragment_id=fragment_id1081) - result1083 = _t1742 - self.record_span(span_start1082, "Undefine") - return result1083 + _t1832 = transactions_pb2.Undefine(fragment_id=fragment_id1149) + result1151 = _t1832 + self.record_span(span_start1150, "Undefine") + return result1151 def parse_context(self) -> transactions_pb2.Context: - span_start1088 = self.span_start() + span_start1156 = self.span_start() self.consume_literal("(") self.consume_literal("context") - xs1084 = [] - cond1085 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - while cond1085: - _t1743 = self.parse_relation_id() - item1086 = _t1743 - xs1084.append(item1086) - cond1085 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) - relation_ids1087 = xs1084 - self.consume_literal(")") - _t1744 = transactions_pb2.Context(relations=relation_ids1087) - result1089 = _t1744 - self.record_span(span_start1088, "Context") - return result1089 + xs1152 = [] + cond1153 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + while cond1153: + _t1833 = self.parse_relation_id() + item1154 = _t1833 + xs1152.append(item1154) + cond1153 = (self.match_lookahead_literal(":", 0) or self.match_lookahead_terminal("UINT128", 0)) + relation_ids1155 = xs1152 + self.consume_literal(")") + _t1834 = transactions_pb2.Context(relations=relation_ids1155) + result1157 = _t1834 + self.record_span(span_start1156, "Context") + return result1157 def parse_snapshot(self) -> transactions_pb2.Snapshot: - span_start1094 = self.span_start() + span_start1162 = self.span_start() self.consume_literal("(") self.consume_literal("snapshot") - xs1090 = [] - cond1091 = self.match_lookahead_literal("[", 0) - while cond1091: - _t1745 = self.parse_snapshot_mapping() - item1092 = _t1745 - xs1090.append(item1092) - cond1091 = self.match_lookahead_literal("[", 0) - snapshot_mappings1093 = xs1090 - self.consume_literal(")") - _t1746 = transactions_pb2.Snapshot(mappings=snapshot_mappings1093) - result1095 = _t1746 - self.record_span(span_start1094, "Snapshot") - return result1095 + xs1158 = [] + cond1159 = self.match_lookahead_literal("[", 0) + while cond1159: + _t1835 = self.parse_snapshot_mapping() + item1160 = _t1835 + xs1158.append(item1160) + cond1159 = self.match_lookahead_literal("[", 0) + snapshot_mappings1161 = xs1158 + self.consume_literal(")") + _t1836 = transactions_pb2.Snapshot(mappings=snapshot_mappings1161) + result1163 = _t1836 + self.record_span(span_start1162, "Snapshot") + return result1163 def parse_snapshot_mapping(self) -> transactions_pb2.SnapshotMapping: - span_start1098 = self.span_start() - _t1747 = self.parse_edb_path() - edb_path1096 = _t1747 - _t1748 = self.parse_relation_id() - relation_id1097 = _t1748 - _t1749 = transactions_pb2.SnapshotMapping(destination_path=edb_path1096, source_relation=relation_id1097) - result1099 = _t1749 - self.record_span(span_start1098, "SnapshotMapping") - return result1099 + span_start1166 = self.span_start() + _t1837 = self.parse_edb_path() + edb_path1164 = _t1837 + _t1838 = self.parse_relation_id() + relation_id1165 = _t1838 + _t1839 = transactions_pb2.SnapshotMapping(destination_path=edb_path1164, source_relation=relation_id1165) + result1167 = _t1839 + self.record_span(span_start1166, "SnapshotMapping") + return result1167 def parse_epoch_reads(self) -> Sequence[transactions_pb2.Read]: self.consume_literal("(") self.consume_literal("reads") - xs1100 = [] - cond1101 = self.match_lookahead_literal("(", 0) - while cond1101: - _t1750 = self.parse_read() - item1102 = _t1750 - xs1100.append(item1102) - cond1101 = self.match_lookahead_literal("(", 0) - reads1103 = xs1100 + xs1168 = [] + cond1169 = self.match_lookahead_literal("(", 0) + while cond1169: + _t1840 = self.parse_read() + item1170 = _t1840 + xs1168.append(item1170) + cond1169 = self.match_lookahead_literal("(", 0) + reads1171 = xs1168 self.consume_literal(")") - return reads1103 + return reads1171 def parse_read(self) -> transactions_pb2.Read: - span_start1110 = self.span_start() + span_start1178 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("what_if", 1): - _t1752 = 2 + _t1842 = 2 else: if self.match_lookahead_literal("output", 1): - _t1753 = 1 + _t1843 = 1 else: if self.match_lookahead_literal("export", 1): - _t1754 = 4 + _t1844 = 4 else: if self.match_lookahead_literal("demand", 1): - _t1755 = 0 + _t1845 = 0 else: if self.match_lookahead_literal("abort", 1): - _t1756 = 3 + _t1846 = 3 else: - _t1756 = -1 - _t1755 = _t1756 - _t1754 = _t1755 - _t1753 = _t1754 - _t1752 = _t1753 - _t1751 = _t1752 - else: - _t1751 = -1 - prediction1104 = _t1751 - if prediction1104 == 4: - _t1758 = self.parse_export() - export1109 = _t1758 - _t1759 = transactions_pb2.Read(export=export1109) - _t1757 = _t1759 - else: - if prediction1104 == 3: - _t1761 = self.parse_abort() - abort1108 = _t1761 - _t1762 = transactions_pb2.Read(abort=abort1108) - _t1760 = _t1762 + _t1846 = -1 + _t1845 = _t1846 + _t1844 = _t1845 + _t1843 = _t1844 + _t1842 = _t1843 + _t1841 = _t1842 + else: + _t1841 = -1 + prediction1172 = _t1841 + if prediction1172 == 4: + _t1848 = self.parse_export() + export1177 = _t1848 + _t1849 = transactions_pb2.Read(export=export1177) + _t1847 = _t1849 + else: + if prediction1172 == 3: + _t1851 = self.parse_abort() + abort1176 = _t1851 + _t1852 = transactions_pb2.Read(abort=abort1176) + _t1850 = _t1852 else: - if prediction1104 == 2: - _t1764 = self.parse_what_if() - what_if1107 = _t1764 - _t1765 = transactions_pb2.Read(what_if=what_if1107) - _t1763 = _t1765 + if prediction1172 == 2: + _t1854 = self.parse_what_if() + what_if1175 = _t1854 + _t1855 = transactions_pb2.Read(what_if=what_if1175) + _t1853 = _t1855 else: - if prediction1104 == 1: - _t1767 = self.parse_output() - output1106 = _t1767 - _t1768 = transactions_pb2.Read(output=output1106) - _t1766 = _t1768 + if prediction1172 == 1: + _t1857 = self.parse_output() + output1174 = _t1857 + _t1858 = transactions_pb2.Read(output=output1174) + _t1856 = _t1858 else: - if prediction1104 == 0: - _t1770 = self.parse_demand() - demand1105 = _t1770 - _t1771 = transactions_pb2.Read(demand=demand1105) - _t1769 = _t1771 + if prediction1172 == 0: + _t1860 = self.parse_demand() + demand1173 = _t1860 + _t1861 = transactions_pb2.Read(demand=demand1173) + _t1859 = _t1861 else: raise ParseError("Unexpected token in read" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1766 = _t1769 - _t1763 = _t1766 - _t1760 = _t1763 - _t1757 = _t1760 - result1111 = _t1757 - self.record_span(span_start1110, "Read") - return result1111 + _t1856 = _t1859 + _t1853 = _t1856 + _t1850 = _t1853 + _t1847 = _t1850 + result1179 = _t1847 + self.record_span(span_start1178, "Read") + return result1179 def parse_demand(self) -> transactions_pb2.Demand: - span_start1113 = self.span_start() + span_start1181 = self.span_start() self.consume_literal("(") self.consume_literal("demand") - _t1772 = self.parse_relation_id() - relation_id1112 = _t1772 + _t1862 = self.parse_relation_id() + relation_id1180 = _t1862 self.consume_literal(")") - _t1773 = transactions_pb2.Demand(relation_id=relation_id1112) - result1114 = _t1773 - self.record_span(span_start1113, "Demand") - return result1114 + _t1863 = transactions_pb2.Demand(relation_id=relation_id1180) + result1182 = _t1863 + self.record_span(span_start1181, "Demand") + return result1182 def parse_output(self) -> transactions_pb2.Output: - span_start1117 = self.span_start() + span_start1185 = self.span_start() self.consume_literal("(") self.consume_literal("output") - _t1774 = self.parse_name() - name1115 = _t1774 - _t1775 = self.parse_relation_id() - relation_id1116 = _t1775 + _t1864 = self.parse_name() + name1183 = _t1864 + _t1865 = self.parse_relation_id() + relation_id1184 = _t1865 self.consume_literal(")") - _t1776 = transactions_pb2.Output(name=name1115, relation_id=relation_id1116) - result1118 = _t1776 - self.record_span(span_start1117, "Output") - return result1118 + _t1866 = transactions_pb2.Output(name=name1183, relation_id=relation_id1184) + result1186 = _t1866 + self.record_span(span_start1185, "Output") + return result1186 def parse_what_if(self) -> transactions_pb2.WhatIf: - span_start1121 = self.span_start() + span_start1189 = self.span_start() self.consume_literal("(") self.consume_literal("what_if") - _t1777 = self.parse_name() - name1119 = _t1777 - _t1778 = self.parse_epoch() - epoch1120 = _t1778 + _t1867 = self.parse_name() + name1187 = _t1867 + _t1868 = self.parse_epoch() + epoch1188 = _t1868 self.consume_literal(")") - _t1779 = transactions_pb2.WhatIf(branch=name1119, epoch=epoch1120) - result1122 = _t1779 - self.record_span(span_start1121, "WhatIf") - return result1122 + _t1869 = transactions_pb2.WhatIf(branch=name1187, epoch=epoch1188) + result1190 = _t1869 + self.record_span(span_start1189, "WhatIf") + return result1190 def parse_abort(self) -> transactions_pb2.Abort: - span_start1125 = self.span_start() + span_start1193 = self.span_start() self.consume_literal("(") self.consume_literal("abort") if (self.match_lookahead_literal(":", 0) and self.match_lookahead_terminal("SYMBOL", 1)): - _t1781 = self.parse_name() - _t1780 = _t1781 + _t1871 = self.parse_name() + _t1870 = _t1871 else: - _t1780 = None - name1123 = _t1780 - _t1782 = self.parse_relation_id() - relation_id1124 = _t1782 + _t1870 = None + name1191 = _t1870 + _t1872 = self.parse_relation_id() + relation_id1192 = _t1872 self.consume_literal(")") - _t1783 = transactions_pb2.Abort(name=(name1123 if name1123 is not None else "abort"), relation_id=relation_id1124) - result1126 = _t1783 - self.record_span(span_start1125, "Abort") - return result1126 + _t1873 = transactions_pb2.Abort(name=(name1191 if name1191 is not None else "abort"), relation_id=relation_id1192) + result1194 = _t1873 + self.record_span(span_start1193, "Abort") + return result1194 def parse_export(self) -> transactions_pb2.Export: - span_start1128 = self.span_start() + span_start1196 = self.span_start() self.consume_literal("(") self.consume_literal("export") - _t1784 = self.parse_export_csv_config() - export_csv_config1127 = _t1784 + _t1874 = self.parse_export_csv_config() + export_csv_config1195 = _t1874 self.consume_literal(")") - _t1785 = transactions_pb2.Export(csv_config=export_csv_config1127) - result1129 = _t1785 - self.record_span(span_start1128, "Export") - return result1129 + _t1875 = transactions_pb2.Export(csv_config=export_csv_config1195) + result1197 = _t1875 + self.record_span(span_start1196, "Export") + return result1197 def parse_export_csv_config(self) -> transactions_pb2.ExportCSVConfig: - span_start1137 = self.span_start() + span_start1205 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("export_csv_config_v2", 1): - _t1787 = 0 + _t1877 = 0 else: if self.match_lookahead_literal("export_csv_config", 1): - _t1788 = 1 + _t1878 = 1 else: - _t1788 = -1 - _t1787 = _t1788 - _t1786 = _t1787 + _t1878 = -1 + _t1877 = _t1878 + _t1876 = _t1877 else: - _t1786 = -1 - prediction1130 = _t1786 - if prediction1130 == 1: + _t1876 = -1 + prediction1198 = _t1876 + if prediction1198 == 1: self.consume_literal("(") self.consume_literal("export_csv_config") - _t1790 = self.parse_export_csv_path() - export_csv_path1134 = _t1790 - _t1791 = self.parse_export_csv_columns_list() - export_csv_columns_list1135 = _t1791 - _t1792 = self.parse_config_dict() - config_dict1136 = _t1792 + _t1880 = self.parse_export_csv_path() + export_csv_path1202 = _t1880 + _t1881 = self.parse_export_csv_columns_list() + export_csv_columns_list1203 = _t1881 + _t1882 = self.parse_config_dict() + config_dict1204 = _t1882 self.consume_literal(")") - _t1793 = self.construct_export_csv_config(export_csv_path1134, export_csv_columns_list1135, config_dict1136) - _t1789 = _t1793 + _t1883 = self.construct_export_csv_config(export_csv_path1202, export_csv_columns_list1203, config_dict1204) + _t1879 = _t1883 else: - if prediction1130 == 0: + if prediction1198 == 0: self.consume_literal("(") self.consume_literal("export_csv_config_v2") - _t1795 = self.parse_export_csv_path() - export_csv_path1131 = _t1795 - _t1796 = self.parse_export_csv_source() - export_csv_source1132 = _t1796 - _t1797 = self.parse_csv_config() - csv_config1133 = _t1797 + _t1885 = self.parse_export_csv_path() + export_csv_path1199 = _t1885 + _t1886 = self.parse_export_csv_source() + export_csv_source1200 = _t1886 + _t1887 = self.parse_csv_config() + csv_config1201 = _t1887 self.consume_literal(")") - _t1798 = self.construct_export_csv_config_with_source(export_csv_path1131, export_csv_source1132, csv_config1133) - _t1794 = _t1798 + _t1888 = self.construct_export_csv_config_with_source(export_csv_path1199, export_csv_source1200, csv_config1201) + _t1884 = _t1888 else: raise ParseError("Unexpected token in export_csv_config" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1789 = _t1794 - result1138 = _t1789 - self.record_span(span_start1137, "ExportCSVConfig") - return result1138 + _t1879 = _t1884 + result1206 = _t1879 + self.record_span(span_start1205, "ExportCSVConfig") + return result1206 def parse_export_csv_path(self) -> str: self.consume_literal("(") self.consume_literal("path") - string1139 = self.consume_terminal("STRING") + string1207 = self.consume_terminal("STRING") self.consume_literal(")") - return string1139 + return string1207 def parse_export_csv_source(self) -> transactions_pb2.ExportCSVSource: - span_start1146 = self.span_start() + span_start1214 = self.span_start() if self.match_lookahead_literal("(", 0): if self.match_lookahead_literal("table_def", 1): - _t1800 = 1 + _t1890 = 1 else: if self.match_lookahead_literal("gnf_columns", 1): - _t1801 = 0 + _t1891 = 0 else: - _t1801 = -1 - _t1800 = _t1801 - _t1799 = _t1800 + _t1891 = -1 + _t1890 = _t1891 + _t1889 = _t1890 else: - _t1799 = -1 - prediction1140 = _t1799 - if prediction1140 == 1: + _t1889 = -1 + prediction1208 = _t1889 + if prediction1208 == 1: self.consume_literal("(") self.consume_literal("table_def") - _t1803 = self.parse_relation_id() - relation_id1145 = _t1803 + _t1893 = self.parse_relation_id() + relation_id1213 = _t1893 self.consume_literal(")") - _t1804 = transactions_pb2.ExportCSVSource(table_def=relation_id1145) - _t1802 = _t1804 + _t1894 = transactions_pb2.ExportCSVSource(table_def=relation_id1213) + _t1892 = _t1894 else: - if prediction1140 == 0: + if prediction1208 == 0: self.consume_literal("(") self.consume_literal("gnf_columns") - xs1141 = [] - cond1142 = self.match_lookahead_literal("(", 0) - while cond1142: - _t1806 = self.parse_export_csv_column() - item1143 = _t1806 - xs1141.append(item1143) - cond1142 = self.match_lookahead_literal("(", 0) - export_csv_columns1144 = xs1141 + xs1209 = [] + cond1210 = self.match_lookahead_literal("(", 0) + while cond1210: + _t1896 = self.parse_export_csv_column() + item1211 = _t1896 + xs1209.append(item1211) + cond1210 = self.match_lookahead_literal("(", 0) + export_csv_columns1212 = xs1209 self.consume_literal(")") - _t1807 = transactions_pb2.ExportCSVColumns(columns=export_csv_columns1144) - _t1808 = transactions_pb2.ExportCSVSource(gnf_columns=_t1807) - _t1805 = _t1808 + _t1897 = transactions_pb2.ExportCSVColumns(columns=export_csv_columns1212) + _t1898 = transactions_pb2.ExportCSVSource(gnf_columns=_t1897) + _t1895 = _t1898 else: raise ParseError("Unexpected token in export_csv_source" + f": {self.lookahead(0).type}=`{self.lookahead(0).value}`") - _t1802 = _t1805 - result1147 = _t1802 - self.record_span(span_start1146, "ExportCSVSource") - return result1147 + _t1892 = _t1895 + result1215 = _t1892 + self.record_span(span_start1214, "ExportCSVSource") + return result1215 def parse_export_csv_column(self) -> transactions_pb2.ExportCSVColumn: - span_start1150 = self.span_start() + span_start1218 = self.span_start() self.consume_literal("(") self.consume_literal("column") - string1148 = self.consume_terminal("STRING") - _t1809 = self.parse_relation_id() - relation_id1149 = _t1809 + string1216 = self.consume_terminal("STRING") + _t1899 = self.parse_relation_id() + relation_id1217 = _t1899 self.consume_literal(")") - _t1810 = transactions_pb2.ExportCSVColumn(column_name=string1148, column_data=relation_id1149) - result1151 = _t1810 - self.record_span(span_start1150, "ExportCSVColumn") - return result1151 + _t1900 = transactions_pb2.ExportCSVColumn(column_name=string1216, column_data=relation_id1217) + result1219 = _t1900 + self.record_span(span_start1218, "ExportCSVColumn") + return result1219 def parse_export_csv_columns_list(self) -> Sequence[transactions_pb2.ExportCSVColumn]: self.consume_literal("(") self.consume_literal("columns") - xs1152 = [] - cond1153 = self.match_lookahead_literal("(", 0) - while cond1153: - _t1811 = self.parse_export_csv_column() - item1154 = _t1811 - xs1152.append(item1154) - cond1153 = self.match_lookahead_literal("(", 0) - export_csv_columns1155 = xs1152 - self.consume_literal(")") - return export_csv_columns1155 + xs1220 = [] + cond1221 = self.match_lookahead_literal("(", 0) + while cond1221: + _t1901 = self.parse_export_csv_column() + item1222 = _t1901 + xs1220.append(item1222) + cond1221 = self.match_lookahead_literal("(", 0) + export_csv_columns1223 = xs1220 + self.consume_literal(")") + return export_csv_columns1223 def parse_transaction(input_str: str) -> tuple[Any, dict[int, Span]]: diff --git a/sdks/python/src/lqp/gen/pretty.py b/sdks/python/src/lqp/gen/pretty.py index ec41c6e4..e70ed89d 100644 --- a/sdks/python/src/lqp/gen/pretty.py +++ b/sdks/python/src/lqp/gen/pretty.py @@ -207,134 +207,134 @@ def write_debug_info(self) -> None: # --- Helper functions --- def _make_value_int32(self, v: int) -> logic_pb2.Value: - _t1459 = logic_pb2.Value(int32_value=v) - return _t1459 + _t1556 = logic_pb2.Value(int32_value=v) + return _t1556 def _make_value_int64(self, v: int) -> logic_pb2.Value: - _t1460 = logic_pb2.Value(int_value=v) - return _t1460 + _t1557 = logic_pb2.Value(int_value=v) + return _t1557 def _make_value_float64(self, v: float) -> logic_pb2.Value: - _t1461 = logic_pb2.Value(float_value=v) - return _t1461 + _t1558 = logic_pb2.Value(float_value=v) + return _t1558 def _make_value_string(self, v: str) -> logic_pb2.Value: - _t1462 = logic_pb2.Value(string_value=v) - return _t1462 + _t1559 = logic_pb2.Value(string_value=v) + return _t1559 def _make_value_boolean(self, v: bool) -> logic_pb2.Value: - _t1463 = logic_pb2.Value(boolean_value=v) - return _t1463 + _t1560 = logic_pb2.Value(boolean_value=v) + return _t1560 def _make_value_uint128(self, v: logic_pb2.UInt128Value) -> logic_pb2.Value: - _t1464 = logic_pb2.Value(uint128_value=v) - return _t1464 + _t1561 = logic_pb2.Value(uint128_value=v) + return _t1561 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: - _t1465 = self._make_value_string("auto") - result.append(("ivm.maintenance_level", _t1465,)) + _t1562 = self._make_value_string("auto") + result.append(("ivm.maintenance_level", _t1562,)) else: if msg.ivm_config.level == transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_ALL: - _t1466 = self._make_value_string("all") - result.append(("ivm.maintenance_level", _t1466,)) + _t1563 = self._make_value_string("all") + result.append(("ivm.maintenance_level", _t1563,)) else: if msg.ivm_config.level == transactions_pb2.MaintenanceLevel.MAINTENANCE_LEVEL_OFF: - _t1467 = self._make_value_string("off") - result.append(("ivm.maintenance_level", _t1467,)) - _t1468 = self._make_value_int64(msg.semantics_version) - result.append(("semantics_version", _t1468,)) + _t1564 = self._make_value_string("off") + result.append(("ivm.maintenance_level", _t1564,)) + _t1565 = self._make_value_int64(msg.semantics_version) + result.append(("semantics_version", _t1565,)) return sorted(result) def deconstruct_csv_config(self, msg: logic_pb2.CSVConfig) -> list[tuple[str, logic_pb2.Value]]: result = [] - _t1469 = self._make_value_int32(msg.header_row) - result.append(("csv_header_row", _t1469,)) - _t1470 = self._make_value_int64(msg.skip) - result.append(("csv_skip", _t1470,)) + _t1566 = self._make_value_int32(msg.header_row) + result.append(("csv_header_row", _t1566,)) + _t1567 = self._make_value_int64(msg.skip) + result.append(("csv_skip", _t1567,)) if msg.new_line != "": - _t1471 = self._make_value_string(msg.new_line) - result.append(("csv_new_line", _t1471,)) - _t1472 = self._make_value_string(msg.delimiter) - result.append(("csv_delimiter", _t1472,)) - _t1473 = self._make_value_string(msg.quotechar) - result.append(("csv_quotechar", _t1473,)) - _t1474 = self._make_value_string(msg.escapechar) - result.append(("csv_escapechar", _t1474,)) + _t1568 = self._make_value_string(msg.new_line) + result.append(("csv_new_line", _t1568,)) + _t1569 = self._make_value_string(msg.delimiter) + result.append(("csv_delimiter", _t1569,)) + _t1570 = self._make_value_string(msg.quotechar) + result.append(("csv_quotechar", _t1570,)) + _t1571 = self._make_value_string(msg.escapechar) + result.append(("csv_escapechar", _t1571,)) if msg.comment != "": - _t1475 = self._make_value_string(msg.comment) - result.append(("csv_comment", _t1475,)) + _t1572 = self._make_value_string(msg.comment) + result.append(("csv_comment", _t1572,)) for missing_string in msg.missing_strings: - _t1476 = self._make_value_string(missing_string) - result.append(("csv_missing_strings", _t1476,)) - _t1477 = self._make_value_string(msg.decimal_separator) - result.append(("csv_decimal_separator", _t1477,)) - _t1478 = self._make_value_string(msg.encoding) - result.append(("csv_encoding", _t1478,)) - _t1479 = self._make_value_string(msg.compression) - result.append(("csv_compression", _t1479,)) + _t1573 = self._make_value_string(missing_string) + result.append(("csv_missing_strings", _t1573,)) + _t1574 = self._make_value_string(msg.decimal_separator) + result.append(("csv_decimal_separator", _t1574,)) + _t1575 = self._make_value_string(msg.encoding) + result.append(("csv_encoding", _t1575,)) + _t1576 = self._make_value_string(msg.compression) + result.append(("csv_compression", _t1576,)) if msg.partition_size_mb != 0: - _t1480 = self._make_value_int64(msg.partition_size_mb) - result.append(("csv_partition_size_mb", _t1480,)) + _t1577 = self._make_value_int64(msg.partition_size_mb) + result.append(("csv_partition_size_mb", _t1577,)) return sorted(result) def deconstruct_betree_info_config(self, msg: logic_pb2.BeTreeInfo) -> list[tuple[str, logic_pb2.Value]]: result = [] - _t1481 = self._make_value_float64(msg.storage_config.epsilon) - result.append(("betree_config_epsilon", _t1481,)) - _t1482 = self._make_value_int64(msg.storage_config.max_pivots) - result.append(("betree_config_max_pivots", _t1482,)) - _t1483 = self._make_value_int64(msg.storage_config.max_deltas) - result.append(("betree_config_max_deltas", _t1483,)) - _t1484 = self._make_value_int64(msg.storage_config.max_leaf) - result.append(("betree_config_max_leaf", _t1484,)) + _t1578 = self._make_value_float64(msg.storage_config.epsilon) + result.append(("betree_config_epsilon", _t1578,)) + _t1579 = self._make_value_int64(msg.storage_config.max_pivots) + result.append(("betree_config_max_pivots", _t1579,)) + _t1580 = self._make_value_int64(msg.storage_config.max_deltas) + result.append(("betree_config_max_deltas", _t1580,)) + _t1581 = self._make_value_int64(msg.storage_config.max_leaf) + result.append(("betree_config_max_leaf", _t1581,)) 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 - _t1485 = self._make_value_uint128(msg.relation_locator.root_pageid) - result.append(("betree_locator_root_pageid", _t1485,)) + _t1582 = self._make_value_uint128(msg.relation_locator.root_pageid) + result.append(("betree_locator_root_pageid", _t1582,)) 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 - _t1486 = self._make_value_string(msg.relation_locator.inline_data.decode('utf-8')) - result.append(("betree_locator_inline_data", _t1486,)) - _t1487 = self._make_value_int64(msg.relation_locator.element_count) - result.append(("betree_locator_element_count", _t1487,)) - _t1488 = self._make_value_int64(msg.relation_locator.tree_height) - result.append(("betree_locator_tree_height", _t1488,)) + _t1583 = self._make_value_string(msg.relation_locator.inline_data.decode('utf-8')) + result.append(("betree_locator_inline_data", _t1583,)) + _t1584 = self._make_value_int64(msg.relation_locator.element_count) + result.append(("betree_locator_element_count", _t1584,)) + _t1585 = self._make_value_int64(msg.relation_locator.tree_height) + result.append(("betree_locator_tree_height", _t1585,)) 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 - _t1489 = self._make_value_int64(msg.partition_size) - result.append(("partition_size", _t1489,)) + _t1586 = self._make_value_int64(msg.partition_size) + result.append(("partition_size", _t1586,)) if msg.compression is not None: assert msg.compression is not None - _t1490 = self._make_value_string(msg.compression) - result.append(("compression", _t1490,)) + _t1587 = self._make_value_string(msg.compression) + result.append(("compression", _t1587,)) if msg.syntax_header_row is not None: assert msg.syntax_header_row is not None - _t1491 = self._make_value_boolean(msg.syntax_header_row) - result.append(("syntax_header_row", _t1491,)) + _t1588 = self._make_value_boolean(msg.syntax_header_row) + result.append(("syntax_header_row", _t1588,)) if msg.syntax_missing_string is not None: assert msg.syntax_missing_string is not None - _t1492 = self._make_value_string(msg.syntax_missing_string) - result.append(("syntax_missing_string", _t1492,)) + _t1589 = self._make_value_string(msg.syntax_missing_string) + result.append(("syntax_missing_string", _t1589,)) if msg.syntax_delim is not None: assert msg.syntax_delim is not None - _t1493 = self._make_value_string(msg.syntax_delim) - result.append(("syntax_delim", _t1493,)) + _t1590 = self._make_value_string(msg.syntax_delim) + result.append(("syntax_delim", _t1590,)) if msg.syntax_quotechar is not None: assert msg.syntax_quotechar is not None - _t1494 = self._make_value_string(msg.syntax_quotechar) - result.append(("syntax_quotechar", _t1494,)) + _t1591 = self._make_value_string(msg.syntax_quotechar) + result.append(("syntax_quotechar", _t1591,)) if msg.syntax_escapechar is not None: assert msg.syntax_escapechar is not None - _t1495 = self._make_value_string(msg.syntax_escapechar) - result.append(("syntax_escapechar", _t1495,)) + _t1592 = self._make_value_string(msg.syntax_escapechar) + result.append(("syntax_escapechar", _t1592,)) return sorted(result) def deconstruct_relation_id_string(self, msg: logic_pb2.RelationId) -> str: @@ -347,7 +347,7 @@ def deconstruct_relation_id_uint128(self, msg: logic_pb2.RelationId) -> logic_pb if name is None: return self.relation_id_to_uint128(msg) else: - _t1496 = None + _t1593 = None return None def deconstruct_bindings(self, abs: logic_pb2.Abstraction) -> tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]: @@ -362,3298 +362,3518 @@ def deconstruct_bindings_with_arity(self, abs: logic_pb2.Abstraction, value_arit # --- Pretty-print methods --- def pretty_transaction(self, msg: transactions_pb2.Transaction): - flat678 = self._try_flat(msg, self.pretty_transaction) - if flat678 is not None: - assert flat678 is not None - self.write(flat678) + flat725 = self._try_flat(msg, self.pretty_transaction) + if flat725 is not None: + assert flat725 is not None + self.write(flat725) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("configure"): - _t1338 = _dollar_dollar.configure + _t1432 = _dollar_dollar.configure else: - _t1338 = None + _t1432 = None if _dollar_dollar.HasField("sync"): - _t1339 = _dollar_dollar.sync + _t1433 = _dollar_dollar.sync else: - _t1339 = None - fields669 = (_t1338, _t1339, _dollar_dollar.epochs,) - assert fields669 is not None - unwrapped_fields670 = fields669 + _t1433 = None + fields716 = (_t1432, _t1433, _dollar_dollar.epochs,) + assert fields716 is not None + unwrapped_fields717 = fields716 self.write("(transaction") self.indent_sexp() - field671 = unwrapped_fields670[0] - if field671 is not None: + field718 = unwrapped_fields717[0] + if field718 is not None: self.newline() - assert field671 is not None - opt_val672 = field671 - self.pretty_configure(opt_val672) - field673 = unwrapped_fields670[1] - if field673 is not None: + assert field718 is not None + opt_val719 = field718 + self.pretty_configure(opt_val719) + field720 = unwrapped_fields717[1] + if field720 is not None: self.newline() - assert field673 is not None - opt_val674 = field673 - self.pretty_sync(opt_val674) - field675 = unwrapped_fields670[2] - if not len(field675) == 0: + assert field720 is not None + opt_val721 = field720 + self.pretty_sync(opt_val721) + field722 = unwrapped_fields717[2] + if not len(field722) == 0: self.newline() - for i677, elem676 in enumerate(field675): - if (i677 > 0): + for i724, elem723 in enumerate(field722): + if (i724 > 0): self.newline() - self.pretty_epoch(elem676) + self.pretty_epoch(elem723) self.dedent() self.write(")") def pretty_configure(self, msg: transactions_pb2.Configure): - flat681 = self._try_flat(msg, self.pretty_configure) - if flat681 is not None: - assert flat681 is not None - self.write(flat681) + flat728 = self._try_flat(msg, self.pretty_configure) + if flat728 is not None: + assert flat728 is not None + self.write(flat728) return None else: _dollar_dollar = msg - _t1340 = self.deconstruct_configure(_dollar_dollar) - fields679 = _t1340 - assert fields679 is not None - unwrapped_fields680 = fields679 + _t1434 = self.deconstruct_configure(_dollar_dollar) + fields726 = _t1434 + assert fields726 is not None + unwrapped_fields727 = fields726 self.write("(configure") self.indent_sexp() self.newline() - self.pretty_config_dict(unwrapped_fields680) + self.pretty_config_dict(unwrapped_fields727) self.dedent() self.write(")") def pretty_config_dict(self, msg: Sequence[tuple[str, logic_pb2.Value]]): - flat685 = self._try_flat(msg, self.pretty_config_dict) - if flat685 is not None: - assert flat685 is not None - self.write(flat685) + flat732 = self._try_flat(msg, self.pretty_config_dict) + if flat732 is not None: + assert flat732 is not None + self.write(flat732) return None else: - fields682 = msg + fields729 = msg self.write("{") self.indent() - if not len(fields682) == 0: + if not len(fields729) == 0: self.newline() - for i684, elem683 in enumerate(fields682): - if (i684 > 0): + for i731, elem730 in enumerate(fields729): + if (i731 > 0): self.newline() - self.pretty_config_key_value(elem683) + self.pretty_config_key_value(elem730) self.dedent() self.write("}") def pretty_config_key_value(self, msg: tuple[str, logic_pb2.Value]): - flat690 = self._try_flat(msg, self.pretty_config_key_value) - if flat690 is not None: - assert flat690 is not None - self.write(flat690) + flat737 = self._try_flat(msg, self.pretty_config_key_value) + if flat737 is not None: + assert flat737 is not None + self.write(flat737) return None else: _dollar_dollar = msg - fields686 = (_dollar_dollar[0], _dollar_dollar[1],) - assert fields686 is not None - unwrapped_fields687 = fields686 + fields733 = (_dollar_dollar[0], _dollar_dollar[1],) + assert fields733 is not None + unwrapped_fields734 = fields733 self.write(":") - field688 = unwrapped_fields687[0] - self.write(field688) + field735 = unwrapped_fields734[0] + self.write(field735) self.write(" ") - field689 = unwrapped_fields687[1] - self.pretty_value(field689) + field736 = unwrapped_fields734[1] + self.pretty_value(field736) def pretty_value(self, msg: logic_pb2.Value): - flat716 = self._try_flat(msg, self.pretty_value) - if flat716 is not None: - assert flat716 is not None - self.write(flat716) + flat763 = self._try_flat(msg, self.pretty_value) + if flat763 is not None: + assert flat763 is not None + self.write(flat763) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("date_value"): - _t1341 = _dollar_dollar.date_value + _t1435 = _dollar_dollar.date_value else: - _t1341 = None - deconstruct_result714 = _t1341 - if deconstruct_result714 is not None: - assert deconstruct_result714 is not None - unwrapped715 = deconstruct_result714 - self.pretty_date(unwrapped715) + _t1435 = None + deconstruct_result761 = _t1435 + if deconstruct_result761 is not None: + assert deconstruct_result761 is not None + unwrapped762 = deconstruct_result761 + self.pretty_date(unwrapped762) else: _dollar_dollar = msg if _dollar_dollar.HasField("datetime_value"): - _t1342 = _dollar_dollar.datetime_value + _t1436 = _dollar_dollar.datetime_value else: - _t1342 = None - deconstruct_result712 = _t1342 - if deconstruct_result712 is not None: - assert deconstruct_result712 is not None - unwrapped713 = deconstruct_result712 - self.pretty_datetime(unwrapped713) + _t1436 = None + deconstruct_result759 = _t1436 + if deconstruct_result759 is not None: + assert deconstruct_result759 is not None + unwrapped760 = deconstruct_result759 + self.pretty_datetime(unwrapped760) else: _dollar_dollar = msg if _dollar_dollar.HasField("string_value"): - _t1343 = _dollar_dollar.string_value + _t1437 = _dollar_dollar.string_value else: - _t1343 = None - deconstruct_result710 = _t1343 - if deconstruct_result710 is not None: - assert deconstruct_result710 is not None - unwrapped711 = deconstruct_result710 - self.write(self.format_string_value(unwrapped711)) + _t1437 = None + deconstruct_result757 = _t1437 + if deconstruct_result757 is not None: + assert deconstruct_result757 is not None + unwrapped758 = deconstruct_result757 + self.write(self.format_string_value(unwrapped758)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int_value"): - _t1344 = _dollar_dollar.int_value + _t1438 = _dollar_dollar.int_value else: - _t1344 = None - deconstruct_result708 = _t1344 - if deconstruct_result708 is not None: - assert deconstruct_result708 is not None - unwrapped709 = deconstruct_result708 - self.write(str(unwrapped709)) + _t1438 = None + deconstruct_result755 = _t1438 + if deconstruct_result755 is not None: + assert deconstruct_result755 is not None + unwrapped756 = deconstruct_result755 + self.write(str(unwrapped756)) else: _dollar_dollar = msg if _dollar_dollar.HasField("float_value"): - _t1345 = _dollar_dollar.float_value + _t1439 = _dollar_dollar.float_value else: - _t1345 = None - deconstruct_result706 = _t1345 - if deconstruct_result706 is not None: - assert deconstruct_result706 is not None - unwrapped707 = deconstruct_result706 - self.write(str(unwrapped707)) + _t1439 = None + deconstruct_result753 = _t1439 + if deconstruct_result753 is not None: + assert deconstruct_result753 is not None + unwrapped754 = deconstruct_result753 + self.write(str(unwrapped754)) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint128_value"): - _t1346 = _dollar_dollar.uint128_value + _t1440 = _dollar_dollar.uint128_value else: - _t1346 = None - deconstruct_result704 = _t1346 - if deconstruct_result704 is not None: - assert deconstruct_result704 is not None - unwrapped705 = deconstruct_result704 - self.write(self.format_uint128(unwrapped705)) + _t1440 = None + deconstruct_result751 = _t1440 + if deconstruct_result751 is not None: + assert deconstruct_result751 is not None + unwrapped752 = deconstruct_result751 + self.write(self.format_uint128(unwrapped752)) else: _dollar_dollar = msg if _dollar_dollar.HasField("int128_value"): - _t1347 = _dollar_dollar.int128_value + _t1441 = _dollar_dollar.int128_value else: - _t1347 = None - deconstruct_result702 = _t1347 - if deconstruct_result702 is not None: - assert deconstruct_result702 is not None - unwrapped703 = deconstruct_result702 - self.write(self.format_int128(unwrapped703)) + _t1441 = None + deconstruct_result749 = _t1441 + if deconstruct_result749 is not None: + assert deconstruct_result749 is not None + unwrapped750 = deconstruct_result749 + self.write(self.format_int128(unwrapped750)) else: _dollar_dollar = msg if _dollar_dollar.HasField("decimal_value"): - _t1348 = _dollar_dollar.decimal_value + _t1442 = _dollar_dollar.decimal_value else: - _t1348 = None - deconstruct_result700 = _t1348 - if deconstruct_result700 is not None: - assert deconstruct_result700 is not None - unwrapped701 = deconstruct_result700 - self.write(self.format_decimal(unwrapped701)) + _t1442 = None + deconstruct_result747 = _t1442 + if deconstruct_result747 is not None: + assert deconstruct_result747 is not None + unwrapped748 = deconstruct_result747 + self.write(self.format_decimal(unwrapped748)) else: _dollar_dollar = msg if _dollar_dollar.HasField("boolean_value"): - _t1349 = _dollar_dollar.boolean_value + _t1443 = _dollar_dollar.boolean_value else: - _t1349 = None - deconstruct_result698 = _t1349 - if deconstruct_result698 is not None: - assert deconstruct_result698 is not None - unwrapped699 = deconstruct_result698 - self.pretty_boolean_value(unwrapped699) + _t1443 = None + deconstruct_result745 = _t1443 + if deconstruct_result745 is not None: + assert deconstruct_result745 is not None + unwrapped746 = deconstruct_result745 + self.pretty_boolean_value(unwrapped746) else: _dollar_dollar = msg if _dollar_dollar.HasField("int32_value"): - _t1350 = _dollar_dollar.int32_value + _t1444 = _dollar_dollar.int32_value else: - _t1350 = None - deconstruct_result696 = _t1350 - if deconstruct_result696 is not None: - assert deconstruct_result696 is not None - unwrapped697 = deconstruct_result696 - self.write((str(unwrapped697) + 'i32')) + _t1444 = None + deconstruct_result743 = _t1444 + if deconstruct_result743 is not None: + assert deconstruct_result743 is not None + unwrapped744 = deconstruct_result743 + self.write((str(unwrapped744) + 'i32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("float32_value"): - _t1351 = _dollar_dollar.float32_value + _t1445 = _dollar_dollar.float32_value else: - _t1351 = None - deconstruct_result694 = _t1351 - if deconstruct_result694 is not None: - assert deconstruct_result694 is not None - unwrapped695 = deconstruct_result694 - self.write((self.format_float32_value(unwrapped695) + 'f32')) + _t1445 = None + deconstruct_result741 = _t1445 + if deconstruct_result741 is not None: + assert deconstruct_result741 is not None + unwrapped742 = deconstruct_result741 + self.write((self.format_float32_value(unwrapped742) + 'f32')) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint32_value"): - _t1352 = _dollar_dollar.uint32_value + _t1446 = _dollar_dollar.uint32_value else: - _t1352 = None - deconstruct_result692 = _t1352 - if deconstruct_result692 is not None: - assert deconstruct_result692 is not None - unwrapped693 = deconstruct_result692 - self.write((str(unwrapped693) + 'u32')) + _t1446 = None + deconstruct_result739 = _t1446 + if deconstruct_result739 is not None: + assert deconstruct_result739 is not None + unwrapped740 = deconstruct_result739 + self.write((str(unwrapped740) + 'u32')) else: - fields691 = msg + fields738 = msg self.write("missing") def pretty_date(self, msg: logic_pb2.DateValue): - flat722 = self._try_flat(msg, self.pretty_date) - if flat722 is not None: - assert flat722 is not None - self.write(flat722) + flat769 = self._try_flat(msg, self.pretty_date) + if flat769 is not None: + assert flat769 is not None + self.write(flat769) return None else: _dollar_dollar = msg - fields717 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) - assert fields717 is not None - unwrapped_fields718 = fields717 + fields764 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day),) + assert fields764 is not None + unwrapped_fields765 = fields764 self.write("(date") self.indent_sexp() self.newline() - field719 = unwrapped_fields718[0] - self.write(str(field719)) + field766 = unwrapped_fields765[0] + self.write(str(field766)) self.newline() - field720 = unwrapped_fields718[1] - self.write(str(field720)) + field767 = unwrapped_fields765[1] + self.write(str(field767)) self.newline() - field721 = unwrapped_fields718[2] - self.write(str(field721)) + field768 = unwrapped_fields765[2] + self.write(str(field768)) self.dedent() self.write(")") def pretty_datetime(self, msg: logic_pb2.DateTimeValue): - flat733 = self._try_flat(msg, self.pretty_datetime) - if flat733 is not None: - assert flat733 is not None - self.write(flat733) + flat780 = self._try_flat(msg, self.pretty_datetime) + if flat780 is not None: + assert flat780 is not None + self.write(flat780) return None else: _dollar_dollar = msg - fields723 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day), int(_dollar_dollar.hour), int(_dollar_dollar.minute), int(_dollar_dollar.second), int(_dollar_dollar.microsecond),) - assert fields723 is not None - unwrapped_fields724 = fields723 + fields770 = (int(_dollar_dollar.year), int(_dollar_dollar.month), int(_dollar_dollar.day), int(_dollar_dollar.hour), int(_dollar_dollar.minute), int(_dollar_dollar.second), int(_dollar_dollar.microsecond),) + assert fields770 is not None + unwrapped_fields771 = fields770 self.write("(datetime") self.indent_sexp() self.newline() - field725 = unwrapped_fields724[0] - self.write(str(field725)) + field772 = unwrapped_fields771[0] + self.write(str(field772)) self.newline() - field726 = unwrapped_fields724[1] - self.write(str(field726)) + field773 = unwrapped_fields771[1] + self.write(str(field773)) self.newline() - field727 = unwrapped_fields724[2] - self.write(str(field727)) + field774 = unwrapped_fields771[2] + self.write(str(field774)) self.newline() - field728 = unwrapped_fields724[3] - self.write(str(field728)) + field775 = unwrapped_fields771[3] + self.write(str(field775)) self.newline() - field729 = unwrapped_fields724[4] - self.write(str(field729)) + field776 = unwrapped_fields771[4] + self.write(str(field776)) self.newline() - field730 = unwrapped_fields724[5] - self.write(str(field730)) - field731 = unwrapped_fields724[6] - if field731 is not None: + field777 = unwrapped_fields771[5] + self.write(str(field777)) + field778 = unwrapped_fields771[6] + if field778 is not None: self.newline() - assert field731 is not None - opt_val732 = field731 - self.write(str(opt_val732)) + assert field778 is not None + opt_val779 = field778 + self.write(str(opt_val779)) self.dedent() self.write(")") def pretty_boolean_value(self, msg: bool): _dollar_dollar = msg if _dollar_dollar: - _t1353 = () + _t1447 = () else: - _t1353 = None - deconstruct_result736 = _t1353 - if deconstruct_result736 is not None: - assert deconstruct_result736 is not None - unwrapped737 = deconstruct_result736 + _t1447 = None + deconstruct_result783 = _t1447 + if deconstruct_result783 is not None: + assert deconstruct_result783 is not None + unwrapped784 = deconstruct_result783 self.write("true") else: _dollar_dollar = msg if not _dollar_dollar: - _t1354 = () + _t1448 = () else: - _t1354 = None - deconstruct_result734 = _t1354 - if deconstruct_result734 is not None: - assert deconstruct_result734 is not None - unwrapped735 = deconstruct_result734 + _t1448 = None + deconstruct_result781 = _t1448 + if deconstruct_result781 is not None: + assert deconstruct_result781 is not None + unwrapped782 = deconstruct_result781 self.write("false") else: raise ParseError("No matching rule for boolean_value") def pretty_sync(self, msg: transactions_pb2.Sync): - flat742 = self._try_flat(msg, self.pretty_sync) - if flat742 is not None: - assert flat742 is not None - self.write(flat742) + flat789 = self._try_flat(msg, self.pretty_sync) + if flat789 is not None: + assert flat789 is not None + self.write(flat789) return None else: _dollar_dollar = msg - fields738 = _dollar_dollar.fragments - assert fields738 is not None - unwrapped_fields739 = fields738 + fields785 = _dollar_dollar.fragments + assert fields785 is not None + unwrapped_fields786 = fields785 self.write("(sync") self.indent_sexp() - if not len(unwrapped_fields739) == 0: + if not len(unwrapped_fields786) == 0: self.newline() - for i741, elem740 in enumerate(unwrapped_fields739): - if (i741 > 0): + for i788, elem787 in enumerate(unwrapped_fields786): + if (i788 > 0): self.newline() - self.pretty_fragment_id(elem740) + self.pretty_fragment_id(elem787) self.dedent() self.write(")") def pretty_fragment_id(self, msg: fragments_pb2.FragmentId): - flat745 = self._try_flat(msg, self.pretty_fragment_id) - if flat745 is not None: - assert flat745 is not None - self.write(flat745) + flat792 = self._try_flat(msg, self.pretty_fragment_id) + if flat792 is not None: + assert flat792 is not None + self.write(flat792) return None else: _dollar_dollar = msg - fields743 = self.fragment_id_to_string(_dollar_dollar) - assert fields743 is not None - unwrapped_fields744 = fields743 + fields790 = self.fragment_id_to_string(_dollar_dollar) + assert fields790 is not None + unwrapped_fields791 = fields790 self.write(":") - self.write(unwrapped_fields744) + self.write(unwrapped_fields791) def pretty_epoch(self, msg: transactions_pb2.Epoch): - flat752 = self._try_flat(msg, self.pretty_epoch) - if flat752 is not None: - assert flat752 is not None - self.write(flat752) + flat799 = self._try_flat(msg, self.pretty_epoch) + if flat799 is not None: + assert flat799 is not None + self.write(flat799) return None else: _dollar_dollar = msg if not len(_dollar_dollar.writes) == 0: - _t1355 = _dollar_dollar.writes + _t1449 = _dollar_dollar.writes else: - _t1355 = None + _t1449 = None if not len(_dollar_dollar.reads) == 0: - _t1356 = _dollar_dollar.reads + _t1450 = _dollar_dollar.reads else: - _t1356 = None - fields746 = (_t1355, _t1356,) - assert fields746 is not None - unwrapped_fields747 = fields746 + _t1450 = None + fields793 = (_t1449, _t1450,) + assert fields793 is not None + unwrapped_fields794 = fields793 self.write("(epoch") self.indent_sexp() - field748 = unwrapped_fields747[0] - if field748 is not None: + field795 = unwrapped_fields794[0] + if field795 is not None: self.newline() - assert field748 is not None - opt_val749 = field748 - self.pretty_epoch_writes(opt_val749) - field750 = unwrapped_fields747[1] - if field750 is not None: + assert field795 is not None + opt_val796 = field795 + self.pretty_epoch_writes(opt_val796) + field797 = unwrapped_fields794[1] + if field797 is not None: self.newline() - assert field750 is not None - opt_val751 = field750 - self.pretty_epoch_reads(opt_val751) + assert field797 is not None + opt_val798 = field797 + self.pretty_epoch_reads(opt_val798) self.dedent() self.write(")") def pretty_epoch_writes(self, msg: Sequence[transactions_pb2.Write]): - flat756 = self._try_flat(msg, self.pretty_epoch_writes) - if flat756 is not None: - assert flat756 is not None - self.write(flat756) + flat803 = self._try_flat(msg, self.pretty_epoch_writes) + if flat803 is not None: + assert flat803 is not None + self.write(flat803) return None else: - fields753 = msg + fields800 = msg self.write("(writes") self.indent_sexp() - if not len(fields753) == 0: + if not len(fields800) == 0: self.newline() - for i755, elem754 in enumerate(fields753): - if (i755 > 0): + for i802, elem801 in enumerate(fields800): + if (i802 > 0): self.newline() - self.pretty_write(elem754) + self.pretty_write(elem801) self.dedent() self.write(")") def pretty_write(self, msg: transactions_pb2.Write): - flat765 = self._try_flat(msg, self.pretty_write) - if flat765 is not None: - assert flat765 is not None - self.write(flat765) + flat812 = self._try_flat(msg, self.pretty_write) + if flat812 is not None: + assert flat812 is not None + self.write(flat812) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("define"): - _t1357 = _dollar_dollar.define + _t1451 = _dollar_dollar.define else: - _t1357 = None - deconstruct_result763 = _t1357 - if deconstruct_result763 is not None: - assert deconstruct_result763 is not None - unwrapped764 = deconstruct_result763 - self.pretty_define(unwrapped764) + _t1451 = None + deconstruct_result810 = _t1451 + if deconstruct_result810 is not None: + assert deconstruct_result810 is not None + unwrapped811 = deconstruct_result810 + self.pretty_define(unwrapped811) else: _dollar_dollar = msg if _dollar_dollar.HasField("undefine"): - _t1358 = _dollar_dollar.undefine + _t1452 = _dollar_dollar.undefine else: - _t1358 = None - deconstruct_result761 = _t1358 - if deconstruct_result761 is not None: - assert deconstruct_result761 is not None - unwrapped762 = deconstruct_result761 - self.pretty_undefine(unwrapped762) + _t1452 = None + deconstruct_result808 = _t1452 + if deconstruct_result808 is not None: + assert deconstruct_result808 is not None + unwrapped809 = deconstruct_result808 + self.pretty_undefine(unwrapped809) else: _dollar_dollar = msg if _dollar_dollar.HasField("context"): - _t1359 = _dollar_dollar.context + _t1453 = _dollar_dollar.context else: - _t1359 = None - deconstruct_result759 = _t1359 - if deconstruct_result759 is not None: - assert deconstruct_result759 is not None - unwrapped760 = deconstruct_result759 - self.pretty_context(unwrapped760) + _t1453 = None + deconstruct_result806 = _t1453 + if deconstruct_result806 is not None: + assert deconstruct_result806 is not None + unwrapped807 = deconstruct_result806 + self.pretty_context(unwrapped807) else: _dollar_dollar = msg if _dollar_dollar.HasField("snapshot"): - _t1360 = _dollar_dollar.snapshot + _t1454 = _dollar_dollar.snapshot else: - _t1360 = None - deconstruct_result757 = _t1360 - if deconstruct_result757 is not None: - assert deconstruct_result757 is not None - unwrapped758 = deconstruct_result757 - self.pretty_snapshot(unwrapped758) + _t1454 = None + deconstruct_result804 = _t1454 + if deconstruct_result804 is not None: + assert deconstruct_result804 is not None + unwrapped805 = deconstruct_result804 + self.pretty_snapshot(unwrapped805) else: raise ParseError("No matching rule for write") def pretty_define(self, msg: transactions_pb2.Define): - flat768 = self._try_flat(msg, self.pretty_define) - if flat768 is not None: - assert flat768 is not None - self.write(flat768) + flat815 = self._try_flat(msg, self.pretty_define) + if flat815 is not None: + assert flat815 is not None + self.write(flat815) return None else: _dollar_dollar = msg - fields766 = _dollar_dollar.fragment - assert fields766 is not None - unwrapped_fields767 = fields766 + fields813 = _dollar_dollar.fragment + assert fields813 is not None + unwrapped_fields814 = fields813 self.write("(define") self.indent_sexp() self.newline() - self.pretty_fragment(unwrapped_fields767) + self.pretty_fragment(unwrapped_fields814) self.dedent() self.write(")") def pretty_fragment(self, msg: fragments_pb2.Fragment): - flat775 = self._try_flat(msg, self.pretty_fragment) - if flat775 is not None: - assert flat775 is not None - self.write(flat775) + flat822 = self._try_flat(msg, self.pretty_fragment) + if flat822 is not None: + assert flat822 is not None + self.write(flat822) return None else: _dollar_dollar = msg self.start_pretty_fragment(_dollar_dollar) - fields769 = (_dollar_dollar.id, _dollar_dollar.declarations,) - assert fields769 is not None - unwrapped_fields770 = fields769 + fields816 = (_dollar_dollar.id, _dollar_dollar.declarations,) + assert fields816 is not None + unwrapped_fields817 = fields816 self.write("(fragment") self.indent_sexp() self.newline() - field771 = unwrapped_fields770[0] - self.pretty_new_fragment_id(field771) - field772 = unwrapped_fields770[1] - if not len(field772) == 0: + field818 = unwrapped_fields817[0] + self.pretty_new_fragment_id(field818) + field819 = unwrapped_fields817[1] + if not len(field819) == 0: self.newline() - for i774, elem773 in enumerate(field772): - if (i774 > 0): + for i821, elem820 in enumerate(field819): + if (i821 > 0): self.newline() - self.pretty_declaration(elem773) + self.pretty_declaration(elem820) self.dedent() self.write(")") def pretty_new_fragment_id(self, msg: fragments_pb2.FragmentId): - flat777 = self._try_flat(msg, self.pretty_new_fragment_id) - if flat777 is not None: - assert flat777 is not None - self.write(flat777) + flat824 = self._try_flat(msg, self.pretty_new_fragment_id) + if flat824 is not None: + assert flat824 is not None + self.write(flat824) return None else: - fields776 = msg - self.pretty_fragment_id(fields776) + fields823 = msg + self.pretty_fragment_id(fields823) def pretty_declaration(self, msg: logic_pb2.Declaration): - flat786 = self._try_flat(msg, self.pretty_declaration) - if flat786 is not None: - assert flat786 is not None - self.write(flat786) + flat833 = self._try_flat(msg, self.pretty_declaration) + if flat833 is not None: + assert flat833 is not None + self.write(flat833) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("def"): - _t1361 = getattr(_dollar_dollar, 'def') + _t1455 = getattr(_dollar_dollar, 'def') else: - _t1361 = None - deconstruct_result784 = _t1361 - if deconstruct_result784 is not None: - assert deconstruct_result784 is not None - unwrapped785 = deconstruct_result784 - self.pretty_def(unwrapped785) + _t1455 = None + deconstruct_result831 = _t1455 + if deconstruct_result831 is not None: + assert deconstruct_result831 is not None + unwrapped832 = deconstruct_result831 + self.pretty_def(unwrapped832) else: _dollar_dollar = msg if _dollar_dollar.HasField("algorithm"): - _t1362 = _dollar_dollar.algorithm + _t1456 = _dollar_dollar.algorithm else: - _t1362 = None - deconstruct_result782 = _t1362 - if deconstruct_result782 is not None: - assert deconstruct_result782 is not None - unwrapped783 = deconstruct_result782 - self.pretty_algorithm(unwrapped783) + _t1456 = None + deconstruct_result829 = _t1456 + if deconstruct_result829 is not None: + assert deconstruct_result829 is not None + unwrapped830 = deconstruct_result829 + self.pretty_algorithm(unwrapped830) else: _dollar_dollar = msg if _dollar_dollar.HasField("constraint"): - _t1363 = _dollar_dollar.constraint + _t1457 = _dollar_dollar.constraint else: - _t1363 = None - deconstruct_result780 = _t1363 - if deconstruct_result780 is not None: - assert deconstruct_result780 is not None - unwrapped781 = deconstruct_result780 - self.pretty_constraint(unwrapped781) + _t1457 = None + deconstruct_result827 = _t1457 + if deconstruct_result827 is not None: + assert deconstruct_result827 is not None + unwrapped828 = deconstruct_result827 + self.pretty_constraint(unwrapped828) else: _dollar_dollar = msg if _dollar_dollar.HasField("data"): - _t1364 = _dollar_dollar.data + _t1458 = _dollar_dollar.data else: - _t1364 = None - deconstruct_result778 = _t1364 - if deconstruct_result778 is not None: - assert deconstruct_result778 is not None - unwrapped779 = deconstruct_result778 - self.pretty_data(unwrapped779) + _t1458 = None + deconstruct_result825 = _t1458 + if deconstruct_result825 is not None: + assert deconstruct_result825 is not None + unwrapped826 = deconstruct_result825 + self.pretty_data(unwrapped826) else: raise ParseError("No matching rule for declaration") def pretty_def(self, msg: logic_pb2.Def): - flat793 = self._try_flat(msg, self.pretty_def) - if flat793 is not None: - assert flat793 is not None - self.write(flat793) + flat840 = self._try_flat(msg, self.pretty_def) + if flat840 is not None: + assert flat840 is not None + self.write(flat840) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1365 = _dollar_dollar.attrs + _t1459 = _dollar_dollar.attrs else: - _t1365 = None - fields787 = (_dollar_dollar.name, _dollar_dollar.body, _t1365,) - assert fields787 is not None - unwrapped_fields788 = fields787 + _t1459 = None + fields834 = (_dollar_dollar.name, _dollar_dollar.body, _t1459,) + assert fields834 is not None + unwrapped_fields835 = fields834 self.write("(def") self.indent_sexp() self.newline() - field789 = unwrapped_fields788[0] - self.pretty_relation_id(field789) + field836 = unwrapped_fields835[0] + self.pretty_relation_id(field836) self.newline() - field790 = unwrapped_fields788[1] - self.pretty_abstraction(field790) - field791 = unwrapped_fields788[2] - if field791 is not None: + field837 = unwrapped_fields835[1] + self.pretty_abstraction(field837) + field838 = unwrapped_fields835[2] + if field838 is not None: self.newline() - assert field791 is not None - opt_val792 = field791 - self.pretty_attrs(opt_val792) + assert field838 is not None + opt_val839 = field838 + self.pretty_attrs(opt_val839) self.dedent() self.write(")") def pretty_relation_id(self, msg: logic_pb2.RelationId): - flat798 = self._try_flat(msg, self.pretty_relation_id) - if flat798 is not None: - assert flat798 is not None - self.write(flat798) + flat845 = self._try_flat(msg, self.pretty_relation_id) + if flat845 is not None: + assert flat845 is not None + self.write(flat845) return None else: _dollar_dollar = msg if self.relation_id_to_string(_dollar_dollar) is not None: - _t1367 = self.deconstruct_relation_id_string(_dollar_dollar) - _t1366 = _t1367 - else: - _t1366 = None - deconstruct_result796 = _t1366 - if deconstruct_result796 is not None: - assert deconstruct_result796 is not None - unwrapped797 = deconstruct_result796 + _t1461 = self.deconstruct_relation_id_string(_dollar_dollar) + _t1460 = _t1461 + else: + _t1460 = None + deconstruct_result843 = _t1460 + if deconstruct_result843 is not None: + assert deconstruct_result843 is not None + unwrapped844 = deconstruct_result843 self.write(":") - self.write(unwrapped797) + self.write(unwrapped844) else: _dollar_dollar = msg - _t1368 = self.deconstruct_relation_id_uint128(_dollar_dollar) - deconstruct_result794 = _t1368 - if deconstruct_result794 is not None: - assert deconstruct_result794 is not None - unwrapped795 = deconstruct_result794 - self.write(self.format_uint128(unwrapped795)) + _t1462 = self.deconstruct_relation_id_uint128(_dollar_dollar) + deconstruct_result841 = _t1462 + if deconstruct_result841 is not None: + assert deconstruct_result841 is not None + unwrapped842 = deconstruct_result841 + self.write(self.format_uint128(unwrapped842)) else: raise ParseError("No matching rule for relation_id") def pretty_abstraction(self, msg: logic_pb2.Abstraction): - flat803 = self._try_flat(msg, self.pretty_abstraction) - if flat803 is not None: - assert flat803 is not None - self.write(flat803) + flat850 = self._try_flat(msg, self.pretty_abstraction) + if flat850 is not None: + assert flat850 is not None + self.write(flat850) return None else: _dollar_dollar = msg - _t1369 = self.deconstruct_bindings(_dollar_dollar) - fields799 = (_t1369, _dollar_dollar.value,) - assert fields799 is not None - unwrapped_fields800 = fields799 + _t1463 = self.deconstruct_bindings(_dollar_dollar) + fields846 = (_t1463, _dollar_dollar.value,) + assert fields846 is not None + unwrapped_fields847 = fields846 self.write("(") self.indent() - field801 = unwrapped_fields800[0] - self.pretty_bindings(field801) + field848 = unwrapped_fields847[0] + self.pretty_bindings(field848) self.newline() - field802 = unwrapped_fields800[1] - self.pretty_formula(field802) + field849 = unwrapped_fields847[1] + self.pretty_formula(field849) self.dedent() self.write(")") def pretty_bindings(self, msg: tuple[Sequence[logic_pb2.Binding], Sequence[logic_pb2.Binding]]): - flat811 = self._try_flat(msg, self.pretty_bindings) - if flat811 is not None: - assert flat811 is not None - self.write(flat811) + flat858 = self._try_flat(msg, self.pretty_bindings) + if flat858 is not None: + assert flat858 is not None + self.write(flat858) return None else: _dollar_dollar = msg if not len(_dollar_dollar[1]) == 0: - _t1370 = _dollar_dollar[1] + _t1464 = _dollar_dollar[1] else: - _t1370 = None - fields804 = (_dollar_dollar[0], _t1370,) - assert fields804 is not None - unwrapped_fields805 = fields804 + _t1464 = None + fields851 = (_dollar_dollar[0], _t1464,) + assert fields851 is not None + unwrapped_fields852 = fields851 self.write("[") self.indent() - field806 = unwrapped_fields805[0] - for i808, elem807 in enumerate(field806): - if (i808 > 0): + field853 = unwrapped_fields852[0] + for i855, elem854 in enumerate(field853): + if (i855 > 0): self.newline() - self.pretty_binding(elem807) - field809 = unwrapped_fields805[1] - if field809 is not None: + self.pretty_binding(elem854) + field856 = unwrapped_fields852[1] + if field856 is not None: self.newline() - assert field809 is not None - opt_val810 = field809 - self.pretty_value_bindings(opt_val810) + assert field856 is not None + opt_val857 = field856 + self.pretty_value_bindings(opt_val857) self.dedent() self.write("]") def pretty_binding(self, msg: logic_pb2.Binding): - flat816 = self._try_flat(msg, self.pretty_binding) - if flat816 is not None: - assert flat816 is not None - self.write(flat816) + flat863 = self._try_flat(msg, self.pretty_binding) + if flat863 is not None: + assert flat863 is not None + self.write(flat863) return None else: _dollar_dollar = msg - fields812 = (_dollar_dollar.var.name, _dollar_dollar.type,) - assert fields812 is not None - unwrapped_fields813 = fields812 - field814 = unwrapped_fields813[0] - self.write(field814) + fields859 = (_dollar_dollar.var.name, _dollar_dollar.type,) + assert fields859 is not None + unwrapped_fields860 = fields859 + field861 = unwrapped_fields860[0] + self.write(field861) self.write("::") - field815 = unwrapped_fields813[1] - self.pretty_type(field815) + field862 = unwrapped_fields860[1] + self.pretty_type(field862) def pretty_type(self, msg: logic_pb2.Type): - flat845 = self._try_flat(msg, self.pretty_type) - if flat845 is not None: - assert flat845 is not None - self.write(flat845) + flat892 = self._try_flat(msg, self.pretty_type) + if flat892 is not None: + assert flat892 is not None + self.write(flat892) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("unspecified_type"): - _t1371 = _dollar_dollar.unspecified_type + _t1465 = _dollar_dollar.unspecified_type else: - _t1371 = None - deconstruct_result843 = _t1371 - if deconstruct_result843 is not None: - assert deconstruct_result843 is not None - unwrapped844 = deconstruct_result843 - self.pretty_unspecified_type(unwrapped844) + _t1465 = None + deconstruct_result890 = _t1465 + if deconstruct_result890 is not None: + assert deconstruct_result890 is not None + unwrapped891 = deconstruct_result890 + self.pretty_unspecified_type(unwrapped891) else: _dollar_dollar = msg if _dollar_dollar.HasField("string_type"): - _t1372 = _dollar_dollar.string_type + _t1466 = _dollar_dollar.string_type else: - _t1372 = None - deconstruct_result841 = _t1372 - if deconstruct_result841 is not None: - assert deconstruct_result841 is not None - unwrapped842 = deconstruct_result841 - self.pretty_string_type(unwrapped842) + _t1466 = None + deconstruct_result888 = _t1466 + if deconstruct_result888 is not None: + assert deconstruct_result888 is not None + unwrapped889 = deconstruct_result888 + self.pretty_string_type(unwrapped889) else: _dollar_dollar = msg if _dollar_dollar.HasField("int_type"): - _t1373 = _dollar_dollar.int_type + _t1467 = _dollar_dollar.int_type else: - _t1373 = None - deconstruct_result839 = _t1373 - if deconstruct_result839 is not None: - assert deconstruct_result839 is not None - unwrapped840 = deconstruct_result839 - self.pretty_int_type(unwrapped840) + _t1467 = None + deconstruct_result886 = _t1467 + if deconstruct_result886 is not None: + assert deconstruct_result886 is not None + unwrapped887 = deconstruct_result886 + self.pretty_int_type(unwrapped887) else: _dollar_dollar = msg if _dollar_dollar.HasField("float_type"): - _t1374 = _dollar_dollar.float_type + _t1468 = _dollar_dollar.float_type else: - _t1374 = None - deconstruct_result837 = _t1374 - if deconstruct_result837 is not None: - assert deconstruct_result837 is not None - unwrapped838 = deconstruct_result837 - self.pretty_float_type(unwrapped838) + _t1468 = None + deconstruct_result884 = _t1468 + if deconstruct_result884 is not None: + assert deconstruct_result884 is not None + unwrapped885 = deconstruct_result884 + self.pretty_float_type(unwrapped885) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint128_type"): - _t1375 = _dollar_dollar.uint128_type + _t1469 = _dollar_dollar.uint128_type else: - _t1375 = None - deconstruct_result835 = _t1375 - if deconstruct_result835 is not None: - assert deconstruct_result835 is not None - unwrapped836 = deconstruct_result835 - self.pretty_uint128_type(unwrapped836) + _t1469 = None + deconstruct_result882 = _t1469 + if deconstruct_result882 is not None: + assert deconstruct_result882 is not None + unwrapped883 = deconstruct_result882 + self.pretty_uint128_type(unwrapped883) else: _dollar_dollar = msg if _dollar_dollar.HasField("int128_type"): - _t1376 = _dollar_dollar.int128_type + _t1470 = _dollar_dollar.int128_type else: - _t1376 = None - deconstruct_result833 = _t1376 - if deconstruct_result833 is not None: - assert deconstruct_result833 is not None - unwrapped834 = deconstruct_result833 - self.pretty_int128_type(unwrapped834) + _t1470 = None + deconstruct_result880 = _t1470 + if deconstruct_result880 is not None: + assert deconstruct_result880 is not None + unwrapped881 = deconstruct_result880 + self.pretty_int128_type(unwrapped881) else: _dollar_dollar = msg if _dollar_dollar.HasField("date_type"): - _t1377 = _dollar_dollar.date_type + _t1471 = _dollar_dollar.date_type else: - _t1377 = None - deconstruct_result831 = _t1377 - if deconstruct_result831 is not None: - assert deconstruct_result831 is not None - unwrapped832 = deconstruct_result831 - self.pretty_date_type(unwrapped832) + _t1471 = None + deconstruct_result878 = _t1471 + if deconstruct_result878 is not None: + assert deconstruct_result878 is not None + unwrapped879 = deconstruct_result878 + self.pretty_date_type(unwrapped879) else: _dollar_dollar = msg if _dollar_dollar.HasField("datetime_type"): - _t1378 = _dollar_dollar.datetime_type + _t1472 = _dollar_dollar.datetime_type else: - _t1378 = None - deconstruct_result829 = _t1378 - if deconstruct_result829 is not None: - assert deconstruct_result829 is not None - unwrapped830 = deconstruct_result829 - self.pretty_datetime_type(unwrapped830) + _t1472 = None + deconstruct_result876 = _t1472 + if deconstruct_result876 is not None: + assert deconstruct_result876 is not None + unwrapped877 = deconstruct_result876 + self.pretty_datetime_type(unwrapped877) else: _dollar_dollar = msg if _dollar_dollar.HasField("missing_type"): - _t1379 = _dollar_dollar.missing_type + _t1473 = _dollar_dollar.missing_type else: - _t1379 = None - deconstruct_result827 = _t1379 - if deconstruct_result827 is not None: - assert deconstruct_result827 is not None - unwrapped828 = deconstruct_result827 - self.pretty_missing_type(unwrapped828) + _t1473 = None + deconstruct_result874 = _t1473 + if deconstruct_result874 is not None: + assert deconstruct_result874 is not None + unwrapped875 = deconstruct_result874 + self.pretty_missing_type(unwrapped875) else: _dollar_dollar = msg if _dollar_dollar.HasField("decimal_type"): - _t1380 = _dollar_dollar.decimal_type + _t1474 = _dollar_dollar.decimal_type else: - _t1380 = None - deconstruct_result825 = _t1380 - if deconstruct_result825 is not None: - assert deconstruct_result825 is not None - unwrapped826 = deconstruct_result825 - self.pretty_decimal_type(unwrapped826) + _t1474 = None + deconstruct_result872 = _t1474 + if deconstruct_result872 is not None: + assert deconstruct_result872 is not None + unwrapped873 = deconstruct_result872 + self.pretty_decimal_type(unwrapped873) else: _dollar_dollar = msg if _dollar_dollar.HasField("boolean_type"): - _t1381 = _dollar_dollar.boolean_type + _t1475 = _dollar_dollar.boolean_type else: - _t1381 = None - deconstruct_result823 = _t1381 - if deconstruct_result823 is not None: - assert deconstruct_result823 is not None - unwrapped824 = deconstruct_result823 - self.pretty_boolean_type(unwrapped824) + _t1475 = None + deconstruct_result870 = _t1475 + if deconstruct_result870 is not None: + assert deconstruct_result870 is not None + unwrapped871 = deconstruct_result870 + self.pretty_boolean_type(unwrapped871) else: _dollar_dollar = msg if _dollar_dollar.HasField("int32_type"): - _t1382 = _dollar_dollar.int32_type + _t1476 = _dollar_dollar.int32_type else: - _t1382 = None - deconstruct_result821 = _t1382 - if deconstruct_result821 is not None: - assert deconstruct_result821 is not None - unwrapped822 = deconstruct_result821 - self.pretty_int32_type(unwrapped822) + _t1476 = None + deconstruct_result868 = _t1476 + if deconstruct_result868 is not None: + assert deconstruct_result868 is not None + unwrapped869 = deconstruct_result868 + self.pretty_int32_type(unwrapped869) else: _dollar_dollar = msg if _dollar_dollar.HasField("float32_type"): - _t1383 = _dollar_dollar.float32_type + _t1477 = _dollar_dollar.float32_type else: - _t1383 = None - deconstruct_result819 = _t1383 - if deconstruct_result819 is not None: - assert deconstruct_result819 is not None - unwrapped820 = deconstruct_result819 - self.pretty_float32_type(unwrapped820) + _t1477 = None + deconstruct_result866 = _t1477 + if deconstruct_result866 is not None: + assert deconstruct_result866 is not None + unwrapped867 = deconstruct_result866 + self.pretty_float32_type(unwrapped867) else: _dollar_dollar = msg if _dollar_dollar.HasField("uint32_type"): - _t1384 = _dollar_dollar.uint32_type + _t1478 = _dollar_dollar.uint32_type else: - _t1384 = None - deconstruct_result817 = _t1384 - if deconstruct_result817 is not None: - assert deconstruct_result817 is not None - unwrapped818 = deconstruct_result817 - self.pretty_uint32_type(unwrapped818) + _t1478 = None + deconstruct_result864 = _t1478 + if deconstruct_result864 is not None: + assert deconstruct_result864 is not None + unwrapped865 = deconstruct_result864 + self.pretty_uint32_type(unwrapped865) else: raise ParseError("No matching rule for type") def pretty_unspecified_type(self, msg: logic_pb2.UnspecifiedType): - fields846 = msg + fields893 = msg self.write("UNKNOWN") def pretty_string_type(self, msg: logic_pb2.StringType): - fields847 = msg + fields894 = msg self.write("STRING") def pretty_int_type(self, msg: logic_pb2.IntType): - fields848 = msg + fields895 = msg self.write("INT") def pretty_float_type(self, msg: logic_pb2.FloatType): - fields849 = msg + fields896 = msg self.write("FLOAT") def pretty_uint128_type(self, msg: logic_pb2.UInt128Type): - fields850 = msg + fields897 = msg self.write("UINT128") def pretty_int128_type(self, msg: logic_pb2.Int128Type): - fields851 = msg + fields898 = msg self.write("INT128") def pretty_date_type(self, msg: logic_pb2.DateType): - fields852 = msg + fields899 = msg self.write("DATE") def pretty_datetime_type(self, msg: logic_pb2.DateTimeType): - fields853 = msg + fields900 = msg self.write("DATETIME") def pretty_missing_type(self, msg: logic_pb2.MissingType): - fields854 = msg + fields901 = msg self.write("MISSING") def pretty_decimal_type(self, msg: logic_pb2.DecimalType): - flat859 = self._try_flat(msg, self.pretty_decimal_type) - if flat859 is not None: - assert flat859 is not None - self.write(flat859) + flat906 = self._try_flat(msg, self.pretty_decimal_type) + if flat906 is not None: + assert flat906 is not None + self.write(flat906) return None else: _dollar_dollar = msg - fields855 = (int(_dollar_dollar.precision), int(_dollar_dollar.scale),) - assert fields855 is not None - unwrapped_fields856 = fields855 + fields902 = (int(_dollar_dollar.precision), int(_dollar_dollar.scale),) + assert fields902 is not None + unwrapped_fields903 = fields902 self.write("(DECIMAL") self.indent_sexp() self.newline() - field857 = unwrapped_fields856[0] - self.write(str(field857)) + field904 = unwrapped_fields903[0] + self.write(str(field904)) self.newline() - field858 = unwrapped_fields856[1] - self.write(str(field858)) + field905 = unwrapped_fields903[1] + self.write(str(field905)) self.dedent() self.write(")") def pretty_boolean_type(self, msg: logic_pb2.BooleanType): - fields860 = msg + fields907 = msg self.write("BOOLEAN") def pretty_int32_type(self, msg: logic_pb2.Int32Type): - fields861 = msg + fields908 = msg self.write("INT32") def pretty_float32_type(self, msg: logic_pb2.Float32Type): - fields862 = msg + fields909 = msg self.write("FLOAT32") def pretty_uint32_type(self, msg: logic_pb2.UInt32Type): - fields863 = msg + fields910 = msg self.write("UINT32") def pretty_value_bindings(self, msg: Sequence[logic_pb2.Binding]): - flat867 = self._try_flat(msg, self.pretty_value_bindings) - if flat867 is not None: - assert flat867 is not None - self.write(flat867) + flat914 = self._try_flat(msg, self.pretty_value_bindings) + if flat914 is not None: + assert flat914 is not None + self.write(flat914) return None else: - fields864 = msg + fields911 = msg self.write("|") - if not len(fields864) == 0: + if not len(fields911) == 0: self.write(" ") - for i866, elem865 in enumerate(fields864): - if (i866 > 0): + for i913, elem912 in enumerate(fields911): + if (i913 > 0): self.newline() - self.pretty_binding(elem865) + self.pretty_binding(elem912) def pretty_formula(self, msg: logic_pb2.Formula): - flat894 = self._try_flat(msg, self.pretty_formula) - if flat894 is not None: - assert flat894 is not None - self.write(flat894) + flat941 = self._try_flat(msg, self.pretty_formula) + if flat941 is not None: + assert flat941 is not None + self.write(flat941) return None else: _dollar_dollar = msg if (_dollar_dollar.HasField("conjunction") and len(_dollar_dollar.conjunction.args) == 0): - _t1385 = _dollar_dollar.conjunction + _t1479 = _dollar_dollar.conjunction else: - _t1385 = None - deconstruct_result892 = _t1385 - if deconstruct_result892 is not None: - assert deconstruct_result892 is not None - unwrapped893 = deconstruct_result892 - self.pretty_true(unwrapped893) + _t1479 = None + deconstruct_result939 = _t1479 + if deconstruct_result939 is not None: + assert deconstruct_result939 is not None + unwrapped940 = deconstruct_result939 + self.pretty_true(unwrapped940) else: _dollar_dollar = msg if (_dollar_dollar.HasField("disjunction") and len(_dollar_dollar.disjunction.args) == 0): - _t1386 = _dollar_dollar.disjunction + _t1480 = _dollar_dollar.disjunction else: - _t1386 = None - deconstruct_result890 = _t1386 - if deconstruct_result890 is not None: - assert deconstruct_result890 is not None - unwrapped891 = deconstruct_result890 - self.pretty_false(unwrapped891) + _t1480 = None + deconstruct_result937 = _t1480 + if deconstruct_result937 is not None: + assert deconstruct_result937 is not None + unwrapped938 = deconstruct_result937 + self.pretty_false(unwrapped938) else: _dollar_dollar = msg if _dollar_dollar.HasField("exists"): - _t1387 = _dollar_dollar.exists + _t1481 = _dollar_dollar.exists else: - _t1387 = None - deconstruct_result888 = _t1387 - if deconstruct_result888 is not None: - assert deconstruct_result888 is not None - unwrapped889 = deconstruct_result888 - self.pretty_exists(unwrapped889) + _t1481 = None + deconstruct_result935 = _t1481 + if deconstruct_result935 is not None: + assert deconstruct_result935 is not None + unwrapped936 = deconstruct_result935 + self.pretty_exists(unwrapped936) else: _dollar_dollar = msg if _dollar_dollar.HasField("reduce"): - _t1388 = _dollar_dollar.reduce + _t1482 = _dollar_dollar.reduce else: - _t1388 = None - deconstruct_result886 = _t1388 - if deconstruct_result886 is not None: - assert deconstruct_result886 is not None - unwrapped887 = deconstruct_result886 - self.pretty_reduce(unwrapped887) + _t1482 = None + deconstruct_result933 = _t1482 + if deconstruct_result933 is not None: + assert deconstruct_result933 is not None + unwrapped934 = deconstruct_result933 + self.pretty_reduce(unwrapped934) else: _dollar_dollar = msg if (_dollar_dollar.HasField("conjunction") and not len(_dollar_dollar.conjunction.args) == 0): - _t1389 = _dollar_dollar.conjunction + _t1483 = _dollar_dollar.conjunction else: - _t1389 = None - deconstruct_result884 = _t1389 - if deconstruct_result884 is not None: - assert deconstruct_result884 is not None - unwrapped885 = deconstruct_result884 - self.pretty_conjunction(unwrapped885) + _t1483 = None + deconstruct_result931 = _t1483 + if deconstruct_result931 is not None: + assert deconstruct_result931 is not None + unwrapped932 = deconstruct_result931 + self.pretty_conjunction(unwrapped932) else: _dollar_dollar = msg if (_dollar_dollar.HasField("disjunction") and not len(_dollar_dollar.disjunction.args) == 0): - _t1390 = _dollar_dollar.disjunction + _t1484 = _dollar_dollar.disjunction else: - _t1390 = None - deconstruct_result882 = _t1390 - if deconstruct_result882 is not None: - assert deconstruct_result882 is not None - unwrapped883 = deconstruct_result882 - self.pretty_disjunction(unwrapped883) + _t1484 = None + deconstruct_result929 = _t1484 + if deconstruct_result929 is not None: + assert deconstruct_result929 is not None + unwrapped930 = deconstruct_result929 + self.pretty_disjunction(unwrapped930) else: _dollar_dollar = msg if _dollar_dollar.HasField("not"): - _t1391 = getattr(_dollar_dollar, 'not') + _t1485 = getattr(_dollar_dollar, 'not') else: - _t1391 = None - deconstruct_result880 = _t1391 - if deconstruct_result880 is not None: - assert deconstruct_result880 is not None - unwrapped881 = deconstruct_result880 - self.pretty_not(unwrapped881) + _t1485 = None + deconstruct_result927 = _t1485 + if deconstruct_result927 is not None: + assert deconstruct_result927 is not None + unwrapped928 = deconstruct_result927 + self.pretty_not(unwrapped928) else: _dollar_dollar = msg if _dollar_dollar.HasField("ffi"): - _t1392 = _dollar_dollar.ffi + _t1486 = _dollar_dollar.ffi else: - _t1392 = None - deconstruct_result878 = _t1392 - if deconstruct_result878 is not None: - assert deconstruct_result878 is not None - unwrapped879 = deconstruct_result878 - self.pretty_ffi(unwrapped879) + _t1486 = None + deconstruct_result925 = _t1486 + if deconstruct_result925 is not None: + assert deconstruct_result925 is not None + unwrapped926 = deconstruct_result925 + self.pretty_ffi(unwrapped926) else: _dollar_dollar = msg if _dollar_dollar.HasField("atom"): - _t1393 = _dollar_dollar.atom + _t1487 = _dollar_dollar.atom else: - _t1393 = None - deconstruct_result876 = _t1393 - if deconstruct_result876 is not None: - assert deconstruct_result876 is not None - unwrapped877 = deconstruct_result876 - self.pretty_atom(unwrapped877) + _t1487 = None + deconstruct_result923 = _t1487 + if deconstruct_result923 is not None: + assert deconstruct_result923 is not None + unwrapped924 = deconstruct_result923 + self.pretty_atom(unwrapped924) else: _dollar_dollar = msg if _dollar_dollar.HasField("pragma"): - _t1394 = _dollar_dollar.pragma + _t1488 = _dollar_dollar.pragma else: - _t1394 = None - deconstruct_result874 = _t1394 - if deconstruct_result874 is not None: - assert deconstruct_result874 is not None - unwrapped875 = deconstruct_result874 - self.pretty_pragma(unwrapped875) + _t1488 = None + deconstruct_result921 = _t1488 + if deconstruct_result921 is not None: + assert deconstruct_result921 is not None + unwrapped922 = deconstruct_result921 + self.pretty_pragma(unwrapped922) else: _dollar_dollar = msg if _dollar_dollar.HasField("primitive"): - _t1395 = _dollar_dollar.primitive + _t1489 = _dollar_dollar.primitive else: - _t1395 = None - deconstruct_result872 = _t1395 - if deconstruct_result872 is not None: - assert deconstruct_result872 is not None - unwrapped873 = deconstruct_result872 - self.pretty_primitive(unwrapped873) + _t1489 = None + deconstruct_result919 = _t1489 + if deconstruct_result919 is not None: + assert deconstruct_result919 is not None + unwrapped920 = deconstruct_result919 + self.pretty_primitive(unwrapped920) else: _dollar_dollar = msg if _dollar_dollar.HasField("rel_atom"): - _t1396 = _dollar_dollar.rel_atom + _t1490 = _dollar_dollar.rel_atom else: - _t1396 = None - deconstruct_result870 = _t1396 - if deconstruct_result870 is not None: - assert deconstruct_result870 is not None - unwrapped871 = deconstruct_result870 - self.pretty_rel_atom(unwrapped871) + _t1490 = None + deconstruct_result917 = _t1490 + if deconstruct_result917 is not None: + assert deconstruct_result917 is not None + unwrapped918 = deconstruct_result917 + self.pretty_rel_atom(unwrapped918) else: _dollar_dollar = msg if _dollar_dollar.HasField("cast"): - _t1397 = _dollar_dollar.cast + _t1491 = _dollar_dollar.cast else: - _t1397 = None - deconstruct_result868 = _t1397 - if deconstruct_result868 is not None: - assert deconstruct_result868 is not None - unwrapped869 = deconstruct_result868 - self.pretty_cast(unwrapped869) + _t1491 = None + deconstruct_result915 = _t1491 + if deconstruct_result915 is not None: + assert deconstruct_result915 is not None + unwrapped916 = deconstruct_result915 + self.pretty_cast(unwrapped916) else: raise ParseError("No matching rule for formula") def pretty_true(self, msg: logic_pb2.Conjunction): - fields895 = msg + fields942 = msg self.write("(true)") def pretty_false(self, msg: logic_pb2.Disjunction): - fields896 = msg + fields943 = msg self.write("(false)") def pretty_exists(self, msg: logic_pb2.Exists): - flat901 = self._try_flat(msg, self.pretty_exists) - if flat901 is not None: - assert flat901 is not None - self.write(flat901) + flat948 = self._try_flat(msg, self.pretty_exists) + if flat948 is not None: + assert flat948 is not None + self.write(flat948) return None else: _dollar_dollar = msg - _t1398 = self.deconstruct_bindings(_dollar_dollar.body) - fields897 = (_t1398, _dollar_dollar.body.value,) - assert fields897 is not None - unwrapped_fields898 = fields897 + _t1492 = self.deconstruct_bindings(_dollar_dollar.body) + fields944 = (_t1492, _dollar_dollar.body.value,) + assert fields944 is not None + unwrapped_fields945 = fields944 self.write("(exists") self.indent_sexp() self.newline() - field899 = unwrapped_fields898[0] - self.pretty_bindings(field899) + field946 = unwrapped_fields945[0] + self.pretty_bindings(field946) self.newline() - field900 = unwrapped_fields898[1] - self.pretty_formula(field900) + field947 = unwrapped_fields945[1] + self.pretty_formula(field947) self.dedent() self.write(")") def pretty_reduce(self, msg: logic_pb2.Reduce): - flat907 = self._try_flat(msg, self.pretty_reduce) - if flat907 is not None: - assert flat907 is not None - self.write(flat907) + flat954 = self._try_flat(msg, self.pretty_reduce) + if flat954 is not None: + assert flat954 is not None + self.write(flat954) return None else: _dollar_dollar = msg - fields902 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) - assert fields902 is not None - unwrapped_fields903 = fields902 + fields949 = (_dollar_dollar.op, _dollar_dollar.body, _dollar_dollar.terms,) + assert fields949 is not None + unwrapped_fields950 = fields949 self.write("(reduce") self.indent_sexp() self.newline() - field904 = unwrapped_fields903[0] - self.pretty_abstraction(field904) + field951 = unwrapped_fields950[0] + self.pretty_abstraction(field951) self.newline() - field905 = unwrapped_fields903[1] - self.pretty_abstraction(field905) + field952 = unwrapped_fields950[1] + self.pretty_abstraction(field952) self.newline() - field906 = unwrapped_fields903[2] - self.pretty_terms(field906) + field953 = unwrapped_fields950[2] + self.pretty_terms(field953) self.dedent() self.write(")") def pretty_terms(self, msg: Sequence[logic_pb2.Term]): - flat911 = self._try_flat(msg, self.pretty_terms) - if flat911 is not None: - assert flat911 is not None - self.write(flat911) + flat958 = self._try_flat(msg, self.pretty_terms) + if flat958 is not None: + assert flat958 is not None + self.write(flat958) return None else: - fields908 = msg + fields955 = msg self.write("(terms") self.indent_sexp() - if not len(fields908) == 0: + if not len(fields955) == 0: self.newline() - for i910, elem909 in enumerate(fields908): - if (i910 > 0): + for i957, elem956 in enumerate(fields955): + if (i957 > 0): self.newline() - self.pretty_term(elem909) + self.pretty_term(elem956) self.dedent() self.write(")") def pretty_term(self, msg: logic_pb2.Term): - flat916 = self._try_flat(msg, self.pretty_term) - if flat916 is not None: - assert flat916 is not None - self.write(flat916) + flat963 = self._try_flat(msg, self.pretty_term) + if flat963 is not None: + assert flat963 is not None + self.write(flat963) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("var"): - _t1399 = _dollar_dollar.var + _t1493 = _dollar_dollar.var else: - _t1399 = None - deconstruct_result914 = _t1399 - if deconstruct_result914 is not None: - assert deconstruct_result914 is not None - unwrapped915 = deconstruct_result914 - self.pretty_var(unwrapped915) + _t1493 = None + deconstruct_result961 = _t1493 + if deconstruct_result961 is not None: + assert deconstruct_result961 is not None + unwrapped962 = deconstruct_result961 + self.pretty_var(unwrapped962) else: _dollar_dollar = msg if _dollar_dollar.HasField("constant"): - _t1400 = _dollar_dollar.constant + _t1494 = _dollar_dollar.constant else: - _t1400 = None - deconstruct_result912 = _t1400 - if deconstruct_result912 is not None: - assert deconstruct_result912 is not None - unwrapped913 = deconstruct_result912 - self.pretty_constant(unwrapped913) + _t1494 = None + deconstruct_result959 = _t1494 + if deconstruct_result959 is not None: + assert deconstruct_result959 is not None + unwrapped960 = deconstruct_result959 + self.pretty_constant(unwrapped960) else: raise ParseError("No matching rule for term") def pretty_var(self, msg: logic_pb2.Var): - flat919 = self._try_flat(msg, self.pretty_var) - if flat919 is not None: - assert flat919 is not None - self.write(flat919) + flat966 = self._try_flat(msg, self.pretty_var) + if flat966 is not None: + assert flat966 is not None + self.write(flat966) return None else: _dollar_dollar = msg - fields917 = _dollar_dollar.name - assert fields917 is not None - unwrapped_fields918 = fields917 - self.write(unwrapped_fields918) + fields964 = _dollar_dollar.name + assert fields964 is not None + unwrapped_fields965 = fields964 + self.write(unwrapped_fields965) def pretty_constant(self, msg: logic_pb2.Value): - flat921 = self._try_flat(msg, self.pretty_constant) - if flat921 is not None: - assert flat921 is not None - self.write(flat921) + flat968 = self._try_flat(msg, self.pretty_constant) + if flat968 is not None: + assert flat968 is not None + self.write(flat968) return None else: - fields920 = msg - self.pretty_value(fields920) + fields967 = msg + self.pretty_value(fields967) def pretty_conjunction(self, msg: logic_pb2.Conjunction): - flat926 = self._try_flat(msg, self.pretty_conjunction) - if flat926 is not None: - assert flat926 is not None - self.write(flat926) + flat973 = self._try_flat(msg, self.pretty_conjunction) + if flat973 is not None: + assert flat973 is not None + self.write(flat973) return None else: _dollar_dollar = msg - fields922 = _dollar_dollar.args - assert fields922 is not None - unwrapped_fields923 = fields922 + fields969 = _dollar_dollar.args + assert fields969 is not None + unwrapped_fields970 = fields969 self.write("(and") self.indent_sexp() - if not len(unwrapped_fields923) == 0: + if not len(unwrapped_fields970) == 0: self.newline() - for i925, elem924 in enumerate(unwrapped_fields923): - if (i925 > 0): + for i972, elem971 in enumerate(unwrapped_fields970): + if (i972 > 0): self.newline() - self.pretty_formula(elem924) + self.pretty_formula(elem971) self.dedent() self.write(")") def pretty_disjunction(self, msg: logic_pb2.Disjunction): - flat931 = self._try_flat(msg, self.pretty_disjunction) - if flat931 is not None: - assert flat931 is not None - self.write(flat931) + flat978 = self._try_flat(msg, self.pretty_disjunction) + if flat978 is not None: + assert flat978 is not None + self.write(flat978) return None else: _dollar_dollar = msg - fields927 = _dollar_dollar.args - assert fields927 is not None - unwrapped_fields928 = fields927 + fields974 = _dollar_dollar.args + assert fields974 is not None + unwrapped_fields975 = fields974 self.write("(or") self.indent_sexp() - if not len(unwrapped_fields928) == 0: + if not len(unwrapped_fields975) == 0: self.newline() - for i930, elem929 in enumerate(unwrapped_fields928): - if (i930 > 0): + for i977, elem976 in enumerate(unwrapped_fields975): + if (i977 > 0): self.newline() - self.pretty_formula(elem929) + self.pretty_formula(elem976) self.dedent() self.write(")") def pretty_not(self, msg: logic_pb2.Not): - flat934 = self._try_flat(msg, self.pretty_not) - if flat934 is not None: - assert flat934 is not None - self.write(flat934) + flat981 = self._try_flat(msg, self.pretty_not) + if flat981 is not None: + assert flat981 is not None + self.write(flat981) return None else: _dollar_dollar = msg - fields932 = _dollar_dollar.arg - assert fields932 is not None - unwrapped_fields933 = fields932 + fields979 = _dollar_dollar.arg + assert fields979 is not None + unwrapped_fields980 = fields979 self.write("(not") self.indent_sexp() self.newline() - self.pretty_formula(unwrapped_fields933) + self.pretty_formula(unwrapped_fields980) self.dedent() self.write(")") def pretty_ffi(self, msg: logic_pb2.FFI): - flat940 = self._try_flat(msg, self.pretty_ffi) - if flat940 is not None: - assert flat940 is not None - self.write(flat940) + flat987 = self._try_flat(msg, self.pretty_ffi) + if flat987 is not None: + assert flat987 is not None + self.write(flat987) return None else: _dollar_dollar = msg - fields935 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) - assert fields935 is not None - unwrapped_fields936 = fields935 + fields982 = (_dollar_dollar.name, _dollar_dollar.args, _dollar_dollar.terms,) + assert fields982 is not None + unwrapped_fields983 = fields982 self.write("(ffi") self.indent_sexp() self.newline() - field937 = unwrapped_fields936[0] - self.pretty_name(field937) + field984 = unwrapped_fields983[0] + self.pretty_name(field984) self.newline() - field938 = unwrapped_fields936[1] - self.pretty_ffi_args(field938) + field985 = unwrapped_fields983[1] + self.pretty_ffi_args(field985) self.newline() - field939 = unwrapped_fields936[2] - self.pretty_terms(field939) + field986 = unwrapped_fields983[2] + self.pretty_terms(field986) self.dedent() self.write(")") def pretty_name(self, msg: str): - flat942 = self._try_flat(msg, self.pretty_name) - if flat942 is not None: - assert flat942 is not None - self.write(flat942) + flat989 = self._try_flat(msg, self.pretty_name) + if flat989 is not None: + assert flat989 is not None + self.write(flat989) return None else: - fields941 = msg + fields988 = msg self.write(":") - self.write(fields941) + self.write(fields988) def pretty_ffi_args(self, msg: Sequence[logic_pb2.Abstraction]): - flat946 = self._try_flat(msg, self.pretty_ffi_args) - if flat946 is not None: - assert flat946 is not None - self.write(flat946) + flat993 = self._try_flat(msg, self.pretty_ffi_args) + if flat993 is not None: + assert flat993 is not None + self.write(flat993) return None else: - fields943 = msg + fields990 = msg self.write("(args") self.indent_sexp() - if not len(fields943) == 0: + if not len(fields990) == 0: self.newline() - for i945, elem944 in enumerate(fields943): - if (i945 > 0): + for i992, elem991 in enumerate(fields990): + if (i992 > 0): self.newline() - self.pretty_abstraction(elem944) + self.pretty_abstraction(elem991) self.dedent() self.write(")") def pretty_atom(self, msg: logic_pb2.Atom): - flat953 = self._try_flat(msg, self.pretty_atom) - if flat953 is not None: - assert flat953 is not None - self.write(flat953) + flat1000 = self._try_flat(msg, self.pretty_atom) + if flat1000 is not None: + assert flat1000 is not None + self.write(flat1000) return None else: _dollar_dollar = msg - fields947 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields947 is not None - unwrapped_fields948 = fields947 + fields994 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields994 is not None + unwrapped_fields995 = fields994 self.write("(atom") self.indent_sexp() self.newline() - field949 = unwrapped_fields948[0] - self.pretty_relation_id(field949) - field950 = unwrapped_fields948[1] - if not len(field950) == 0: + field996 = unwrapped_fields995[0] + self.pretty_relation_id(field996) + field997 = unwrapped_fields995[1] + if not len(field997) == 0: self.newline() - for i952, elem951 in enumerate(field950): - if (i952 > 0): + for i999, elem998 in enumerate(field997): + if (i999 > 0): self.newline() - self.pretty_term(elem951) + self.pretty_term(elem998) self.dedent() self.write(")") def pretty_pragma(self, msg: logic_pb2.Pragma): - flat960 = self._try_flat(msg, self.pretty_pragma) - if flat960 is not None: - assert flat960 is not None - self.write(flat960) + flat1007 = self._try_flat(msg, self.pretty_pragma) + if flat1007 is not None: + assert flat1007 is not None + self.write(flat1007) return None else: _dollar_dollar = msg - fields954 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields954 is not None - unwrapped_fields955 = fields954 + fields1001 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1001 is not None + unwrapped_fields1002 = fields1001 self.write("(pragma") self.indent_sexp() self.newline() - field956 = unwrapped_fields955[0] - self.pretty_name(field956) - field957 = unwrapped_fields955[1] - if not len(field957) == 0: + field1003 = unwrapped_fields1002[0] + self.pretty_name(field1003) + field1004 = unwrapped_fields1002[1] + if not len(field1004) == 0: self.newline() - for i959, elem958 in enumerate(field957): - if (i959 > 0): + for i1006, elem1005 in enumerate(field1004): + if (i1006 > 0): self.newline() - self.pretty_term(elem958) + self.pretty_term(elem1005) self.dedent() self.write(")") def pretty_primitive(self, msg: logic_pb2.Primitive): - flat976 = self._try_flat(msg, self.pretty_primitive) - if flat976 is not None: - assert flat976 is not None - self.write(flat976) + flat1023 = self._try_flat(msg, self.pretty_primitive) + if flat1023 is not None: + assert flat1023 is not None + self.write(flat1023) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq": - _t1401 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1495 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1401 = None - guard_result975 = _t1401 - if guard_result975 is not None: + _t1495 = None + guard_result1022 = _t1495 + if guard_result1022 is not None: self.pretty_eq(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype": - _t1402 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1496 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1402 = None - guard_result974 = _t1402 - if guard_result974 is not None: + _t1496 = None + guard_result1021 = _t1496 + if guard_result1021 is not None: self.pretty_lt(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype": - _t1403 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1497 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1403 = None - guard_result973 = _t1403 - if guard_result973 is not None: + _t1497 = None + guard_result1020 = _t1497 + if guard_result1020 is not None: self.pretty_lt_eq(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype": - _t1404 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1498 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1404 = None - guard_result972 = _t1404 - if guard_result972 is not None: + _t1498 = None + guard_result1019 = _t1498 + if guard_result1019 is not None: self.pretty_gt(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype": - _t1405 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1499 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1405 = None - guard_result971 = _t1405 - if guard_result971 is not None: + _t1499 = None + guard_result1018 = _t1499 + if guard_result1018 is not None: self.pretty_gt_eq(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype": - _t1406 = (_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: - _t1406 = None - guard_result970 = _t1406 - if guard_result970 is not None: + _t1500 = None + guard_result1017 = _t1500 + if guard_result1017 is not None: self.pretty_add(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype": - _t1407 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1501 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1407 = None - guard_result969 = _t1407 - if guard_result969 is not None: + _t1501 = None + guard_result1016 = _t1501 + if guard_result1016 is not None: self.pretty_minus(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype": - _t1408 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1502 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1408 = None - guard_result968 = _t1408 - if guard_result968 is not None: + _t1502 = None + guard_result1015 = _t1502 + if guard_result1015 is not None: self.pretty_multiply(msg) else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype": - _t1409 = (_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: - _t1409 = None - guard_result967 = _t1409 - if guard_result967 is not None: + _t1503 = None + guard_result1014 = _t1503 + if guard_result1014 is not None: self.pretty_divide(msg) else: _dollar_dollar = msg - fields961 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields961 is not None - unwrapped_fields962 = fields961 + fields1008 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1008 is not None + unwrapped_fields1009 = fields1008 self.write("(primitive") self.indent_sexp() self.newline() - field963 = unwrapped_fields962[0] - self.pretty_name(field963) - field964 = unwrapped_fields962[1] - if not len(field964) == 0: + field1010 = unwrapped_fields1009[0] + self.pretty_name(field1010) + field1011 = unwrapped_fields1009[1] + if not len(field1011) == 0: self.newline() - for i966, elem965 in enumerate(field964): - if (i966 > 0): + for i1013, elem1012 in enumerate(field1011): + if (i1013 > 0): self.newline() - self.pretty_rel_term(elem965) + self.pretty_rel_term(elem1012) self.dedent() self.write(")") def pretty_eq(self, msg: logic_pb2.Primitive): - flat981 = self._try_flat(msg, self.pretty_eq) - if flat981 is not None: - assert flat981 is not None - self.write(flat981) + flat1028 = self._try_flat(msg, self.pretty_eq) + if flat1028 is not None: + assert flat1028 is not None + self.write(flat1028) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_eq": - _t1410 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1504 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1410 = None - fields977 = _t1410 - assert fields977 is not None - unwrapped_fields978 = fields977 + _t1504 = None + fields1024 = _t1504 + assert fields1024 is not None + unwrapped_fields1025 = fields1024 self.write("(=") self.indent_sexp() self.newline() - field979 = unwrapped_fields978[0] - self.pretty_term(field979) + field1026 = unwrapped_fields1025[0] + self.pretty_term(field1026) self.newline() - field980 = unwrapped_fields978[1] - self.pretty_term(field980) + field1027 = unwrapped_fields1025[1] + self.pretty_term(field1027) self.dedent() self.write(")") def pretty_lt(self, msg: logic_pb2.Primitive): - flat986 = self._try_flat(msg, self.pretty_lt) - if flat986 is not None: - assert flat986 is not None - self.write(flat986) + flat1033 = self._try_flat(msg, self.pretty_lt) + if flat1033 is not None: + assert flat1033 is not None + self.write(flat1033) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_monotype": - _t1411 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1505 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1411 = None - fields982 = _t1411 - assert fields982 is not None - unwrapped_fields983 = fields982 + _t1505 = None + fields1029 = _t1505 + assert fields1029 is not None + unwrapped_fields1030 = fields1029 self.write("(<") self.indent_sexp() self.newline() - field984 = unwrapped_fields983[0] - self.pretty_term(field984) + field1031 = unwrapped_fields1030[0] + self.pretty_term(field1031) self.newline() - field985 = unwrapped_fields983[1] - self.pretty_term(field985) + field1032 = unwrapped_fields1030[1] + self.pretty_term(field1032) self.dedent() self.write(")") def pretty_lt_eq(self, msg: logic_pb2.Primitive): - flat991 = self._try_flat(msg, self.pretty_lt_eq) - if flat991 is not None: - assert flat991 is not None - self.write(flat991) + flat1038 = self._try_flat(msg, self.pretty_lt_eq) + if flat1038 is not None: + assert flat1038 is not None + self.write(flat1038) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_lt_eq_monotype": - _t1412 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1506 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1412 = None - fields987 = _t1412 - assert fields987 is not None - unwrapped_fields988 = fields987 + _t1506 = None + fields1034 = _t1506 + assert fields1034 is not None + unwrapped_fields1035 = fields1034 self.write("(<=") self.indent_sexp() self.newline() - field989 = unwrapped_fields988[0] - self.pretty_term(field989) + field1036 = unwrapped_fields1035[0] + self.pretty_term(field1036) self.newline() - field990 = unwrapped_fields988[1] - self.pretty_term(field990) + field1037 = unwrapped_fields1035[1] + self.pretty_term(field1037) self.dedent() self.write(")") def pretty_gt(self, msg: logic_pb2.Primitive): - flat996 = self._try_flat(msg, self.pretty_gt) - if flat996 is not None: - assert flat996 is not None - self.write(flat996) + flat1043 = self._try_flat(msg, self.pretty_gt) + if flat1043 is not None: + assert flat1043 is not None + self.write(flat1043) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_monotype": - _t1413 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1507 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1413 = None - fields992 = _t1413 - assert fields992 is not None - unwrapped_fields993 = fields992 + _t1507 = None + fields1039 = _t1507 + assert fields1039 is not None + unwrapped_fields1040 = fields1039 self.write("(>") self.indent_sexp() self.newline() - field994 = unwrapped_fields993[0] - self.pretty_term(field994) + field1041 = unwrapped_fields1040[0] + self.pretty_term(field1041) self.newline() - field995 = unwrapped_fields993[1] - self.pretty_term(field995) + field1042 = unwrapped_fields1040[1] + self.pretty_term(field1042) self.dedent() self.write(")") def pretty_gt_eq(self, msg: logic_pb2.Primitive): - flat1001 = self._try_flat(msg, self.pretty_gt_eq) - if flat1001 is not None: - assert flat1001 is not None - self.write(flat1001) + flat1048 = self._try_flat(msg, self.pretty_gt_eq) + if flat1048 is not None: + assert flat1048 is not None + self.write(flat1048) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_gt_eq_monotype": - _t1414 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) + _t1508 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term,) else: - _t1414 = None - fields997 = _t1414 - assert fields997 is not None - unwrapped_fields998 = fields997 + _t1508 = None + fields1044 = _t1508 + assert fields1044 is not None + unwrapped_fields1045 = fields1044 self.write("(>=") self.indent_sexp() self.newline() - field999 = unwrapped_fields998[0] - self.pretty_term(field999) + field1046 = unwrapped_fields1045[0] + self.pretty_term(field1046) self.newline() - field1000 = unwrapped_fields998[1] - self.pretty_term(field1000) + field1047 = unwrapped_fields1045[1] + self.pretty_term(field1047) self.dedent() self.write(")") def pretty_add(self, msg: logic_pb2.Primitive): - flat1007 = self._try_flat(msg, self.pretty_add) - if flat1007 is not None: - assert flat1007 is not None - self.write(flat1007) + flat1054 = self._try_flat(msg, self.pretty_add) + if flat1054 is not None: + assert flat1054 is not None + self.write(flat1054) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_add_monotype": - _t1415 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1509 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1415 = None - fields1002 = _t1415 - assert fields1002 is not None - unwrapped_fields1003 = fields1002 + _t1509 = None + fields1049 = _t1509 + assert fields1049 is not None + unwrapped_fields1050 = fields1049 self.write("(+") self.indent_sexp() self.newline() - field1004 = unwrapped_fields1003[0] - self.pretty_term(field1004) + field1051 = unwrapped_fields1050[0] + self.pretty_term(field1051) self.newline() - field1005 = unwrapped_fields1003[1] - self.pretty_term(field1005) + field1052 = unwrapped_fields1050[1] + self.pretty_term(field1052) self.newline() - field1006 = unwrapped_fields1003[2] - self.pretty_term(field1006) + field1053 = unwrapped_fields1050[2] + self.pretty_term(field1053) self.dedent() self.write(")") def pretty_minus(self, msg: logic_pb2.Primitive): - flat1013 = self._try_flat(msg, self.pretty_minus) - if flat1013 is not None: - assert flat1013 is not None - self.write(flat1013) + flat1060 = self._try_flat(msg, self.pretty_minus) + if flat1060 is not None: + assert flat1060 is not None + self.write(flat1060) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_subtract_monotype": - _t1416 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1510 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1416 = None - fields1008 = _t1416 - assert fields1008 is not None - unwrapped_fields1009 = fields1008 + _t1510 = None + fields1055 = _t1510 + assert fields1055 is not None + unwrapped_fields1056 = fields1055 self.write("(-") self.indent_sexp() self.newline() - field1010 = unwrapped_fields1009[0] - self.pretty_term(field1010) + field1057 = unwrapped_fields1056[0] + self.pretty_term(field1057) self.newline() - field1011 = unwrapped_fields1009[1] - self.pretty_term(field1011) + field1058 = unwrapped_fields1056[1] + self.pretty_term(field1058) self.newline() - field1012 = unwrapped_fields1009[2] - self.pretty_term(field1012) + field1059 = unwrapped_fields1056[2] + self.pretty_term(field1059) self.dedent() self.write(")") def pretty_multiply(self, msg: logic_pb2.Primitive): - flat1019 = self._try_flat(msg, self.pretty_multiply) - if flat1019 is not None: - assert flat1019 is not None - self.write(flat1019) + flat1066 = self._try_flat(msg, self.pretty_multiply) + if flat1066 is not None: + assert flat1066 is not None + self.write(flat1066) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_multiply_monotype": - _t1417 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1511 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1417 = None - fields1014 = _t1417 - assert fields1014 is not None - unwrapped_fields1015 = fields1014 + _t1511 = None + fields1061 = _t1511 + assert fields1061 is not None + unwrapped_fields1062 = fields1061 self.write("(*") self.indent_sexp() self.newline() - field1016 = unwrapped_fields1015[0] - self.pretty_term(field1016) + field1063 = unwrapped_fields1062[0] + self.pretty_term(field1063) self.newline() - field1017 = unwrapped_fields1015[1] - self.pretty_term(field1017) + field1064 = unwrapped_fields1062[1] + self.pretty_term(field1064) self.newline() - field1018 = unwrapped_fields1015[2] - self.pretty_term(field1018) + field1065 = unwrapped_fields1062[2] + self.pretty_term(field1065) self.dedent() self.write(")") def pretty_divide(self, msg: logic_pb2.Primitive): - flat1025 = self._try_flat(msg, self.pretty_divide) - if flat1025 is not None: - assert flat1025 is not None - self.write(flat1025) + flat1072 = self._try_flat(msg, self.pretty_divide) + if flat1072 is not None: + assert flat1072 is not None + self.write(flat1072) return None else: _dollar_dollar = msg if _dollar_dollar.name == "rel_primitive_divide_monotype": - _t1418 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) + _t1512 = (_dollar_dollar.terms[0].term, _dollar_dollar.terms[1].term, _dollar_dollar.terms[2].term,) else: - _t1418 = None - fields1020 = _t1418 - assert fields1020 is not None - unwrapped_fields1021 = fields1020 + _t1512 = None + fields1067 = _t1512 + assert fields1067 is not None + unwrapped_fields1068 = fields1067 self.write("(/") self.indent_sexp() self.newline() - field1022 = unwrapped_fields1021[0] - self.pretty_term(field1022) + field1069 = unwrapped_fields1068[0] + self.pretty_term(field1069) self.newline() - field1023 = unwrapped_fields1021[1] - self.pretty_term(field1023) + field1070 = unwrapped_fields1068[1] + self.pretty_term(field1070) self.newline() - field1024 = unwrapped_fields1021[2] - self.pretty_term(field1024) + field1071 = unwrapped_fields1068[2] + self.pretty_term(field1071) self.dedent() self.write(")") def pretty_rel_term(self, msg: logic_pb2.RelTerm): - flat1030 = self._try_flat(msg, self.pretty_rel_term) - if flat1030 is not None: - assert flat1030 is not None - self.write(flat1030) + flat1077 = self._try_flat(msg, self.pretty_rel_term) + if flat1077 is not None: + assert flat1077 is not None + self.write(flat1077) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("specialized_value"): - _t1419 = _dollar_dollar.specialized_value + _t1513 = _dollar_dollar.specialized_value else: - _t1419 = None - deconstruct_result1028 = _t1419 - if deconstruct_result1028 is not None: - assert deconstruct_result1028 is not None - unwrapped1029 = deconstruct_result1028 - self.pretty_specialized_value(unwrapped1029) + _t1513 = None + deconstruct_result1075 = _t1513 + if deconstruct_result1075 is not None: + assert deconstruct_result1075 is not None + unwrapped1076 = deconstruct_result1075 + self.pretty_specialized_value(unwrapped1076) else: _dollar_dollar = msg if _dollar_dollar.HasField("term"): - _t1420 = _dollar_dollar.term + _t1514 = _dollar_dollar.term else: - _t1420 = None - deconstruct_result1026 = _t1420 - if deconstruct_result1026 is not None: - assert deconstruct_result1026 is not None - unwrapped1027 = deconstruct_result1026 - self.pretty_term(unwrapped1027) + _t1514 = None + deconstruct_result1073 = _t1514 + if deconstruct_result1073 is not None: + assert deconstruct_result1073 is not None + unwrapped1074 = deconstruct_result1073 + self.pretty_term(unwrapped1074) else: raise ParseError("No matching rule for rel_term") def pretty_specialized_value(self, msg: logic_pb2.Value): - flat1032 = self._try_flat(msg, self.pretty_specialized_value) - if flat1032 is not None: - assert flat1032 is not None - self.write(flat1032) + flat1079 = self._try_flat(msg, self.pretty_specialized_value) + if flat1079 is not None: + assert flat1079 is not None + self.write(flat1079) return None else: - fields1031 = msg + fields1078 = msg self.write("#") - self.pretty_value(fields1031) + self.pretty_value(fields1078) def pretty_rel_atom(self, msg: logic_pb2.RelAtom): - flat1039 = self._try_flat(msg, self.pretty_rel_atom) - if flat1039 is not None: - assert flat1039 is not None - self.write(flat1039) + flat1086 = self._try_flat(msg, self.pretty_rel_atom) + if flat1086 is not None: + assert flat1086 is not None + self.write(flat1086) return None else: _dollar_dollar = msg - fields1033 = (_dollar_dollar.name, _dollar_dollar.terms,) - assert fields1033 is not None - unwrapped_fields1034 = fields1033 + fields1080 = (_dollar_dollar.name, _dollar_dollar.terms,) + assert fields1080 is not None + unwrapped_fields1081 = fields1080 self.write("(relatom") self.indent_sexp() self.newline() - field1035 = unwrapped_fields1034[0] - self.pretty_name(field1035) - field1036 = unwrapped_fields1034[1] - if not len(field1036) == 0: + field1082 = unwrapped_fields1081[0] + self.pretty_name(field1082) + field1083 = unwrapped_fields1081[1] + if not len(field1083) == 0: self.newline() - for i1038, elem1037 in enumerate(field1036): - if (i1038 > 0): + for i1085, elem1084 in enumerate(field1083): + if (i1085 > 0): self.newline() - self.pretty_rel_term(elem1037) + self.pretty_rel_term(elem1084) self.dedent() self.write(")") def pretty_cast(self, msg: logic_pb2.Cast): - flat1044 = self._try_flat(msg, self.pretty_cast) - if flat1044 is not None: - assert flat1044 is not None - self.write(flat1044) + flat1091 = self._try_flat(msg, self.pretty_cast) + if flat1091 is not None: + assert flat1091 is not None + self.write(flat1091) return None else: _dollar_dollar = msg - fields1040 = (_dollar_dollar.input, _dollar_dollar.result,) - assert fields1040 is not None - unwrapped_fields1041 = fields1040 + fields1087 = (_dollar_dollar.input, _dollar_dollar.result,) + assert fields1087 is not None + unwrapped_fields1088 = fields1087 self.write("(cast") self.indent_sexp() self.newline() - field1042 = unwrapped_fields1041[0] - self.pretty_term(field1042) + field1089 = unwrapped_fields1088[0] + self.pretty_term(field1089) self.newline() - field1043 = unwrapped_fields1041[1] - self.pretty_term(field1043) + field1090 = unwrapped_fields1088[1] + self.pretty_term(field1090) self.dedent() self.write(")") def pretty_attrs(self, msg: Sequence[logic_pb2.Attribute]): - flat1048 = self._try_flat(msg, self.pretty_attrs) - if flat1048 is not None: - assert flat1048 is not None - self.write(flat1048) + flat1095 = self._try_flat(msg, self.pretty_attrs) + if flat1095 is not None: + assert flat1095 is not None + self.write(flat1095) return None else: - fields1045 = msg + fields1092 = msg self.write("(attrs") self.indent_sexp() - if not len(fields1045) == 0: + if not len(fields1092) == 0: self.newline() - for i1047, elem1046 in enumerate(fields1045): - if (i1047 > 0): + for i1094, elem1093 in enumerate(fields1092): + if (i1094 > 0): self.newline() - self.pretty_attribute(elem1046) + self.pretty_attribute(elem1093) self.dedent() self.write(")") def pretty_attribute(self, msg: logic_pb2.Attribute): - flat1055 = self._try_flat(msg, self.pretty_attribute) - if flat1055 is not None: - assert flat1055 is not None - self.write(flat1055) + flat1102 = self._try_flat(msg, self.pretty_attribute) + if flat1102 is not None: + assert flat1102 is not None + self.write(flat1102) return None else: _dollar_dollar = msg - fields1049 = (_dollar_dollar.name, _dollar_dollar.args,) - assert fields1049 is not None - unwrapped_fields1050 = fields1049 + fields1096 = (_dollar_dollar.name, _dollar_dollar.args,) + assert fields1096 is not None + unwrapped_fields1097 = fields1096 self.write("(attribute") self.indent_sexp() self.newline() - field1051 = unwrapped_fields1050[0] - self.pretty_name(field1051) - field1052 = unwrapped_fields1050[1] - if not len(field1052) == 0: + field1098 = unwrapped_fields1097[0] + self.pretty_name(field1098) + field1099 = unwrapped_fields1097[1] + if not len(field1099) == 0: self.newline() - for i1054, elem1053 in enumerate(field1052): - if (i1054 > 0): + for i1101, elem1100 in enumerate(field1099): + if (i1101 > 0): self.newline() - self.pretty_value(elem1053) + self.pretty_value(elem1100) self.dedent() self.write(")") def pretty_algorithm(self, msg: logic_pb2.Algorithm): - flat1062 = self._try_flat(msg, self.pretty_algorithm) - if flat1062 is not None: - assert flat1062 is not None - self.write(flat1062) + flat1109 = self._try_flat(msg, self.pretty_algorithm) + if flat1109 is not None: + assert flat1109 is not None + self.write(flat1109) return None else: _dollar_dollar = msg - fields1056 = (getattr(_dollar_dollar, 'global'), _dollar_dollar.body,) - assert fields1056 is not None - unwrapped_fields1057 = fields1056 + fields1103 = (getattr(_dollar_dollar, 'global'), _dollar_dollar.body,) + assert fields1103 is not None + unwrapped_fields1104 = fields1103 self.write("(algorithm") self.indent_sexp() - field1058 = unwrapped_fields1057[0] - if not len(field1058) == 0: + field1105 = unwrapped_fields1104[0] + if not len(field1105) == 0: self.newline() - for i1060, elem1059 in enumerate(field1058): - if (i1060 > 0): + for i1107, elem1106 in enumerate(field1105): + if (i1107 > 0): self.newline() - self.pretty_relation_id(elem1059) + self.pretty_relation_id(elem1106) self.newline() - field1061 = unwrapped_fields1057[1] - self.pretty_script(field1061) + field1108 = unwrapped_fields1104[1] + self.pretty_script(field1108) self.dedent() self.write(")") def pretty_script(self, msg: logic_pb2.Script): - flat1067 = self._try_flat(msg, self.pretty_script) - if flat1067 is not None: - assert flat1067 is not None - self.write(flat1067) + flat1114 = self._try_flat(msg, self.pretty_script) + if flat1114 is not None: + assert flat1114 is not None + self.write(flat1114) return None else: _dollar_dollar = msg - fields1063 = _dollar_dollar.constructs - assert fields1063 is not None - unwrapped_fields1064 = fields1063 + fields1110 = _dollar_dollar.constructs + assert fields1110 is not None + unwrapped_fields1111 = fields1110 self.write("(script") self.indent_sexp() - if not len(unwrapped_fields1064) == 0: + if not len(unwrapped_fields1111) == 0: self.newline() - for i1066, elem1065 in enumerate(unwrapped_fields1064): - if (i1066 > 0): + for i1113, elem1112 in enumerate(unwrapped_fields1111): + if (i1113 > 0): self.newline() - self.pretty_construct(elem1065) + self.pretty_construct(elem1112) self.dedent() self.write(")") def pretty_construct(self, msg: logic_pb2.Construct): - flat1072 = self._try_flat(msg, self.pretty_construct) - if flat1072 is not None: - assert flat1072 is not None - self.write(flat1072) + flat1119 = self._try_flat(msg, self.pretty_construct) + if flat1119 is not None: + assert flat1119 is not None + self.write(flat1119) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("loop"): - _t1421 = _dollar_dollar.loop + _t1515 = _dollar_dollar.loop else: - _t1421 = None - deconstruct_result1070 = _t1421 - if deconstruct_result1070 is not None: - assert deconstruct_result1070 is not None - unwrapped1071 = deconstruct_result1070 - self.pretty_loop(unwrapped1071) + _t1515 = None + deconstruct_result1117 = _t1515 + if deconstruct_result1117 is not None: + assert deconstruct_result1117 is not None + unwrapped1118 = deconstruct_result1117 + self.pretty_loop(unwrapped1118) else: _dollar_dollar = msg if _dollar_dollar.HasField("instruction"): - _t1422 = _dollar_dollar.instruction + _t1516 = _dollar_dollar.instruction else: - _t1422 = None - deconstruct_result1068 = _t1422 - if deconstruct_result1068 is not None: - assert deconstruct_result1068 is not None - unwrapped1069 = deconstruct_result1068 - self.pretty_instruction(unwrapped1069) + _t1516 = None + deconstruct_result1115 = _t1516 + if deconstruct_result1115 is not None: + assert deconstruct_result1115 is not None + unwrapped1116 = deconstruct_result1115 + self.pretty_instruction(unwrapped1116) else: raise ParseError("No matching rule for construct") def pretty_loop(self, msg: logic_pb2.Loop): - flat1077 = self._try_flat(msg, self.pretty_loop) - if flat1077 is not None: - assert flat1077 is not None - self.write(flat1077) + flat1124 = self._try_flat(msg, self.pretty_loop) + if flat1124 is not None: + assert flat1124 is not None + self.write(flat1124) return None else: _dollar_dollar = msg - fields1073 = (_dollar_dollar.init, _dollar_dollar.body,) - assert fields1073 is not None - unwrapped_fields1074 = fields1073 + fields1120 = (_dollar_dollar.init, _dollar_dollar.body,) + assert fields1120 is not None + unwrapped_fields1121 = fields1120 self.write("(loop") self.indent_sexp() self.newline() - field1075 = unwrapped_fields1074[0] - self.pretty_init(field1075) + field1122 = unwrapped_fields1121[0] + self.pretty_init(field1122) self.newline() - field1076 = unwrapped_fields1074[1] - self.pretty_script(field1076) + field1123 = unwrapped_fields1121[1] + self.pretty_script(field1123) self.dedent() self.write(")") def pretty_init(self, msg: Sequence[logic_pb2.Instruction]): - flat1081 = self._try_flat(msg, self.pretty_init) - if flat1081 is not None: - assert flat1081 is not None - self.write(flat1081) + flat1128 = self._try_flat(msg, self.pretty_init) + if flat1128 is not None: + assert flat1128 is not None + self.write(flat1128) return None else: - fields1078 = msg + fields1125 = msg self.write("(init") self.indent_sexp() - if not len(fields1078) == 0: + if not len(fields1125) == 0: self.newline() - for i1080, elem1079 in enumerate(fields1078): - if (i1080 > 0): + for i1127, elem1126 in enumerate(fields1125): + if (i1127 > 0): self.newline() - self.pretty_instruction(elem1079) + self.pretty_instruction(elem1126) self.dedent() self.write(")") def pretty_instruction(self, msg: logic_pb2.Instruction): - flat1092 = self._try_flat(msg, self.pretty_instruction) - if flat1092 is not None: - assert flat1092 is not None - self.write(flat1092) + flat1139 = self._try_flat(msg, self.pretty_instruction) + if flat1139 is not None: + assert flat1139 is not None + self.write(flat1139) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("assign"): - _t1423 = _dollar_dollar.assign + _t1517 = _dollar_dollar.assign else: - _t1423 = None - deconstruct_result1090 = _t1423 - if deconstruct_result1090 is not None: - assert deconstruct_result1090 is not None - unwrapped1091 = deconstruct_result1090 - self.pretty_assign(unwrapped1091) + _t1517 = None + deconstruct_result1137 = _t1517 + if deconstruct_result1137 is not None: + assert deconstruct_result1137 is not None + unwrapped1138 = deconstruct_result1137 + self.pretty_assign(unwrapped1138) else: _dollar_dollar = msg if _dollar_dollar.HasField("upsert"): - _t1424 = _dollar_dollar.upsert + _t1518 = _dollar_dollar.upsert else: - _t1424 = None - deconstruct_result1088 = _t1424 - if deconstruct_result1088 is not None: - assert deconstruct_result1088 is not None - unwrapped1089 = deconstruct_result1088 - self.pretty_upsert(unwrapped1089) + _t1518 = None + deconstruct_result1135 = _t1518 + if deconstruct_result1135 is not None: + assert deconstruct_result1135 is not None + unwrapped1136 = deconstruct_result1135 + self.pretty_upsert(unwrapped1136) else: _dollar_dollar = msg if _dollar_dollar.HasField("break"): - _t1425 = getattr(_dollar_dollar, 'break') + _t1519 = getattr(_dollar_dollar, 'break') else: - _t1425 = None - deconstruct_result1086 = _t1425 - if deconstruct_result1086 is not None: - assert deconstruct_result1086 is not None - unwrapped1087 = deconstruct_result1086 - self.pretty_break(unwrapped1087) + _t1519 = None + deconstruct_result1133 = _t1519 + if deconstruct_result1133 is not None: + assert deconstruct_result1133 is not None + unwrapped1134 = deconstruct_result1133 + self.pretty_break(unwrapped1134) else: _dollar_dollar = msg if _dollar_dollar.HasField("monoid_def"): - _t1426 = _dollar_dollar.monoid_def + _t1520 = _dollar_dollar.monoid_def else: - _t1426 = None - deconstruct_result1084 = _t1426 - if deconstruct_result1084 is not None: - assert deconstruct_result1084 is not None - unwrapped1085 = deconstruct_result1084 - self.pretty_monoid_def(unwrapped1085) + _t1520 = None + deconstruct_result1131 = _t1520 + if deconstruct_result1131 is not None: + assert deconstruct_result1131 is not None + unwrapped1132 = deconstruct_result1131 + self.pretty_monoid_def(unwrapped1132) else: _dollar_dollar = msg if _dollar_dollar.HasField("monus_def"): - _t1427 = _dollar_dollar.monus_def + _t1521 = _dollar_dollar.monus_def else: - _t1427 = None - deconstruct_result1082 = _t1427 - if deconstruct_result1082 is not None: - assert deconstruct_result1082 is not None - unwrapped1083 = deconstruct_result1082 - self.pretty_monus_def(unwrapped1083) + _t1521 = None + deconstruct_result1129 = _t1521 + if deconstruct_result1129 is not None: + assert deconstruct_result1129 is not None + unwrapped1130 = deconstruct_result1129 + self.pretty_monus_def(unwrapped1130) else: raise ParseError("No matching rule for instruction") def pretty_assign(self, msg: logic_pb2.Assign): - flat1099 = self._try_flat(msg, self.pretty_assign) - if flat1099 is not None: - assert flat1099 is not None - self.write(flat1099) + flat1146 = self._try_flat(msg, self.pretty_assign) + if flat1146 is not None: + assert flat1146 is not None + self.write(flat1146) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1428 = _dollar_dollar.attrs + _t1522 = _dollar_dollar.attrs else: - _t1428 = None - fields1093 = (_dollar_dollar.name, _dollar_dollar.body, _t1428,) - assert fields1093 is not None - unwrapped_fields1094 = fields1093 + _t1522 = None + fields1140 = (_dollar_dollar.name, _dollar_dollar.body, _t1522,) + assert fields1140 is not None + unwrapped_fields1141 = fields1140 self.write("(assign") self.indent_sexp() self.newline() - field1095 = unwrapped_fields1094[0] - self.pretty_relation_id(field1095) + field1142 = unwrapped_fields1141[0] + self.pretty_relation_id(field1142) self.newline() - field1096 = unwrapped_fields1094[1] - self.pretty_abstraction(field1096) - field1097 = unwrapped_fields1094[2] - if field1097 is not None: + field1143 = unwrapped_fields1141[1] + self.pretty_abstraction(field1143) + field1144 = unwrapped_fields1141[2] + if field1144 is not None: self.newline() - assert field1097 is not None - opt_val1098 = field1097 - self.pretty_attrs(opt_val1098) + assert field1144 is not None + opt_val1145 = field1144 + self.pretty_attrs(opt_val1145) self.dedent() self.write(")") def pretty_upsert(self, msg: logic_pb2.Upsert): - flat1106 = self._try_flat(msg, self.pretty_upsert) - if flat1106 is not None: - assert flat1106 is not None - self.write(flat1106) + flat1153 = self._try_flat(msg, self.pretty_upsert) + if flat1153 is not None: + assert flat1153 is not None + self.write(flat1153) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1429 = _dollar_dollar.attrs + _t1523 = _dollar_dollar.attrs else: - _t1429 = None - fields1100 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1429,) - assert fields1100 is not None - unwrapped_fields1101 = fields1100 + _t1523 = None + fields1147 = (_dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1523,) + assert fields1147 is not None + unwrapped_fields1148 = fields1147 self.write("(upsert") self.indent_sexp() self.newline() - field1102 = unwrapped_fields1101[0] - self.pretty_relation_id(field1102) + field1149 = unwrapped_fields1148[0] + self.pretty_relation_id(field1149) self.newline() - field1103 = unwrapped_fields1101[1] - self.pretty_abstraction_with_arity(field1103) - field1104 = unwrapped_fields1101[2] - if field1104 is not None: + field1150 = unwrapped_fields1148[1] + self.pretty_abstraction_with_arity(field1150) + field1151 = unwrapped_fields1148[2] + if field1151 is not None: self.newline() - assert field1104 is not None - opt_val1105 = field1104 - self.pretty_attrs(opt_val1105) + assert field1151 is not None + opt_val1152 = field1151 + self.pretty_attrs(opt_val1152) self.dedent() self.write(")") def pretty_abstraction_with_arity(self, msg: tuple[logic_pb2.Abstraction, int]): - flat1111 = self._try_flat(msg, self.pretty_abstraction_with_arity) - if flat1111 is not None: - assert flat1111 is not None - self.write(flat1111) + flat1158 = self._try_flat(msg, self.pretty_abstraction_with_arity) + if flat1158 is not None: + assert flat1158 is not None + self.write(flat1158) return None else: _dollar_dollar = msg - _t1430 = self.deconstruct_bindings_with_arity(_dollar_dollar[0], _dollar_dollar[1]) - fields1107 = (_t1430, _dollar_dollar[0].value,) - assert fields1107 is not None - unwrapped_fields1108 = fields1107 + _t1524 = self.deconstruct_bindings_with_arity(_dollar_dollar[0], _dollar_dollar[1]) + fields1154 = (_t1524, _dollar_dollar[0].value,) + assert fields1154 is not None + unwrapped_fields1155 = fields1154 self.write("(") self.indent() - field1109 = unwrapped_fields1108[0] - self.pretty_bindings(field1109) + field1156 = unwrapped_fields1155[0] + self.pretty_bindings(field1156) self.newline() - field1110 = unwrapped_fields1108[1] - self.pretty_formula(field1110) + field1157 = unwrapped_fields1155[1] + self.pretty_formula(field1157) self.dedent() self.write(")") def pretty_break(self, msg: logic_pb2.Break): - flat1118 = self._try_flat(msg, self.pretty_break) - if flat1118 is not None: - assert flat1118 is not None - self.write(flat1118) + flat1165 = self._try_flat(msg, self.pretty_break) + if flat1165 is not None: + assert flat1165 is not None + self.write(flat1165) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1431 = _dollar_dollar.attrs + _t1525 = _dollar_dollar.attrs else: - _t1431 = None - fields1112 = (_dollar_dollar.name, _dollar_dollar.body, _t1431,) - assert fields1112 is not None - unwrapped_fields1113 = fields1112 + _t1525 = None + fields1159 = (_dollar_dollar.name, _dollar_dollar.body, _t1525,) + assert fields1159 is not None + unwrapped_fields1160 = fields1159 self.write("(break") self.indent_sexp() self.newline() - field1114 = unwrapped_fields1113[0] - self.pretty_relation_id(field1114) + field1161 = unwrapped_fields1160[0] + self.pretty_relation_id(field1161) self.newline() - field1115 = unwrapped_fields1113[1] - self.pretty_abstraction(field1115) - field1116 = unwrapped_fields1113[2] - if field1116 is not None: + field1162 = unwrapped_fields1160[1] + self.pretty_abstraction(field1162) + field1163 = unwrapped_fields1160[2] + if field1163 is not None: self.newline() - assert field1116 is not None - opt_val1117 = field1116 - self.pretty_attrs(opt_val1117) + assert field1163 is not None + opt_val1164 = field1163 + self.pretty_attrs(opt_val1164) self.dedent() self.write(")") def pretty_monoid_def(self, msg: logic_pb2.MonoidDef): - flat1126 = self._try_flat(msg, self.pretty_monoid_def) - if flat1126 is not None: - assert flat1126 is not None - self.write(flat1126) + flat1173 = self._try_flat(msg, self.pretty_monoid_def) + if flat1173 is not None: + assert flat1173 is not None + self.write(flat1173) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1432 = _dollar_dollar.attrs + _t1526 = _dollar_dollar.attrs else: - _t1432 = None - fields1119 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1432,) - assert fields1119 is not None - unwrapped_fields1120 = fields1119 + _t1526 = None + fields1166 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1526,) + assert fields1166 is not None + unwrapped_fields1167 = fields1166 self.write("(monoid") self.indent_sexp() self.newline() - field1121 = unwrapped_fields1120[0] - self.pretty_monoid(field1121) + field1168 = unwrapped_fields1167[0] + self.pretty_monoid(field1168) self.newline() - field1122 = unwrapped_fields1120[1] - self.pretty_relation_id(field1122) + field1169 = unwrapped_fields1167[1] + self.pretty_relation_id(field1169) self.newline() - field1123 = unwrapped_fields1120[2] - self.pretty_abstraction_with_arity(field1123) - field1124 = unwrapped_fields1120[3] - if field1124 is not None: + field1170 = unwrapped_fields1167[2] + self.pretty_abstraction_with_arity(field1170) + field1171 = unwrapped_fields1167[3] + if field1171 is not None: self.newline() - assert field1124 is not None - opt_val1125 = field1124 - self.pretty_attrs(opt_val1125) + assert field1171 is not None + opt_val1172 = field1171 + self.pretty_attrs(opt_val1172) self.dedent() self.write(")") def pretty_monoid(self, msg: logic_pb2.Monoid): - flat1135 = self._try_flat(msg, self.pretty_monoid) - if flat1135 is not None: - assert flat1135 is not None - self.write(flat1135) + flat1182 = self._try_flat(msg, self.pretty_monoid) + if flat1182 is not None: + assert flat1182 is not None + self.write(flat1182) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("or_monoid"): - _t1433 = _dollar_dollar.or_monoid + _t1527 = _dollar_dollar.or_monoid else: - _t1433 = None - deconstruct_result1133 = _t1433 - if deconstruct_result1133 is not None: - assert deconstruct_result1133 is not None - unwrapped1134 = deconstruct_result1133 - self.pretty_or_monoid(unwrapped1134) + _t1527 = None + deconstruct_result1180 = _t1527 + if deconstruct_result1180 is not None: + assert deconstruct_result1180 is not None + unwrapped1181 = deconstruct_result1180 + self.pretty_or_monoid(unwrapped1181) else: _dollar_dollar = msg if _dollar_dollar.HasField("min_monoid"): - _t1434 = _dollar_dollar.min_monoid + _t1528 = _dollar_dollar.min_monoid else: - _t1434 = None - deconstruct_result1131 = _t1434 - if deconstruct_result1131 is not None: - assert deconstruct_result1131 is not None - unwrapped1132 = deconstruct_result1131 - self.pretty_min_monoid(unwrapped1132) + _t1528 = None + deconstruct_result1178 = _t1528 + if deconstruct_result1178 is not None: + assert deconstruct_result1178 is not None + unwrapped1179 = deconstruct_result1178 + self.pretty_min_monoid(unwrapped1179) else: _dollar_dollar = msg if _dollar_dollar.HasField("max_monoid"): - _t1435 = _dollar_dollar.max_monoid + _t1529 = _dollar_dollar.max_monoid else: - _t1435 = None - deconstruct_result1129 = _t1435 - if deconstruct_result1129 is not None: - assert deconstruct_result1129 is not None - unwrapped1130 = deconstruct_result1129 - self.pretty_max_monoid(unwrapped1130) + _t1529 = None + deconstruct_result1176 = _t1529 + if deconstruct_result1176 is not None: + assert deconstruct_result1176 is not None + unwrapped1177 = deconstruct_result1176 + self.pretty_max_monoid(unwrapped1177) else: _dollar_dollar = msg if _dollar_dollar.HasField("sum_monoid"): - _t1436 = _dollar_dollar.sum_monoid + _t1530 = _dollar_dollar.sum_monoid else: - _t1436 = None - deconstruct_result1127 = _t1436 - if deconstruct_result1127 is not None: - assert deconstruct_result1127 is not None - unwrapped1128 = deconstruct_result1127 - self.pretty_sum_monoid(unwrapped1128) + _t1530 = None + deconstruct_result1174 = _t1530 + if deconstruct_result1174 is not None: + assert deconstruct_result1174 is not None + unwrapped1175 = deconstruct_result1174 + self.pretty_sum_monoid(unwrapped1175) else: raise ParseError("No matching rule for monoid") def pretty_or_monoid(self, msg: logic_pb2.OrMonoid): - fields1136 = msg + fields1183 = msg self.write("(or)") def pretty_min_monoid(self, msg: logic_pb2.MinMonoid): - flat1139 = self._try_flat(msg, self.pretty_min_monoid) - if flat1139 is not None: - assert flat1139 is not None - self.write(flat1139) + flat1186 = self._try_flat(msg, self.pretty_min_monoid) + if flat1186 is not None: + assert flat1186 is not None + self.write(flat1186) return None else: _dollar_dollar = msg - fields1137 = _dollar_dollar.type - assert fields1137 is not None - unwrapped_fields1138 = fields1137 + fields1184 = _dollar_dollar.type + assert fields1184 is not None + unwrapped_fields1185 = fields1184 self.write("(min") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1138) + self.pretty_type(unwrapped_fields1185) self.dedent() self.write(")") def pretty_max_monoid(self, msg: logic_pb2.MaxMonoid): - flat1142 = self._try_flat(msg, self.pretty_max_monoid) - if flat1142 is not None: - assert flat1142 is not None - self.write(flat1142) + flat1189 = self._try_flat(msg, self.pretty_max_monoid) + if flat1189 is not None: + assert flat1189 is not None + self.write(flat1189) return None else: _dollar_dollar = msg - fields1140 = _dollar_dollar.type - assert fields1140 is not None - unwrapped_fields1141 = fields1140 + fields1187 = _dollar_dollar.type + assert fields1187 is not None + unwrapped_fields1188 = fields1187 self.write("(max") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1141) + self.pretty_type(unwrapped_fields1188) self.dedent() self.write(")") def pretty_sum_monoid(self, msg: logic_pb2.SumMonoid): - flat1145 = self._try_flat(msg, self.pretty_sum_monoid) - if flat1145 is not None: - assert flat1145 is not None - self.write(flat1145) + flat1192 = self._try_flat(msg, self.pretty_sum_monoid) + if flat1192 is not None: + assert flat1192 is not None + self.write(flat1192) return None else: _dollar_dollar = msg - fields1143 = _dollar_dollar.type - assert fields1143 is not None - unwrapped_fields1144 = fields1143 + fields1190 = _dollar_dollar.type + assert fields1190 is not None + unwrapped_fields1191 = fields1190 self.write("(sum") self.indent_sexp() self.newline() - self.pretty_type(unwrapped_fields1144) + self.pretty_type(unwrapped_fields1191) self.dedent() self.write(")") def pretty_monus_def(self, msg: logic_pb2.MonusDef): - flat1153 = self._try_flat(msg, self.pretty_monus_def) - if flat1153 is not None: - assert flat1153 is not None - self.write(flat1153) + flat1200 = self._try_flat(msg, self.pretty_monus_def) + if flat1200 is not None: + assert flat1200 is not None + self.write(flat1200) return None else: _dollar_dollar = msg if not len(_dollar_dollar.attrs) == 0: - _t1437 = _dollar_dollar.attrs + _t1531 = _dollar_dollar.attrs else: - _t1437 = None - fields1146 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1437,) - assert fields1146 is not None - unwrapped_fields1147 = fields1146 + _t1531 = None + fields1193 = (_dollar_dollar.monoid, _dollar_dollar.name, (_dollar_dollar.body, _dollar_dollar.value_arity,), _t1531,) + assert fields1193 is not None + unwrapped_fields1194 = fields1193 self.write("(monus") self.indent_sexp() self.newline() - field1148 = unwrapped_fields1147[0] - self.pretty_monoid(field1148) + field1195 = unwrapped_fields1194[0] + self.pretty_monoid(field1195) self.newline() - field1149 = unwrapped_fields1147[1] - self.pretty_relation_id(field1149) + field1196 = unwrapped_fields1194[1] + self.pretty_relation_id(field1196) self.newline() - field1150 = unwrapped_fields1147[2] - self.pretty_abstraction_with_arity(field1150) - field1151 = unwrapped_fields1147[3] - if field1151 is not None: + field1197 = unwrapped_fields1194[2] + self.pretty_abstraction_with_arity(field1197) + field1198 = unwrapped_fields1194[3] + if field1198 is not None: self.newline() - assert field1151 is not None - opt_val1152 = field1151 - self.pretty_attrs(opt_val1152) + assert field1198 is not None + opt_val1199 = field1198 + self.pretty_attrs(opt_val1199) self.dedent() self.write(")") def pretty_constraint(self, msg: logic_pb2.Constraint): - flat1160 = self._try_flat(msg, self.pretty_constraint) - if flat1160 is not None: - assert flat1160 is not None - self.write(flat1160) + flat1207 = self._try_flat(msg, self.pretty_constraint) + if flat1207 is not None: + assert flat1207 is not None + self.write(flat1207) return None else: _dollar_dollar = msg - fields1154 = (_dollar_dollar.name, _dollar_dollar.functional_dependency.guard, _dollar_dollar.functional_dependency.keys, _dollar_dollar.functional_dependency.values,) - assert fields1154 is not None - unwrapped_fields1155 = fields1154 + fields1201 = (_dollar_dollar.name, _dollar_dollar.functional_dependency.guard, _dollar_dollar.functional_dependency.keys, _dollar_dollar.functional_dependency.values,) + assert fields1201 is not None + unwrapped_fields1202 = fields1201 self.write("(functional_dependency") self.indent_sexp() self.newline() - field1156 = unwrapped_fields1155[0] - self.pretty_relation_id(field1156) + field1203 = unwrapped_fields1202[0] + self.pretty_relation_id(field1203) self.newline() - field1157 = unwrapped_fields1155[1] - self.pretty_abstraction(field1157) + field1204 = unwrapped_fields1202[1] + self.pretty_abstraction(field1204) self.newline() - field1158 = unwrapped_fields1155[2] - self.pretty_functional_dependency_keys(field1158) + field1205 = unwrapped_fields1202[2] + self.pretty_functional_dependency_keys(field1205) self.newline() - field1159 = unwrapped_fields1155[3] - self.pretty_functional_dependency_values(field1159) + field1206 = unwrapped_fields1202[3] + self.pretty_functional_dependency_values(field1206) self.dedent() self.write(")") def pretty_functional_dependency_keys(self, msg: Sequence[logic_pb2.Var]): - flat1164 = self._try_flat(msg, self.pretty_functional_dependency_keys) - if flat1164 is not None: - assert flat1164 is not None - self.write(flat1164) + flat1211 = self._try_flat(msg, self.pretty_functional_dependency_keys) + if flat1211 is not None: + assert flat1211 is not None + self.write(flat1211) return None else: - fields1161 = msg + fields1208 = msg self.write("(keys") self.indent_sexp() - if not len(fields1161) == 0: + if not len(fields1208) == 0: self.newline() - for i1163, elem1162 in enumerate(fields1161): - if (i1163 > 0): + for i1210, elem1209 in enumerate(fields1208): + if (i1210 > 0): self.newline() - self.pretty_var(elem1162) + self.pretty_var(elem1209) self.dedent() self.write(")") def pretty_functional_dependency_values(self, msg: Sequence[logic_pb2.Var]): - flat1168 = self._try_flat(msg, self.pretty_functional_dependency_values) - if flat1168 is not None: - assert flat1168 is not None - self.write(flat1168) + flat1215 = self._try_flat(msg, self.pretty_functional_dependency_values) + if flat1215 is not None: + assert flat1215 is not None + self.write(flat1215) return None else: - fields1165 = msg + fields1212 = msg self.write("(values") self.indent_sexp() - if not len(fields1165) == 0: + if not len(fields1212) == 0: self.newline() - for i1167, elem1166 in enumerate(fields1165): - if (i1167 > 0): + for i1214, elem1213 in enumerate(fields1212): + if (i1214 > 0): self.newline() - self.pretty_var(elem1166) + self.pretty_var(elem1213) self.dedent() self.write(")") def pretty_data(self, msg: logic_pb2.Data): - flat1175 = self._try_flat(msg, self.pretty_data) - if flat1175 is not None: - assert flat1175 is not None - self.write(flat1175) + flat1224 = self._try_flat(msg, self.pretty_data) + if flat1224 is not None: + assert flat1224 is not None + self.write(flat1224) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("edb"): - _t1438 = _dollar_dollar.edb + _t1532 = _dollar_dollar.edb else: - _t1438 = None - deconstruct_result1173 = _t1438 - if deconstruct_result1173 is not None: - assert deconstruct_result1173 is not None - unwrapped1174 = deconstruct_result1173 - self.pretty_edb(unwrapped1174) + _t1532 = None + deconstruct_result1222 = _t1532 + if deconstruct_result1222 is not None: + assert deconstruct_result1222 is not None + unwrapped1223 = deconstruct_result1222 + self.pretty_edb(unwrapped1223) else: _dollar_dollar = msg if _dollar_dollar.HasField("betree_relation"): - _t1439 = _dollar_dollar.betree_relation + _t1533 = _dollar_dollar.betree_relation else: - _t1439 = None - deconstruct_result1171 = _t1439 - if deconstruct_result1171 is not None: - assert deconstruct_result1171 is not None - unwrapped1172 = deconstruct_result1171 - self.pretty_betree_relation(unwrapped1172) + _t1533 = None + deconstruct_result1220 = _t1533 + if deconstruct_result1220 is not None: + assert deconstruct_result1220 is not None + unwrapped1221 = deconstruct_result1220 + self.pretty_betree_relation(unwrapped1221) else: _dollar_dollar = msg if _dollar_dollar.HasField("csv_data"): - _t1440 = _dollar_dollar.csv_data + _t1534 = _dollar_dollar.csv_data else: - _t1440 = None - deconstruct_result1169 = _t1440 - if deconstruct_result1169 is not None: - assert deconstruct_result1169 is not None - unwrapped1170 = deconstruct_result1169 - self.pretty_csv_data(unwrapped1170) + _t1534 = None + deconstruct_result1218 = _t1534 + if deconstruct_result1218 is not None: + assert deconstruct_result1218 is not None + unwrapped1219 = deconstruct_result1218 + self.pretty_csv_data(unwrapped1219) else: - raise ParseError("No matching rule for data") + _dollar_dollar = msg + if _dollar_dollar.HasField("iceberg_data"): + _t1535 = _dollar_dollar.iceberg_data + else: + _t1535 = None + deconstruct_result1216 = _t1535 + if deconstruct_result1216 is not None: + assert deconstruct_result1216 is not None + unwrapped1217 = deconstruct_result1216 + self.pretty_iceberg_data(unwrapped1217) + else: + raise ParseError("No matching rule for data") def pretty_edb(self, msg: logic_pb2.EDB): - flat1181 = self._try_flat(msg, self.pretty_edb) - if flat1181 is not None: - assert flat1181 is not None - self.write(flat1181) + flat1230 = self._try_flat(msg, self.pretty_edb) + if flat1230 is not None: + assert flat1230 is not None + self.write(flat1230) return None else: _dollar_dollar = msg - fields1176 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) - assert fields1176 is not None - unwrapped_fields1177 = fields1176 + fields1225 = (_dollar_dollar.target_id, _dollar_dollar.path, _dollar_dollar.types,) + assert fields1225 is not None + unwrapped_fields1226 = fields1225 self.write("(edb") self.indent_sexp() self.newline() - field1178 = unwrapped_fields1177[0] - self.pretty_relation_id(field1178) + field1227 = unwrapped_fields1226[0] + self.pretty_relation_id(field1227) self.newline() - field1179 = unwrapped_fields1177[1] - self.pretty_edb_path(field1179) + field1228 = unwrapped_fields1226[1] + self.pretty_edb_path(field1228) self.newline() - field1180 = unwrapped_fields1177[2] - self.pretty_edb_types(field1180) + field1229 = unwrapped_fields1226[2] + self.pretty_edb_types(field1229) self.dedent() self.write(")") def pretty_edb_path(self, msg: Sequence[str]): - flat1185 = self._try_flat(msg, self.pretty_edb_path) - if flat1185 is not None: - assert flat1185 is not None - self.write(flat1185) + flat1234 = self._try_flat(msg, self.pretty_edb_path) + if flat1234 is not None: + assert flat1234 is not None + self.write(flat1234) return None else: - fields1182 = msg + fields1231 = msg self.write("[") self.indent() - for i1184, elem1183 in enumerate(fields1182): - if (i1184 > 0): + for i1233, elem1232 in enumerate(fields1231): + if (i1233 > 0): self.newline() - self.write(self.format_string_value(elem1183)) + self.write(self.format_string_value(elem1232)) self.dedent() self.write("]") def pretty_edb_types(self, msg: Sequence[logic_pb2.Type]): - flat1189 = self._try_flat(msg, self.pretty_edb_types) - if flat1189 is not None: - assert flat1189 is not None - self.write(flat1189) + flat1238 = self._try_flat(msg, self.pretty_edb_types) + if flat1238 is not None: + assert flat1238 is not None + self.write(flat1238) return None else: - fields1186 = msg + fields1235 = msg self.write("[") self.indent() - for i1188, elem1187 in enumerate(fields1186): - if (i1188 > 0): + for i1237, elem1236 in enumerate(fields1235): + if (i1237 > 0): self.newline() - self.pretty_type(elem1187) + self.pretty_type(elem1236) self.dedent() self.write("]") def pretty_betree_relation(self, msg: logic_pb2.BeTreeRelation): - flat1194 = self._try_flat(msg, self.pretty_betree_relation) - if flat1194 is not None: - assert flat1194 is not None - self.write(flat1194) + flat1243 = self._try_flat(msg, self.pretty_betree_relation) + if flat1243 is not None: + assert flat1243 is not None + self.write(flat1243) return None else: _dollar_dollar = msg - fields1190 = (_dollar_dollar.name, _dollar_dollar.relation_info,) - assert fields1190 is not None - unwrapped_fields1191 = fields1190 + fields1239 = (_dollar_dollar.name, _dollar_dollar.relation_info,) + assert fields1239 is not None + unwrapped_fields1240 = fields1239 self.write("(betree_relation") self.indent_sexp() self.newline() - field1192 = unwrapped_fields1191[0] - self.pretty_relation_id(field1192) + field1241 = unwrapped_fields1240[0] + self.pretty_relation_id(field1241) self.newline() - field1193 = unwrapped_fields1191[1] - self.pretty_betree_info(field1193) + field1242 = unwrapped_fields1240[1] + self.pretty_betree_info(field1242) self.dedent() self.write(")") def pretty_betree_info(self, msg: logic_pb2.BeTreeInfo): - flat1200 = self._try_flat(msg, self.pretty_betree_info) - if flat1200 is not None: - assert flat1200 is not None - self.write(flat1200) + flat1249 = self._try_flat(msg, self.pretty_betree_info) + if flat1249 is not None: + assert flat1249 is not None + self.write(flat1249) return None else: _dollar_dollar = msg - _t1441 = self.deconstruct_betree_info_config(_dollar_dollar) - fields1195 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1441,) - assert fields1195 is not None - unwrapped_fields1196 = fields1195 + _t1536 = self.deconstruct_betree_info_config(_dollar_dollar) + fields1244 = (_dollar_dollar.key_types, _dollar_dollar.value_types, _t1536,) + assert fields1244 is not None + unwrapped_fields1245 = fields1244 self.write("(betree_info") self.indent_sexp() self.newline() - field1197 = unwrapped_fields1196[0] - self.pretty_betree_info_key_types(field1197) + field1246 = unwrapped_fields1245[0] + self.pretty_betree_info_key_types(field1246) self.newline() - field1198 = unwrapped_fields1196[1] - self.pretty_betree_info_value_types(field1198) + field1247 = unwrapped_fields1245[1] + self.pretty_betree_info_value_types(field1247) self.newline() - field1199 = unwrapped_fields1196[2] - self.pretty_config_dict(field1199) + field1248 = unwrapped_fields1245[2] + self.pretty_config_dict(field1248) self.dedent() self.write(")") def pretty_betree_info_key_types(self, msg: Sequence[logic_pb2.Type]): - flat1204 = self._try_flat(msg, self.pretty_betree_info_key_types) - if flat1204 is not None: - assert flat1204 is not None - self.write(flat1204) + flat1253 = self._try_flat(msg, self.pretty_betree_info_key_types) + if flat1253 is not None: + assert flat1253 is not None + self.write(flat1253) return None else: - fields1201 = msg + fields1250 = msg self.write("(key_types") self.indent_sexp() - if not len(fields1201) == 0: + if not len(fields1250) == 0: self.newline() - for i1203, elem1202 in enumerate(fields1201): - if (i1203 > 0): + for i1252, elem1251 in enumerate(fields1250): + if (i1252 > 0): self.newline() - self.pretty_type(elem1202) + self.pretty_type(elem1251) self.dedent() self.write(")") def pretty_betree_info_value_types(self, msg: Sequence[logic_pb2.Type]): - flat1208 = self._try_flat(msg, self.pretty_betree_info_value_types) - if flat1208 is not None: - assert flat1208 is not None - self.write(flat1208) + flat1257 = self._try_flat(msg, self.pretty_betree_info_value_types) + if flat1257 is not None: + assert flat1257 is not None + self.write(flat1257) return None else: - fields1205 = msg + fields1254 = msg self.write("(value_types") self.indent_sexp() - if not len(fields1205) == 0: + if not len(fields1254) == 0: self.newline() - for i1207, elem1206 in enumerate(fields1205): - if (i1207 > 0): + for i1256, elem1255 in enumerate(fields1254): + if (i1256 > 0): self.newline() - self.pretty_type(elem1206) + self.pretty_type(elem1255) self.dedent() self.write(")") def pretty_csv_data(self, msg: logic_pb2.CSVData): - flat1215 = self._try_flat(msg, self.pretty_csv_data) - if flat1215 is not None: - assert flat1215 is not None - self.write(flat1215) + flat1264 = self._try_flat(msg, self.pretty_csv_data) + if flat1264 is not None: + assert flat1264 is not None + self.write(flat1264) return None else: _dollar_dollar = msg - fields1209 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) - assert fields1209 is not None - unwrapped_fields1210 = fields1209 + fields1258 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.asof,) + assert fields1258 is not None + unwrapped_fields1259 = fields1258 self.write("(csv_data") self.indent_sexp() self.newline() - field1211 = unwrapped_fields1210[0] - self.pretty_csvlocator(field1211) + field1260 = unwrapped_fields1259[0] + self.pretty_csvlocator(field1260) self.newline() - field1212 = unwrapped_fields1210[1] - self.pretty_csv_config(field1212) + field1261 = unwrapped_fields1259[1] + self.pretty_csv_config(field1261) self.newline() - field1213 = unwrapped_fields1210[2] - self.pretty_gnf_columns(field1213) + field1262 = unwrapped_fields1259[2] + self.pretty_gnf_columns(field1262) self.newline() - field1214 = unwrapped_fields1210[3] - self.pretty_csv_asof(field1214) + field1263 = unwrapped_fields1259[3] + self.pretty_csv_asof(field1263) self.dedent() self.write(")") def pretty_csvlocator(self, msg: logic_pb2.CSVLocator): - flat1222 = self._try_flat(msg, self.pretty_csvlocator) - if flat1222 is not None: - assert flat1222 is not None - self.write(flat1222) + flat1271 = self._try_flat(msg, self.pretty_csvlocator) + if flat1271 is not None: + assert flat1271 is not None + self.write(flat1271) return None else: _dollar_dollar = msg if not len(_dollar_dollar.paths) == 0: - _t1442 = _dollar_dollar.paths + _t1537 = _dollar_dollar.paths else: - _t1442 = None + _t1537 = None if _dollar_dollar.inline_data.decode('utf-8') != "": - _t1443 = _dollar_dollar.inline_data.decode('utf-8') + _t1538 = _dollar_dollar.inline_data.decode('utf-8') else: - _t1443 = None - fields1216 = (_t1442, _t1443,) - assert fields1216 is not None - unwrapped_fields1217 = fields1216 + _t1538 = None + fields1265 = (_t1537, _t1538,) + assert fields1265 is not None + unwrapped_fields1266 = fields1265 self.write("(csv_locator") self.indent_sexp() - field1218 = unwrapped_fields1217[0] - if field1218 is not None: + field1267 = unwrapped_fields1266[0] + if field1267 is not None: self.newline() - assert field1218 is not None - opt_val1219 = field1218 - self.pretty_csv_locator_paths(opt_val1219) - field1220 = unwrapped_fields1217[1] - if field1220 is not None: + assert field1267 is not None + opt_val1268 = field1267 + self.pretty_csv_locator_paths(opt_val1268) + field1269 = unwrapped_fields1266[1] + if field1269 is not None: self.newline() - assert field1220 is not None - opt_val1221 = field1220 - self.pretty_csv_locator_inline_data(opt_val1221) + assert field1269 is not None + opt_val1270 = field1269 + self.pretty_csv_locator_inline_data(opt_val1270) self.dedent() self.write(")") def pretty_csv_locator_paths(self, msg: Sequence[str]): - flat1226 = self._try_flat(msg, self.pretty_csv_locator_paths) - if flat1226 is not None: - assert flat1226 is not None - self.write(flat1226) + flat1275 = self._try_flat(msg, self.pretty_csv_locator_paths) + if flat1275 is not None: + assert flat1275 is not None + self.write(flat1275) return None else: - fields1223 = msg + fields1272 = msg self.write("(paths") self.indent_sexp() - if not len(fields1223) == 0: + if not len(fields1272) == 0: self.newline() - for i1225, elem1224 in enumerate(fields1223): - if (i1225 > 0): + for i1274, elem1273 in enumerate(fields1272): + if (i1274 > 0): self.newline() - self.write(self.format_string_value(elem1224)) + self.write(self.format_string_value(elem1273)) self.dedent() self.write(")") def pretty_csv_locator_inline_data(self, msg: str): - flat1228 = self._try_flat(msg, self.pretty_csv_locator_inline_data) - if flat1228 is not None: - assert flat1228 is not None - self.write(flat1228) + flat1277 = self._try_flat(msg, self.pretty_csv_locator_inline_data) + if flat1277 is not None: + assert flat1277 is not None + self.write(flat1277) return None else: - fields1227 = msg + fields1276 = msg self.write("(inline_data") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1227)) + self.write(self.format_string_value(fields1276)) self.dedent() self.write(")") def pretty_csv_config(self, msg: logic_pb2.CSVConfig): - flat1231 = self._try_flat(msg, self.pretty_csv_config) - if flat1231 is not None: - assert flat1231 is not None - self.write(flat1231) + flat1280 = self._try_flat(msg, self.pretty_csv_config) + if flat1280 is not None: + assert flat1280 is not None + self.write(flat1280) return None else: _dollar_dollar = msg - _t1444 = self.deconstruct_csv_config(_dollar_dollar) - fields1229 = _t1444 - assert fields1229 is not None - unwrapped_fields1230 = fields1229 + _t1539 = self.deconstruct_csv_config(_dollar_dollar) + fields1278 = _t1539 + assert fields1278 is not None + unwrapped_fields1279 = fields1278 self.write("(csv_config") self.indent_sexp() self.newline() - self.pretty_config_dict(unwrapped_fields1230) + self.pretty_config_dict(unwrapped_fields1279) self.dedent() self.write(")") def pretty_gnf_columns(self, msg: Sequence[logic_pb2.GNFColumn]): - flat1235 = self._try_flat(msg, self.pretty_gnf_columns) - if flat1235 is not None: - assert flat1235 is not None - self.write(flat1235) + flat1284 = self._try_flat(msg, self.pretty_gnf_columns) + if flat1284 is not None: + assert flat1284 is not None + self.write(flat1284) return None else: - fields1232 = msg + fields1281 = msg self.write("(columns") self.indent_sexp() - if not len(fields1232) == 0: + if not len(fields1281) == 0: self.newline() - for i1234, elem1233 in enumerate(fields1232): - if (i1234 > 0): + for i1283, elem1282 in enumerate(fields1281): + if (i1283 > 0): self.newline() - self.pretty_gnf_column(elem1233) + self.pretty_gnf_column(elem1282) self.dedent() self.write(")") def pretty_gnf_column(self, msg: logic_pb2.GNFColumn): - flat1244 = self._try_flat(msg, self.pretty_gnf_column) - if flat1244 is not None: - assert flat1244 is not None - self.write(flat1244) + flat1293 = self._try_flat(msg, self.pretty_gnf_column) + if flat1293 is not None: + assert flat1293 is not None + self.write(flat1293) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("target_id"): - _t1445 = _dollar_dollar.target_id + _t1540 = _dollar_dollar.target_id else: - _t1445 = None - fields1236 = (_dollar_dollar.column_path, _t1445, _dollar_dollar.types,) - assert fields1236 is not None - unwrapped_fields1237 = fields1236 + _t1540 = None + fields1285 = (_dollar_dollar.column_path, _t1540, _dollar_dollar.types,) + assert fields1285 is not None + unwrapped_fields1286 = fields1285 self.write("(column") self.indent_sexp() self.newline() - field1238 = unwrapped_fields1237[0] - self.pretty_gnf_column_path(field1238) - field1239 = unwrapped_fields1237[1] - if field1239 is not None: + field1287 = unwrapped_fields1286[0] + self.pretty_gnf_column_path(field1287) + field1288 = unwrapped_fields1286[1] + if field1288 is not None: self.newline() - assert field1239 is not None - opt_val1240 = field1239 - self.pretty_relation_id(opt_val1240) + assert field1288 is not None + opt_val1289 = field1288 + self.pretty_relation_id(opt_val1289) self.newline() self.write("[") - field1241 = unwrapped_fields1237[2] - for i1243, elem1242 in enumerate(field1241): - if (i1243 > 0): + field1290 = unwrapped_fields1286[2] + for i1292, elem1291 in enumerate(field1290): + if (i1292 > 0): self.newline() - self.pretty_type(elem1242) + self.pretty_type(elem1291) self.write("]") self.dedent() self.write(")") def pretty_gnf_column_path(self, msg: Sequence[str]): - flat1251 = self._try_flat(msg, self.pretty_gnf_column_path) - if flat1251 is not None: - assert flat1251 is not None - self.write(flat1251) + flat1300 = self._try_flat(msg, self.pretty_gnf_column_path) + if flat1300 is not None: + assert flat1300 is not None + self.write(flat1300) return None else: _dollar_dollar = msg if len(_dollar_dollar) == 1: - _t1446 = _dollar_dollar[0] + _t1541 = _dollar_dollar[0] else: - _t1446 = None - deconstruct_result1249 = _t1446 - if deconstruct_result1249 is not None: - assert deconstruct_result1249 is not None - unwrapped1250 = deconstruct_result1249 - self.write(self.format_string_value(unwrapped1250)) + _t1541 = None + deconstruct_result1298 = _t1541 + if deconstruct_result1298 is not None: + assert deconstruct_result1298 is not None + unwrapped1299 = deconstruct_result1298 + self.write(self.format_string_value(unwrapped1299)) else: _dollar_dollar = msg if len(_dollar_dollar) != 1: - _t1447 = _dollar_dollar + _t1542 = _dollar_dollar else: - _t1447 = None - deconstruct_result1245 = _t1447 - if deconstruct_result1245 is not None: - assert deconstruct_result1245 is not None - unwrapped1246 = deconstruct_result1245 + _t1542 = None + deconstruct_result1294 = _t1542 + if deconstruct_result1294 is not None: + assert deconstruct_result1294 is not None + unwrapped1295 = deconstruct_result1294 self.write("[") self.indent() - for i1248, elem1247 in enumerate(unwrapped1246): - if (i1248 > 0): + for i1297, elem1296 in enumerate(unwrapped1295): + if (i1297 > 0): self.newline() - self.write(self.format_string_value(elem1247)) + self.write(self.format_string_value(elem1296)) self.dedent() self.write("]") else: raise ParseError("No matching rule for gnf_column_path") def pretty_csv_asof(self, msg: str): - flat1253 = self._try_flat(msg, self.pretty_csv_asof) - if flat1253 is not None: - assert flat1253 is not None - self.write(flat1253) + flat1302 = self._try_flat(msg, self.pretty_csv_asof) + if flat1302 is not None: + assert flat1302 is not None + self.write(flat1302) return None else: - fields1252 = msg + fields1301 = msg self.write("(asof") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1252)) + self.write(self.format_string_value(fields1301)) + self.dedent() + self.write(")") + + def pretty_iceberg_data(self, msg: logic_pb2.IcebergData): + flat1310 = self._try_flat(msg, self.pretty_iceberg_data) + if flat1310 is not None: + assert flat1310 is not None + self.write(flat1310) + return None + else: + _dollar_dollar = msg + fields1303 = (_dollar_dollar.locator, _dollar_dollar.config, _dollar_dollar.columns, _dollar_dollar.to_snapshot,) + assert fields1303 is not None + unwrapped_fields1304 = fields1303 + self.write("(iceberg_data") + self.indent_sexp() + self.newline() + field1305 = unwrapped_fields1304[0] + self.pretty_iceberg_locator(field1305) + self.newline() + field1306 = unwrapped_fields1304[1] + self.pretty_iceberg_config(field1306) + self.newline() + field1307 = unwrapped_fields1304[2] + self.pretty_gnf_columns(field1307) + field1308 = unwrapped_fields1304[3] + if field1308 is not None: + self.newline() + assert field1308 is not None + opt_val1309 = field1308 + self.pretty_iceberg_to_snapshot(opt_val1309) + self.dedent() + self.write(")") + + def pretty_iceberg_locator(self, msg: logic_pb2.IcebergLocator): + flat1316 = self._try_flat(msg, self.pretty_iceberg_locator) + if flat1316 is not None: + assert flat1316 is not None + self.write(flat1316) + return None + else: + _dollar_dollar = msg + fields1311 = (_dollar_dollar.table_name, _dollar_dollar.namespace, _dollar_dollar.warehouse,) + assert fields1311 is not None + unwrapped_fields1312 = fields1311 + self.write("(iceberg_locator") + self.indent_sexp() + self.newline() + field1313 = unwrapped_fields1312[0] + self.write(self.format_string_value(field1313)) + self.newline() + field1314 = unwrapped_fields1312[1] + self.pretty_iceberg_locator_namespace(field1314) + self.newline() + field1315 = unwrapped_fields1312[2] + self.write(self.format_string_value(field1315)) + self.dedent() + self.write(")") + + def pretty_iceberg_locator_namespace(self, msg: Sequence[str]): + flat1320 = self._try_flat(msg, self.pretty_iceberg_locator_namespace) + if flat1320 is not None: + assert flat1320 is not None + self.write(flat1320) + return None + else: + fields1317 = msg + self.write("(namespace") + self.indent_sexp() + if not len(fields1317) == 0: + self.newline() + for i1319, elem1318 in enumerate(fields1317): + if (i1319 > 0): + self.newline() + self.write(self.format_string_value(elem1318)) + self.dedent() + self.write(")") + + def pretty_iceberg_config(self, msg: logic_pb2.IcebergConfig): + flat1330 = self._try_flat(msg, self.pretty_iceberg_config) + if flat1330 is not None: + assert flat1330 is not None + self.write(flat1330) + return None + else: + _dollar_dollar = msg + if _dollar_dollar.scope != "": + _t1543 = _dollar_dollar.scope + else: + _t1543 = None + if not len(sorted(_dollar_dollar.properties.items())) == 0: + _t1544 = sorted(_dollar_dollar.properties.items()) + else: + _t1544 = None + fields1321 = (_dollar_dollar.catalog_uri, _t1543, _t1544, None,) + assert fields1321 is not None + unwrapped_fields1322 = fields1321 + self.write("(iceberg_config") + self.indent_sexp() + self.newline() + field1323 = unwrapped_fields1322[0] + self.write(self.format_string_value(field1323)) + field1324 = unwrapped_fields1322[1] + if field1324 is not None: + self.newline() + assert field1324 is not None + opt_val1325 = field1324 + self.pretty_iceberg_config_scope(opt_val1325) + field1326 = unwrapped_fields1322[2] + if field1326 is not None: + self.newline() + assert field1326 is not None + opt_val1327 = field1326 + self.pretty_iceberg_config_properties(opt_val1327) + field1328 = unwrapped_fields1322[3] + if field1328 is not None: + self.newline() + assert field1328 is not None + opt_val1329 = field1328 + self.pretty_iceberg_config_credentials(opt_val1329) + self.dedent() + self.write(")") + + def pretty_iceberg_config_scope(self, msg: str): + flat1332 = self._try_flat(msg, self.pretty_iceberg_config_scope) + if flat1332 is not None: + assert flat1332 is not None + self.write(flat1332) + return None + else: + fields1331 = msg + self.write("(scope") + self.indent_sexp() + self.newline() + self.write(self.format_string_value(fields1331)) + self.dedent() + self.write(")") + + def pretty_iceberg_config_properties(self, msg: Sequence[tuple[str, str]]): + flat1336 = self._try_flat(msg, self.pretty_iceberg_config_properties) + if flat1336 is not None: + assert flat1336 is not None + self.write(flat1336) + return None + else: + fields1333 = msg + self.write("(properties") + self.indent_sexp() + if not len(fields1333) == 0: + self.newline() + for i1335, elem1334 in enumerate(fields1333): + if (i1335 > 0): + self.newline() + self.pretty_iceberg_kv_pair(elem1334) + self.dedent() + self.write(")") + + def pretty_iceberg_kv_pair(self, msg: tuple[str, str]): + flat1341 = self._try_flat(msg, self.pretty_iceberg_kv_pair) + if flat1341 is not None: + assert flat1341 is not None + self.write(flat1341) + return None + else: + _dollar_dollar = msg + fields1337 = (_dollar_dollar[0], _dollar_dollar[1],) + assert fields1337 is not None + unwrapped_fields1338 = fields1337 + self.write("(") + self.indent() + field1339 = unwrapped_fields1338[0] + self.write(self.format_string_value(field1339)) + self.newline() + field1340 = unwrapped_fields1338[1] + self.write(self.format_string_value(field1340)) + self.dedent() + self.write(")") + + def pretty_iceberg_config_credentials(self, msg: Sequence[tuple[str, str]]): + flat1345 = self._try_flat(msg, self.pretty_iceberg_config_credentials) + if flat1345 is not None: + assert flat1345 is not None + self.write(flat1345) + return None + else: + fields1342 = msg + self.write("(credentials") + self.indent_sexp() + if not len(fields1342) == 0: + self.newline() + for i1344, elem1343 in enumerate(fields1342): + if (i1344 > 0): + self.newline() + self.pretty_iceberg_kv_pair(elem1343) + self.dedent() + self.write(")") + + def pretty_iceberg_to_snapshot(self, msg: str): + flat1347 = self._try_flat(msg, self.pretty_iceberg_to_snapshot) + if flat1347 is not None: + assert flat1347 is not None + self.write(flat1347) + return None + else: + fields1346 = msg + self.write("(to_snapshot") + self.indent_sexp() + self.newline() + self.write(self.format_string_value(fields1346)) self.dedent() self.write(")") def pretty_undefine(self, msg: transactions_pb2.Undefine): - flat1256 = self._try_flat(msg, self.pretty_undefine) - if flat1256 is not None: - assert flat1256 is not None - self.write(flat1256) + flat1350 = self._try_flat(msg, self.pretty_undefine) + if flat1350 is not None: + assert flat1350 is not None + self.write(flat1350) return None else: _dollar_dollar = msg - fields1254 = _dollar_dollar.fragment_id - assert fields1254 is not None - unwrapped_fields1255 = fields1254 + fields1348 = _dollar_dollar.fragment_id + assert fields1348 is not None + unwrapped_fields1349 = fields1348 self.write("(undefine") self.indent_sexp() self.newline() - self.pretty_fragment_id(unwrapped_fields1255) + self.pretty_fragment_id(unwrapped_fields1349) self.dedent() self.write(")") def pretty_context(self, msg: transactions_pb2.Context): - flat1261 = self._try_flat(msg, self.pretty_context) - if flat1261 is not None: - assert flat1261 is not None - self.write(flat1261) + flat1355 = self._try_flat(msg, self.pretty_context) + if flat1355 is not None: + assert flat1355 is not None + self.write(flat1355) return None else: _dollar_dollar = msg - fields1257 = _dollar_dollar.relations - assert fields1257 is not None - unwrapped_fields1258 = fields1257 + fields1351 = _dollar_dollar.relations + assert fields1351 is not None + unwrapped_fields1352 = fields1351 self.write("(context") self.indent_sexp() - if not len(unwrapped_fields1258) == 0: + if not len(unwrapped_fields1352) == 0: self.newline() - for i1260, elem1259 in enumerate(unwrapped_fields1258): - if (i1260 > 0): + for i1354, elem1353 in enumerate(unwrapped_fields1352): + if (i1354 > 0): self.newline() - self.pretty_relation_id(elem1259) + self.pretty_relation_id(elem1353) self.dedent() self.write(")") def pretty_snapshot(self, msg: transactions_pb2.Snapshot): - flat1266 = self._try_flat(msg, self.pretty_snapshot) - if flat1266 is not None: - assert flat1266 is not None - self.write(flat1266) + flat1360 = self._try_flat(msg, self.pretty_snapshot) + if flat1360 is not None: + assert flat1360 is not None + self.write(flat1360) return None else: _dollar_dollar = msg - fields1262 = _dollar_dollar.mappings - assert fields1262 is not None - unwrapped_fields1263 = fields1262 + fields1356 = _dollar_dollar.mappings + assert fields1356 is not None + unwrapped_fields1357 = fields1356 self.write("(snapshot") self.indent_sexp() - if not len(unwrapped_fields1263) == 0: + if not len(unwrapped_fields1357) == 0: self.newline() - for i1265, elem1264 in enumerate(unwrapped_fields1263): - if (i1265 > 0): + for i1359, elem1358 in enumerate(unwrapped_fields1357): + if (i1359 > 0): self.newline() - self.pretty_snapshot_mapping(elem1264) + self.pretty_snapshot_mapping(elem1358) self.dedent() self.write(")") def pretty_snapshot_mapping(self, msg: transactions_pb2.SnapshotMapping): - flat1271 = self._try_flat(msg, self.pretty_snapshot_mapping) - if flat1271 is not None: - assert flat1271 is not None - self.write(flat1271) + flat1365 = self._try_flat(msg, self.pretty_snapshot_mapping) + if flat1365 is not None: + assert flat1365 is not None + self.write(flat1365) return None else: _dollar_dollar = msg - fields1267 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) - assert fields1267 is not None - unwrapped_fields1268 = fields1267 - field1269 = unwrapped_fields1268[0] - self.pretty_edb_path(field1269) + fields1361 = (_dollar_dollar.destination_path, _dollar_dollar.source_relation,) + assert fields1361 is not None + unwrapped_fields1362 = fields1361 + field1363 = unwrapped_fields1362[0] + self.pretty_edb_path(field1363) self.write(" ") - field1270 = unwrapped_fields1268[1] - self.pretty_relation_id(field1270) + field1364 = unwrapped_fields1362[1] + self.pretty_relation_id(field1364) def pretty_epoch_reads(self, msg: Sequence[transactions_pb2.Read]): - flat1275 = self._try_flat(msg, self.pretty_epoch_reads) - if flat1275 is not None: - assert flat1275 is not None - self.write(flat1275) + flat1369 = self._try_flat(msg, self.pretty_epoch_reads) + if flat1369 is not None: + assert flat1369 is not None + self.write(flat1369) return None else: - fields1272 = msg + fields1366 = msg self.write("(reads") self.indent_sexp() - if not len(fields1272) == 0: + if not len(fields1366) == 0: self.newline() - for i1274, elem1273 in enumerate(fields1272): - if (i1274 > 0): + for i1368, elem1367 in enumerate(fields1366): + if (i1368 > 0): self.newline() - self.pretty_read(elem1273) + self.pretty_read(elem1367) self.dedent() self.write(")") def pretty_read(self, msg: transactions_pb2.Read): - flat1286 = self._try_flat(msg, self.pretty_read) - if flat1286 is not None: - assert flat1286 is not None - self.write(flat1286) + flat1380 = self._try_flat(msg, self.pretty_read) + if flat1380 is not None: + assert flat1380 is not None + self.write(flat1380) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("demand"): - _t1448 = _dollar_dollar.demand + _t1545 = _dollar_dollar.demand else: - _t1448 = None - deconstruct_result1284 = _t1448 - if deconstruct_result1284 is not None: - assert deconstruct_result1284 is not None - unwrapped1285 = deconstruct_result1284 - self.pretty_demand(unwrapped1285) + _t1545 = None + deconstruct_result1378 = _t1545 + if deconstruct_result1378 is not None: + assert deconstruct_result1378 is not None + unwrapped1379 = deconstruct_result1378 + self.pretty_demand(unwrapped1379) else: _dollar_dollar = msg if _dollar_dollar.HasField("output"): - _t1449 = _dollar_dollar.output + _t1546 = _dollar_dollar.output else: - _t1449 = None - deconstruct_result1282 = _t1449 - if deconstruct_result1282 is not None: - assert deconstruct_result1282 is not None - unwrapped1283 = deconstruct_result1282 - self.pretty_output(unwrapped1283) + _t1546 = None + deconstruct_result1376 = _t1546 + if deconstruct_result1376 is not None: + assert deconstruct_result1376 is not None + unwrapped1377 = deconstruct_result1376 + self.pretty_output(unwrapped1377) else: _dollar_dollar = msg if _dollar_dollar.HasField("what_if"): - _t1450 = _dollar_dollar.what_if + _t1547 = _dollar_dollar.what_if else: - _t1450 = None - deconstruct_result1280 = _t1450 - if deconstruct_result1280 is not None: - assert deconstruct_result1280 is not None - unwrapped1281 = deconstruct_result1280 - self.pretty_what_if(unwrapped1281) + _t1547 = None + deconstruct_result1374 = _t1547 + if deconstruct_result1374 is not None: + assert deconstruct_result1374 is not None + unwrapped1375 = deconstruct_result1374 + self.pretty_what_if(unwrapped1375) else: _dollar_dollar = msg if _dollar_dollar.HasField("abort"): - _t1451 = _dollar_dollar.abort + _t1548 = _dollar_dollar.abort else: - _t1451 = None - deconstruct_result1278 = _t1451 - if deconstruct_result1278 is not None: - assert deconstruct_result1278 is not None - unwrapped1279 = deconstruct_result1278 - self.pretty_abort(unwrapped1279) + _t1548 = None + deconstruct_result1372 = _t1548 + if deconstruct_result1372 is not None: + assert deconstruct_result1372 is not None + unwrapped1373 = deconstruct_result1372 + self.pretty_abort(unwrapped1373) else: _dollar_dollar = msg if _dollar_dollar.HasField("export"): - _t1452 = _dollar_dollar.export + _t1549 = _dollar_dollar.export else: - _t1452 = None - deconstruct_result1276 = _t1452 - if deconstruct_result1276 is not None: - assert deconstruct_result1276 is not None - unwrapped1277 = deconstruct_result1276 - self.pretty_export(unwrapped1277) + _t1549 = None + deconstruct_result1370 = _t1549 + if deconstruct_result1370 is not None: + assert deconstruct_result1370 is not None + unwrapped1371 = deconstruct_result1370 + self.pretty_export(unwrapped1371) else: raise ParseError("No matching rule for read") def pretty_demand(self, msg: transactions_pb2.Demand): - flat1289 = self._try_flat(msg, self.pretty_demand) - if flat1289 is not None: - assert flat1289 is not None - self.write(flat1289) + flat1383 = self._try_flat(msg, self.pretty_demand) + if flat1383 is not None: + assert flat1383 is not None + self.write(flat1383) return None else: _dollar_dollar = msg - fields1287 = _dollar_dollar.relation_id - assert fields1287 is not None - unwrapped_fields1288 = fields1287 + fields1381 = _dollar_dollar.relation_id + assert fields1381 is not None + unwrapped_fields1382 = fields1381 self.write("(demand") self.indent_sexp() self.newline() - self.pretty_relation_id(unwrapped_fields1288) + self.pretty_relation_id(unwrapped_fields1382) self.dedent() self.write(")") def pretty_output(self, msg: transactions_pb2.Output): - flat1294 = self._try_flat(msg, self.pretty_output) - if flat1294 is not None: - assert flat1294 is not None - self.write(flat1294) + flat1388 = self._try_flat(msg, self.pretty_output) + if flat1388 is not None: + assert flat1388 is not None + self.write(flat1388) return None else: _dollar_dollar = msg - fields1290 = (_dollar_dollar.name, _dollar_dollar.relation_id,) - assert fields1290 is not None - unwrapped_fields1291 = fields1290 + fields1384 = (_dollar_dollar.name, _dollar_dollar.relation_id,) + assert fields1384 is not None + unwrapped_fields1385 = fields1384 self.write("(output") self.indent_sexp() self.newline() - field1292 = unwrapped_fields1291[0] - self.pretty_name(field1292) + field1386 = unwrapped_fields1385[0] + self.pretty_name(field1386) self.newline() - field1293 = unwrapped_fields1291[1] - self.pretty_relation_id(field1293) + field1387 = unwrapped_fields1385[1] + self.pretty_relation_id(field1387) self.dedent() self.write(")") def pretty_what_if(self, msg: transactions_pb2.WhatIf): - flat1299 = self._try_flat(msg, self.pretty_what_if) - if flat1299 is not None: - assert flat1299 is not None - self.write(flat1299) + flat1393 = self._try_flat(msg, self.pretty_what_if) + if flat1393 is not None: + assert flat1393 is not None + self.write(flat1393) return None else: _dollar_dollar = msg - fields1295 = (_dollar_dollar.branch, _dollar_dollar.epoch,) - assert fields1295 is not None - unwrapped_fields1296 = fields1295 + fields1389 = (_dollar_dollar.branch, _dollar_dollar.epoch,) + assert fields1389 is not None + unwrapped_fields1390 = fields1389 self.write("(what_if") self.indent_sexp() self.newline() - field1297 = unwrapped_fields1296[0] - self.pretty_name(field1297) + field1391 = unwrapped_fields1390[0] + self.pretty_name(field1391) self.newline() - field1298 = unwrapped_fields1296[1] - self.pretty_epoch(field1298) + field1392 = unwrapped_fields1390[1] + self.pretty_epoch(field1392) self.dedent() self.write(")") def pretty_abort(self, msg: transactions_pb2.Abort): - flat1305 = self._try_flat(msg, self.pretty_abort) - if flat1305 is not None: - assert flat1305 is not None - self.write(flat1305) + flat1399 = self._try_flat(msg, self.pretty_abort) + if flat1399 is not None: + assert flat1399 is not None + self.write(flat1399) return None else: _dollar_dollar = msg if _dollar_dollar.name != "abort": - _t1453 = _dollar_dollar.name + _t1550 = _dollar_dollar.name else: - _t1453 = None - fields1300 = (_t1453, _dollar_dollar.relation_id,) - assert fields1300 is not None - unwrapped_fields1301 = fields1300 + _t1550 = None + fields1394 = (_t1550, _dollar_dollar.relation_id,) + assert fields1394 is not None + unwrapped_fields1395 = fields1394 self.write("(abort") self.indent_sexp() - field1302 = unwrapped_fields1301[0] - if field1302 is not None: + field1396 = unwrapped_fields1395[0] + if field1396 is not None: self.newline() - assert field1302 is not None - opt_val1303 = field1302 - self.pretty_name(opt_val1303) + assert field1396 is not None + opt_val1397 = field1396 + self.pretty_name(opt_val1397) self.newline() - field1304 = unwrapped_fields1301[1] - self.pretty_relation_id(field1304) + field1398 = unwrapped_fields1395[1] + self.pretty_relation_id(field1398) self.dedent() self.write(")") def pretty_export(self, msg: transactions_pb2.Export): - flat1308 = self._try_flat(msg, self.pretty_export) - if flat1308 is not None: - assert flat1308 is not None - self.write(flat1308) + flat1402 = self._try_flat(msg, self.pretty_export) + if flat1402 is not None: + assert flat1402 is not None + self.write(flat1402) return None else: _dollar_dollar = msg - fields1306 = _dollar_dollar.csv_config - assert fields1306 is not None - unwrapped_fields1307 = fields1306 + fields1400 = _dollar_dollar.csv_config + assert fields1400 is not None + unwrapped_fields1401 = fields1400 self.write("(export") self.indent_sexp() self.newline() - self.pretty_export_csv_config(unwrapped_fields1307) + self.pretty_export_csv_config(unwrapped_fields1401) self.dedent() self.write(")") def pretty_export_csv_config(self, msg: transactions_pb2.ExportCSVConfig): - flat1319 = self._try_flat(msg, self.pretty_export_csv_config) - if flat1319 is not None: - assert flat1319 is not None - self.write(flat1319) + flat1413 = self._try_flat(msg, self.pretty_export_csv_config) + if flat1413 is not None: + assert flat1413 is not None + self.write(flat1413) return None else: _dollar_dollar = msg if len(_dollar_dollar.data_columns) == 0: - _t1454 = (_dollar_dollar.path, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) + _t1551 = (_dollar_dollar.path, _dollar_dollar.csv_source, _dollar_dollar.csv_config,) else: - _t1454 = None - deconstruct_result1314 = _t1454 - if deconstruct_result1314 is not None: - assert deconstruct_result1314 is not None - unwrapped1315 = deconstruct_result1314 + _t1551 = None + deconstruct_result1408 = _t1551 + if deconstruct_result1408 is not None: + assert deconstruct_result1408 is not None + unwrapped1409 = deconstruct_result1408 self.write("(export_csv_config_v2") self.indent_sexp() self.newline() - field1316 = unwrapped1315[0] - self.pretty_export_csv_path(field1316) + field1410 = unwrapped1409[0] + self.pretty_export_csv_path(field1410) self.newline() - field1317 = unwrapped1315[1] - self.pretty_export_csv_source(field1317) + field1411 = unwrapped1409[1] + self.pretty_export_csv_source(field1411) self.newline() - field1318 = unwrapped1315[2] - self.pretty_csv_config(field1318) + field1412 = unwrapped1409[2] + self.pretty_csv_config(field1412) self.dedent() self.write(")") else: _dollar_dollar = msg if len(_dollar_dollar.data_columns) != 0: - _t1456 = self.deconstruct_export_csv_config(_dollar_dollar) - _t1455 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1456,) + _t1553 = self.deconstruct_export_csv_config(_dollar_dollar) + _t1552 = (_dollar_dollar.path, _dollar_dollar.data_columns, _t1553,) else: - _t1455 = None - deconstruct_result1309 = _t1455 - if deconstruct_result1309 is not None: - assert deconstruct_result1309 is not None - unwrapped1310 = deconstruct_result1309 + _t1552 = None + deconstruct_result1403 = _t1552 + if deconstruct_result1403 is not None: + assert deconstruct_result1403 is not None + unwrapped1404 = deconstruct_result1403 self.write("(export_csv_config") self.indent_sexp() self.newline() - field1311 = unwrapped1310[0] - self.pretty_export_csv_path(field1311) + field1405 = unwrapped1404[0] + self.pretty_export_csv_path(field1405) self.newline() - field1312 = unwrapped1310[1] - self.pretty_export_csv_columns_list(field1312) + field1406 = unwrapped1404[1] + self.pretty_export_csv_columns_list(field1406) self.newline() - field1313 = unwrapped1310[2] - self.pretty_config_dict(field1313) + field1407 = unwrapped1404[2] + self.pretty_config_dict(field1407) self.dedent() self.write(")") else: raise ParseError("No matching rule for export_csv_config") def pretty_export_csv_path(self, msg: str): - flat1321 = self._try_flat(msg, self.pretty_export_csv_path) - if flat1321 is not None: - assert flat1321 is not None - self.write(flat1321) + flat1415 = self._try_flat(msg, self.pretty_export_csv_path) + if flat1415 is not None: + assert flat1415 is not None + self.write(flat1415) return None else: - fields1320 = msg + fields1414 = msg self.write("(path") self.indent_sexp() self.newline() - self.write(self.format_string_value(fields1320)) + self.write(self.format_string_value(fields1414)) self.dedent() self.write(")") def pretty_export_csv_source(self, msg: transactions_pb2.ExportCSVSource): - flat1328 = self._try_flat(msg, self.pretty_export_csv_source) - if flat1328 is not None: - assert flat1328 is not None - self.write(flat1328) + flat1422 = self._try_flat(msg, self.pretty_export_csv_source) + if flat1422 is not None: + assert flat1422 is not None + self.write(flat1422) return None else: _dollar_dollar = msg if _dollar_dollar.HasField("gnf_columns"): - _t1457 = _dollar_dollar.gnf_columns.columns + _t1554 = _dollar_dollar.gnf_columns.columns else: - _t1457 = None - deconstruct_result1324 = _t1457 - if deconstruct_result1324 is not None: - assert deconstruct_result1324 is not None - unwrapped1325 = deconstruct_result1324 + _t1554 = None + deconstruct_result1418 = _t1554 + if deconstruct_result1418 is not None: + assert deconstruct_result1418 is not None + unwrapped1419 = deconstruct_result1418 self.write("(gnf_columns") self.indent_sexp() - if not len(unwrapped1325) == 0: + if not len(unwrapped1419) == 0: self.newline() - for i1327, elem1326 in enumerate(unwrapped1325): - if (i1327 > 0): + for i1421, elem1420 in enumerate(unwrapped1419): + if (i1421 > 0): self.newline() - self.pretty_export_csv_column(elem1326) + self.pretty_export_csv_column(elem1420) self.dedent() self.write(")") else: _dollar_dollar = msg if _dollar_dollar.HasField("table_def"): - _t1458 = _dollar_dollar.table_def + _t1555 = _dollar_dollar.table_def else: - _t1458 = None - deconstruct_result1322 = _t1458 - if deconstruct_result1322 is not None: - assert deconstruct_result1322 is not None - unwrapped1323 = deconstruct_result1322 + _t1555 = None + deconstruct_result1416 = _t1555 + if deconstruct_result1416 is not None: + assert deconstruct_result1416 is not None + unwrapped1417 = deconstruct_result1416 self.write("(table_def") self.indent_sexp() self.newline() - self.pretty_relation_id(unwrapped1323) + self.pretty_relation_id(unwrapped1417) self.dedent() self.write(")") else: raise ParseError("No matching rule for export_csv_source") def pretty_export_csv_column(self, msg: transactions_pb2.ExportCSVColumn): - flat1333 = self._try_flat(msg, self.pretty_export_csv_column) - if flat1333 is not None: - assert flat1333 is not None - self.write(flat1333) + flat1427 = self._try_flat(msg, self.pretty_export_csv_column) + if flat1427 is not None: + assert flat1427 is not None + self.write(flat1427) return None else: _dollar_dollar = msg - fields1329 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) - assert fields1329 is not None - unwrapped_fields1330 = fields1329 + fields1423 = (_dollar_dollar.column_name, _dollar_dollar.column_data,) + assert fields1423 is not None + unwrapped_fields1424 = fields1423 self.write("(column") self.indent_sexp() self.newline() - field1331 = unwrapped_fields1330[0] - self.write(self.format_string_value(field1331)) + field1425 = unwrapped_fields1424[0] + self.write(self.format_string_value(field1425)) self.newline() - field1332 = unwrapped_fields1330[1] - self.pretty_relation_id(field1332) + field1426 = unwrapped_fields1424[1] + self.pretty_relation_id(field1426) self.dedent() self.write(")") def pretty_export_csv_columns_list(self, msg: Sequence[transactions_pb2.ExportCSVColumn]): - flat1337 = self._try_flat(msg, self.pretty_export_csv_columns_list) - if flat1337 is not None: - assert flat1337 is not None - self.write(flat1337) + flat1431 = self._try_flat(msg, self.pretty_export_csv_columns_list) + if flat1431 is not None: + assert flat1431 is not None + self.write(flat1431) return None else: - fields1334 = msg + fields1428 = msg self.write("(columns") self.indent_sexp() - if not len(fields1334) == 0: + if not len(fields1428) == 0: self.newline() - for i1336, elem1335 in enumerate(fields1334): - if (i1336 > 0): + for i1430, elem1429 in enumerate(fields1428): + if (i1430 > 0): self.newline() - self.pretty_export_csv_column(elem1335) + self.pretty_export_csv_column(elem1429) self.dedent() self.write(")") @@ -3666,8 +3886,8 @@ def pretty_debug_info(self, msg: fragments_pb2.DebugInfo): for _idx, _rid in enumerate(msg.ids): self.newline() self.write("(") - _t1497 = logic_pb2.UInt128Value(low=_rid.id_low, high=_rid.id_high) - self.pprint_dispatch(_t1497) + _t1594 = logic_pb2.UInt128Value(low=_rid.id_low, high=_rid.id_high) + self.pprint_dispatch(_t1594) self.write(" ") self.write(self.format_string_value(msg.orig_names[_idx])) self.write(")") @@ -3934,6 +4154,12 @@ def pprint_dispatch(self, msg): self.pretty_csv_config(msg) elif isinstance(msg, logic_pb2.GNFColumn): self.pretty_gnf_column(msg) + elif isinstance(msg, logic_pb2.IcebergData): + self.pretty_iceberg_data(msg) + elif isinstance(msg, logic_pb2.IcebergLocator): + self.pretty_iceberg_locator(msg) + elif isinstance(msg, logic_pb2.IcebergConfig): + self.pretty_iceberg_config(msg) elif isinstance(msg, transactions_pb2.Undefine): self.pretty_undefine(msg) elif isinstance(msg, transactions_pb2.Context): diff --git a/sdks/python/src/lqp/proto/v1/fragments_pb2.pyi b/sdks/python/src/lqp/proto/v1/fragments_pb2.pyi index b4115517..dd183608 100644 --- a/sdks/python/src/lqp/proto/v1/fragments_pb2.pyi +++ b/sdks/python/src/lqp/proto/v1/fragments_pb2.pyi @@ -2,8 +2,7 @@ from lqp.proto.v1 import logic_pb2 as _logic_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from collections.abc import Iterable as _Iterable, Mapping as _Mapping -from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor diff --git a/sdks/python/src/lqp/proto/v1/logic_pb2.py b/sdks/python/src/lqp/proto/v1/logic_pb2.py index 37b1c59f..b2c18526 100644 --- a/sdks/python/src/lqp/proto/v1/logic_pb2.py +++ b/sdks/python/src/lqp/proto/v1/logic_pb2.py @@ -14,7 +14,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1frelationalai/lqp/v1/logic.proto\x12\x13relationalai.lqp.v1\"\x83\x02\n\x0b\x44\x65\x63laration\x12,\n\x03\x64\x65\x66\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.DefH\x00R\x03\x64\x65\x66\x12>\n\talgorithm\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.AlgorithmH\x00R\talgorithm\x12\x41\n\nconstraint\x18\x03 \x01(\x0b\x32\x1f.relationalai.lqp.v1.ConstraintH\x00R\nconstraint\x12/\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32\x19.relationalai.lqp.v1.DataH\x00R\x04\x64\x61taB\x12\n\x10\x64\x65\x63laration_type\"\xa6\x01\n\x03\x44\x65\x66\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xb6\x01\n\nConstraint\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12`\n\x15\x66unctional_dependency\x18\x01 \x01(\x0b\x32).relationalai.lqp.v1.FunctionalDependencyH\x00R\x14\x66unctionalDependencyB\x11\n\x0f\x63onstraint_type\"\xae\x01\n\x14\x46unctionalDependency\x12\x36\n\x05guard\x18\x01 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x05guard\x12,\n\x04keys\x18\x02 \x03(\x0b\x32\x18.relationalai.lqp.v1.VarR\x04keys\x12\x30\n\x06values\x18\x03 \x03(\x0b\x32\x18.relationalai.lqp.v1.VarR\x06values\"u\n\tAlgorithm\x12\x37\n\x06global\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x06global\x12/\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ScriptR\x04\x62ody\"H\n\x06Script\x12>\n\nconstructs\x18\x01 \x03(\x0b\x32\x1e.relationalai.lqp.v1.ConstructR\nconstructs\"\x94\x01\n\tConstruct\x12/\n\x04loop\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.LoopH\x00R\x04loop\x12\x44\n\x0binstruction\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.InstructionH\x00R\x0binstructionB\x10\n\x0e\x63onstruct_type\"m\n\x04Loop\x12\x34\n\x04init\x18\x01 \x03(\x0b\x32 .relationalai.lqp.v1.InstructionR\x04init\x12/\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ScriptR\x04\x62ody\"\xc2\x02\n\x0bInstruction\x12\x35\n\x06\x61ssign\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.AssignH\x00R\x06\x61ssign\x12\x35\n\x06upsert\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.UpsertH\x00R\x06upsert\x12\x32\n\x05\x62reak\x18\x03 \x01(\x0b\x32\x1a.relationalai.lqp.v1.BreakH\x00R\x05\x62reak\x12?\n\nmonoid_def\x18\x05 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MonoidDefH\x00R\tmonoidDef\x12<\n\tmonus_def\x18\x06 \x01(\x0b\x32\x1d.relationalai.lqp.v1.MonusDefH\x00R\x08monusDefB\x0c\n\ninstr_typeJ\x04\x08\x04\x10\x05\"\xa9\x01\n\x06\x41ssign\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xca\x01\n\x06Upsert\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x04 \x01(\x03R\nvalueArity\"\xa8\x01\n\x05\x42reak\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\x82\x02\n\tMonoidDef\x12\x33\n\x06monoid\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.MonoidR\x06monoid\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x04 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x05 \x01(\x03R\nvalueArity\"\x81\x02\n\x08MonusDef\x12\x33\n\x06monoid\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.MonoidR\x06monoid\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x04 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x05 \x01(\x03R\nvalueArity\"\x92\x02\n\x06Monoid\x12<\n\tor_monoid\x18\x01 \x01(\x0b\x32\x1d.relationalai.lqp.v1.OrMonoidH\x00R\x08orMonoid\x12?\n\nmin_monoid\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MinMonoidH\x00R\tminMonoid\x12?\n\nmax_monoid\x18\x03 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MaxMonoidH\x00R\tmaxMonoid\x12?\n\nsum_monoid\x18\x04 \x01(\x0b\x32\x1e.relationalai.lqp.v1.SumMonoidH\x00R\tsumMonoidB\x07\n\x05value\"\n\n\x08OrMonoid\":\n\tMinMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\":\n\tMaxMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\":\n\tSumMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"d\n\x07\x42inding\x12*\n\x03var\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.VarR\x03var\x12-\n\x04type\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"s\n\x0b\x41\x62straction\x12\x30\n\x04vars\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.BindingR\x04vars\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x05value\"\x83\x05\n\x07\x46ormula\x12\x35\n\x06\x65xists\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ExistsH\x00R\x06\x65xists\x12\x35\n\x06reduce\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ReduceH\x00R\x06reduce\x12\x44\n\x0b\x63onjunction\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.ConjunctionH\x00R\x0b\x63onjunction\x12\x44\n\x0b\x64isjunction\x18\x04 \x01(\x0b\x32 .relationalai.lqp.v1.DisjunctionH\x00R\x0b\x64isjunction\x12,\n\x03not\x18\x05 \x01(\x0b\x32\x18.relationalai.lqp.v1.NotH\x00R\x03not\x12,\n\x03\x66\x66i\x18\x06 \x01(\x0b\x32\x18.relationalai.lqp.v1.FFIH\x00R\x03\x66\x66i\x12/\n\x04\x61tom\x18\x07 \x01(\x0b\x32\x19.relationalai.lqp.v1.AtomH\x00R\x04\x61tom\x12\x35\n\x06pragma\x18\x08 \x01(\x0b\x32\x1b.relationalai.lqp.v1.PragmaH\x00R\x06pragma\x12>\n\tprimitive\x18\t \x01(\x0b\x32\x1e.relationalai.lqp.v1.PrimitiveH\x00R\tprimitive\x12\x39\n\x08rel_atom\x18\n \x01(\x0b\x32\x1c.relationalai.lqp.v1.RelAtomH\x00R\x07relAtom\x12/\n\x04\x63\x61st\x18\x0b \x01(\x0b\x32\x19.relationalai.lqp.v1.CastH\x00R\x04\x63\x61stB\x0e\n\x0c\x66ormula_type\">\n\x06\x45xists\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\"\xa1\x01\n\x06Reduce\x12\x30\n\x02op\x18\x01 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x02op\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12/\n\x05terms\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"?\n\x0b\x43onjunction\x12\x30\n\x04\x61rgs\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x04\x61rgs\"?\n\x0b\x44isjunction\x12\x30\n\x04\x61rgs\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x04\x61rgs\"5\n\x03Not\x12.\n\x03\x61rg\x18\x01 \x01(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x03\x61rg\"\x80\x01\n\x03\x46\x46I\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x34\n\x04\x61rgs\x18\x02 \x03(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x61rgs\x12/\n\x05terms\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"l\n\x04\x41tom\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12/\n\x05terms\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"M\n\x06Pragma\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12/\n\x05terms\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"S\n\tPrimitive\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x32\n\x05terms\x18\x02 \x03(\x0b\x32\x1c.relationalai.lqp.v1.RelTermR\x05terms\"Q\n\x07RelAtom\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x32\n\x05terms\x18\x02 \x03(\x0b\x32\x1c.relationalai.lqp.v1.RelTermR\x05terms\"j\n\x04\x43\x61st\x12/\n\x05input\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05input\x12\x31\n\x06result\x18\x03 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermR\x06result\"\x96\x01\n\x07RelTerm\x12I\n\x11specialized_value\x18\x01 \x01(\x0b\x32\x1a.relationalai.lqp.v1.ValueH\x00R\x10specializedValue\x12/\n\x04term\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermH\x00R\x04termB\x0f\n\rrel_term_type\"{\n\x04Term\x12,\n\x03var\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.VarH\x00R\x03var\x12\x38\n\x08\x63onstant\x18\x02 \x01(\x0b\x32\x1a.relationalai.lqp.v1.ValueH\x00R\x08\x63onstantB\x0b\n\tterm_type\"\x19\n\x03Var\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"O\n\tAttribute\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12.\n\x04\x61rgs\x18\x02 \x03(\x0b\x32\x1a.relationalai.lqp.v1.ValueR\x04\x61rgs\"\xcc\x01\n\x04\x44\x61ta\x12,\n\x03\x65\x64\x62\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.EDBH\x00R\x03\x65\x64\x62\x12N\n\x0f\x62\x65tree_relation\x18\x02 \x01(\x0b\x32#.relationalai.lqp.v1.BeTreeRelationH\x00R\x0e\x62\x65treeRelation\x12\x39\n\x08\x63sv_data\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.CSVDataH\x00R\x07\x63svDataB\x0b\n\tdata_type\"\x88\x01\n\x03\x45\x44\x42\x12<\n\ttarget_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08targetId\x12\x12\n\x04path\x18\x02 \x03(\tR\x04path\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05types\"\x8b\x01\n\x0e\x42\x65TreeRelation\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x44\n\rrelation_info\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.BeTreeInfoR\x0crelationInfo\"\x9f\x02\n\nBeTreeInfo\x12\x36\n\tkey_types\x18\x01 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x08keyTypes\x12:\n\x0bvalue_types\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\nvalueTypes\x12H\n\x0estorage_config\x18\x04 \x01(\x0b\x32!.relationalai.lqp.v1.BeTreeConfigR\rstorageConfig\x12M\n\x10relation_locator\x18\x05 \x01(\x0b\x32\".relationalai.lqp.v1.BeTreeLocatorR\x0frelationLocatorJ\x04\x08\x03\x10\x04\"\x81\x01\n\x0c\x42\x65TreeConfig\x12\x18\n\x07\x65psilon\x18\x01 \x01(\x01R\x07\x65psilon\x12\x1d\n\nmax_pivots\x18\x02 \x01(\x03R\tmaxPivots\x12\x1d\n\nmax_deltas\x18\x03 \x01(\x03R\tmaxDeltas\x12\x19\n\x08max_leaf\x18\x04 \x01(\x03R\x07maxLeaf\"\xca\x01\n\rBeTreeLocator\x12\x44\n\x0broot_pageid\x18\x01 \x01(\x0b\x32!.relationalai.lqp.v1.UInt128ValueH\x00R\nrootPageid\x12!\n\x0binline_data\x18\x04 \x01(\x0cH\x00R\ninlineData\x12#\n\relement_count\x18\x02 \x01(\x03R\x0c\x65lementCount\x12\x1f\n\x0btree_height\x18\x03 \x01(\x03R\ntreeHeightB\n\n\x08location\"\xca\x01\n\x07\x43SVData\x12\x39\n\x07locator\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.CSVLocatorR\x07locator\x12\x36\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.CSVConfigR\x06\x63onfig\x12\x38\n\x07\x63olumns\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.GNFColumnR\x07\x63olumns\x12\x12\n\x04\x61sof\x18\x04 \x01(\tR\x04\x61sof\"C\n\nCSVLocator\x12\x14\n\x05paths\x18\x01 \x03(\tR\x05paths\x12\x1f\n\x0binline_data\x18\x02 \x01(\x0cR\ninlineData\"\x8f\x03\n\tCSVConfig\x12\x1d\n\nheader_row\x18\x01 \x01(\x05R\theaderRow\x12\x12\n\x04skip\x18\x02 \x01(\x03R\x04skip\x12\x19\n\x08new_line\x18\x03 \x01(\tR\x07newLine\x12\x1c\n\tdelimiter\x18\x04 \x01(\tR\tdelimiter\x12\x1c\n\tquotechar\x18\x05 \x01(\tR\tquotechar\x12\x1e\n\nescapechar\x18\x06 \x01(\tR\nescapechar\x12\x18\n\x07\x63omment\x18\x07 \x01(\tR\x07\x63omment\x12\'\n\x0fmissing_strings\x18\x08 \x03(\tR\x0emissingStrings\x12+\n\x11\x64\x65\x63imal_separator\x18\t \x01(\tR\x10\x64\x65\x63imalSeparator\x12\x1a\n\x08\x65ncoding\x18\n \x01(\tR\x08\x65ncoding\x12 \n\x0b\x63ompression\x18\x0b \x01(\tR\x0b\x63ompression\x12*\n\x11partition_size_mb\x18\x0c \x01(\x03R\x0fpartitionSizeMb\"\xae\x01\n\tGNFColumn\x12\x1f\n\x0b\x63olumn_path\x18\x01 \x03(\tR\ncolumnPath\x12\x41\n\ttarget_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdH\x00R\x08targetId\x88\x01\x01\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05typesB\x0c\n\n_target_id\"<\n\nRelationId\x12\x15\n\x06id_low\x18\x01 \x01(\x06R\x05idLow\x12\x17\n\x07id_high\x18\x02 \x01(\x06R\x06idHigh\"\xd5\x07\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\x62ooleanType\x12?\n\nint32_type\x18\x0c \x01(\x0b\x32\x1e.relationalai.lqp.v1.Int32TypeH\x00R\tint32Type\x12\x45\n\x0c\x66loat32_type\x18\r \x01(\x0b\x32 .relationalai.lqp.v1.Float32TypeH\x00R\x0b\x66loat32Type\x12\x42\n\x0buint32_type\x18\x0e \x01(\x0b\x32\x1f.relationalai.lqp.v1.UInt32TypeH\x00R\nuint32TypeB\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\"\x0b\n\tInt32Type\"\r\n\x0b\x46loat32Type\"\x0c\n\nUInt32Type\"\xc0\x05\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\x62ooleanValue\x12!\n\x0bint32_value\x18\x0b \x01(\x05H\x00R\nint32Value\x12%\n\rfloat32_value\x18\x0c \x01(\x02H\x00R\x0c\x66loat32Value\x12#\n\x0cuint32_value\x18\r \x01(\rH\x00R\x0buint32ValueB\x07\n\x05value\"4\n\x0cUInt128Value\x12\x10\n\x03low\x18\x01 \x01(\x06R\x03low\x12\x12\n\x04high\x18\x02 \x01(\x06R\x04high\"3\n\x0bInt128Value\x12\x10\n\x03low\x18\x01 \x01(\x06R\x03low\x12\x12\n\x04high\x18\x02 \x01(\x06R\x04high\"\x0e\n\x0cMissingValue\"G\n\tDateValue\x12\x12\n\x04year\x18\x01 \x01(\x05R\x04year\x12\x14\n\x05month\x18\x02 \x01(\x05R\x05month\x12\x10\n\x03\x64\x61y\x18\x03 \x01(\x05R\x03\x64\x61y\"\xb1\x01\n\rDateTimeValue\x12\x12\n\x04year\x18\x01 \x01(\x05R\x04year\x12\x14\n\x05month\x18\x02 \x01(\x05R\x05month\x12\x10\n\x03\x64\x61y\x18\x03 \x01(\x05R\x03\x64\x61y\x12\x12\n\x04hour\x18\x04 \x01(\x05R\x04hour\x12\x16\n\x06minute\x18\x05 \x01(\x05R\x06minute\x12\x16\n\x06second\x18\x06 \x01(\x05R\x06second\x12 \n\x0bmicrosecond\x18\x07 \x01(\x05R\x0bmicrosecond\"z\n\x0c\x44\x65\x63imalValue\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05scale\x18\x02 \x01(\x05R\x05scale\x12\x36\n\x05value\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.Int128ValueR\x05valueBCZAgithub.com/RelationalAI/logical-query-protocol/sdks/go/src/lqp/v1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1frelationalai/lqp/v1/logic.proto\x12\x13relationalai.lqp.v1\"\x83\x02\n\x0b\x44\x65\x63laration\x12,\n\x03\x64\x65\x66\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.DefH\x00R\x03\x64\x65\x66\x12>\n\talgorithm\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.AlgorithmH\x00R\talgorithm\x12\x41\n\nconstraint\x18\x03 \x01(\x0b\x32\x1f.relationalai.lqp.v1.ConstraintH\x00R\nconstraint\x12/\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32\x19.relationalai.lqp.v1.DataH\x00R\x04\x64\x61taB\x12\n\x10\x64\x65\x63laration_type\"\xa6\x01\n\x03\x44\x65\x66\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xb6\x01\n\nConstraint\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12`\n\x15\x66unctional_dependency\x18\x01 \x01(\x0b\x32).relationalai.lqp.v1.FunctionalDependencyH\x00R\x14\x66unctionalDependencyB\x11\n\x0f\x63onstraint_type\"\xae\x01\n\x14\x46unctionalDependency\x12\x36\n\x05guard\x18\x01 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x05guard\x12,\n\x04keys\x18\x02 \x03(\x0b\x32\x18.relationalai.lqp.v1.VarR\x04keys\x12\x30\n\x06values\x18\x03 \x03(\x0b\x32\x18.relationalai.lqp.v1.VarR\x06values\"u\n\tAlgorithm\x12\x37\n\x06global\x18\x01 \x03(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x06global\x12/\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ScriptR\x04\x62ody\"H\n\x06Script\x12>\n\nconstructs\x18\x01 \x03(\x0b\x32\x1e.relationalai.lqp.v1.ConstructR\nconstructs\"\x94\x01\n\tConstruct\x12/\n\x04loop\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.LoopH\x00R\x04loop\x12\x44\n\x0binstruction\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.InstructionH\x00R\x0binstructionB\x10\n\x0e\x63onstruct_type\"m\n\x04Loop\x12\x34\n\x04init\x18\x01 \x03(\x0b\x32 .relationalai.lqp.v1.InstructionR\x04init\x12/\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ScriptR\x04\x62ody\"\xc2\x02\n\x0bInstruction\x12\x35\n\x06\x61ssign\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.AssignH\x00R\x06\x61ssign\x12\x35\n\x06upsert\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.UpsertH\x00R\x06upsert\x12\x32\n\x05\x62reak\x18\x03 \x01(\x0b\x32\x1a.relationalai.lqp.v1.BreakH\x00R\x05\x62reak\x12?\n\nmonoid_def\x18\x05 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MonoidDefH\x00R\tmonoidDef\x12<\n\tmonus_def\x18\x06 \x01(\x0b\x32\x1d.relationalai.lqp.v1.MonusDefH\x00R\x08monusDefB\x0c\n\ninstr_typeJ\x04\x08\x04\x10\x05\"\xa9\x01\n\x06\x41ssign\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\xca\x01\n\x06Upsert\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x04 \x01(\x03R\nvalueArity\"\xa8\x01\n\x05\x42reak\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\"\x82\x02\n\tMonoidDef\x12\x33\n\x06monoid\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.MonoidR\x06monoid\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x04 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x05 \x01(\x03R\nvalueArity\"\x81\x02\n\x08MonusDef\x12\x33\n\x06monoid\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.MonoidR\x06monoid\x12\x33\n\x04name\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12\x34\n\x05\x61ttrs\x18\x04 \x03(\x0b\x32\x1e.relationalai.lqp.v1.AttributeR\x05\x61ttrs\x12\x1f\n\x0bvalue_arity\x18\x05 \x01(\x03R\nvalueArity\"\x92\x02\n\x06Monoid\x12<\n\tor_monoid\x18\x01 \x01(\x0b\x32\x1d.relationalai.lqp.v1.OrMonoidH\x00R\x08orMonoid\x12?\n\nmin_monoid\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MinMonoidH\x00R\tminMonoid\x12?\n\nmax_monoid\x18\x03 \x01(\x0b\x32\x1e.relationalai.lqp.v1.MaxMonoidH\x00R\tmaxMonoid\x12?\n\nsum_monoid\x18\x04 \x01(\x0b\x32\x1e.relationalai.lqp.v1.SumMonoidH\x00R\tsumMonoidB\x07\n\x05value\"\n\n\x08OrMonoid\":\n\tMinMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\":\n\tMaxMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\":\n\tSumMonoid\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"d\n\x07\x42inding\x12*\n\x03var\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.VarR\x03var\x12-\n\x04type\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x04type\"s\n\x0b\x41\x62straction\x12\x30\n\x04vars\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.BindingR\x04vars\x12\x32\n\x05value\x18\x02 \x01(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x05value\"\x83\x05\n\x07\x46ormula\x12\x35\n\x06\x65xists\x18\x01 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ExistsH\x00R\x06\x65xists\x12\x35\n\x06reduce\x18\x02 \x01(\x0b\x32\x1b.relationalai.lqp.v1.ReduceH\x00R\x06reduce\x12\x44\n\x0b\x63onjunction\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.ConjunctionH\x00R\x0b\x63onjunction\x12\x44\n\x0b\x64isjunction\x18\x04 \x01(\x0b\x32 .relationalai.lqp.v1.DisjunctionH\x00R\x0b\x64isjunction\x12,\n\x03not\x18\x05 \x01(\x0b\x32\x18.relationalai.lqp.v1.NotH\x00R\x03not\x12,\n\x03\x66\x66i\x18\x06 \x01(\x0b\x32\x18.relationalai.lqp.v1.FFIH\x00R\x03\x66\x66i\x12/\n\x04\x61tom\x18\x07 \x01(\x0b\x32\x19.relationalai.lqp.v1.AtomH\x00R\x04\x61tom\x12\x35\n\x06pragma\x18\x08 \x01(\x0b\x32\x1b.relationalai.lqp.v1.PragmaH\x00R\x06pragma\x12>\n\tprimitive\x18\t \x01(\x0b\x32\x1e.relationalai.lqp.v1.PrimitiveH\x00R\tprimitive\x12\x39\n\x08rel_atom\x18\n \x01(\x0b\x32\x1c.relationalai.lqp.v1.RelAtomH\x00R\x07relAtom\x12/\n\x04\x63\x61st\x18\x0b \x01(\x0b\x32\x19.relationalai.lqp.v1.CastH\x00R\x04\x63\x61stB\x0e\n\x0c\x66ormula_type\">\n\x06\x45xists\x12\x34\n\x04\x62ody\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\"\xa1\x01\n\x06Reduce\x12\x30\n\x02op\x18\x01 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x02op\x12\x34\n\x04\x62ody\x18\x02 \x01(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x62ody\x12/\n\x05terms\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"?\n\x0b\x43onjunction\x12\x30\n\x04\x61rgs\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x04\x61rgs\"?\n\x0b\x44isjunction\x12\x30\n\x04\x61rgs\x18\x01 \x03(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x04\x61rgs\"5\n\x03Not\x12.\n\x03\x61rg\x18\x01 \x01(\x0b\x32\x1c.relationalai.lqp.v1.FormulaR\x03\x61rg\"\x80\x01\n\x03\x46\x46I\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x34\n\x04\x61rgs\x18\x02 \x03(\x0b\x32 .relationalai.lqp.v1.AbstractionR\x04\x61rgs\x12/\n\x05terms\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"l\n\x04\x41tom\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12/\n\x05terms\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"M\n\x06Pragma\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12/\n\x05terms\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05terms\"S\n\tPrimitive\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x32\n\x05terms\x18\x02 \x03(\x0b\x32\x1c.relationalai.lqp.v1.RelTermR\x05terms\"Q\n\x07RelAtom\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x32\n\x05terms\x18\x02 \x03(\x0b\x32\x1c.relationalai.lqp.v1.RelTermR\x05terms\"j\n\x04\x43\x61st\x12/\n\x05input\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermR\x05input\x12\x31\n\x06result\x18\x03 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermR\x06result\"\x96\x01\n\x07RelTerm\x12I\n\x11specialized_value\x18\x01 \x01(\x0b\x32\x1a.relationalai.lqp.v1.ValueH\x00R\x10specializedValue\x12/\n\x04term\x18\x02 \x01(\x0b\x32\x19.relationalai.lqp.v1.TermH\x00R\x04termB\x0f\n\rrel_term_type\"{\n\x04Term\x12,\n\x03var\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.VarH\x00R\x03var\x12\x38\n\x08\x63onstant\x18\x02 \x01(\x0b\x32\x1a.relationalai.lqp.v1.ValueH\x00R\x08\x63onstantB\x0b\n\tterm_type\"\x19\n\x03Var\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"O\n\tAttribute\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12.\n\x04\x61rgs\x18\x02 \x03(\x0b\x32\x1a.relationalai.lqp.v1.ValueR\x04\x61rgs\"\x93\x02\n\x04\x44\x61ta\x12,\n\x03\x65\x64\x62\x18\x01 \x01(\x0b\x32\x18.relationalai.lqp.v1.EDBH\x00R\x03\x65\x64\x62\x12N\n\x0f\x62\x65tree_relation\x18\x02 \x01(\x0b\x32#.relationalai.lqp.v1.BeTreeRelationH\x00R\x0e\x62\x65treeRelation\x12\x39\n\x08\x63sv_data\x18\x03 \x01(\x0b\x32\x1c.relationalai.lqp.v1.CSVDataH\x00R\x07\x63svData\x12\x45\n\x0ciceberg_data\x18\x04 \x01(\x0b\x32 .relationalai.lqp.v1.IcebergDataH\x00R\x0bicebergDataB\x0b\n\tdata_type\"\x88\x01\n\x03\x45\x44\x42\x12<\n\ttarget_id\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x08targetId\x12\x12\n\x04path\x18\x02 \x03(\tR\x04path\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05types\"\x8b\x01\n\x0e\x42\x65TreeRelation\x12\x33\n\x04name\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdR\x04name\x12\x44\n\rrelation_info\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.BeTreeInfoR\x0crelationInfo\"\x9f\x02\n\nBeTreeInfo\x12\x36\n\tkey_types\x18\x01 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x08keyTypes\x12:\n\x0bvalue_types\x18\x02 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\nvalueTypes\x12H\n\x0estorage_config\x18\x04 \x01(\x0b\x32!.relationalai.lqp.v1.BeTreeConfigR\rstorageConfig\x12M\n\x10relation_locator\x18\x05 \x01(\x0b\x32\".relationalai.lqp.v1.BeTreeLocatorR\x0frelationLocatorJ\x04\x08\x03\x10\x04\"\x81\x01\n\x0c\x42\x65TreeConfig\x12\x18\n\x07\x65psilon\x18\x01 \x01(\x01R\x07\x65psilon\x12\x1d\n\nmax_pivots\x18\x02 \x01(\x03R\tmaxPivots\x12\x1d\n\nmax_deltas\x18\x03 \x01(\x03R\tmaxDeltas\x12\x19\n\x08max_leaf\x18\x04 \x01(\x03R\x07maxLeaf\"\xca\x01\n\rBeTreeLocator\x12\x44\n\x0broot_pageid\x18\x01 \x01(\x0b\x32!.relationalai.lqp.v1.UInt128ValueH\x00R\nrootPageid\x12!\n\x0binline_data\x18\x04 \x01(\x0cH\x00R\ninlineData\x12#\n\relement_count\x18\x02 \x01(\x03R\x0c\x65lementCount\x12\x1f\n\x0btree_height\x18\x03 \x01(\x03R\ntreeHeightB\n\n\x08location\"\xca\x01\n\x07\x43SVData\x12\x39\n\x07locator\x18\x01 \x01(\x0b\x32\x1f.relationalai.lqp.v1.CSVLocatorR\x07locator\x12\x36\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x1e.relationalai.lqp.v1.CSVConfigR\x06\x63onfig\x12\x38\n\x07\x63olumns\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.GNFColumnR\x07\x63olumns\x12\x12\n\x04\x61sof\x18\x04 \x01(\tR\x04\x61sof\"C\n\nCSVLocator\x12\x14\n\x05paths\x18\x01 \x03(\tR\x05paths\x12\x1f\n\x0binline_data\x18\x02 \x01(\x0cR\ninlineData\"\x8f\x03\n\tCSVConfig\x12\x1d\n\nheader_row\x18\x01 \x01(\x05R\theaderRow\x12\x12\n\x04skip\x18\x02 \x01(\x03R\x04skip\x12\x19\n\x08new_line\x18\x03 \x01(\tR\x07newLine\x12\x1c\n\tdelimiter\x18\x04 \x01(\tR\tdelimiter\x12\x1c\n\tquotechar\x18\x05 \x01(\tR\tquotechar\x12\x1e\n\nescapechar\x18\x06 \x01(\tR\nescapechar\x12\x18\n\x07\x63omment\x18\x07 \x01(\tR\x07\x63omment\x12\'\n\x0fmissing_strings\x18\x08 \x03(\tR\x0emissingStrings\x12+\n\x11\x64\x65\x63imal_separator\x18\t \x01(\tR\x10\x64\x65\x63imalSeparator\x12\x1a\n\x08\x65ncoding\x18\n \x01(\tR\x08\x65ncoding\x12 \n\x0b\x63ompression\x18\x0b \x01(\tR\x0b\x63ompression\x12*\n\x11partition_size_mb\x18\x0c \x01(\x03R\x0fpartitionSizeMb\"\xf8\x01\n\x0bIcebergData\x12=\n\x07locator\x18\x01 \x01(\x0b\x32#.relationalai.lqp.v1.IcebergLocatorR\x07locator\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\".relationalai.lqp.v1.IcebergConfigR\x06\x63onfig\x12\x38\n\x07\x63olumns\x18\x03 \x03(\x0b\x32\x1e.relationalai.lqp.v1.GNFColumnR\x07\x63olumns\x12$\n\x0bto_snapshot\x18\x04 \x01(\tH\x00R\ntoSnapshot\x88\x01\x01\x42\x0e\n\x0c_to_snapshot\"k\n\x0eIcebergLocator\x12\x1d\n\ntable_name\x18\x01 \x01(\tR\ttableName\x12\x1c\n\tnamespace\x18\x02 \x03(\tR\tnamespace\x12\x1c\n\twarehouse\x18\x03 \x01(\tR\twarehouse\"\xff\x02\n\rIcebergConfig\x12\x1f\n\x0b\x63\x61talog_uri\x18\x01 \x01(\tR\ncatalogUri\x12\x19\n\x05scope\x18\x02 \x01(\tH\x00R\x05scope\x88\x01\x01\x12R\n\nproperties\x18\x03 \x03(\x0b\x32\x32.relationalai.lqp.v1.IcebergConfig.PropertiesEntryR\nproperties\x12U\n\x0b\x63redentials\x18\x04 \x03(\x0b\x32\x33.relationalai.lqp.v1.IcebergConfig.CredentialsEntryR\x0b\x63redentials\x1a=\n\x0fPropertiesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x43redentialsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x08\n\x06_scope\"\xae\x01\n\tGNFColumn\x12\x1f\n\x0b\x63olumn_path\x18\x01 \x03(\tR\ncolumnPath\x12\x41\n\ttarget_id\x18\x02 \x01(\x0b\x32\x1f.relationalai.lqp.v1.RelationIdH\x00R\x08targetId\x88\x01\x01\x12/\n\x05types\x18\x03 \x03(\x0b\x32\x19.relationalai.lqp.v1.TypeR\x05typesB\x0c\n\n_target_id\"<\n\nRelationId\x12\x15\n\x06id_low\x18\x01 \x01(\x06R\x05idLow\x12\x17\n\x07id_high\x18\x02 \x01(\x06R\x06idHigh\"\xd5\x07\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\x62ooleanType\x12?\n\nint32_type\x18\x0c \x01(\x0b\x32\x1e.relationalai.lqp.v1.Int32TypeH\x00R\tint32Type\x12\x45\n\x0c\x66loat32_type\x18\r \x01(\x0b\x32 .relationalai.lqp.v1.Float32TypeH\x00R\x0b\x66loat32Type\x12\x42\n\x0buint32_type\x18\x0e \x01(\x0b\x32\x1f.relationalai.lqp.v1.UInt32TypeH\x00R\nuint32TypeB\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\"\x0b\n\tInt32Type\"\r\n\x0b\x46loat32Type\"\x0c\n\nUInt32Type\"\xc0\x05\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\x62ooleanValue\x12!\n\x0bint32_value\x18\x0b \x01(\x05H\x00R\nint32Value\x12%\n\rfloat32_value\x18\x0c \x01(\x02H\x00R\x0c\x66loat32Value\x12#\n\x0cuint32_value\x18\r \x01(\rH\x00R\x0buint32ValueB\x07\n\x05value\"4\n\x0cUInt128Value\x12\x10\n\x03low\x18\x01 \x01(\x06R\x03low\x12\x12\n\x04high\x18\x02 \x01(\x06R\x04high\"3\n\x0bInt128Value\x12\x10\n\x03low\x18\x01 \x01(\x06R\x03low\x12\x12\n\x04high\x18\x02 \x01(\x06R\x04high\"\x0e\n\x0cMissingValue\"G\n\tDateValue\x12\x12\n\x04year\x18\x01 \x01(\x05R\x04year\x12\x14\n\x05month\x18\x02 \x01(\x05R\x05month\x12\x10\n\x03\x64\x61y\x18\x03 \x01(\x05R\x03\x64\x61y\"\xb1\x01\n\rDateTimeValue\x12\x12\n\x04year\x18\x01 \x01(\x05R\x04year\x12\x14\n\x05month\x18\x02 \x01(\x05R\x05month\x12\x10\n\x03\x64\x61y\x18\x03 \x01(\x05R\x03\x64\x61y\x12\x12\n\x04hour\x18\x04 \x01(\x05R\x04hour\x12\x16\n\x06minute\x18\x05 \x01(\x05R\x06minute\x12\x16\n\x06second\x18\x06 \x01(\x05R\x06second\x12 \n\x0bmicrosecond\x18\x07 \x01(\x05R\x0bmicrosecond\"z\n\x0c\x44\x65\x63imalValue\x12\x1c\n\tprecision\x18\x01 \x01(\x05R\tprecision\x12\x14\n\x05scale\x18\x02 \x01(\x05R\x05scale\x12\x36\n\x05value\x18\x03 \x01(\x0b\x32 .relationalai.lqp.v1.Int128ValueR\x05valueBCZAgithub.com/RelationalAI/logical-query-protocol/sdks/go/src/lqp/v1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -22,6 +22,10 @@ if _descriptor._USE_C_DESCRIPTORS == False: _globals['DESCRIPTOR']._options = None _globals['DESCRIPTOR']._serialized_options = b'ZAgithub.com/RelationalAI/logical-query-protocol/sdks/go/src/lqp/v1' + _globals['_ICEBERGCONFIG_PROPERTIESENTRY']._options = None + _globals['_ICEBERGCONFIG_PROPERTIESENTRY']._serialized_options = b'8\001' + _globals['_ICEBERGCONFIG_CREDENTIALSENTRY']._options = None + _globals['_ICEBERGCONFIG_CREDENTIALSENTRY']._serialized_options = b'8\001' _globals['_DECLARATION']._serialized_start=57 _globals['_DECLARATION']._serialized_end=316 _globals['_DEF']._serialized_start=319 @@ -97,69 +101,79 @@ _globals['_ATTRIBUTE']._serialized_start=5346 _globals['_ATTRIBUTE']._serialized_end=5425 _globals['_DATA']._serialized_start=5428 - _globals['_DATA']._serialized_end=5632 - _globals['_EDB']._serialized_start=5635 - _globals['_EDB']._serialized_end=5771 - _globals['_BETREERELATION']._serialized_start=5774 - _globals['_BETREERELATION']._serialized_end=5913 - _globals['_BETREEINFO']._serialized_start=5916 - _globals['_BETREEINFO']._serialized_end=6203 - _globals['_BETREECONFIG']._serialized_start=6206 - _globals['_BETREECONFIG']._serialized_end=6335 - _globals['_BETREELOCATOR']._serialized_start=6338 - _globals['_BETREELOCATOR']._serialized_end=6540 - _globals['_CSVDATA']._serialized_start=6543 - _globals['_CSVDATA']._serialized_end=6745 - _globals['_CSVLOCATOR']._serialized_start=6747 - _globals['_CSVLOCATOR']._serialized_end=6814 - _globals['_CSVCONFIG']._serialized_start=6817 - _globals['_CSVCONFIG']._serialized_end=7216 - _globals['_GNFCOLUMN']._serialized_start=7219 - _globals['_GNFCOLUMN']._serialized_end=7393 - _globals['_RELATIONID']._serialized_start=7395 - _globals['_RELATIONID']._serialized_end=7455 - _globals['_TYPE']._serialized_start=7458 - _globals['_TYPE']._serialized_end=8439 - _globals['_UNSPECIFIEDTYPE']._serialized_start=8441 - _globals['_UNSPECIFIEDTYPE']._serialized_end=8458 - _globals['_STRINGTYPE']._serialized_start=8460 - _globals['_STRINGTYPE']._serialized_end=8472 - _globals['_INTTYPE']._serialized_start=8474 - _globals['_INTTYPE']._serialized_end=8483 - _globals['_FLOATTYPE']._serialized_start=8485 - _globals['_FLOATTYPE']._serialized_end=8496 - _globals['_UINT128TYPE']._serialized_start=8498 - _globals['_UINT128TYPE']._serialized_end=8511 - _globals['_INT128TYPE']._serialized_start=8513 - _globals['_INT128TYPE']._serialized_end=8525 - _globals['_DATETYPE']._serialized_start=8527 - _globals['_DATETYPE']._serialized_end=8537 - _globals['_DATETIMETYPE']._serialized_start=8539 - _globals['_DATETIMETYPE']._serialized_end=8553 - _globals['_MISSINGTYPE']._serialized_start=8555 - _globals['_MISSINGTYPE']._serialized_end=8568 - _globals['_DECIMALTYPE']._serialized_start=8570 - _globals['_DECIMALTYPE']._serialized_end=8635 - _globals['_BOOLEANTYPE']._serialized_start=8637 - _globals['_BOOLEANTYPE']._serialized_end=8650 - _globals['_INT32TYPE']._serialized_start=8652 - _globals['_INT32TYPE']._serialized_end=8663 - _globals['_FLOAT32TYPE']._serialized_start=8665 - _globals['_FLOAT32TYPE']._serialized_end=8678 - _globals['_UINT32TYPE']._serialized_start=8680 - _globals['_UINT32TYPE']._serialized_end=8692 - _globals['_VALUE']._serialized_start=8695 - _globals['_VALUE']._serialized_end=9399 - _globals['_UINT128VALUE']._serialized_start=9401 - _globals['_UINT128VALUE']._serialized_end=9453 - _globals['_INT128VALUE']._serialized_start=9455 - _globals['_INT128VALUE']._serialized_end=9506 - _globals['_MISSINGVALUE']._serialized_start=9508 - _globals['_MISSINGVALUE']._serialized_end=9522 - _globals['_DATEVALUE']._serialized_start=9524 - _globals['_DATEVALUE']._serialized_end=9595 - _globals['_DATETIMEVALUE']._serialized_start=9598 - _globals['_DATETIMEVALUE']._serialized_end=9775 - _globals['_DECIMALVALUE']._serialized_start=9777 - _globals['_DECIMALVALUE']._serialized_end=9899 + _globals['_DATA']._serialized_end=5703 + _globals['_EDB']._serialized_start=5706 + _globals['_EDB']._serialized_end=5842 + _globals['_BETREERELATION']._serialized_start=5845 + _globals['_BETREERELATION']._serialized_end=5984 + _globals['_BETREEINFO']._serialized_start=5987 + _globals['_BETREEINFO']._serialized_end=6274 + _globals['_BETREECONFIG']._serialized_start=6277 + _globals['_BETREECONFIG']._serialized_end=6406 + _globals['_BETREELOCATOR']._serialized_start=6409 + _globals['_BETREELOCATOR']._serialized_end=6611 + _globals['_CSVDATA']._serialized_start=6614 + _globals['_CSVDATA']._serialized_end=6816 + _globals['_CSVLOCATOR']._serialized_start=6818 + _globals['_CSVLOCATOR']._serialized_end=6885 + _globals['_CSVCONFIG']._serialized_start=6888 + _globals['_CSVCONFIG']._serialized_end=7287 + _globals['_ICEBERGDATA']._serialized_start=7290 + _globals['_ICEBERGDATA']._serialized_end=7538 + _globals['_ICEBERGLOCATOR']._serialized_start=7540 + _globals['_ICEBERGLOCATOR']._serialized_end=7647 + _globals['_ICEBERGCONFIG']._serialized_start=7650 + _globals['_ICEBERGCONFIG']._serialized_end=8033 + _globals['_ICEBERGCONFIG_PROPERTIESENTRY']._serialized_start=7898 + _globals['_ICEBERGCONFIG_PROPERTIESENTRY']._serialized_end=7959 + _globals['_ICEBERGCONFIG_CREDENTIALSENTRY']._serialized_start=7961 + _globals['_ICEBERGCONFIG_CREDENTIALSENTRY']._serialized_end=8023 + _globals['_GNFCOLUMN']._serialized_start=8036 + _globals['_GNFCOLUMN']._serialized_end=8210 + _globals['_RELATIONID']._serialized_start=8212 + _globals['_RELATIONID']._serialized_end=8272 + _globals['_TYPE']._serialized_start=8275 + _globals['_TYPE']._serialized_end=9256 + _globals['_UNSPECIFIEDTYPE']._serialized_start=9258 + _globals['_UNSPECIFIEDTYPE']._serialized_end=9275 + _globals['_STRINGTYPE']._serialized_start=9277 + _globals['_STRINGTYPE']._serialized_end=9289 + _globals['_INTTYPE']._serialized_start=9291 + _globals['_INTTYPE']._serialized_end=9300 + _globals['_FLOATTYPE']._serialized_start=9302 + _globals['_FLOATTYPE']._serialized_end=9313 + _globals['_UINT128TYPE']._serialized_start=9315 + _globals['_UINT128TYPE']._serialized_end=9328 + _globals['_INT128TYPE']._serialized_start=9330 + _globals['_INT128TYPE']._serialized_end=9342 + _globals['_DATETYPE']._serialized_start=9344 + _globals['_DATETYPE']._serialized_end=9354 + _globals['_DATETIMETYPE']._serialized_start=9356 + _globals['_DATETIMETYPE']._serialized_end=9370 + _globals['_MISSINGTYPE']._serialized_start=9372 + _globals['_MISSINGTYPE']._serialized_end=9385 + _globals['_DECIMALTYPE']._serialized_start=9387 + _globals['_DECIMALTYPE']._serialized_end=9452 + _globals['_BOOLEANTYPE']._serialized_start=9454 + _globals['_BOOLEANTYPE']._serialized_end=9467 + _globals['_INT32TYPE']._serialized_start=9469 + _globals['_INT32TYPE']._serialized_end=9480 + _globals['_FLOAT32TYPE']._serialized_start=9482 + _globals['_FLOAT32TYPE']._serialized_end=9495 + _globals['_UINT32TYPE']._serialized_start=9497 + _globals['_UINT32TYPE']._serialized_end=9509 + _globals['_VALUE']._serialized_start=9512 + _globals['_VALUE']._serialized_end=10216 + _globals['_UINT128VALUE']._serialized_start=10218 + _globals['_UINT128VALUE']._serialized_end=10270 + _globals['_INT128VALUE']._serialized_start=10272 + _globals['_INT128VALUE']._serialized_end=10323 + _globals['_MISSINGVALUE']._serialized_start=10325 + _globals['_MISSINGVALUE']._serialized_end=10339 + _globals['_DATEVALUE']._serialized_start=10341 + _globals['_DATEVALUE']._serialized_end=10412 + _globals['_DATETIMEVALUE']._serialized_start=10415 + _globals['_DATETIMEVALUE']._serialized_end=10592 + _globals['_DECIMALVALUE']._serialized_start=10594 + _globals['_DECIMALVALUE']._serialized_end=10716 # @@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 fc6e4260..f1d321b9 100644 --- a/sdks/python/src/lqp/proto/v1/logic_pb2.pyi +++ b/sdks/python/src/lqp/proto/v1/logic_pb2.pyi @@ -1,8 +1,7 @@ from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from collections.abc import Iterable as _Iterable, Mapping as _Mapping -from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor @@ -337,14 +336,16 @@ class Attribute(_message.Message): def __init__(self, name: _Optional[str] = ..., args: _Optional[_Iterable[_Union[Value, _Mapping]]] = ...) -> None: ... class Data(_message.Message): - __slots__ = ("edb", "betree_relation", "csv_data") + __slots__ = ("edb", "betree_relation", "csv_data", "iceberg_data") EDB_FIELD_NUMBER: _ClassVar[int] BETREE_RELATION_FIELD_NUMBER: _ClassVar[int] CSV_DATA_FIELD_NUMBER: _ClassVar[int] + ICEBERG_DATA_FIELD_NUMBER: _ClassVar[int] edb: EDB betree_relation: BeTreeRelation csv_data: CSVData - def __init__(self, edb: _Optional[_Union[EDB, _Mapping]] = ..., betree_relation: _Optional[_Union[BeTreeRelation, _Mapping]] = ..., csv_data: _Optional[_Union[CSVData, _Mapping]] = ...) -> None: ... + iceberg_data: IcebergData + def __init__(self, edb: _Optional[_Union[EDB, _Mapping]] = ..., betree_relation: _Optional[_Union[BeTreeRelation, _Mapping]] = ..., csv_data: _Optional[_Union[CSVData, _Mapping]] = ..., iceberg_data: _Optional[_Union[IcebergData, _Mapping]] = ...) -> None: ... class EDB(_message.Message): __slots__ = ("target_id", "path", "types") @@ -448,6 +449,54 @@ class CSVConfig(_message.Message): 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 IcebergData(_message.Message): + __slots__ = ("locator", "config", "columns", "to_snapshot") + LOCATOR_FIELD_NUMBER: _ClassVar[int] + CONFIG_FIELD_NUMBER: _ClassVar[int] + COLUMNS_FIELD_NUMBER: _ClassVar[int] + TO_SNAPSHOT_FIELD_NUMBER: _ClassVar[int] + locator: IcebergLocator + config: IcebergConfig + columns: _containers.RepeatedCompositeFieldContainer[GNFColumn] + to_snapshot: str + def __init__(self, locator: _Optional[_Union[IcebergLocator, _Mapping]] = ..., config: _Optional[_Union[IcebergConfig, _Mapping]] = ..., columns: _Optional[_Iterable[_Union[GNFColumn, _Mapping]]] = ..., to_snapshot: _Optional[str] = ...) -> None: ... + +class IcebergLocator(_message.Message): + __slots__ = ("table_name", "namespace", "warehouse") + TABLE_NAME_FIELD_NUMBER: _ClassVar[int] + NAMESPACE_FIELD_NUMBER: _ClassVar[int] + WAREHOUSE_FIELD_NUMBER: _ClassVar[int] + table_name: str + namespace: _containers.RepeatedScalarFieldContainer[str] + warehouse: str + def __init__(self, table_name: _Optional[str] = ..., namespace: _Optional[_Iterable[str]] = ..., warehouse: _Optional[str] = ...) -> None: ... + +class IcebergConfig(_message.Message): + __slots__ = ("catalog_uri", "scope", "properties", "credentials") + class PropertiesEntry(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + class CredentialsEntry(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: str + def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... + CATALOG_URI_FIELD_NUMBER: _ClassVar[int] + SCOPE_FIELD_NUMBER: _ClassVar[int] + PROPERTIES_FIELD_NUMBER: _ClassVar[int] + CREDENTIALS_FIELD_NUMBER: _ClassVar[int] + catalog_uri: str + scope: str + properties: _containers.ScalarMap[str, str] + credentials: _containers.ScalarMap[str, str] + def __init__(self, catalog_uri: _Optional[str] = ..., scope: _Optional[str] = ..., properties: _Optional[_Mapping[str, str]] = ..., credentials: _Optional[_Mapping[str, str]] = ...) -> None: ... + class GNFColumn(_message.Message): __slots__ = ("column_path", "target_id", "types") COLUMN_PATH_FIELD_NUMBER: _ClassVar[int] @@ -586,7 +635,7 @@ class Value(_message.Message): int32_value: int float32_value: float uint32_value: int - def __init__(self, string_value: _Optional[str] = ..., int_value: _Optional[int] = ..., float_value: _Optional[float] = ..., uint128_value: _Optional[_Union[UInt128Value, _Mapping]] = ..., int128_value: _Optional[_Union[Int128Value, _Mapping]] = ..., missing_value: _Optional[_Union[MissingValue, _Mapping]] = ..., date_value: _Optional[_Union[DateValue, _Mapping]] = ..., datetime_value: _Optional[_Union[DateTimeValue, _Mapping]] = ..., decimal_value: _Optional[_Union[DecimalValue, _Mapping]] = ..., boolean_value: _Optional[bool] = ..., int32_value: _Optional[int] = ..., float32_value: _Optional[float] = ..., uint32_value: _Optional[int] = ...) -> None: ... + def __init__(self, string_value: _Optional[str] = ..., int_value: _Optional[int] = ..., float_value: _Optional[float] = ..., uint128_value: _Optional[_Union[UInt128Value, _Mapping]] = ..., int128_value: _Optional[_Union[Int128Value, _Mapping]] = ..., missing_value: _Optional[_Union[MissingValue, _Mapping]] = ..., date_value: _Optional[_Union[DateValue, _Mapping]] = ..., datetime_value: _Optional[_Union[DateTimeValue, _Mapping]] = ..., decimal_value: _Optional[_Union[DecimalValue, _Mapping]] = ..., boolean_value: bool = ..., int32_value: _Optional[int] = ..., float32_value: _Optional[float] = ..., uint32_value: _Optional[int] = ...) -> None: ... class UInt128Value(_message.Message): __slots__ = ("low", "high") diff --git a/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi b/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi index b5b0dce0..d64ac3a6 100644 --- a/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi +++ b/sdks/python/src/lqp/proto/v1/transactions_pb2.pyi @@ -4,8 +4,7 @@ from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message -from collections.abc import Iterable as _Iterable, Mapping as _Mapping -from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union +from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor @@ -126,7 +125,7 @@ class ExportCSVConfig(_message.Message): syntax_delim: str syntax_quotechar: str syntax_escapechar: str - def __init__(self, path: _Optional[str] = ..., csv_source: _Optional[_Union[ExportCSVSource, _Mapping]] = ..., csv_config: _Optional[_Union[_logic_pb2.CSVConfig, _Mapping]] = ..., data_columns: _Optional[_Iterable[_Union[ExportCSVColumn, _Mapping]]] = ..., partition_size: _Optional[int] = ..., compression: _Optional[str] = ..., syntax_header_row: _Optional[bool] = ..., syntax_missing_string: _Optional[str] = ..., syntax_delim: _Optional[str] = ..., syntax_quotechar: _Optional[str] = ..., syntax_escapechar: _Optional[str] = ...) -> None: ... + def __init__(self, path: _Optional[str] = ..., csv_source: _Optional[_Union[ExportCSVSource, _Mapping]] = ..., csv_config: _Optional[_Union[_logic_pb2.CSVConfig, _Mapping]] = ..., data_columns: _Optional[_Iterable[_Union[ExportCSVColumn, _Mapping]]] = ..., partition_size: _Optional[int] = ..., compression: _Optional[str] = ..., syntax_header_row: 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")