TXPathScanner class
Implements a lexical scanner and parser using XPath syntax and semantics.
Declaration
TXPathScanner = classDescription
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
CurToken | public | Current token kind in the lexical analysis. |
CurTokenString | public | Current token value in the lexical analysis. |
Methods
Create | public | Constructor for the class instance. |
NextToken | public | Gets the next token in the XPath expression. |
PeekToken | public | Peeks at the token kind for the next lexical element. |
SkipToken | public | Skips 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.
