parser

package
v6.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidQuery = errors.New("invalid query")

ErrInvalidQuery represents a given query that not comply with the restQL syntax

Functions

func Optimize

func Optimize(queryAst *ast.Query) (domain.Query, error)

Optimize transforms a restQL AST into the internal representation.

Types

type Parser

type Parser interface {
	Parse(queryStr string) (domain.Query, error)
}

Parser is the interface implemented by types that can transform a query string into an internal representation.

func New

func New() (Parser, error)

New returns an instance of a Parser.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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