parser

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(input string) (*query.Query, error)

Run parses the input string and returns the parsed AST (query).

Types

type ErrUnexpectedToken

type ErrUnexpectedToken struct {
	Actual   tokenizer.TokenType
	Expected tokenizer.TokenType
}

ErrUnexpectedToken represents an unexpected token error.

func (*ErrUnexpectedToken) Error

func (e *ErrUnexpectedToken) Error() string

type ErrUnknownToken

type ErrUnknownToken struct {
	Raw string
}

ErrUnknownToken represents an unknown token error.

func (*ErrUnknownToken) Error

func (e *ErrUnknownToken) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL