Chromium Code Reviews
DescriptionUsing annotations to help with parser recovery
There are cases in the parser where a method is consuming tokens aren't
expected at that level, but could have been used to sucessfully complete
a non-terminal further up in the stack.
This change adds an annotation @Terminals that is consulted when
an unexpected token is encountered to determine whether or not the
token should be consumed. Adding a token to @Terminals tells the
parser it is OK not to consume that token, that the parser will eventually
make progress.
http://code.google.com/p/dart/issues/detail?id=2417
Committed: https://code.google.com/p/dart/source/detail?r=6299
Patch Set 1 : # #
Total comments: 4
Patch Set 2 : Removed unrelated file #
Messages
Total messages: 8 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||