Define the parsing rules.