Documentation
¶
Index ¶
Constants ¶
This section is empty.
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 (*Parser) ParseValidation ¶
ParseValidation parses tokens and creates an AST. It returns the RootNode which holds a Value and in it the rest of the tree. It creates a new Lexer for reset lexer state and initializes the parser's tokens. It returns an error if the parsing fails.
Click to show internal directories.
Click to hide internal directories.