Documentation ¶
Index ¶
Constants ¶
View Source
const ( QueueStateNone = QueueState("NONE") QueueStateFinish = QueueState("FINISH") )
View Source
const ( LOWEST int CMD // [...] )
View Source
const ( ILLEGAL = "ILLEGAL" EOF = "EOF" // 識別子 + リテラル。数値や変数名など、予約語ではないもの。 STRING = "STRING" IDENT = "IDENT" TEXT = "TEXT" LBRACKET = "[" RBRACKET = "]" COMMA = "," EQUAL = "=" CMD_FLUSH = "p" CMD_LINE_END_WAIT = "l" CMD_IMAGE = "image" CMD_WAIT = "wait" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdExpression ¶
type CmdExpression struct { Token Token // '['トークン Expression Expression Cmd Event }
func (*CmdExpression) String ¶
func (ie *CmdExpression) String() string
func (*CmdExpression) TokenLiteral ¶
func (ie *CmdExpression) TokenLiteral() string
type Expression ¶
type Expression interface { Node // contains filtered or unexported methods }
type ExpressionStatement ¶
type ExpressionStatement struct { Token Token // 式の最初のトークン Expression Expression // 式を保持 }
func (*ExpressionStatement) String ¶
func (es *ExpressionStatement) String() string
func (*ExpressionStatement) TokenLiteral ¶
func (es *ExpressionStatement) TokenLiteral() string
type FunctionLiteral ¶
type FunctionLiteral struct { Token Token FuncName Identifier Parameters NamedParams }
func (*FunctionLiteral) String ¶
func (fl *FunctionLiteral) String() string
func (*FunctionLiteral) TokenLiteral ¶
func (fl *FunctionLiteral) TokenLiteral() string
type Identifier ¶
func (*Identifier) String ¶
func (i *Identifier) String() string
func (*Identifier) TokenLiteral ¶
func (i *Identifier) TokenLiteral() string
type NamedParams ¶
func (*NamedParams) String ¶
func (n *NamedParams) String() string
type Program ¶
type Program struct {
Statements []Statement
}
構文解析器が生成する全てのASTのルートノードになる
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func NewQueueFromText ¶ added in v1.16.0
type QueueState ¶
type QueueState string
type TextLiteral ¶
func (*TextLiteral) String ¶
func (sl *TextLiteral) String() string
func (*TextLiteral) TokenLiteral ¶
func (sl *TextLiteral) TokenLiteral() string
Click to show internal directories.
Click to hide internal directories.