Discover Packages
github.com/jonjohnsonjr/dagdotdev
internal
explore
lexer
package
Version:
v0.0.12
Opens a new window with list of versions in this module.
Published: Dec 13, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
item represents a token returned from the scanner.
itemType identifies the type of lex items.
const (
ItemError ItemType = iota
ItemEOF
ItemAccessor
ItemIndex
ItemSentinel
)
lexer holds the state of the scanner.
lex creates a new scanner for the input string.
NextItem returns the next item from the input.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.