We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E.g. when we parsing javascript:
f(({a, b}) => a + b);
with the following grammar rules:
exp := '(' '{' identifier (',' identifier)* '}' ')' '=>' exp exp := '(' exp ')' exp := object object := '{' (object_entry (',' object_entry)*)? '}' object_entry := identifier (':' exp)?
when we digest f(({ a we don't know whether the a is an object entry or an arrow function param. We have to peek maybe many tokens to judge that.
f(({ a
a
Solution for this issue:
The text was updated successfully, but these errors were encountered:
Maybe we can write an algorithm to check if a conflict can be safely resolved by re-parse.
For the above conflict, it can be safely resolved by re-parse without early accept.
Sorry, something went wrong.
chore: remove simple-ts-parser for now
d1bc0b8
wait for #24
Another idea: subset construction (子集构造法) to turn the NFA into DFA?
No branches or pull requests
E.g. when we parsing javascript:
with the following grammar rules:
when we digest
f(({ a
we don't know whether thea
is an object entry or an arrow function param. We have to peek maybe many tokens to judge that.Solution for this issue:
The text was updated successfully, but these errors were encountered: