REVIEW: [NX-501] Token Pattern Parser

JIRA: https://issues.sonatype.org/browse/NX-501
Some methods here use `chr`, some `cha` (personally my favourite is `ch`) ... either way it'd be nice to be consistent.