added token parsing to the derivation parser and lextype features are now in input order