Documentation ¶
Overview ¶
Package lexer is based on Rop Pike's talk: https://www.youtube.com/watch?v=HxaD_trXwRE
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer interface { // Next returns the next available Token from the lexer. // If no more Tokens are available or the lexer was closed, // the Token has type EOF. Next() Token }
The Lexer interface represents a lexer that lexes its input into Tokens.
type Token ¶
Token is an item returned from the scanner.
func (Token) IsDelimiter ¶
IsDelimiter returns true, if the token has type delimiter.
Click to show internal directories.
Click to hide internal directories.