Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestTkType ¶
type TestTkType int
const ( // TkEof is the end of file token. TkEof TestTkType = iota // TkBinOp is a binary operator token. TkBinOp // TkUnaryOp is a unary operator token. TkUnaryOp // TkOpParen is an open parenthesis token. TkOpParen // TkClParen is a close parenthesis token. TkClParen // TkWs is a whitespace token. TkWs // TkNewline is a newline token. TkNewline // TkImmediate is an immediate token. TkImmediate // TkRightArrow is a right arrow token. TkRightArrow // TkRegister is a register token. TkRegister // TkUnaryInstruction is a unary instruction token. TkUnaryInstruction // TkLoadImmediate is a load immediate token. TkLoadImmediate // TkOperand is an operand token. TkOperand // TkSource is a source token. TkSource // TkSource1 is a source (I) token. TkSource1 // TkStatement is a statement token. TkStatement // TkBinInstruction is a binary instruction token. TkBinInstruction )
func (TestTkType) IsTerminal ¶
func (t TestTkType) IsTerminal() bool
func (TestTkType) String ¶
func (t TestTkType) String() string
Click to show internal directories.
Click to hide internal directories.