XPathElemParser
object XPathElemParser
XPath 3.1 AST element parsing support, using cats-parse.
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.
class Object
trait Matchable
class Any