package
0.0.0-20240808151852-3363955b67b3
Repository: https://github.com/sethcurry/stax.git
Documentation: pkg.go.dev

# Functions

FieldFilterHandlerWithColors is a helper function that converts a string of colors into a slice of colors and calls the given handler.
No description provided by the author
LexString takes a string and returns a slice of tokens.
ParseQuery parses a query string and returns a node that can be converted to a bones predicate.

# Constants

FamilyKeyword represents a keyword token such as OR or AND.
FamilyLiteral represents a literal token such as a string or number.
FamilyOperator represents an operator token such as >, <, =, !=, etc.
FamilyParen represents a parenthesis token such as ( or ).

# Variables

DefaultParser is a parser with the standard set of fields already registered.

# Structs

ErrNoField is returned when a query specifies a field that does not exist.
ErrNoOperationForField is returned when a field does not support a given operator.
FieldFilter represents a field in the query and the associated handlers for each operation that field supports.
Parser holds a list of fields that have been registered and will be used to parse queries.
Token represents a single token in the query.

# Type aliases

FieldFilterHandler is a function that can return an AST node for a given value.
TokenFamily represents the general category of a token, such as a literal, keyword, or operator.