expr

package
v0.0.0-...-17f8324 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: BSD-3-Clause, MPL-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const EOF = 0

Variables

This section is empty.

Functions

func NewExprLex

func NewExprLex(
	expr string,
	progBldr *xpath.ProgBuilder,
	mapFn xpath.PfxMapFn,
) *exprLex

func NewExprMachine

func NewExprMachine(
	expr string,
	mapFn xpath.PfxMapFn,
) (*xpath.Machine, error)

Create a machine that can run the full XPATH grammar for 'when' and 'must' statements. 'expr' matches the name given to this full grammar (as in Expr / ExprToken in the XPATH RFC)

func NewExprMachineWithCustomFunctions

func NewExprMachineWithCustomFunctions(
	expr string,
	mapFn xpath.PfxMapFn,
) (*xpath.Machine, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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