Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binary ¶
type Binary struct {
X ast.Expression //left operand
Token ast.Token
Y ast.Expression //left operand
}
Binary represents binary expressions
func BinaryExpression ¶
func BinaryExpression(left ast.Expression, token ast.Token, right ast.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 BoolExpression ¶
BoolExpression creates bool literal
func NumberExpression ¶
NumberExpression creates number literal
func StringExpression ¶
StringExpression 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 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.