Help us shape the future of Go! Take the 2026 Go Developer Survey

expr

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const AND = 57360
View Source
const AXISNAME = 57354
View Source
const CURRENTFUNC = 57357
View Source
const DBLCOLON = 57349
View Source
const DBLSLASH = 57348
View Source
const DEREFFUNC = 57358
View Source
const DIV = 57367
View Source
const DOTDOT = 57347
View Source
const EOF = 0
View Source
const EQ = 57362
View Source
const ERR = 57350
View Source
const FUNC = 57351
View Source
const GE = 57364
View Source
const GT = 57363
View Source
const LE = 57366
View Source
const LITERAL = 57355
View Source
const LT = 57365
View Source
const MOD = 57368
View Source
const NAMETEST = 57356
View Source
const NE = 57361
View Source
const NODETYPE = 57353
View Source
const NUM = 57346
View Source
const OR = 57359
View Source
const TEXTFUNC = 57352
View Source
const UNARYMINUS = 57369

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