make parserHooks parameter for the parser rather than global field
do not overwrite tokens when parsing modifiers