Open aeb-dev opened 6 years ago
Since we have the grammar, I think the best option is to use a lexical parser. I have found similar projects but none of them uses a lexical parser.
here is a list of available tools for such task: https://github.com/maxtoroq/dotnet-xml#xpath-xquery-and-xslt
https://github.com/StefH/XPath2.Net or https://github.com/semyonc/xpath2 (I think one is fork of the other) is the most suitable example, but it lacks the lexical analyzer as our project does.
https://github.com/b3b00/csly this project seems good enough for our approach
The current parser mechanism is not reliable, a more generic and advanced a parse technique should be used based on the grammar in the following link: https://www.w3.org/TR/xpath-31/#id-grammar