Documentation ¶
Index ¶
- type BlockStatement
- type CallExpression
- type CommentLiteral
- type ConditionalExpression
- type ConstStatement
- type Expression
- type ExpressionStatement
- type ForLiteral
- type Identifier
- type InfixExpression
- type IntegerLiteral
- type Node
- type PrefixExpression
- type ProcedureLiteral
- type Program
- type ProgramLiteral
- type RealLiteral
- type Statement
- type VarStatement
- type WhileLiteral
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockStatement ¶
BlockStatement :
func (*BlockStatement) TokenLiteral ¶
func (bs *BlockStatement) TokenLiteral() string
TokenLiteral :
type CallExpression ¶
type CallExpression struct { Token token.Token Procedure Expression Arguments []Expression }
CallExpression :
func (*CallExpression) TokenLiteral ¶
func (ce *CallExpression) TokenLiteral() string
TokenLiteral :
type CommentLiteral ¶
CommentLiteral :
func (*CommentLiteral) TokenLiteral ¶
func (cl *CommentLiteral) TokenLiteral() string
TokenLiteral :
type ConditionalExpression ¶
type ConditionalExpression struct { Token token.Token Condition Expression Consequence *BlockStatement Alternative *BlockStatement }
ConditionalExpression :
func (*ConditionalExpression) TokenLiteral ¶
func (ce *ConditionalExpression) TokenLiteral() string
TokenLiteral :
type ConstStatement ¶
type ConstStatement struct { Token token.Token Type token.Token Name *Identifier Value Expression }
ConstStatement :
func (*ConstStatement) TokenLiteral ¶
func (cs *ConstStatement) TokenLiteral() string
TokenLiteral :
type Expression ¶
type Expression interface { Node // contains filtered or unexported methods }
Expression :
type ExpressionStatement ¶
type ExpressionStatement struct { // The first token of the expression Token token.Token Expression Expression }
ExpressionStatement :
func (*ExpressionStatement) TokenLiteral ¶
func (es *ExpressionStatement) TokenLiteral() string
TokenLiteral :
type ForLiteral ¶
ForLiteral :
type Identifier ¶
Identifier :
type InfixExpression ¶
type InfixExpression struct { Token token.Token Left Expression Operator string Right Expression }
InfixExpression :
func (*InfixExpression) TokenLiteral ¶
func (ie *InfixExpression) TokenLiteral() string
TokenLiteral :
type IntegerLiteral ¶
IntegerLiteral :
func (*IntegerLiteral) TokenLiteral ¶
func (il *IntegerLiteral) TokenLiteral() string
TokenLiteral :
type PrefixExpression ¶
type PrefixExpression struct { Token token.Token Operator string Right Expression }
PrefixExpression :
func (*PrefixExpression) TokenLiteral ¶
func (pe *PrefixExpression) TokenLiteral() string
TokenLiteral :
type ProcedureLiteral ¶
type ProcedureLiteral struct { Token token.Token Name string Parameters []*Identifier Body *BlockStatement }
ProcedureLiteral :
func (*ProcedureLiteral) TokenLiteral ¶
func (pl *ProcedureLiteral) TokenLiteral() string
TokenLiteral :
type ProgramLiteral ¶
ProgramLiteral :
func (*ProgramLiteral) TokenLiteral ¶
func (pl *ProgramLiteral) TokenLiteral() string
TokenLiteral :
type RealLiteral ¶
RealLiteral :
type Statement ¶
type Statement interface { Node // contains filtered or unexported methods }
Statement :
type VarStatement ¶
type VarStatement struct { Token token.Token Type token.Token Name *Identifier Value Expression }
VarStatement :
type WhileLiteral ¶
type WhileLiteral struct { Token token.Token Condition Expression }
WhileLiteral :
Click to show internal directories.
Click to hide internal directories.