Documentation
¶
Index ¶
- Constants
- type BoolType
- type ClassType
- func (t *ClassType) AddFunction(f *Function)
- func (t *ClassType) AddProperty(p *Property)
- func (t *ClassType) Code() int8
- func (t *ClassType) Id() string
- func (t *ClassType) InitScope(parent interfaces.Scope) *parser.ParseError
- func (t *ClassType) Kind() interfaces.Kind
- func (t *ClassType) Scope() interfaces.Scope
- func (t *ClassType) Specie() interfaces.Specie
- func (t *ClassType) String() string
- type DateType
- type EnumItem
- type EnumType
- func (e *EnumType) AddItem(i *EnumItem)
- func (e *EnumType) AssignCodes()
- func (e *EnumType) Code() int8
- func (e *EnumType) Id() string
- func (e *EnumType) InitScope(parent interfaces.Scope) *parser.ParseError
- func (e *EnumType) Kind() interfaces.Kind
- func (e *EnumType) Scope() interfaces.Scope
- func (e *EnumType) Size() int
- func (e *EnumType) Specie() interfaces.Specie
- func (e *EnumType) String() string
- type ErrorType
- type Function
- func (f *Function) AddParam(p *Param)
- func (f *Function) AddReturnType(t Type)
- func (f *Function) Id() string
- func (f *Function) InitScope(parent interfaces.Scope) *parser.ParseError
- func (f *Function) Kind() interfaces.Kind
- func (f *Function) Scope() interfaces.Scope
- func (f *Function) SetEmbedder(embedder interfaces.Symbol)
- func (f *Function) Specie() interfaces.Specie
- type IntType
- type ListType
- type MapType
- type Param
- type Property
- type RealType
- type StringType
- type TimeSeriesType
- type TimeType
- type ToFindOutType
- type Type
Constants ¶
View Source
const ( CodeInt = 0 CodeReal = 1 CodeBool = 2 CodeString = 3 CodeTime = 4 CodeDate = 5 CodeTimeseries = 6 CodeEnum = 7 CodeClass = 8 CodeList = 9 CodeMap = 10 CodeError = 11 CodeToFindOut = -1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassType ¶
type ClassType struct {
Properties []*Property
Functions []*Function
Info *parser.Info
// contains filtered or unexported fields
}
func (*ClassType) AddFunction ¶
func (*ClassType) AddProperty ¶
func (*ClassType) InitScope ¶
func (t *ClassType) InitScope(parent interfaces.Scope) *parser.ParseError
func (*ClassType) Kind ¶
func (t *ClassType) Kind() interfaces.Kind
func (*ClassType) Scope ¶
func (t *ClassType) Scope() interfaces.Scope
func (*ClassType) Specie ¶
func (t *ClassType) Specie() interfaces.Specie
type EnumItem ¶
func (*EnumItem) InitScope ¶
func (e *EnumItem) InitScope(parent interfaces.Scope) *parser.ParseError
func (*EnumItem) Kind ¶
func (e *EnumItem) Kind() interfaces.Kind
func (*EnumItem) Scope ¶
func (e *EnumItem) Scope() interfaces.Scope
func (*EnumItem) Specie ¶
func (e *EnumItem) Specie() interfaces.Specie
type EnumType ¶
type EnumType struct {
IsInt bool
Items []*EnumItem
Info *parser.Info
// contains filtered or unexported fields
}
func (*EnumType) AssignCodes ¶
func (e *EnumType) AssignCodes()
func (*EnumType) InitScope ¶
func (e *EnumType) InitScope(parent interfaces.Scope) *parser.ParseError
func (*EnumType) Kind ¶
func (e *EnumType) Kind() interfaces.Kind
func (*EnumType) Scope ¶
func (e *EnumType) Scope() interfaces.Scope
func (*EnumType) Specie ¶
func (e *EnumType) Specie() interfaces.Specie
type Function ¶
type Function struct {
Class *data.FQIdentifier
Params []*Param
Returns []Type
Block *data.Block
Info *parser.Info
// contains filtered or unexported fields
}
func (*Function) AddReturnType ¶
func (*Function) InitScope ¶
func (f *Function) InitScope(parent interfaces.Scope) *parser.ParseError
func (*Function) Kind ¶
func (f *Function) Kind() interfaces.Kind
func (*Function) Scope ¶
func (f *Function) Scope() interfaces.Scope
func (*Function) SetEmbedder ¶
func (f *Function) SetEmbedder(embedder interfaces.Symbol)
func (*Function) Specie ¶
func (f *Function) Specie() interfaces.Specie
type MapType ¶
func NewMapType ¶
type Param ¶
func (*Param) InitScope ¶
func (p *Param) InitScope(parent interfaces.Scope) *parser.ParseError
func (*Param) Kind ¶
func (p *Param) Kind() interfaces.Kind
func (*Param) Scope ¶
func (p *Param) Scope() interfaces.Scope
func (*Param) Specie ¶
func (p *Param) Specie() interfaces.Specie
type Property ¶
func (*Property) InitScope ¶
func (p *Property) InitScope(parent interfaces.Scope) *parser.ParseError
func (*Property) Kind ¶
func (p *Property) Kind() interfaces.Kind
func (*Property) Scope ¶
func (p *Property) Scope() interfaces.Scope
func (*Property) Specie ¶
func (p *Property) Specie() interfaces.Specie
type StringType ¶
type StringType struct {
}
func NewStringType ¶
func NewStringType() *StringType
func (StringType) Code ¶
func (StringType) Code() int8
func (StringType) String ¶
func (StringType) String() string
type TimeSeriesType ¶
type TimeSeriesType struct {
SubType Type
}
func NewTimeSeriesType ¶
func NewTimeSeriesType(t Type) *TimeSeriesType
func (TimeSeriesType) Code ¶
func (TimeSeriesType) Code() int8
func (TimeSeriesType) String ¶
func (TimeSeriesType) String() string
type ToFindOutType ¶
type ToFindOutType struct {
Name *data.FQIdentifier
Info *parser.Info
}
func NewToFindOutType ¶
func NewToFindOutType(name *data.FQIdentifier, info *parser.Info) *ToFindOutType
func (*ToFindOutType) Code ¶
func (t *ToFindOutType) Code() int8
func (*ToFindOutType) String ¶
func (t *ToFindOutType) String() string
type Type ¶
func ConvertKeyType ¶
func ConvertKeyType(tree parser.IKeyTypeContext) Type
func ConvertType ¶
func ConvertType(tree parser.ITypeContext) Type
Click to show internal directories.
Click to hide internal directories.