Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayLiteral ¶
type ArrayLiteral struct {
Token token.Token
Elems []Expression
}
func (*ArrayLiteral) String ¶
func (il *ArrayLiteral) String() string
func (*ArrayLiteral) TokenLiteral ¶
func (il *ArrayLiteral) TokenLiteral() string
type Boolean ¶
func (*Boolean) TokenLiteral ¶
type CallExpression ¶
type CallExpression struct {
Token token.Token // The '(' token
Function Expression // Identifier or FunctionLiteral
Arguments []Expression
}
func (*CallExpression) String ¶
func (ce *CallExpression) String() string
func (*CallExpression) TokenLiteral ¶
func (ce *CallExpression) TokenLiteral() string
type Expression ¶
type Expression interface {
Node
// contains filtered or unexported methods
}
All expression nodes implement this
type ExpressionStatement ¶
type ExpressionStatement struct {
Token token.Token // the first token of the expression
Expression Expression
}
func (*ExpressionStatement) String ¶
func (es *ExpressionStatement) String() string
func (*ExpressionStatement) TokenLiteral ¶
func (es *ExpressionStatement) TokenLiteral() string
type FloatLiteral ¶
func (*FloatLiteral) GetVal ¶
func (il *FloatLiteral) GetVal() interface{}
func (*FloatLiteral) String ¶
func (il *FloatLiteral) String() string
func (*FloatLiteral) TokenLiteral ¶
func (il *FloatLiteral) TokenLiteral() string
type Identifier ¶
Expressions
func (*Identifier) String ¶
func (i *Identifier) String() string
func (*Identifier) TokenLiteral ¶
func (i *Identifier) TokenLiteral() string
type InfixExpression ¶
type InfixExpression struct {
Token token.Token // The operator token, e.g. +
Left Expression
Operator string
Right Expression
}
func (*InfixExpression) String ¶
func (oe *InfixExpression) String() string
func (*InfixExpression) TokenLiteral ¶
func (oe *InfixExpression) TokenLiteral() string
type IntegerLiteral ¶
func (*IntegerLiteral) GetVal ¶
func (il *IntegerLiteral) GetVal() interface{}
func (*IntegerLiteral) String ¶
func (il *IntegerLiteral) String() string
func (*IntegerLiteral) TokenLiteral ¶
func (il *IntegerLiteral) TokenLiteral() string
type NullLiteral ¶
func (*NullLiteral) GetVal ¶
func (il *NullLiteral) GetVal() interface{}
func (*NullLiteral) String ¶
func (il *NullLiteral) String() string
func (*NullLiteral) TokenLiteral ¶
func (il *NullLiteral) TokenLiteral() string
type PrefixExpression ¶
type PrefixExpression struct {
Token token.Token // The prefix token, e.g. !
Operator string
Right Expression
}
func (*PrefixExpression) String ¶
func (pe *PrefixExpression) String() string
func (*PrefixExpression) TokenLiteral ¶
func (pe *PrefixExpression) TokenLiteral() string
type Statement ¶
type Statement interface {
Node
// contains filtered or unexported methods
}
All statement nodes implement this
type StringLiteral ¶
func (*StringLiteral) GetVal ¶
func (il *StringLiteral) GetVal() interface{}
func (*StringLiteral) String ¶
func (il *StringLiteral) String() string
func (*StringLiteral) TokenLiteral ¶
func (il *StringLiteral) TokenLiteral() string
Click to show internal directories.
Click to hide internal directories.