Foundations for the factorization of common code between Parser and ParserSubwords.