Improve generateToken behaviour.

Fix #26 
Well, this is an error from **this specific grammar** :-).