Documentation
¶
Index ¶
- type Argument
- type Attribute
- type BlockStatement
- type Boolean
- type CallExpression
- type Comma
- type CommentStatement
- type ConstStatement
- type DecoratorClass
- type DecoratorDefault
- type DecoratorEnvironment
- type DecoratorFactor
- type DecoratorGeneric
- type DecoratorMatrix
- type DeferStatement
- type Expression
- type ExpressionStatement
- type FloatLiteral
- type For
- type FunctionLiteral
- type Identifier
- type IfExpression
- type InfixExpression
- type IntegerLiteral
- type Keyword
- type LetStatement
- type NewLine
- type Node
- type Null
- type Parameter
- type PrefixExpression
- type Program
- type ReturnStatement
- type Square
- type SquareRightLiteral
- type Statement
- type StringLiteral
- type Type
- type TypeAttributesStatement
- type TypeFunction
- type TypeStatement
- type Types
- type VectorLiteral
- type While
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
func (*Attribute) TokenLiteral ¶
type BlockStatement ¶
func (*BlockStatement) Item ¶
func (bs *BlockStatement) Item() token.Item
func (*BlockStatement) String ¶
func (bs *BlockStatement) String() string
func (*BlockStatement) TokenLiteral ¶
func (bs *BlockStatement) TokenLiteral() string
type Boolean ¶
func (*Boolean) TokenLiteral ¶
type CallExpression ¶
type CallExpression struct {
Token token.Item // The '(' token
Function string // Identifier or FunctionLiteral
Name string
Arguments []Argument
}
func (*CallExpression) Item ¶
func (ce *CallExpression) Item() token.Item
func (*CallExpression) String ¶
func (ce *CallExpression) String() string
func (*CallExpression) TokenLiteral ¶
func (ce *CallExpression) TokenLiteral() string
type CommentStatement ¶
func (*CommentStatement) Item ¶
func (c *CommentStatement) Item() token.Item
func (*CommentStatement) String ¶
func (c *CommentStatement) String() string
func (*CommentStatement) TokenLiteral ¶
func (c *CommentStatement) TokenLiteral() string
type ConstStatement ¶
type ConstStatement struct {
Token token.Item
Name string
Type Types
Value Expression
}
func (*ConstStatement) Item ¶
func (cs *ConstStatement) Item() token.Item
func (*ConstStatement) String ¶
func (cs *ConstStatement) String() string
func (*ConstStatement) TokenLiteral ¶
func (cs *ConstStatement) TokenLiteral() string
type DecoratorClass ¶
type DecoratorClass struct {
Token token.Item // The 'class' token
Classes []string
Type *TypeStatement
}
func (*DecoratorClass) Item ¶
func (d *DecoratorClass) Item() token.Item
func (*DecoratorClass) String ¶
func (d *DecoratorClass) String() string
func (*DecoratorClass) TokenLiteral ¶
func (d *DecoratorClass) TokenLiteral() string
type DecoratorDefault ¶
type DecoratorDefault struct {
Token token.Item // The 'generic' token
Func Expression
}
func (*DecoratorDefault) Item ¶
func (d *DecoratorDefault) Item() token.Item
func (*DecoratorDefault) String ¶
func (d *DecoratorDefault) String() string
func (*DecoratorDefault) TokenLiteral ¶
func (d *DecoratorDefault) TokenLiteral() string
type DecoratorEnvironment ¶ added in v0.0.6
type DecoratorEnvironment struct {
Token token.Item
Arguments []Argument
Type *TypeStatement
}
func (*DecoratorEnvironment) Item ¶ added in v0.0.6
func (d *DecoratorEnvironment) Item() token.Item
func (*DecoratorEnvironment) String ¶ added in v0.0.6
func (d *DecoratorEnvironment) String() string
func (*DecoratorEnvironment) TokenLiteral ¶ added in v0.0.6
func (d *DecoratorEnvironment) TokenLiteral() string
type DecoratorFactor ¶
type DecoratorFactor struct {
Token token.Item
Arguments []Argument
Type *TypeStatement
}
func (*DecoratorFactor) Item ¶
func (d *DecoratorFactor) Item() token.Item
func (*DecoratorFactor) String ¶
func (d *DecoratorFactor) String() string
func (*DecoratorFactor) TokenLiteral ¶
func (d *DecoratorFactor) TokenLiteral() string
type DecoratorGeneric ¶
type DecoratorGeneric struct {
Token token.Item // The 'generic' token
Func Expression
}
func (*DecoratorGeneric) Item ¶
func (d *DecoratorGeneric) Item() token.Item
func (*DecoratorGeneric) String ¶
func (d *DecoratorGeneric) String() string
func (*DecoratorGeneric) TokenLiteral ¶
func (d *DecoratorGeneric) TokenLiteral() string
type DecoratorMatrix ¶
type DecoratorMatrix struct {
Token token.Item
Arguments []Argument
Type *TypeStatement
}
func (*DecoratorMatrix) Item ¶
func (d *DecoratorMatrix) Item() token.Item
func (*DecoratorMatrix) String ¶
func (d *DecoratorMatrix) String() string
func (*DecoratorMatrix) TokenLiteral ¶
func (d *DecoratorMatrix) TokenLiteral() string
type DeferStatement ¶
type DeferStatement struct {
Token token.Item
Func Expression
}
func (*DeferStatement) Item ¶
func (ds *DeferStatement) Item() token.Item
func (*DeferStatement) String ¶
func (ds *DeferStatement) String() string
func (*DeferStatement) TokenLiteral ¶
func (ds *DeferStatement) TokenLiteral() string
type Expression ¶
type Expression interface {
Node
// contains filtered or unexported methods
}
type ExpressionStatement ¶
type ExpressionStatement struct {
Token token.Item // the first token of the expression
Expression Expression
}
func (*ExpressionStatement) Item ¶
func (es *ExpressionStatement) Item() token.Item
func (*ExpressionStatement) String ¶
func (es *ExpressionStatement) String() string
func (*ExpressionStatement) TokenLiteral ¶
func (es *ExpressionStatement) TokenLiteral() string
type FloatLiteral ¶
func (*FloatLiteral) Item ¶
func (fl *FloatLiteral) Item() token.Item
func (*FloatLiteral) String ¶
func (fl *FloatLiteral) String() string
func (*FloatLiteral) TokenLiteral ¶
func (fl *FloatLiteral) TokenLiteral() string
type For ¶
type For struct {
Token token.Item
Name *LetStatement
Vector Expression
Value *BlockStatement
}
func (*For) TokenLiteral ¶
type FunctionLiteral ¶
type FunctionLiteral struct {
Token token.Item // The 'func' token
Name string
NameToken token.Item
Operator string
MethodVariable string
Method *Type
ReturnType Types
Parameters []*Parameter
Body *BlockStatement
}
func (*FunctionLiteral) Item ¶
func (fl *FunctionLiteral) Item() token.Item
func (*FunctionLiteral) String ¶
func (fl *FunctionLiteral) String() string
func (*FunctionLiteral) TokenLiteral ¶
func (fl *FunctionLiteral) TokenLiteral() string
type Identifier ¶
func (*Identifier) Item ¶
func (i *Identifier) Item() token.Item
func (*Identifier) String ¶
func (i *Identifier) String() string
func (*Identifier) TokenLiteral ¶
func (i *Identifier) TokenLiteral() string
type IfExpression ¶
type IfExpression struct {
Token token.Item // The 'if' token
Condition Expression
Consequence *BlockStatement
Alternative *BlockStatement
}
func (*IfExpression) Item ¶
func (ie *IfExpression) Item() token.Item
func (*IfExpression) String ¶
func (ie *IfExpression) String() string
func (*IfExpression) TokenLiteral ¶
func (ie *IfExpression) TokenLiteral() string
type InfixExpression ¶
type InfixExpression struct {
Token token.Item // The operator token, e.g. +
Left Expression
Operator string
Right Expression
}
func (*InfixExpression) Item ¶
func (ie *InfixExpression) Item() token.Item
func (*InfixExpression) String ¶
func (ie *InfixExpression) String() string
func (*InfixExpression) TokenLiteral ¶
func (ie *InfixExpression) TokenLiteral() string
type IntegerLiteral ¶
func (*IntegerLiteral) Item ¶
func (il *IntegerLiteral) Item() token.Item
func (*IntegerLiteral) String ¶
func (il *IntegerLiteral) String() string
func (*IntegerLiteral) TokenLiteral ¶
func (il *IntegerLiteral) TokenLiteral() string
type Keyword ¶
func (*Keyword) TokenLiteral ¶
type LetStatement ¶
type LetStatement struct {
Token token.Item
Name string
Type Types
Value Expression
}
Statements
func (*LetStatement) Item ¶
func (ls *LetStatement) Item() token.Item
func (*LetStatement) String ¶
func (ls *LetStatement) String() string
func (*LetStatement) TokenLiteral ¶
func (ls *LetStatement) TokenLiteral() string
type NewLine ¶
func (*NewLine) TokenLiteral ¶
type Null ¶
func (*Null) TokenLiteral ¶
type Parameter ¶
type Parameter struct {
Token token.Item // The 'func' token
Name string
Operator string
Type Types
Default *ExpressionStatement
Method bool
}
func (*Parameter) TokenLiteral ¶
type PrefixExpression ¶
type PrefixExpression struct {
Token token.Item // The prefix token, e.g. !
Operator string
Right Expression
}
func (*PrefixExpression) Item ¶
func (pe *PrefixExpression) Item() token.Item
func (*PrefixExpression) String ¶
func (pe *PrefixExpression) String() string
func (*PrefixExpression) TokenLiteral ¶
func (pe *PrefixExpression) TokenLiteral() string
type ReturnStatement ¶
type ReturnStatement struct {
Token token.Item
ReturnValue Expression
}
func (*ReturnStatement) Item ¶
func (rs *ReturnStatement) Item() token.Item
func (*ReturnStatement) String ¶
func (rs *ReturnStatement) String() string
func (*ReturnStatement) TokenLiteral ¶
func (rs *ReturnStatement) TokenLiteral() string
type Square ¶
func (*Square) TokenLiteral ¶
type SquareRightLiteral ¶
func (*SquareRightLiteral) Item ¶
func (s *SquareRightLiteral) Item() token.Item
func (*SquareRightLiteral) String ¶
func (s *SquareRightLiteral) String() string
func (*SquareRightLiteral) TokenLiteral ¶
func (s *SquareRightLiteral) TokenLiteral() string
type StringLiteral ¶
func (*StringLiteral) Item ¶
func (sl *StringLiteral) Item() token.Item
func (*StringLiteral) String ¶
func (sl *StringLiteral) String() string
func (*StringLiteral) TokenLiteral ¶
func (sl *StringLiteral) TokenLiteral() string
type TypeAttributesStatement ¶
func (*TypeAttributesStatement) Item ¶
func (ta *TypeAttributesStatement) Item() token.Item
func (*TypeAttributesStatement) String ¶
func (ta *TypeAttributesStatement) String() string
func (*TypeAttributesStatement) TokenLiteral ¶
func (ta *TypeAttributesStatement) TokenLiteral() string
type TypeFunction ¶
type TypeFunction struct {
Token token.Item // type token
Name string
Arguments []Types
Return Types
}
func (*TypeFunction) Item ¶
func (tf *TypeFunction) Item() token.Item
func (*TypeFunction) String ¶
func (tf *TypeFunction) String() string
func (*TypeFunction) TokenLiteral ¶
func (tf *TypeFunction) TokenLiteral() string
type TypeStatement ¶
type TypeStatement struct {
Token token.Item // type token
Name string
Object string
Type Types
Attributes []*TypeAttributesStatement
}
func (*TypeStatement) Item ¶
func (ts *TypeStatement) Item() token.Item
func (*TypeStatement) String ¶
func (ts *TypeStatement) String() string
func (*TypeStatement) TokenLiteral ¶
func (ts *TypeStatement) TokenLiteral() string
type VectorLiteral ¶
type VectorLiteral struct {
Token token.Item
Value []Expression
}
func (*VectorLiteral) Item ¶
func (v *VectorLiteral) Item() token.Item
func (*VectorLiteral) String ¶
func (v *VectorLiteral) String() string
func (*VectorLiteral) TokenLiteral ¶
func (v *VectorLiteral) TokenLiteral() string
Click to show internal directories.
Click to hide internal directories.