Feature-complete token parsing