Documentation ¶
Index ¶
- type AssignmentStatement
- type BreakStatement
- type ContinueStatement
- type Definition
- type ElseClause
- type ElseifClause
- type Expression
- type ForeachStatement
- type ForincStatement
- type FunctionCall
- type FunctionDefinition
- type GlobalDefinition
- type IfStatement
- type LocalsStatement
- type MethodCall
- type Operation
- type Package
- type ReturnStatement
- type Statement
- type Token
- type TokenType
- type WhileStatement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentStatement ¶
type AssignmentStatement struct { LineNumber int Column int Target string Value Expression }
func (AssignmentStatement) Line ¶
func (t AssignmentStatement) Line() int
func (AssignmentStatement) Statement ¶
func (t AssignmentStatement) Statement()
type BreakStatement ¶
func (BreakStatement) Line ¶
func (t BreakStatement) Line() int
func (BreakStatement) Statement ¶
func (t BreakStatement) Statement()
type ContinueStatement ¶
func (ContinueStatement) Line ¶
func (t ContinueStatement) Line() int
func (ContinueStatement) Statement ¶
func (t ContinueStatement) Statement()
type Definition ¶
type Definition interface { Definition() Line() int }
type ElseClause ¶
type ElseifClause ¶
type ElseifClause struct { LineNumber int Column int Condition Expression Body []Statement }
type Expression ¶
type Expression interface { Expression() Line() int }
type ForeachStatement ¶
type ForeachStatement struct { LineNumber int Column int IndexName string ValName string Collection Expression Body []Statement }
func (ForeachStatement) Line ¶
func (t ForeachStatement) Line() int
func (ForeachStatement) Statement ¶
func (t ForeachStatement) Statement()
type ForincStatement ¶
type ForincStatement struct { LineNumber int Column int IndexName string StartVal Expression EndVal Expression Body []Statement Dec bool }
func (ForincStatement) Line ¶
func (t ForincStatement) Line() int
func (ForincStatement) Statement ¶
func (t ForincStatement) Statement()
type FunctionCall ¶
type FunctionCall struct { LineNumber int Column int Function Expression // either an identifier or another function/operator call Arguments []Expression }
func (FunctionCall) Expression ¶
func (t FunctionCall) Expression()
func (FunctionCall) Line ¶
func (t FunctionCall) Line() int
func (FunctionCall) Statement ¶
func (t FunctionCall) Statement()
type FunctionDefinition ¶
type FunctionDefinition struct { LineNumber int Column int Name string Parameters []string Body []Statement Pkg *Package }
func (FunctionDefinition) Definition ¶
func (t FunctionDefinition) Definition()
func (FunctionDefinition) Line ¶
func (t FunctionDefinition) Line() int
type GlobalDefinition ¶
type GlobalDefinition struct { LineNumber int Column int Name string Value Expression Pkg *Package }
func (GlobalDefinition) Definition ¶
func (t GlobalDefinition) Definition()
func (GlobalDefinition) Line ¶
func (t GlobalDefinition) Line() int
type IfStatement ¶
type IfStatement struct { LineNumber int Column int Condition Expression Body []Statement Elifs []ElseifClause Else ElseClause }
func (IfStatement) Line ¶
func (t IfStatement) Line() int
func (IfStatement) Statement ¶
func (t IfStatement) Statement()
type LocalsStatement ¶
func (LocalsStatement) Line ¶
func (t LocalsStatement) Line() int
func (LocalsStatement) Statement ¶
func (t LocalsStatement) Statement()
type MethodCall ¶
type MethodCall struct { LineNumber int Column int MethodName string // either an identifier or another function/operator call Receiver Expression Arguments []Expression }
type Operation ¶
type Operation struct { LineNumber int Column int Operator string Operands []Expression }
func (Operation) Expression ¶
func (t Operation) Expression()
type Package ¶
type Package struct { Globals map[string]GlobalDefinition ValidBreakpoints map[string]bool Funcs map[string]FunctionDefinition Code string }
type ReturnStatement ¶
type ReturnStatement struct { LineNumber int Column int Value Expression }
func (ReturnStatement) Line ¶
func (t ReturnStatement) Line() int
func (ReturnStatement) Statement ¶
func (t ReturnStatement) Statement()
type Token ¶
type Token struct { Type TokenType Content string // the token itself, e.g. a number 3.7 is stored here as "3.7" LineNumber int // first line is line 1 Column int // first character of a line is in column 1 }
func (Token) Expression ¶
func (t Token) Expression()
type WhileStatement ¶
type WhileStatement struct { LineNumber int Column int Condition Expression Body []Statement }
func (WhileStatement) Line ¶
func (t WhileStatement) Line() int
func (WhileStatement) Statement ¶
func (t WhileStatement) Statement()
Click to show internal directories.
Click to hide internal directories.