/* This near-minimal MIFFEd program reads MIF from standard input, parses it, and writes the parsed MIF back to standard output. In the process, it exercises most of the input, parse, output code and the "new" methods (object allocation). The input can be the keyboard (including copy and paste from another window) or files or a pipeline. Run this program under GDB to debug the MIFFEd library. */ #include #include "miffed.h" int main(int ac, char**av){ itemHandle i; i = readMIF(stdin,KEEP_CMT); if (i) { writeMIF(stdout,i,OUT_CMT+OUT_EOL+OUT_INDENT); } dumpStats(); }