dvreeze / xpathparser

XPath parser, for static analysis of XPath


XPath Parser

XPath parser, for static analysis of XPath. A use case could be static analysis of XPath expressions in XBRL formula or table linkbases. For example, used custom functions could be found, or syntax errors in XPath could be found at an early stage.

At this point only the AST that results from parsing can be queried. This AST has no knowledge other than the structure of the parsed XPath expression.

This XPath parser makes use of the excellent FastParse library for the generation of the XPath parser.

XPath 3.1 is the supported XPath version.