You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to design a [language-server[(https://code.visualstudio.com/docs/extensions/example-language-server) to be used for Visual Studio Code, the parser have to be error tolerant(the full mechanism is explained here).
Request
So, I'm wondering if Jison could integrate such feature into the parser.
For example, the parser should automatically fill-in missing token
The parser should look for token that will minimize number of error-filling tokens.
In this case, if the parser tried to fill up the next token as let, then the next token will be error since after let should be variable identifier, so let will not be considered. So, the parser will try all possible next-token and choose the one that produces the least error.
Background
In order to design a [language-server[(https://code.visualstudio.com/docs/extensions/example-language-server) to be used for Visual Studio Code, the parser have to be error tolerant(the full mechanism is explained here).
Request
So, I'm wondering if Jison could integrate such feature into the parser.
For example, the parser should automatically fill-in missing token
The parser should look for token that will minimize number of error-filling tokens.
In this case, if the parser tried to fill up the next token as
let
, then the next token will be error since afterlet
should be variable identifier, solet
will not be considered. So, the parser will try all possible next-token and choose the one that produces the least error.Can you help with this @zaach ?
The text was updated successfully, but these errors were encountered: