Discover Packages
github.com/alexhholmes/jg
lexer
package
Version:
v0.0.0-...-20ff91b
Opens a new window with list of versions in this module.
Published: Aug 31, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Len returns the number of tokens that have been read.
Next reads the next token from the input and returns the number of bytes read.
Reset sets points to the beginning of the input and clears the tokens.
Token returns the last token that was read.
Tokens returns a copy of all tokens that have been read.
const (
EOF TokenType = iota
NEWLINE
WHITESPACE
QUOTE
LBRACE
RBRACE
LBRACKET
RBRACKET
COMMA
COLON
NUMBER
STRING
TRUE
FALSE
NULL
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.