Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Lexer converts an input string into its constituent tokens.
func (*Lexer) Next ¶
Next returns the next token from the input and moves the current position of the lexer ahead.
If encountering the end of the input, token.EOF is returned.
func (*Lexer) Reposition ¶
Reposition positions the lexer to the given index.
Click to show internal directories.
Click to hide internal directories.