Versions in this module Expand all Collapse all v1 v1.0.0 Feb 5, 2023 Changes in this version + const BLACK + const BLUE + const GREEN + const RED + const YELLOW + func FormattedAnnotation(filename string, source string, prefix string, msg string, tok *Token, ...) string + func IsDigit(ch rune) bool + func IsLetter(ch rune) bool + func IsLowercaseLetter(ch rune) bool + func IsSymbolChar(ch rune, first bool) bool + func IsUppercaseLetter(ch rune) bool + func IsWhitespace(ch rune) bool + type Scanner struct + func NewScanner(r io.Reader) *Scanner + func (s *Scanner) Scan() Token + type Token struct + Line int + Start int + Text string + Type TokenType + func (tok Token) IsNumeric() bool + func (tok Token) IsText() bool + func (tok Token) String() string + type TokenType int + const AMPERSAND + const AT + const BACKQUOTE + const BANG + const BLOCK_COMMENT + const CLOSE_ANGLE + const CLOSE_BRACE + const CLOSE_BRACKET + const CLOSE_PAREN + const COLON + const COMMA + const DOLLAR + const DOT + const EOF + const EQUALS + const HASH + const LINE_COMMENT + const NEWLINE + const NUMBER + const OPEN_ANGLE + const OPEN_BRACE + const OPEN_BRACKET + const OPEN_PAREN + const QUESTION + const QUOTE + const SEMICOLON + const SLASH + const STAR + const STRING + const SYMBOL + const TILDE + const UNDEFINED + func (tokenType TokenType) String() string