antlr/antlr3 — pull request #27 by Sanne (2012-07-11 15:56:40+00:00)
Title: GUnit improvements

Hello, applied some very small improvements to GUnit:
* include the input line in failing reports
* make sure I can avoid it to kill my JVM when running it embedded in other tools
* improve the logic for which it would check for invalid input on the tokens

On this last step especially I wrote to the mailing list as I'm not entirely sure how I get multiple EOFs. After more debugging it turns out the parser might add such tokens during _predict_ and I'm thinking it's a pretty valid use case, consequentially GUnit should deal with it.

I've also made some methods protected so that people can more easily override this.

Thanks!