Documentation ¶
Index ¶
Constants ¶
View Source
const ( Push = "PUSH" Duplicate = "DUPLICATE" Sum = "SUM" Divide = "DIV" Subtract = "SUB" Multiply = "MUL" Label = "LABEL" Comment = "COMMENT" Jump = "JUMP" JumpIfTrue = "JUMP_IF_TRUE" Equal = "EQUAL" EndOfLine = "END_OF_FILE" Identifier = "IDENTIFIER" Number = "NUMBER" )
Variables ¶
This section is empty.
Functions ¶
func IsPartOfFloat ¶
func IsPartOfIdentifier ¶
func IsPartOfNumber ¶
func IsStartOfIdentifier ¶
func IsWhitespace ¶
Types ¶
type IndentValue ¶
type Token ¶
type Token struct { TokenValue Kind Kind LineStart int CollumnStart int LineEnd int CollumnEnd int }
func (*Token) DebugPrint ¶
func (t *Token) DebugPrint()
func (*Token) DetectMyKind ¶
func (t *Token) DetectMyKind()
func (*Token) DetectMyString ¶
func (*Token) SetIndentValue ¶
type TokenValue ¶
type TokenValue struct { IndentValue IntegerValue int FloatValue float64 StringValue string }
Click to show internal directories.
Click to hide internal directories.