Documentation
¶
Index ¶
- func MustParseExpr(s string) expr.Expr
- func ParseExpr(s string) (expr.Expr, error)
- func ParsePath(s string) (document.Path, error)
- func ParseQuery(s string) (query.Query, error)
- type Options
- type ParseError
- type Parser
- func (p *Parser) ParseDocument() (*expr.KVPairs, error)
- func (p *Parser) ParseExpr() (e expr.Expr, err error)
- func (p *Parser) ParseQuery() (query.Query, error)
- func (p *Parser) ParseStatement() (statement.Statement, error)
- func (p *Parser) Scan() (tok scanner.Token, pos scanner.Pos, lit string)
- func (p *Parser) ScanIgnoreWhitespace() (tok scanner.Token, pos scanner.Pos, lit string)
- func (p *Parser) Unscan()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustParseExpr ¶
MustParseExpr calls ParseExpr and panics if it returns an error.
Types ¶
type ParseError ¶
ParseError represents an error that occurred during parsing.
func (*ParseError) Error ¶
func (e *ParseError) Error() string
Error returns the string representation of the error.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represents an Genji SQL Parser.
func NewParserWithOptions ¶
NewParserWithOptions returns a new instance of Parser using given Options.
func (*Parser) ParseDocument ¶
ParseDocument parses a document
func (*Parser) ParseQuery ¶
ParseQuery parses a Genji SQL string and returns a Query.
func (*Parser) ParseStatement ¶
ParseStatement parses a Genji SQL string and returns a statement.
func (*Parser) ScanIgnoreWhitespace ¶
ScanIgnoreWhitespace scans the next non-whitespace and non-comment token.
Click to show internal directories.
Click to hide internal directories.