Add grammer for parsing the rules of the tasks.