Add if rule in parser.