Actually, retrieving the matched token isn't going as smoothly as expected.

For whateve reason, it's not conforming to the example given in the JavaCC page. It's probably because of the BackupCharStream, but I don't know how to fix that.