vscode-xml-complete
vscode-xml-complete copied to clipboard
XML Parser Used.
Hello.
I see this project is using SAX to parse XML and then perform additional logic on the tags output stream.
- https://github.com/rogalmic/vscode-xml-complete/tree/master/src/helpers
Does SAX provide full parsing capabilities for the use case of building editor services?
The reason I am asking is because I've implemented a Parser building library in JS:
- https://github.com/SAP/chevrotain
Which provides editor related infrastructure capabilities:
- Fault Tolerance / Error Recovery (Does not stop on the first error).
- Full syntax information collection (e.g location of closing tags).
- Syntactic Content Assist
- Multiple start rules.
- ...
There is also an XML grammar example:
- https://github.com/SAP/chevrotain/tree/master/examples/grammars/xml
- This example may not be productive quality.
Feel free to contact me if this is of interest to you.
Cheers. Shahar.