expr

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expr added in v0.1.11

type Expr struct {
	Column string
	Op     string
	Value  string
}

type Parser

type Parser struct {
	Qexpr

	Buffer string

	Parse  func(rule ...int) error
	Reset  func()
	Pretty bool
	// contains filtered or unexported fields
}

func GetExpr

func GetExpr(s string) (*Parser, error)

func (*Parser) AST

func (t *Parser) AST() *node32

func (*Parser) Add

func (t *Parser) Add(rule pegRule, begin, end, depth uint32, index int)

func (*Parser) Error

func (t *Parser) Error() []token32

func (*Parser) Execute

func (p *Parser) Execute()

func (*Parser) Expand

func (t *Parser) Expand(index int)

func (*Parser) Highlighter

func (p *Parser) Highlighter()

func (*Parser) Init

func (p *Parser) Init()

func (*Parser) Order

func (t *Parser) Order() [][]token32

func (*Parser) PreOrder

func (t *Parser) PreOrder() (<-chan state32, [][]token32)

func (*Parser) Print

func (t *Parser) Print()

func (*Parser) PrintSyntax

func (t *Parser) PrintSyntax()

func (*Parser) PrintSyntaxTree

func (p *Parser) PrintSyntaxTree()

func (*Parser) Tokens

func (t *Parser) Tokens() <-chan token32

type Qexpr

type Qexpr struct {
	Expr
	Ands []Expr
}

func (*Qexpr) Push added in v0.1.11

func (q *Qexpr) Push()

func (*Qexpr) PushOp added in v0.1.11

func (q *Qexpr) PushOp(op string)

Jump to

Keyboard shortcuts

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