Versions in this module Expand all Collapse all v0 v0.1.1 Oct 2, 2020 v0.1.0 Jul 6, 2020 Changes in this version + const BinaryOperator + const Comma + const DirDeposit + const DirError + const DirNumberFormat + const DoubleQuotedString + const EOF + const EOL + const GenericSeparator + const Identifier + const KeywordELSE + const KeywordEnum + const KeywordFOR + const KeywordIF + const KeywordInclude + const KeywordOpcode + const KeywordUNTIL + const LBrace + const LBracket + const LParen + const Number + const RBrace + const RBracket + const RParen + const Semicolon + const SingleQuotedString + const SymbolArrow + const SymbolAt + const SymbolDollar + const SymbolHash + const TokenCommand + const UnaryOperator + var TokenTypeMap = map[string]TokenType + type SourceLine struct + func NewSourceLine(words []string, lineNumber uint, sourceName string) *SourceLine + func (line *SourceLine) AllStrings() []string + func (line *SourceLine) LineNumber() uint + func (line *SourceLine) Print(ui ui.UI) + func (line *SourceLine) RuneIndex(ui ui.UI, indexOfWord uint) uint + func (line *SourceLine) SourceName() string + func (line *SourceLine) StringAt(i uint) string + type Token struct + func NewInternalToken(value string) Token + func NewSpecialToken(derived Token, value string, tType TokenType) Token + func NewToken(value string, tType TokenType, lineIndex uint, line *SourceLine) Token + func (t Token) EnumType() TokenType + func (t Token) Position() (line uint, pos uint, file string) + func (t Token) Value() string + func (t Token) WithType(tType TokenType) Token + func (t Token) WithValue(value string) Token + type TokenType int + func (tt TokenType) String() string