Discover Packages
github.com/szabado/multiglob
internal
parser
lexer
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Apr 16, 2019
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Lexer is a tokenizer that returns individual runes along with their associated types.
New returns a new Lexer that wraps the given source string.
Next advances the lexer to the next token, and discards the current one. It must be called before
any calls to Scan.
Peek returns the next token without consuming the current one. If the current token
is the last token, Peek returns nil. It can be called before the first call to Next.
Scan returns the current token.
TokenType enumerates the possible token types returned by the Lexer. Any unexported types
never exit the package.
const (
Asterisk TokenType
Text
Bracket
Backslash
Dash
Caret
Plus
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.