XPath 3.1 AST element parsing support, using FastParse.
There are parsers for many kinds of XPath AST elements. These parsers typically
expect no leading whitespace, and they typically consume only part of the input string.
Example of usage:
XPathElemParser.expr.parse(xpathString)
Using the parsers in XPathElemParser may be somewhat risky in that they may "malfunction" when called in isolation,
due to the lack of context (such as cuts to avoid backtracking). Usually it is safer to stick to using the
XPathParser.xpathExpr parser. On the other hand, exposing parsers for specific AST elements makes it easier to
"decorate" specific parsers.
TODO Make this the default implementation of a parser interface.
Linear Supertypes
AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
XPathElemParser
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Value Members
final def!=(arg0: Any): Boolean
Definition Classes
AnyRef → Any
final def##(): Int
Definition Classes
AnyRef → Any
final def==(arg0: Any): Boolean
Definition Classes
AnyRef → Any
valWhite: Wrapper
WhitespaceApi implementation for ignoring whitespace.
WhitespaceApi implementation for ignoring whitespace. This makes the "~" and "rep"
operators consume and ignore all non-trailing whitespace.
XPath 3.1 AST element parsing support, using FastParse.
There are parsers for many kinds of XPath AST elements. These parsers typically expect no leading whitespace, and they typically consume only part of the input string.
Example of usage:
Using the parsers in XPathElemParser may be somewhat risky in that they may "malfunction" when called in isolation, due to the lack of context (such as cuts to avoid backtracking). Usually it is safer to stick to using the XPathParser.xpathExpr parser. On the other hand, exposing parsers for specific AST elements makes it easier to "decorate" specific parsers.
TODO Make this the default implementation of a parser interface.