Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BooleanLiteral ¶
func (*BooleanLiteral) End ¶
func (b *BooleanLiteral) End() token.Position
func (*BooleanLiteral) Pos ¶
func (b *BooleanLiteral) Pos() token.Position
func (*BooleanLiteral) String ¶
func (b *BooleanLiteral) String() string
func (*BooleanLiteral) TokenLiteral ¶
func (b *BooleanLiteral) TokenLiteral() string
type Expression ¶
type Expression interface { Node // contains filtered or unexported methods }
type Identifier ¶
func (*Identifier) End ¶
func (i *Identifier) End() token.Position
func (*Identifier) Pos ¶
func (i *Identifier) Pos() token.Position
func (*Identifier) String ¶
func (i *Identifier) String() string
func (*Identifier) TokenLiteral ¶
func (i *Identifier) TokenLiteral() string
type InfixExpression ¶
type InfixExpression struct { Token token.Token Operator string Right Expression Left Expression }
1 + 2 * 3
func (*InfixExpression) End ¶
func (ie *InfixExpression) End() token.Position
func (*InfixExpression) Pos ¶
func (ie *InfixExpression) Pos() token.Position
func (*InfixExpression) String ¶
func (ie *InfixExpression) String() string
func (*InfixExpression) TokenLiteral ¶
func (ie *InfixExpression) TokenLiteral() string
type NilLiteral ¶
func (*NilLiteral) End ¶
func (n *NilLiteral) End() token.Position
func (*NilLiteral) Pos ¶
func (n *NilLiteral) Pos() token.Position
func (*NilLiteral) String ¶
func (n *NilLiteral) String() string
func (*NilLiteral) TokenLiteral ¶
func (n *NilLiteral) TokenLiteral() string
type NumberLiteral ¶
func (*NumberLiteral) End ¶
func (nl *NumberLiteral) End() token.Position
func (*NumberLiteral) Pos ¶
func (nl *NumberLiteral) Pos() token.Position
func (*NumberLiteral) String ¶
func (nl *NumberLiteral) String() string
func (*NumberLiteral) TokenLiteral ¶
func (nl *NumberLiteral) TokenLiteral() string
type PrefixExpression ¶
type PrefixExpression struct { Token token.Token Operator string Right Expression }
-2, -3
func (*PrefixExpression) End ¶
func (pe *PrefixExpression) End() token.Position
func (*PrefixExpression) Pos ¶
func (pe *PrefixExpression) Pos() token.Position
func (*PrefixExpression) String ¶
func (pe *PrefixExpression) String() string
func (*PrefixExpression) TokenLiteral ¶
func (pe *PrefixExpression) TokenLiteral() string
Click to show internal directories.
Click to hide internal directories.