add rules to parser