Optimize the rule processing function to parse only once, then manipulate the parsed...