Documentation ¶ Index ¶ func IsAlphaNumeric(r rune) bool func IsAlphabetic(r rune) bool func IsSpace(r rune) bool type Kind type Token func Lex(source *file.Source) ([]Token, error) func (t Token) Is(kind Kind, values ...string) bool func (t Token) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func IsAlphaNumeric ¶ added in v1.5.9 func IsAlphaNumeric(r rune) bool func IsAlphabetic ¶ added in v1.5.9 func IsAlphabetic(r rune) bool func IsSpace ¶ added in v1.5.9 func IsSpace(r rune) bool Types ¶ type Kind ¶ type Kind string const ( Identifier Kind = "Identifier" Number Kind = "Number" String Kind = "String" Operator Kind = "Operator" Bracket Kind = "Bracket" EOF Kind = "EOF" ) type Token ¶ type Token struct { file.Location Kind Kind Value string } func Lex ¶ func Lex(source *file.Source) ([]Token, error) func (Token) Is ¶ func (t Token) Is(kind Kind, values ...string) bool func (Token) String ¶ func (t Token) String() string Source Files ¶ View all Source files lexer.go state.go token.go utils.go Click to show internal directories. Click to hide internal directories.