Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Group states GrpStart state = iota GrpOpen GrpEnd // Condition states ConType ConValue ConEnd )
Available states for each type used in parsing
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
Input []rune
// contains filtered or unexported fields
}
Lexer performs lexical analysis/scanning of the JSON
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser holds a Lexer, errors, the currentToken, and the peekToken (next token). Parser methods handle iterating through tokens and building and AST.
func NewParser ¶
New takes a Lexer, creates a Parser with that Lexer, sets the current token and the peek token and returns the Parser.
Click to show internal directories.
Click to hide internal directories.