Further generalized Parser to be able to implement the subwords parser.