zaach/jison — pull request #65 by mines (2011-10-16 08:51:51+00:00)
Title: Get parsed symbol when unexpected input pops up

This is just a little feature request.

I think it would be nice to know what symbol the lexer actually got when unexpected input pops up.

Just an example: now, we have:

```
Parse error on line 1: foobar ^ Expecting 'CREATOR_T', 'VERSION_T'
```

So I modified it a bit to get:

```
Expecting 'CREATOR_T', 'VERSION_T', got 'NO_NEW_LINE_CHAR'
```