Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binary ¶
type Binary struct {
X ast2.Expression //left operand
Token ast2.Token
Y ast2.Expression //left operand
}
Binary represents binary expressions
func BinaryExpression ¶
func BinaryExpression(left ast2.Expression, token ast2.Token, right ast2.Expression) *Binary
BinaryExpression creates new *Binary
type Call ¶
type Call struct {
Args []ast.Expression
X ast.Expression
}
Call represents function call
type Literal ¶
Literal represents constant value i.e. 1, "foo" etc
func BoolLiteral ¶ added in v0.2.0
BoolLiteral creates bool literal
func NumberLiteral ¶ added in v0.2.0
NumberLiteral creates number literal
func StringLiteral ¶ added in v0.2.0
StringLiteral creates string literal
type Parentheses ¶
type Parentheses struct {
P ast.Expression
}
Parentheses used to add precedence to the expression over other expression
func (*Parentheses) Type ¶
func (p *Parentheses) Type() reflect.Type
type Select ¶
type Select struct {
ID string
X ast.Expression
FullName string
}
Select represents dynamic variable
type SliceIndex ¶
type SliceIndex struct {
X ast.Expression
Y ast.Expression
}
SliceIndex represents slice accessor
func (*SliceIndex) Type ¶
func (s *SliceIndex) Type() reflect.Type
Click to show internal directories.
Click to hide internal directories.