Patch mode parser.