Documentation ¶
Index ¶
- type AreaStatement
- type AskBlocksizeStatement
- type AskMouseStatement
- type BindStatement
- type BlockStatement
- type Boolean
- type ByeStatement
- type CallExpression
- type ChdirStatement
- type CircleStatement
- type ClearblockStatement
- type ClgStatement
- type CloseStatement
- type ClsStatement
- type CopyblockStatement
- type CreateStatement
- type DataStatement
- type DelblockStatement
- type DimStatement
- type DimStatementPayloadItem
- type DirStatement
- type EditStatement
- type EndStatement
- type EndfunStatement
- type EndprocStatement
- type EraseStatement
- type Expression
- type ExpressionStatement
- type FetchStatement
- type FloodStatement
- type ForStatement
- type FunctionDeclaration
- type GetStatement
- type GlobalStatement
- type GosubStatement
- type GotoStatement
- type HomeStatement
- type Identifier
- type IfExpression
- type IfStatement
- type InfixExpression
- type InputStatement
- type KeepStatement
- type LeaveStatement
- type LetStatement
- type Line
- type LineStatement
- type ListStatement
- type LoadStatement
- type MkdirStatement
- type MoveStatement
- type NewStatement
- type NextStatement
- type Node
- type NoiseStatement
- type NoteStatement
- type NumericLiteral
- type OpenStatement
- type PlotStatement
- type PointsStatement
- type PrefixExpression
- type PrintStatement
- type ProcedureCallStatement
- type ProcedureDeclaration
- type Program
- type PutStatement
- type ReadStatement
- type ReadblockStatement
- type RemStatement
- type RenameStatement
- type RenumberStatement
- type RepeatStatement
- type RestoreStatement
- type ResultStatement
- type ReturnStatement
- type RmdirStatement
- type RunStatement
- type SaveStatement
- type SetBorderStatement
- type SetColourStatement
- type SetConfigBootStatement
- type SetCurposStatement
- type SetDegStatement
- type SetDrawingStatement
- type SetEnvelopeStatement
- type SetFillStyleStatement
- type SetModeStatement
- type SetMouseStatement
- type SetPaperStatement
- type SetPatternStatement
- type SetPenStatement
- type SetRadStatement
- type SetSoundStatement
- type SetToneStatement
- type SetVoiceStatement
- type SetWritingStatement
- type SquashStatement
- type Statement
- type StringLiteral
- type SubroutineStatement
- type UntilStatement
- type WriteblockStatement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AreaStatement ¶
type AreaStatement struct { Token token.Token CoordList []Expression Brush Expression Over Expression FillStyle Expression FillHatching Expression FillColour2 Expression }
func (*AreaStatement) String ¶
func (ps *AreaStatement) String() string
func (*AreaStatement) TokenLiteral ¶
func (ps *AreaStatement) TokenLiteral() string
type AskBlocksizeStatement ¶
type AskBlocksizeStatement struct { Token token.Token Block Expression Width *Identifier Height *Identifier Mode *Identifier }
func (*AskBlocksizeStatement) String ¶
func (s *AskBlocksizeStatement) String() string
func (*AskBlocksizeStatement) TokenLiteral ¶
func (s *AskBlocksizeStatement) TokenLiteral() string
type AskMouseStatement ¶
type AskMouseStatement struct { Token token.Token XName *Identifier YName *Identifier BName *Identifier }
func (*AskMouseStatement) String ¶
func (s *AskMouseStatement) String() string
func (*AskMouseStatement) TokenLiteral ¶
func (s *AskMouseStatement) TokenLiteral() string
type BindStatement ¶
type BindStatement struct { Name *Identifier Token token.Token // the token.Equal or token.Assign Value Expression }
func (*BindStatement) String ¶
func (bs *BindStatement) String() string
func (*BindStatement) TokenLiteral ¶
func (bs *BindStatement) TokenLiteral() string
type BlockStatement ¶
redundant?
func (*BlockStatement) String ¶
func (bs *BlockStatement) String() string
func (*BlockStatement) TokenLiteral ¶
func (bs *BlockStatement) TokenLiteral() string
type Boolean ¶
func (*Boolean) TokenLiteral ¶
type ByeStatement ¶
func (*ByeStatement) String ¶
func (bs *ByeStatement) String() string
func (*ByeStatement) TokenLiteral ¶
func (bs *ByeStatement) TokenLiteral() string
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 ChdirStatement ¶
type ChdirStatement struct { Token token.Token Value Expression }
func (*ChdirStatement) String ¶
func (s *ChdirStatement) String() string
func (*ChdirStatement) TokenLiteral ¶
func (s *ChdirStatement) TokenLiteral() string
type CircleStatement ¶
type CircleStatement struct { Token token.Token Radius Expression CoordList []Expression Brush Expression Over Expression FillStyle Expression FillHatching Expression FillColour2 Expression }
func (*CircleStatement) String ¶
func (s *CircleStatement) String() string
func (*CircleStatement) TokenLiteral ¶
func (s *CircleStatement) TokenLiteral() string
type ClearblockStatement ¶
func (*ClearblockStatement) String ¶
func (s *ClearblockStatement) String() string
func (*ClearblockStatement) TokenLiteral ¶
func (s *ClearblockStatement) TokenLiteral() string
type ClgStatement ¶
func (*ClgStatement) String ¶
func (bs *ClgStatement) String() string
func (*ClgStatement) TokenLiteral ¶
func (bs *ClgStatement) TokenLiteral() string
type CloseStatement ¶
type CloseStatement struct { Token token.Token Channel Expression }
func (*CloseStatement) String ¶
func (s *CloseStatement) String() string
func (*CloseStatement) TokenLiteral ¶
func (s *CloseStatement) TokenLiteral() string
type ClsStatement ¶
type ClsStatement struct { Token token.Token TextBoxSlot Expression }
func (*ClsStatement) String ¶
func (s *ClsStatement) String() string
func (*ClsStatement) TokenLiteral ¶
func (s *ClsStatement) TokenLiteral() string
type CopyblockStatement ¶
type CopyblockStatement struct { Token token.Token X1 Expression Y1 Expression X2 Expression Y2 Expression Dx Expression Dy Expression Over Expression }
func (*CopyblockStatement) String ¶
func (s *CopyblockStatement) String() string
func (*CopyblockStatement) TokenLiteral ¶
func (s *CopyblockStatement) TokenLiteral() string
type CreateStatement ¶
type CreateStatement struct { Token token.Token Channel Expression Path Expression }
func (*CreateStatement) String ¶
func (s *CreateStatement) String() string
func (*CreateStatement) TokenLiteral ¶
func (s *CreateStatement) TokenLiteral() string
type DataStatement ¶
func (*DataStatement) String ¶
func (ps *DataStatement) String() string
func (*DataStatement) TokenLiteral ¶
func (ps *DataStatement) TokenLiteral() string
type DelblockStatement ¶
type DelblockStatement struct { Token token.Token Block Expression }
func (*DelblockStatement) String ¶
func (s *DelblockStatement) String() string
func (*DelblockStatement) TokenLiteral ¶
func (s *DelblockStatement) TokenLiteral() string
type DimStatement ¶
type DimStatement struct { Token token.Token Payload []DimStatementPayloadItem }
func (*DimStatement) String ¶
func (s *DimStatement) String() string
func (*DimStatement) TokenLiteral ¶
func (s *DimStatement) TokenLiteral() string
type DimStatementPayloadItem ¶
type DimStatementPayloadItem struct { Name *Identifier Subscripts []Expression }
type DirStatement ¶
type DirStatement struct { Token token.Token Channel Expression TextBoxSlot Expression Value Expression }
func (*DirStatement) String ¶
func (s *DirStatement) String() string
func (*DirStatement) TokenLiteral ¶
func (s *DirStatement) TokenLiteral() string
type EditStatement ¶
func (*EditStatement) String ¶
func (s *EditStatement) String() string
func (*EditStatement) TokenLiteral ¶
func (s *EditStatement) TokenLiteral() string
type EndStatement ¶
func (*EndStatement) String ¶
func (bs *EndStatement) String() string
func (*EndStatement) TokenLiteral ¶
func (bs *EndStatement) TokenLiteral() string
type EndfunStatement ¶
func (*EndfunStatement) String ¶
func (bs *EndfunStatement) String() string
func (*EndfunStatement) TokenLiteral ¶
func (bs *EndfunStatement) TokenLiteral() string
type EndprocStatement ¶
func (*EndprocStatement) String ¶
func (bs *EndprocStatement) String() string
func (*EndprocStatement) TokenLiteral ¶
func (bs *EndprocStatement) TokenLiteral() string
type EraseStatement ¶
type EraseStatement struct { Token token.Token Value Expression }
func (*EraseStatement) String ¶
func (s *EraseStatement) String() string
func (*EraseStatement) TokenLiteral ¶
func (s *EraseStatement) TokenLiteral() string
type Expression ¶
type Expression interface { Node // contains filtered or unexported methods }
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 FetchStatement ¶
type FetchStatement struct { Token token.Token Block Expression Path Expression }
func (*FetchStatement) String ¶
func (s *FetchStatement) String() string
func (*FetchStatement) TokenLiteral ¶
func (s *FetchStatement) TokenLiteral() string
type FloodStatement ¶
type FloodStatement struct { Token token.Token CoordList []Expression Brush Expression UseEdgeColour Expression EdgeColour Expression FillStyle Expression FillHatching Expression FillColour2 Expression }
func (*FloodStatement) String ¶
func (s *FloodStatement) String() string
func (*FloodStatement) TokenLiteral ¶
func (s *FloodStatement) TokenLiteral() string
type ForStatement ¶
type ForStatement struct { Token token.Token Name *Identifier BindToken token.Token Start Expression Stop Expression Step Expression LineNumber int StatementNumber int StartValue float64 StopValue float64 StepValue float64 }
func (*ForStatement) String ¶
func (s *ForStatement) String() string
func (*ForStatement) TokenLiteral ¶
func (s *ForStatement) TokenLiteral() string
type FunctionDeclaration ¶
type FunctionDeclaration struct { Token token.Token Name *Identifier LineNumber int StatementNumber int ReceiveArgs []*Identifier }
func (*FunctionDeclaration) String ¶
func (s *FunctionDeclaration) String() string
func (*FunctionDeclaration) TokenLiteral ¶
func (s *FunctionDeclaration) TokenLiteral() string
type GetStatement ¶
type GetStatement struct { Token token.Token Channel Expression Value Expression }
func (*GetStatement) String ¶
func (s *GetStatement) String() string
func (*GetStatement) TokenLiteral ¶
func (s *GetStatement) TokenLiteral() string
type GlobalStatement ¶
type GlobalStatement struct { Token token.Token Names []*Identifier }
func (*GlobalStatement) String ¶
func (s *GlobalStatement) String() string
func (*GlobalStatement) TokenLiteral ¶
func (s *GlobalStatement) TokenLiteral() string
type GosubStatement ¶
type GosubStatement struct { Token token.Token Name *Identifier IsLabel bool LineNumber int StatementNumber int }
func (*GosubStatement) String ¶
func (s *GosubStatement) String() string
func (*GosubStatement) TokenLiteral ¶
func (s *GosubStatement) TokenLiteral() string
type GotoStatement ¶
func (*GotoStatement) String ¶
func (s *GotoStatement) String() string
func (*GotoStatement) TokenLiteral ¶
func (s *GotoStatement) TokenLiteral() string
type HomeStatement ¶
func (*HomeStatement) String ¶
func (s *HomeStatement) String() string
func (*HomeStatement) TokenLiteral ¶
func (s *HomeStatement) TokenLiteral() string
type Identifier ¶
type Identifier struct { Token token.Token // the token.IdentifierLiteral token Value string ArrayRefs []string Subscripts []Expression IsArrayReference bool }
func (*Identifier) String ¶
func (i *Identifier) String() string
func (*Identifier) TokenLiteral ¶
func (i *Identifier) TokenLiteral() string
type IfExpression ¶
type IfExpression struct { Token token.Token Condition Expression Consequence *Line Alternative *Line }
func (*IfExpression) String ¶
func (ie *IfExpression) String() string
func (*IfExpression) TokenLiteral ¶
func (ie *IfExpression) TokenLiteral() string
type IfStatement ¶
type IfStatement struct { Token token.Token Condition Expression Consequence *Line Alternative *Line }
func (*IfStatement) String ¶
func (s *IfStatement) String() string
func (*IfStatement) TokenLiteral ¶
func (s *IfStatement) 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 (ie *InfixExpression) String() string
func (*InfixExpression) TokenLiteral ¶
func (ie *InfixExpression) TokenLiteral() string
type InputStatement ¶
type InputStatement struct { Token token.Token Channel Expression TextBoxSlot Expression Prompt string AddQuestionMark bool ReceiveVars []*Identifier }
func (*InputStatement) String ¶
func (s *InputStatement) String() string
func (*InputStatement) TokenLiteral ¶
func (s *InputStatement) TokenLiteral() string
type KeepStatement ¶
type KeepStatement struct { Token token.Token Block Expression Path Expression }
func (*KeepStatement) String ¶
func (s *KeepStatement) String() string
func (*KeepStatement) TokenLiteral ¶
func (s *KeepStatement) TokenLiteral() string
type LeaveStatement ¶
func (*LeaveStatement) String ¶
func (bs *LeaveStatement) String() string
func (*LeaveStatement) TokenLiteral ¶
func (bs *LeaveStatement) TokenLiteral() string
type LetStatement ¶
type LetStatement struct { Token token.Token BindToken token.Token // either then = or := token Name *Identifier Value Expression }
func (*LetStatement) String ¶
func (ls *LetStatement) String() string
func (*LetStatement) TokenLiteral ¶
func (ls *LetStatement) TokenLiteral() string
type Line ¶
This represents a line of code, which can contain several statements
func (*Line) TokenLiteral ¶
type LineStatement ¶
type LineStatement struct { Token token.Token CoordList []Expression Brush Expression Over Expression }
func (*LineStatement) String ¶
func (ps *LineStatement) String() string
func (*LineStatement) TokenLiteral ¶
func (ps *LineStatement) TokenLiteral() string
type ListStatement ¶
type ListStatement struct { Token token.Token Channel Expression TextBoxSlot Expression FromLinenumber token.Token ToLinenumber token.Token FromLineOnly bool }
func (*ListStatement) String ¶
func (s *ListStatement) String() string
func (*ListStatement) TokenLiteral ¶
func (s *ListStatement) TokenLiteral() string
type LoadStatement ¶
type LoadStatement struct { Token token.Token Value Expression }
func (*LoadStatement) String ¶
func (s *LoadStatement) String() string
func (*LoadStatement) TokenLiteral ¶
func (s *LoadStatement) TokenLiteral() string
type MkdirStatement ¶
type MkdirStatement struct { Token token.Token Value Expression }
func (*MkdirStatement) String ¶
func (s *MkdirStatement) String() string
func (*MkdirStatement) TokenLiteral ¶
func (s *MkdirStatement) TokenLiteral() string
type MoveStatement ¶
type MoveStatement struct { Token token.Token Cols Expression Rows Expression }
func (*MoveStatement) String ¶
func (s *MoveStatement) String() string
func (*MoveStatement) TokenLiteral ¶
func (s *MoveStatement) TokenLiteral() string
type NewStatement ¶
func (*NewStatement) String ¶
func (s *NewStatement) String() string
func (*NewStatement) TokenLiteral ¶
func (s *NewStatement) TokenLiteral() string
type NextStatement ¶
type NextStatement struct { Token token.Token Name *Identifier }
func (*NextStatement) String ¶
func (s *NextStatement) String() string
func (*NextStatement) TokenLiteral ¶
func (s *NextStatement) TokenLiteral() string
type NoiseStatement ¶
type NoiseStatement struct { Token token.Token Values []Expression }
func (*NoiseStatement) String ¶
func (s *NoiseStatement) String() string
func (*NoiseStatement) TokenLiteral ¶
func (s *NoiseStatement) TokenLiteral() string
type NoteStatement ¶
type NoteStatement struct { Token token.Token Pitch1 Expression Pitch2 Expression Duration Expression Volume Expression Envelope Expression Voice Expression }
func (*NoteStatement) String ¶
func (s *NoteStatement) String() string
func (*NoteStatement) TokenLiteral ¶
func (s *NoteStatement) TokenLiteral() string
type NumericLiteral ¶
func (*NumericLiteral) String ¶
func (il *NumericLiteral) String() string
func (*NumericLiteral) TokenLiteral ¶
func (il *NumericLiteral) TokenLiteral() string
type OpenStatement ¶
type OpenStatement struct { Token token.Token Channel Expression Path Expression }
func (*OpenStatement) String ¶
func (s *OpenStatement) String() string
func (*OpenStatement) TokenLiteral ¶
func (s *OpenStatement) TokenLiteral() string
type PlotStatement ¶
type PlotStatement struct { Token token.Token Value Expression CoordList []Expression Brush Expression Direction Expression SizeX Expression SizeY Expression Font Expression Over Expression }
func (*PlotStatement) String ¶
func (ps *PlotStatement) String() string
func (*PlotStatement) TokenLiteral ¶
func (ps *PlotStatement) TokenLiteral() string
type PointsStatement ¶
type PointsStatement struct { Token token.Token CoordList []Expression Style Expression Brush Expression Over Expression }
func (*PointsStatement) String ¶
func (s *PointsStatement) String() string
func (*PointsStatement) TokenLiteral ¶
func (s *PointsStatement) TokenLiteral() string
type PrefixExpression ¶
type PrefixExpression struct { Token token.Token // The prefix token, e.g. NOT Operator string Right Expression }
func (*PrefixExpression) String ¶
func (pe *PrefixExpression) String() string
func (*PrefixExpression) TokenLiteral ¶
func (pe *PrefixExpression) TokenLiteral() string
type PrintStatement ¶
type PrintStatement struct { Token token.Token Value Expression Channel Expression TextBoxSlot Expression PrintList []interface{} }
func (*PrintStatement) String ¶
func (ps *PrintStatement) String() string
func (*PrintStatement) TokenLiteral ¶
func (ps *PrintStatement) TokenLiteral() string
type ProcedureCallStatement ¶
type ProcedureCallStatement struct { Token token.Token Name *Identifier LineNumber int StatementNumber int ArrayRefs []string Args []Expression ReceiveArgs []*Identifier }
func (*ProcedureCallStatement) String ¶
func (s *ProcedureCallStatement) String() string
func (*ProcedureCallStatement) TokenLiteral ¶
func (s *ProcedureCallStatement) TokenLiteral() string
type ProcedureDeclaration ¶
type ProcedureDeclaration struct { Token token.Token Name *Identifier LineNumber int StatementNumber int ReceiveArgs []*Identifier ReturnArgs []*Identifier }
func (*ProcedureDeclaration) String ¶
func (s *ProcedureDeclaration) String() string
func (*ProcedureDeclaration) TokenLiteral ¶
func (s *ProcedureDeclaration) TokenLiteral() string
type Program ¶
type Program struct {
Statements []Statement
}
redundant?
func (*Program) TokenLiteral ¶
type PutStatement ¶
type PutStatement struct { Token token.Token Value Expression Channel Expression TextBoxSlot Expression PrintList []interface{} }
func (*PutStatement) String ¶
func (ps *PutStatement) String() string
func (*PutStatement) TokenLiteral ¶
func (ps *PutStatement) TokenLiteral() string
type ReadStatement ¶
type ReadStatement struct { Token token.Token VariableList []*Identifier }
func (*ReadStatement) String ¶
func (ps *ReadStatement) String() string
func (*ReadStatement) TokenLiteral ¶
func (ps *ReadStatement) TokenLiteral() string
type ReadblockStatement ¶
type ReadblockStatement struct { Token token.Token Block Expression X1 Expression Y1 Expression X2 Expression Y2 Expression }
func (*ReadblockStatement) String ¶
func (s *ReadblockStatement) String() string
func (*ReadblockStatement) TokenLiteral ¶
func (s *ReadblockStatement) TokenLiteral() string
type RemStatement ¶
func (*RemStatement) String ¶
func (s *RemStatement) String() string
func (*RemStatement) TokenLiteral ¶
func (s *RemStatement) TokenLiteral() string
type RenameStatement ¶
type RenameStatement struct { Token token.Token Value1 Expression Value2 Expression }
func (*RenameStatement) String ¶
func (s *RenameStatement) String() string
func (*RenameStatement) TokenLiteral ¶
func (s *RenameStatement) TokenLiteral() string
type RenumberStatement ¶
func (*RenumberStatement) String ¶
func (s *RenumberStatement) String() string
func (*RenumberStatement) TokenLiteral ¶
func (s *RenumberStatement) TokenLiteral() string
type RepeatStatement ¶
func (*RepeatStatement) String ¶
func (s *RepeatStatement) String() string
func (*RepeatStatement) TokenLiteral ¶
func (s *RepeatStatement) TokenLiteral() string
type RestoreStatement ¶
func (*RestoreStatement) String ¶
func (s *RestoreStatement) String() string
func (*RestoreStatement) TokenLiteral ¶
func (s *RestoreStatement) TokenLiteral() string
type ResultStatement ¶
type ResultStatement struct { Token token.Token ResultValue Expression }
func (*ResultStatement) String ¶
func (rs *ResultStatement) String() string
func (*ResultStatement) TokenLiteral ¶
func (rs *ResultStatement) TokenLiteral() string
type ReturnStatement ¶
func (*ReturnStatement) String ¶
func (s *ReturnStatement) String() string
func (*ReturnStatement) TokenLiteral ¶
func (s *ReturnStatement) TokenLiteral() string
type RmdirStatement ¶
type RmdirStatement struct { Token token.Token Value Expression }
func (*RmdirStatement) String ¶
func (s *RmdirStatement) String() string
func (*RmdirStatement) TokenLiteral ¶
func (s *RmdirStatement) TokenLiteral() string
type RunStatement ¶
func (*RunStatement) String ¶
func (s *RunStatement) String() string
func (*RunStatement) TokenLiteral ¶
func (s *RunStatement) TokenLiteral() string
type SaveStatement ¶
type SaveStatement struct { Token token.Token Value Expression }
func (*SaveStatement) String ¶
func (s *SaveStatement) String() string
func (*SaveStatement) TokenLiteral ¶
func (s *SaveStatement) TokenLiteral() string
type SetBorderStatement ¶
type SetBorderStatement struct { Token token.Token Value Expression }
func (*SetBorderStatement) String ¶
func (s *SetBorderStatement) String() string
func (*SetBorderStatement) TokenLiteral ¶
func (s *SetBorderStatement) TokenLiteral() string
type SetColourStatement ¶
type SetColourStatement struct { Token token.Token PaletteSlot Expression BasicColour Expression FlashSpeed Expression FlashColour Expression }
func (*SetColourStatement) String ¶
func (s *SetColourStatement) String() string
func (*SetColourStatement) TokenLiteral ¶
func (s *SetColourStatement) TokenLiteral() string
type SetConfigBootStatement ¶
type SetConfigBootStatement struct { Token token.Token Value Expression }
func (*SetConfigBootStatement) String ¶
func (s *SetConfigBootStatement) String() string
func (*SetConfigBootStatement) TokenLiteral ¶
func (s *SetConfigBootStatement) TokenLiteral() string
type SetCurposStatement ¶
type SetCurposStatement struct { Token token.Token Col Expression Row Expression }
func (*SetCurposStatement) String ¶
func (s *SetCurposStatement) String() string
func (*SetCurposStatement) TokenLiteral ¶
func (s *SetCurposStatement) TokenLiteral() string
type SetDegStatement ¶
type SetDegStatement struct { Token token.Token Value Expression }
func (*SetDegStatement) String ¶
func (s *SetDegStatement) String() string
func (*SetDegStatement) TokenLiteral ¶
func (s *SetDegStatement) TokenLiteral() string
type SetDrawingStatement ¶
type SetDrawingStatement struct { Token token.Token Slot Expression X1 Expression Y1 Expression X2 Expression Y2 Expression }
func (*SetDrawingStatement) String ¶
func (s *SetDrawingStatement) String() string
func (*SetDrawingStatement) TokenLiteral ¶
func (s *SetDrawingStatement) TokenLiteral() string
type SetEnvelopeStatement ¶
type SetEnvelopeStatement struct { Token token.Token Slot Expression AttackTime Expression AttackLevel Expression DecayTime Expression DecayLevel Expression SustainTime Expression SustainLevel Expression ReleaseTime Expression }
func (*SetEnvelopeStatement) String ¶
func (s *SetEnvelopeStatement) String() string
func (*SetEnvelopeStatement) TokenLiteral ¶
func (s *SetEnvelopeStatement) TokenLiteral() string
type SetFillStyleStatement ¶
type SetFillStyleStatement struct { Token token.Token FillStyle Expression FillHatching Expression FillColour2 Expression }
func (*SetFillStyleStatement) String ¶
func (ps *SetFillStyleStatement) String() string
func (*SetFillStyleStatement) TokenLiteral ¶
func (ps *SetFillStyleStatement) TokenLiteral() string
type SetModeStatement ¶
type SetModeStatement struct { Token token.Token Value Expression }
func (*SetModeStatement) String ¶
func (s *SetModeStatement) String() string
func (*SetModeStatement) TokenLiteral ¶
func (s *SetModeStatement) TokenLiteral() string
type SetMouseStatement ¶
type SetMouseStatement struct { Token token.Token Value Expression }
func (*SetMouseStatement) String ¶
func (s *SetMouseStatement) String() string
func (*SetMouseStatement) TokenLiteral ¶
func (s *SetMouseStatement) TokenLiteral() string
type SetPaperStatement ¶
type SetPaperStatement struct { Token token.Token Value Expression }
func (*SetPaperStatement) String ¶
func (s *SetPaperStatement) String() string
func (*SetPaperStatement) TokenLiteral ¶
func (s *SetPaperStatement) TokenLiteral() string
type SetPatternStatement ¶
type SetPatternStatement struct { Token token.Token Slot Expression Row Expression C1 Expression C2 Expression C3 Expression C4 Expression }
func (*SetPatternStatement) String ¶
func (s *SetPatternStatement) String() string
func (*SetPatternStatement) TokenLiteral ¶
func (s *SetPatternStatement) TokenLiteral() string
type SetPenStatement ¶
type SetPenStatement struct { Token token.Token Value Expression }
func (*SetPenStatement) String ¶
func (s *SetPenStatement) String() string
func (*SetPenStatement) TokenLiteral ¶
func (s *SetPenStatement) TokenLiteral() string
type SetRadStatement ¶
type SetRadStatement struct { Token token.Token Value Expression }
func (*SetRadStatement) String ¶
func (s *SetRadStatement) String() string
func (*SetRadStatement) TokenLiteral ¶
func (s *SetRadStatement) TokenLiteral() string
type SetSoundStatement ¶
type SetSoundStatement struct { Token token.Token Value Expression }
func (*SetSoundStatement) String ¶
func (s *SetSoundStatement) String() string
func (*SetSoundStatement) TokenLiteral ¶
func (s *SetSoundStatement) TokenLiteral() string
type SetToneStatement ¶
type SetToneStatement struct { Token token.Token Value Expression }
func (*SetToneStatement) String ¶
func (s *SetToneStatement) String() string
func (*SetToneStatement) TokenLiteral ¶
func (s *SetToneStatement) TokenLiteral() string
type SetVoiceStatement ¶
type SetVoiceStatement struct { Token token.Token Value Expression }
func (*SetVoiceStatement) String ¶
func (s *SetVoiceStatement) String() string
func (*SetVoiceStatement) TokenLiteral ¶
func (s *SetVoiceStatement) TokenLiteral() string
type SetWritingStatement ¶
type SetWritingStatement struct { Token token.Token Slot Expression Col1 Expression Row1 Expression Col2 Expression Row2 Expression }
func (*SetWritingStatement) String ¶
func (s *SetWritingStatement) String() string
func (*SetWritingStatement) TokenLiteral ¶
func (s *SetWritingStatement) TokenLiteral() string
type SquashStatement ¶
type SquashStatement struct { Token token.Token Block Expression X Expression Y Expression Over Expression }
func (*SquashStatement) String ¶
func (s *SquashStatement) String() string
func (*SquashStatement) TokenLiteral ¶
func (s *SquashStatement) TokenLiteral() string
type StringLiteral ¶
func (*StringLiteral) String ¶
func (sl *StringLiteral) String() string
func (*StringLiteral) TokenLiteral ¶
func (sl *StringLiteral) TokenLiteral() string
type SubroutineStatement ¶
type SubroutineStatement struct { Token token.Token Name *Identifier LineNumber int StatementNumber int }
func (*SubroutineStatement) String ¶
func (s *SubroutineStatement) String() string
func (*SubroutineStatement) TokenLiteral ¶
func (s *SubroutineStatement) TokenLiteral() string
type UntilStatement ¶
type UntilStatement struct { Token token.Token Condition Expression }
func (*UntilStatement) String ¶
func (s *UntilStatement) String() string
func (*UntilStatement) TokenLiteral ¶
func (s *UntilStatement) TokenLiteral() string
type WriteblockStatement ¶
type WriteblockStatement struct { Token token.Token Block Expression X Expression Y Expression Over Expression }
func (*WriteblockStatement) String ¶
func (s *WriteblockStatement) String() string
func (*WriteblockStatement) TokenLiteral ¶
func (s *WriteblockStatement) TokenLiteral() string
Click to show internal directories.
Click to hide internal directories.