Documentation ¶
Index ¶
Constants ¶
const ( UDPE mainQueryType = iota NUDPE )
const ( Undefined customBool = iota False True )
Custom boolean values which comprises the 'Undefined' value
const ( ELEM = iota NEW_AXIOM = iota CLOSETAG = 0x8000 + iota - _NUM_NONTERMINALS OPENCLOSETAG = 0x8000 + iota - _NUM_NONTERMINALS OPENTAG = 0x8000 + iota - _NUM_NONTERMINALS TEXT = 0x8000 + iota - _NUM_NONTERMINALS )
const ( FPE udpeType = iota RPE )
Variables ¶
var Stats parsingStats
Stats contains some statistics that may be checked after a call to ParseString or ParseFile
Functions ¶
func ParseFile ¶
ParseFile parses a file in parallel using an operator precedence grammar. It takes as input a filename and the number of threads, and returns a boolean representing the success or failure of the parsing and the symbol at the root of the syntactic tree (if successful).
func ParseString ¶
ParseString parses a string in parallel using an operator precedence grammar. It takes as input a string as a slice of bytes and the number of threads, and returns a boolean representing the success or failure of the parsing and the symbol at the root of the syntactic tree (if successful).
func SetCPUProfileFile ¶
Types ¶
type ExecutorCommand ¶
type ExecutorCommand interface { Execute(xpathQuery string) ExecutorCommand AgainstFile(documentFilePath string) ExecutorCommand AgainstString(input []byte) ExecutorCommand WithNumberOfThreads(numberOfThreads int) ExecutorCommand Go() (results []Position, err error) InVerboseMode() ExecutorCommand }
ExecutorCommand represents a command that can be made by a client to execute a XPath query
func AgainstFile ¶
func AgainstFile(documentFilePath string) ExecutorCommand
AgainstFile specify the path of the file against which the XPath query has to be executed
func Execute ¶
func Execute(xpathQuery string) ExecutorCommand
Execute specify the XPath query to be executed
func WithNumberOfThreads ¶
func WithNumberOfThreads(numberOfThreads int) ExecutorCommand
WithNumberOfThreads specify the number of threads to be used to execute the XPath query
Source Files ¶
- XMLEntities.go
- contextSolutions.go
- elementPool.go
- executionTable.go
- executionThread.go
- executor.go
- fpe.go
- function.go
- globalNudpeTable.go
- globalUdpeTable.go
- int64pool.go
- lexer.go
- lexerautomata.go
- lexerdfa.go
- lexerfunction.go
- listofstacks.go
- listofstacksptr.go
- log.go
- matrix.go
- parser.go
- precedence.go
- predicate.go
- reduction.go
- rpe.go
- rules.go
- semanticvalues.go
- speculation.go
- stack.go
- stackpool.go
- stackptr.go
- stackptrpool.go
- symbol.go
- tokens.go
- udpe.go