Added a parser interface to parse different kinds of filename types. Implemented the generic filenae type parser.