Hi,
I’m wondering how to implement an Error Tolerant Parser described by Microsoft as:
Error Tolerant Parser for Language Server
Most of the time, the code in the editor is incomplete and syntactically incorrect, but developers would still expect autocomplete and other language features to work. Therefore, an error tolerant parser is necessary for a Language Server: The parser generates meaningful AST from partially complete code, and the Language Server provides language features based on the AST.
They implemented a sample PHP parser in PHP using this concept:
Can someone point me how can I achieve this using purescript-parsing package?
Krzysztof