Sign in Join
FPDoc Onlineexperiment

TXPathScanner class

In unit Laz2_XPath

Implements a lexical scanner and parser using XPath syntax and semantics.

Declaration

pascal
TXPathScanner = class

Description

TXPathScanner is a class which implements a lexical scanner/parser using the syntax and semantics defined in XPath (XML Path Language). TXPathScanner provides methods used to tokenize and parse the XPath Expression types defined in the specification, at:

XML Path Language (XPath) Version 1.0 W3C Recommendation 16 November 1999

TXPathScanner examines an XPath expression, and creates a parse tree representing the lexical and syntactic elements found in the expression. The parse tree consists of TXPathExprNode (and descendent) class instances which evaluate the XPath expressions and generate the result(s).

TXPathScanner is used in the implementation of the TXPathExpression class and the EvaluateXPathExpression routine.

See also

Properties

CurTokenpublicCurrent token kind in the lexical analysis.
CurTokenStringpublicCurrent token value in the lexical analysis.

Methods

CreatepublicConstructor for the class instance.
NextTokenpublicGets the next token in the XPath expression.
PeekTokenpublicPeeks at the token kind for the next lexical element.
SkipTokenpublicSkips the current token when it is not an error.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.