5bcc817ce2
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 Review URL: https://chromiumcodereview.appspot.com//10005040 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6299 260f80e4-7a28-3924-810f-c04153c831b5