formulair

package
v0.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2021 License: Apache-2.0, BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_BasicKind_name = map[int32]string{
		0:  "KIND_UNSPECIFIED",
		1:  "NOT_BASIC_KIND",
		2:  "INT8",
		3:  "INT16",
		4:  "INT32",
		5:  "INT64",
		6:  "UINT8",
		7:  "UINT16",
		8:  "UINT32",
		9:  "UINT64",
		10: "FLOAT32",
		11: "FLOAT64",
		12: "STRING",
		13: "BYTES",
	}
	Type_BasicKind_value = map[string]int32{
		"KIND_UNSPECIFIED": 0,
		"NOT_BASIC_KIND":   1,
		"INT8":             2,
		"INT16":            3,
		"INT32":            4,
		"INT64":            5,
		"UINT8":            6,
		"UINT16":           7,
		"UINT32":           8,
		"UINT64":           9,
		"FLOAT32":          10,
		"FLOAT64":          11,
		"STRING":           12,
		"BYTES":            13,
	}
)

Enum value maps for Type_BasicKind.

View Source
var (
	Binding_Kind_name = map[int32]string{
		0: "KIND_UNSPECIFIED",
		1: "FUNCTION",
		2: "VARIABLE",
	}
	Binding_Kind_value = map[string]int32{
		"KIND_UNSPECIFIED": 0,
		"FUNCTION":         1,
		"VARIABLE":         2,
	}
)

Enum value maps for Binding_Kind.

View Source
var File_github_com_google_xtoproto_proto_expression_formulair_formulair_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AST

type AST struct {
	// contains filtered or unexported fields
}

func (*AST) Descriptor deprecated

func (*AST) Descriptor() ([]byte, []int)

Deprecated: Use AST.ProtoReflect.Descriptor instead.

func (*AST) ProtoMessage

func (*AST) ProtoMessage()

func (*AST) ProtoReflect

func (x *AST) ProtoReflect() protoreflect.Message

func (*AST) Reset

func (x *AST) Reset()

func (*AST) String

func (x *AST) String() string

type AST_AssignVar

type AST_AssignVar struct {
	Variable *AST_VariableRef `protobuf:"bytes,1,opt,name=variable,proto3" json:"variable,omitempty"`
	Value    *AST_Expression  `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_AssignVar) Descriptor deprecated

func (*AST_AssignVar) Descriptor() ([]byte, []int)

Deprecated: Use AST_AssignVar.ProtoReflect.Descriptor instead.

func (*AST_AssignVar) GetValue

func (x *AST_AssignVar) GetValue() *AST_Expression

func (*AST_AssignVar) GetVariable

func (x *AST_AssignVar) GetVariable() *AST_VariableRef

func (*AST_AssignVar) ProtoMessage

func (*AST_AssignVar) ProtoMessage()

func (*AST_AssignVar) ProtoReflect

func (x *AST_AssignVar) ProtoReflect() protoreflect.Message

func (*AST_AssignVar) Reset

func (x *AST_AssignVar) Reset()

func (*AST_AssignVar) String

func (x *AST_AssignVar) String() string

type AST_Constant

type AST_Constant struct {
	Value *expression.Expression `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_Constant) Descriptor deprecated

func (*AST_Constant) Descriptor() ([]byte, []int)

Deprecated: Use AST_Constant.ProtoReflect.Descriptor instead.

func (*AST_Constant) GetValue

func (x *AST_Constant) GetValue() *expression.Expression

func (*AST_Constant) ProtoMessage

func (*AST_Constant) ProtoMessage()

func (*AST_Constant) ProtoReflect

func (x *AST_Constant) ProtoReflect() protoreflect.Message

func (*AST_Constant) Reset

func (x *AST_Constant) Reset()

func (*AST_Constant) String

func (x *AST_Constant) String() string

type AST_Expression

type AST_Expression struct {

	// Types that are assignable to Value:
	//	*AST_Expression_Void
	//	*AST_Expression_Constant
	//	*AST_Expression_Funcall
	//	*AST_Expression_Function
	//	*AST_Expression_Variable
	//	*AST_Expression_IfElse
	//	*AST_Expression_WhileLoop
	//	*AST_Expression_Let
	//	*AST_Expression_Program
	//	*AST_Expression_AssignVar
	Value         isAST_Expression_Value `protobuf_oneof:"value"`
	SourceContext *AST_SourceContext     `protobuf:"bytes,20,opt,name=source_context,json=sourceContext,proto3" json:"source_context,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_Expression) Descriptor deprecated

func (*AST_Expression) Descriptor() ([]byte, []int)

Deprecated: Use AST_Expression.ProtoReflect.Descriptor instead.

func (*AST_Expression) GetAssignVar

func (x *AST_Expression) GetAssignVar() *AST_AssignVar

func (*AST_Expression) GetConstant

func (x *AST_Expression) GetConstant() *AST_Constant

func (*AST_Expression) GetFuncall

func (x *AST_Expression) GetFuncall() *AST_FunctionCall

func (*AST_Expression) GetFunction

func (x *AST_Expression) GetFunction() *AST_Function

func (*AST_Expression) GetIfElse

func (x *AST_Expression) GetIfElse() *AST_IfElse

func (*AST_Expression) GetLet

func (x *AST_Expression) GetLet() *AST_Let

func (*AST_Expression) GetProgram

func (x *AST_Expression) GetProgram() *AST_Program

func (*AST_Expression) GetSourceContext

func (x *AST_Expression) GetSourceContext() *AST_SourceContext

func (*AST_Expression) GetValue

func (m *AST_Expression) GetValue() isAST_Expression_Value

func (*AST_Expression) GetVariable

func (x *AST_Expression) GetVariable() *AST_VariableRef

func (*AST_Expression) GetVoid

func (x *AST_Expression) GetVoid() *emptypb.Empty

func (*AST_Expression) GetWhileLoop

func (x *AST_Expression) GetWhileLoop() *AST_WhileLoop

func (*AST_Expression) ProtoMessage

func (*AST_Expression) ProtoMessage()

func (*AST_Expression) ProtoReflect

func (x *AST_Expression) ProtoReflect() protoreflect.Message

func (*AST_Expression) Reset

func (x *AST_Expression) Reset()

func (*AST_Expression) String

func (x *AST_Expression) String() string

type AST_Expression_AssignVar

type AST_Expression_AssignVar struct {
	AssignVar *AST_AssignVar `protobuf:"bytes,10,opt,name=assign_var,json=assignVar,proto3,oneof"`
}

type AST_Expression_Constant

type AST_Expression_Constant struct {
	Constant *AST_Constant `protobuf:"bytes,2,opt,name=constant,proto3,oneof"`
}

type AST_Expression_Funcall

type AST_Expression_Funcall struct {
	Funcall *AST_FunctionCall `protobuf:"bytes,3,opt,name=funcall,proto3,oneof"`
}

type AST_Expression_Function

type AST_Expression_Function struct {
	Function *AST_Function `protobuf:"bytes,4,opt,name=function,proto3,oneof"`
}

type AST_Expression_IfElse

type AST_Expression_IfElse struct {
	IfElse *AST_IfElse `protobuf:"bytes,6,opt,name=if_else,json=ifElse,proto3,oneof"`
}

type AST_Expression_Let

type AST_Expression_Let struct {
	Let *AST_Let `protobuf:"bytes,8,opt,name=let,proto3,oneof"`
}

type AST_Expression_Program

type AST_Expression_Program struct {
	Program *AST_Program `protobuf:"bytes,9,opt,name=program,proto3,oneof"`
}

type AST_Expression_Variable

type AST_Expression_Variable struct {
	Variable *AST_VariableRef `protobuf:"bytes,5,opt,name=variable,proto3,oneof"`
}

type AST_Expression_Void

type AST_Expression_Void struct {
	Void *emptypb.Empty `protobuf:"bytes,1,opt,name=void,proto3,oneof"`
}

type AST_Expression_WhileLoop

type AST_Expression_WhileLoop struct {
	WhileLoop *AST_WhileLoop `protobuf:"bytes,7,opt,name=while_loop,json=whileLoop,proto3,oneof"`
}

type AST_File

type AST_File struct {
	PackageShortName    string                 `protobuf:"bytes,1,opt,name=package_short_name,json=packageShortName,proto3" json:"package_short_name,omitempty"`
	Imports             []*AST_ImportStatement `protobuf:"bytes,2,rep,name=imports,proto3" json:"imports,omitempty"`
	ToplevelExpressions *AST_Expression        `protobuf:"bytes,3,opt,name=toplevel_expressions,json=toplevelExpressions,proto3" json:"toplevel_expressions,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_File) Descriptor deprecated

func (*AST_File) Descriptor() ([]byte, []int)

Deprecated: Use AST_File.ProtoReflect.Descriptor instead.

func (*AST_File) GetImports

func (x *AST_File) GetImports() []*AST_ImportStatement

func (*AST_File) GetPackageShortName

func (x *AST_File) GetPackageShortName() string

func (*AST_File) GetToplevelExpressions

func (x *AST_File) GetToplevelExpressions() *AST_Expression

func (*AST_File) ProtoMessage

func (*AST_File) ProtoMessage()

func (*AST_File) ProtoReflect

func (x *AST_File) ProtoReflect() protoreflect.Message

func (*AST_File) Reset

func (x *AST_File) Reset()

func (*AST_File) String

func (x *AST_File) String() string

type AST_Function

type AST_Function struct {
	Args        []*AST_Function_Arg   `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
	ReturnTypes []*AST_TypeExpression `protobuf:"bytes,2,rep,name=return_types,json=returnTypes,proto3" json:"return_types,omitempty"`
	Body        *AST_Expression       `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_Function) Descriptor deprecated

func (*AST_Function) Descriptor() ([]byte, []int)

Deprecated: Use AST_Function.ProtoReflect.Descriptor instead.

func (*AST_Function) GetArgs

func (x *AST_Function) GetArgs() []*AST_Function_Arg

func (*AST_Function) GetBody

func (x *AST_Function) GetBody() *AST_Expression

func (*AST_Function) GetReturnTypes

func (x *AST_Function) GetReturnTypes() []*AST_TypeExpression

func (*AST_Function) ProtoMessage

func (*AST_Function) ProtoMessage()

func (*AST_Function) ProtoReflect

func (x *AST_Function) ProtoReflect() protoreflect.Message

func (*AST_Function) Reset

func (x *AST_Function) Reset()

func (*AST_Function) String

func (x *AST_Function) String() string

type AST_FunctionCall

type AST_FunctionCall struct {
	Function       *AST_Expression   `protobuf:"bytes,1,opt,name=function,proto3" json:"function,omitempty"`
	PositionalArgs []*AST_Expression `protobuf:"bytes,2,rep,name=positional_args,json=positionalArgs,proto3" json:"positional_args,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_FunctionCall) Descriptor deprecated

func (*AST_FunctionCall) Descriptor() ([]byte, []int)

Deprecated: Use AST_FunctionCall.ProtoReflect.Descriptor instead.

func (*AST_FunctionCall) GetFunction

func (x *AST_FunctionCall) GetFunction() *AST_Expression

func (*AST_FunctionCall) GetPositionalArgs

func (x *AST_FunctionCall) GetPositionalArgs() []*AST_Expression

func (*AST_FunctionCall) ProtoMessage

func (*AST_FunctionCall) ProtoMessage()

func (*AST_FunctionCall) ProtoReflect

func (x *AST_FunctionCall) ProtoReflect() protoreflect.Message

func (*AST_FunctionCall) Reset

func (x *AST_FunctionCall) Reset()

func (*AST_FunctionCall) String

func (x *AST_FunctionCall) String() string

type AST_Function_Arg

type AST_Function_Arg struct {
	Symbol     *expression.Symbol  `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Type       *AST_TypeExpression `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	VariableId string              `protobuf:"bytes,3,opt,name=variable_id,json=variableId,proto3" json:"variable_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_Function_Arg) Descriptor deprecated

func (*AST_Function_Arg) Descriptor() ([]byte, []int)

Deprecated: Use AST_Function_Arg.ProtoReflect.Descriptor instead.

func (*AST_Function_Arg) GetSymbol

func (x *AST_Function_Arg) GetSymbol() *expression.Symbol

func (*AST_Function_Arg) GetType

func (x *AST_Function_Arg) GetType() *AST_TypeExpression

func (*AST_Function_Arg) GetVariableId

func (x *AST_Function_Arg) GetVariableId() string

func (*AST_Function_Arg) ProtoMessage

func (*AST_Function_Arg) ProtoMessage()

func (*AST_Function_Arg) ProtoReflect

func (x *AST_Function_Arg) ProtoReflect() protoreflect.Message

func (*AST_Function_Arg) Reset

func (x *AST_Function_Arg) Reset()

func (*AST_Function_Arg) String

func (x *AST_Function_Arg) String() string

type AST_IfElse

type AST_IfElse struct {
	Test           *AST_Expression `protobuf:"bytes,1,opt,name=test,proto3" json:"test,omitempty"`
	ThenExpression *AST_Expression `protobuf:"bytes,2,opt,name=then_expression,json=thenExpression,proto3" json:"then_expression,omitempty"`
	ElseExpression *AST_Expression `protobuf:"bytes,3,opt,name=else_expression,json=elseExpression,proto3" json:"else_expression,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_IfElse) Descriptor deprecated

func (*AST_IfElse) Descriptor() ([]byte, []int)

Deprecated: Use AST_IfElse.ProtoReflect.Descriptor instead.

func (*AST_IfElse) GetElseExpression

func (x *AST_IfElse) GetElseExpression() *AST_Expression

func (*AST_IfElse) GetTest

func (x *AST_IfElse) GetTest() *AST_Expression

func (*AST_IfElse) GetThenExpression

func (x *AST_IfElse) GetThenExpression() *AST_Expression

func (*AST_IfElse) ProtoMessage

func (*AST_IfElse) ProtoMessage()

func (*AST_IfElse) ProtoReflect

func (x *AST_IfElse) ProtoReflect() protoreflect.Message

func (*AST_IfElse) Reset

func (x *AST_IfElse) Reset()

func (*AST_IfElse) String

func (x *AST_IfElse) String() string

type AST_ImportStatement

type AST_ImportStatement struct {
	ShortName   string `protobuf:"bytes,1,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"`
	PackagePath string `protobuf:"bytes,2,opt,name=package_path,json=packagePath,proto3" json:"package_path,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_ImportStatement) Descriptor deprecated

func (*AST_ImportStatement) Descriptor() ([]byte, []int)

Deprecated: Use AST_ImportStatement.ProtoReflect.Descriptor instead.

func (*AST_ImportStatement) GetPackagePath

func (x *AST_ImportStatement) GetPackagePath() string

func (*AST_ImportStatement) GetShortName

func (x *AST_ImportStatement) GetShortName() string

func (*AST_ImportStatement) ProtoMessage

func (*AST_ImportStatement) ProtoMessage()

func (*AST_ImportStatement) ProtoReflect

func (x *AST_ImportStatement) ProtoReflect() protoreflect.Message

func (*AST_ImportStatement) Reset

func (x *AST_ImportStatement) Reset()

func (*AST_ImportStatement) String

func (x *AST_ImportStatement) String() string

type AST_Let

type AST_Let struct {
	Bindings []*AST_Let_Binding `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"`
	Body     *AST_Expression    `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	ScopeId  string             `protobuf:"bytes,3,opt,name=scope_id,json=scopeId,proto3" json:"scope_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_Let) Descriptor deprecated

func (*AST_Let) Descriptor() ([]byte, []int)

Deprecated: Use AST_Let.ProtoReflect.Descriptor instead.

func (*AST_Let) GetBindings

func (x *AST_Let) GetBindings() []*AST_Let_Binding

func (*AST_Let) GetBody

func (x *AST_Let) GetBody() *AST_Expression

func (*AST_Let) GetScopeId

func (x *AST_Let) GetScopeId() string

func (*AST_Let) ProtoMessage

func (*AST_Let) ProtoMessage()

func (*AST_Let) ProtoReflect

func (x *AST_Let) ProtoReflect() protoreflect.Message

func (*AST_Let) Reset

func (x *AST_Let) Reset()

func (*AST_Let) String

func (x *AST_Let) String() string

type AST_Let_Binding

type AST_Let_Binding struct {
	Symbol     *expression.Symbol  `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	VariableId string              `protobuf:"bytes,2,opt,name=variable_id,json=variableId,proto3" json:"variable_id,omitempty"`
	ValueType  *AST_TypeExpression `protobuf:"bytes,3,opt,name=value_type,json=valueType,proto3" json:"value_type,omitempty"`
	Value      *AST_Expression     `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_Let_Binding) Descriptor deprecated

func (*AST_Let_Binding) Descriptor() ([]byte, []int)

Deprecated: Use AST_Let_Binding.ProtoReflect.Descriptor instead.

func (*AST_Let_Binding) GetSymbol

func (x *AST_Let_Binding) GetSymbol() *expression.Symbol

func (*AST_Let_Binding) GetValue

func (x *AST_Let_Binding) GetValue() *AST_Expression

func (*AST_Let_Binding) GetValueType

func (x *AST_Let_Binding) GetValueType() *AST_TypeExpression

func (*AST_Let_Binding) GetVariableId

func (x *AST_Let_Binding) GetVariableId() string

func (*AST_Let_Binding) ProtoMessage

func (*AST_Let_Binding) ProtoMessage()

func (*AST_Let_Binding) ProtoReflect

func (x *AST_Let_Binding) ProtoReflect() protoreflect.Message

func (*AST_Let_Binding) Reset

func (x *AST_Let_Binding) Reset()

func (*AST_Let_Binding) String

func (x *AST_Let_Binding) String() string

type AST_Program

type AST_Program struct {
	Expressions []*AST_Expression `protobuf:"bytes,1,rep,name=expressions,proto3" json:"expressions,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_Program) Descriptor deprecated

func (*AST_Program) Descriptor() ([]byte, []int)

Deprecated: Use AST_Program.ProtoReflect.Descriptor instead.

func (*AST_Program) GetExpressions

func (x *AST_Program) GetExpressions() []*AST_Expression

func (*AST_Program) ProtoMessage

func (*AST_Program) ProtoMessage()

func (*AST_Program) ProtoReflect

func (x *AST_Program) ProtoReflect() protoreflect.Message

func (*AST_Program) Reset

func (x *AST_Program) Reset()

func (*AST_Program) String

func (x *AST_Program) String() string

type AST_SourceContext

type AST_SourceContext struct {
	Context *expression.SourceContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_SourceContext) Descriptor deprecated

func (*AST_SourceContext) Descriptor() ([]byte, []int)

Deprecated: Use AST_SourceContext.ProtoReflect.Descriptor instead.

func (*AST_SourceContext) GetContext

func (x *AST_SourceContext) GetContext() *expression.SourceContext

func (*AST_SourceContext) ProtoMessage

func (*AST_SourceContext) ProtoMessage()

func (*AST_SourceContext) ProtoReflect

func (x *AST_SourceContext) ProtoReflect() protoreflect.Message

func (*AST_SourceContext) Reset

func (x *AST_SourceContext) Reset()

func (*AST_SourceContext) String

func (x *AST_SourceContext) String() string

type AST_TestCase

type AST_TestCase struct {
	Name         string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	InputFormula string          `protobuf:"bytes,2,opt,name=input_formula,json=inputFormula,proto3" json:"input_formula,omitempty"`
	Error        string          `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	Expression   *AST_Expression `protobuf:"bytes,4,opt,name=expression,proto3" json:"expression,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_TestCase) Descriptor deprecated

func (*AST_TestCase) Descriptor() ([]byte, []int)

Deprecated: Use AST_TestCase.ProtoReflect.Descriptor instead.

func (*AST_TestCase) GetError

func (x *AST_TestCase) GetError() string

func (*AST_TestCase) GetExpression

func (x *AST_TestCase) GetExpression() *AST_Expression

func (*AST_TestCase) GetInputFormula

func (x *AST_TestCase) GetInputFormula() string

func (*AST_TestCase) GetName

func (x *AST_TestCase) GetName() string

func (*AST_TestCase) ProtoMessage

func (*AST_TestCase) ProtoMessage()

func (*AST_TestCase) ProtoReflect

func (x *AST_TestCase) ProtoReflect() protoreflect.Message

func (*AST_TestCase) Reset

func (x *AST_TestCase) Reset()

func (*AST_TestCase) String

func (x *AST_TestCase) String() string

type AST_TypeExpression

type AST_TypeExpression struct {

	// Types that are assignable to Spec:
	//	*AST_TypeExpression_TypeName
	Spec          isAST_TypeExpression_Spec `protobuf_oneof:"spec"`
	SourceContext *AST_SourceContext        `protobuf:"bytes,8,opt,name=source_context,json=sourceContext,proto3" json:"source_context,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_TypeExpression) Descriptor deprecated

func (*AST_TypeExpression) Descriptor() ([]byte, []int)

Deprecated: Use AST_TypeExpression.ProtoReflect.Descriptor instead.

func (*AST_TypeExpression) GetSourceContext

func (x *AST_TypeExpression) GetSourceContext() *AST_SourceContext

func (*AST_TypeExpression) GetSpec

func (m *AST_TypeExpression) GetSpec() isAST_TypeExpression_Spec

func (*AST_TypeExpression) GetTypeName

func (x *AST_TypeExpression) GetTypeName() *expression.Symbol

func (*AST_TypeExpression) ProtoMessage

func (*AST_TypeExpression) ProtoMessage()

func (*AST_TypeExpression) ProtoReflect

func (x *AST_TypeExpression) ProtoReflect() protoreflect.Message

func (*AST_TypeExpression) Reset

func (x *AST_TypeExpression) Reset()

func (*AST_TypeExpression) String

func (x *AST_TypeExpression) String() string

type AST_TypeExpression_TypeName

type AST_TypeExpression_TypeName struct {
	TypeName *expression.Symbol `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3,oneof"`
}

type AST_VariableRef

type AST_VariableRef struct {
	Symbol     *expression.Symbol `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	VariableId string             `protobuf:"bytes,2,opt,name=variable_id,json=variableId,proto3" json:"variable_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_VariableRef) Descriptor deprecated

func (*AST_VariableRef) Descriptor() ([]byte, []int)

Deprecated: Use AST_VariableRef.ProtoReflect.Descriptor instead.

func (*AST_VariableRef) GetSymbol

func (x *AST_VariableRef) GetSymbol() *expression.Symbol

func (*AST_VariableRef) GetVariableId

func (x *AST_VariableRef) GetVariableId() string

func (*AST_VariableRef) ProtoMessage

func (*AST_VariableRef) ProtoMessage()

func (*AST_VariableRef) ProtoReflect

func (x *AST_VariableRef) ProtoReflect() protoreflect.Message

func (*AST_VariableRef) Reset

func (x *AST_VariableRef) Reset()

func (*AST_VariableRef) String

func (x *AST_VariableRef) String() string

type AST_WhileLoop

type AST_WhileLoop struct {
	Test *AST_Expression `protobuf:"bytes,1,opt,name=test,proto3" json:"test,omitempty"`
	Body *AST_Expression `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*AST_WhileLoop) Descriptor deprecated

func (*AST_WhileLoop) Descriptor() ([]byte, []int)

Deprecated: Use AST_WhileLoop.ProtoReflect.Descriptor instead.

func (*AST_WhileLoop) GetBody

func (x *AST_WhileLoop) GetBody() *AST_Expression

func (*AST_WhileLoop) GetTest

func (x *AST_WhileLoop) GetTest() *AST_Expression

func (*AST_WhileLoop) ProtoMessage

func (*AST_WhileLoop) ProtoMessage()

func (*AST_WhileLoop) ProtoReflect

func (x *AST_WhileLoop) ProtoReflect() protoreflect.Message

func (*AST_WhileLoop) Reset

func (x *AST_WhileLoop) Reset()

func (*AST_WhileLoop) String

func (x *AST_WhileLoop) String() string

type Binding

type Binding struct {
	Kind Binding_Kind       `protobuf:"varint,1,opt,name=kind,proto3,enum=xtoproto.formula.internal.Binding_Kind" json:"kind,omitempty"`
	Name *expression.Symbol `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Binding) Descriptor deprecated

func (*Binding) Descriptor() ([]byte, []int)

Deprecated: Use Binding.ProtoReflect.Descriptor instead.

func (*Binding) GetKind

func (x *Binding) GetKind() Binding_Kind

func (*Binding) GetName

func (x *Binding) GetName() *expression.Symbol

func (*Binding) ProtoMessage

func (*Binding) ProtoMessage()

func (*Binding) ProtoReflect

func (x *Binding) ProtoReflect() protoreflect.Message

func (*Binding) Reset

func (x *Binding) Reset()

func (*Binding) String

func (x *Binding) String() string

type Binding_Kind

type Binding_Kind int32
const (
	Binding_KIND_UNSPECIFIED Binding_Kind = 0
	Binding_FUNCTION         Binding_Kind = 1
	Binding_VARIABLE         Binding_Kind = 2
)

func (Binding_Kind) Descriptor

func (Binding_Kind) Enum

func (x Binding_Kind) Enum() *Binding_Kind

func (Binding_Kind) EnumDescriptor deprecated

func (Binding_Kind) EnumDescriptor() ([]byte, []int)

Deprecated: Use Binding_Kind.Descriptor instead.

func (Binding_Kind) Number

func (Binding_Kind) String

func (x Binding_Kind) String() string

func (Binding_Kind) Type

type Funcall

type Funcall struct {
	Operand        *Value                  `protobuf:"bytes,1,opt,name=operand,proto3" json:"operand,omitempty"`
	PositionalArgs []*Value                `protobuf:"bytes,2,rep,name=positional_args,json=positionalArgs,proto3" json:"positional_args,omitempty"`
	KeywordArgs    []*KeywordArgumentValue `protobuf:"bytes,3,rep,name=keyword_args,json=keywordArgs,proto3" json:"keyword_args,omitempty"`
	// contains filtered or unexported fields
}

func (*Funcall) Descriptor deprecated

func (*Funcall) Descriptor() ([]byte, []int)

Deprecated: Use Funcall.ProtoReflect.Descriptor instead.

func (*Funcall) GetKeywordArgs

func (x *Funcall) GetKeywordArgs() []*KeywordArgumentValue

func (*Funcall) GetOperand

func (x *Funcall) GetOperand() *Value

func (*Funcall) GetPositionalArgs

func (x *Funcall) GetPositionalArgs() []*Value

func (*Funcall) ProtoMessage

func (*Funcall) ProtoMessage()

func (*Funcall) ProtoReflect

func (x *Funcall) ProtoReflect() protoreflect.Message

func (*Funcall) Reset

func (x *Funcall) Reset()

func (*Funcall) String

func (x *Funcall) String() string

type Graph

type Graph struct {
	Types []*Graph_TypeEntry `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"`
	// contains filtered or unexported fields
}

func (*Graph) Descriptor deprecated

func (*Graph) Descriptor() ([]byte, []int)

Deprecated: Use Graph.ProtoReflect.Descriptor instead.

func (*Graph) GetTypes

func (x *Graph) GetTypes() []*Graph_TypeEntry

func (*Graph) ProtoMessage

func (*Graph) ProtoMessage()

func (*Graph) ProtoReflect

func (x *Graph) ProtoReflect() protoreflect.Message

func (*Graph) Reset

func (x *Graph) Reset()

func (*Graph) String

func (x *Graph) String() string

type Graph_TypeEntry

type Graph_TypeEntry struct {
	Id   *ID   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type *Type `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Graph_TypeEntry) Descriptor deprecated

func (*Graph_TypeEntry) Descriptor() ([]byte, []int)

Deprecated: Use Graph_TypeEntry.ProtoReflect.Descriptor instead.

func (*Graph_TypeEntry) GetId

func (x *Graph_TypeEntry) GetId() *ID

func (*Graph_TypeEntry) GetType

func (x *Graph_TypeEntry) GetType() *Type

func (*Graph_TypeEntry) ProtoMessage

func (*Graph_TypeEntry) ProtoMessage()

func (*Graph_TypeEntry) ProtoReflect

func (x *Graph_TypeEntry) ProtoReflect() protoreflect.Message

func (*Graph_TypeEntry) Reset

func (x *Graph_TypeEntry) Reset()

func (*Graph_TypeEntry) String

func (x *Graph_TypeEntry) String() string

type ID

type ID struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ID) Descriptor deprecated

func (*ID) Descriptor() ([]byte, []int)

Deprecated: Use ID.ProtoReflect.Descriptor instead.

func (*ID) GetId

func (x *ID) GetId() string

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) ProtoReflect

func (x *ID) ProtoReflect() protoreflect.Message

func (*ID) Reset

func (x *ID) Reset()

func (*ID) String

func (x *ID) String() string

type KeywordArgumentValue

type KeywordArgumentValue struct {
	Keyword *Value `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Value   *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*KeywordArgumentValue) Descriptor deprecated

func (*KeywordArgumentValue) Descriptor() ([]byte, []int)

Deprecated: Use KeywordArgumentValue.ProtoReflect.Descriptor instead.

func (*KeywordArgumentValue) GetKeyword

func (x *KeywordArgumentValue) GetKeyword() *Value

func (*KeywordArgumentValue) GetValue

func (x *KeywordArgumentValue) GetValue() *Value

func (*KeywordArgumentValue) ProtoMessage

func (*KeywordArgumentValue) ProtoMessage()

func (*KeywordArgumentValue) ProtoReflect

func (x *KeywordArgumentValue) ProtoReflect() protoreflect.Message

func (*KeywordArgumentValue) Reset

func (x *KeywordArgumentValue) Reset()

func (*KeywordArgumentValue) String

func (x *KeywordArgumentValue) String() string

type LexicalEnvironment

type LexicalEnvironment struct {
	Bindings []*Binding `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"`
	// contains filtered or unexported fields
}

func (*LexicalEnvironment) Descriptor deprecated

func (*LexicalEnvironment) Descriptor() ([]byte, []int)

Deprecated: Use LexicalEnvironment.ProtoReflect.Descriptor instead.

func (*LexicalEnvironment) GetBindings

func (x *LexicalEnvironment) GetBindings() []*Binding

func (*LexicalEnvironment) ProtoMessage

func (*LexicalEnvironment) ProtoMessage()

func (*LexicalEnvironment) ProtoReflect

func (x *LexicalEnvironment) ProtoReflect() protoreflect.Message

func (*LexicalEnvironment) Reset

func (x *LexicalEnvironment) Reset()

func (*LexicalEnvironment) String

func (x *LexicalEnvironment) String() string

type Type

type Type struct {
	Id *ID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Spec:
	//	*Type_BasicKind_
	Spec isType_Spec `protobuf_oneof:"spec"`
	// contains filtered or unexported fields
}

func (*Type) Descriptor deprecated

func (*Type) Descriptor() ([]byte, []int)

Deprecated: Use Type.ProtoReflect.Descriptor instead.

func (*Type) GetBasicKind

func (x *Type) GetBasicKind() Type_BasicKind

func (*Type) GetId

func (x *Type) GetId() *ID

func (*Type) GetSpec

func (m *Type) GetSpec() isType_Spec

func (*Type) ProtoMessage

func (*Type) ProtoMessage()

func (*Type) ProtoReflect

func (x *Type) ProtoReflect() protoreflect.Message

func (*Type) Reset

func (x *Type) Reset()

func (*Type) String

func (x *Type) String() string

type Type_BasicKind

type Type_BasicKind int32
const (
	Type_KIND_UNSPECIFIED Type_BasicKind = 0
	Type_NOT_BASIC_KIND   Type_BasicKind = 1
	Type_INT8             Type_BasicKind = 2
	Type_INT16            Type_BasicKind = 3
	Type_INT32            Type_BasicKind = 4
	Type_INT64            Type_BasicKind = 5
	Type_UINT8            Type_BasicKind = 6
	Type_UINT16           Type_BasicKind = 7
	Type_UINT32           Type_BasicKind = 8
	Type_UINT64           Type_BasicKind = 9
	Type_FLOAT32          Type_BasicKind = 10
	Type_FLOAT64          Type_BasicKind = 11
	Type_STRING           Type_BasicKind = 12
	Type_BYTES            Type_BasicKind = 13
)

func (Type_BasicKind) Descriptor

func (Type_BasicKind) Enum

func (x Type_BasicKind) Enum() *Type_BasicKind

func (Type_BasicKind) EnumDescriptor deprecated

func (Type_BasicKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use Type_BasicKind.Descriptor instead.

func (Type_BasicKind) Number

func (Type_BasicKind) String

func (x Type_BasicKind) String() string

func (Type_BasicKind) Type

type Type_BasicKind_

type Type_BasicKind_ struct {
	BasicKind Type_BasicKind `protobuf:"varint,2,opt,name=basic_kind,json=basicKind,proto3,enum=xtoproto.formula.internal.Type_BasicKind,oneof"`
}

type Type_FunctionCall

type Type_FunctionCall struct {
	Args []*Type_FunctionCall_Arg `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*Type_FunctionCall) Descriptor deprecated

func (*Type_FunctionCall) Descriptor() ([]byte, []int)

Deprecated: Use Type_FunctionCall.ProtoReflect.Descriptor instead.

func (*Type_FunctionCall) GetArgs

func (x *Type_FunctionCall) GetArgs() []*Type_FunctionCall_Arg

func (*Type_FunctionCall) ProtoMessage

func (*Type_FunctionCall) ProtoMessage()

func (*Type_FunctionCall) ProtoReflect

func (x *Type_FunctionCall) ProtoReflect() protoreflect.Message

func (*Type_FunctionCall) Reset

func (x *Type_FunctionCall) Reset()

func (*Type_FunctionCall) String

func (x *Type_FunctionCall) String() string

type Type_FunctionCall_Arg

type Type_FunctionCall_Arg struct {

	// Types that are assignable to Identity:
	//	*Type_FunctionCall_Arg_Position
	Identity isType_FunctionCall_Arg_Identity `protobuf_oneof:"identity"`
	// contains filtered or unexported fields
}

func (*Type_FunctionCall_Arg) Descriptor deprecated

func (*Type_FunctionCall_Arg) Descriptor() ([]byte, []int)

Deprecated: Use Type_FunctionCall_Arg.ProtoReflect.Descriptor instead.

func (*Type_FunctionCall_Arg) GetIdentity

func (m *Type_FunctionCall_Arg) GetIdentity() isType_FunctionCall_Arg_Identity

func (*Type_FunctionCall_Arg) GetPosition

func (x *Type_FunctionCall_Arg) GetPosition() int32

func (*Type_FunctionCall_Arg) ProtoMessage

func (*Type_FunctionCall_Arg) ProtoMessage()

func (*Type_FunctionCall_Arg) ProtoReflect

func (x *Type_FunctionCall_Arg) ProtoReflect() protoreflect.Message

func (*Type_FunctionCall_Arg) Reset

func (x *Type_FunctionCall_Arg) Reset()

func (*Type_FunctionCall_Arg) String

func (x *Type_FunctionCall_Arg) String() string

type Type_FunctionCall_Arg_Position

type Type_FunctionCall_Arg_Position struct {
	Position int32 `protobuf:"varint,1,opt,name=position,proto3,oneof"`
}

type Value

type Value struct {
	TypeId *ID `protobuf:"bytes,1,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
	// Types that are assignable to ExecSpec:
	//	*Value_Constant
	//	*Value_Funcall
	ExecSpec isValue_ExecSpec `protobuf_oneof:"exec_spec"`
	// contains filtered or unexported fields
}

func (*Value) Descriptor deprecated

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetConstant

func (x *Value) GetConstant() *expression.Expression

func (*Value) GetExecSpec

func (m *Value) GetExecSpec() isValue_ExecSpec

func (*Value) GetFuncall

func (x *Value) GetFuncall() *Funcall

func (*Value) GetTypeId

func (x *Value) GetTypeId() *ID

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

type Value_Constant

type Value_Constant struct {
	Constant *expression.Expression `protobuf:"bytes,2,opt,name=constant,proto3,oneof"`
}

type Value_Funcall

type Value_Funcall struct {
	Funcall *Funcall `protobuf:"bytes,3,opt,name=funcall,proto3,oneof"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL