parser

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Comma string = ","
View Source
const EOF rune = 0
View Source
const EqualSign string = "="
View Source
const GtSign string = ">"
View Source
const LtSign string = "<"
View Source
const NotEqualSign string = "!="

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func (*Parser) Parse

func (p *Parser) Parse(input string) ([]filter.Filter, error)

func (*Parser) RegisterToFilter

func (p *Parser) RegisterToFilter(identifierName string, filterFn ToFilterFn)

type ToFilterFn

type ToFilterFn func(comparison filter.FilterComparison, val string) (filter.Filter, error)

type TokenResult

type TokenResult struct {
	Tags []string
	Raw  string
}

type Tokenizer

type Tokenizer struct {
}

func (*Tokenizer) Tokenize

func (t *Tokenizer) Tokenize(text string) (*TokenResult, error)

Jump to

Keyboard shortcuts

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