6 #include "flame/config.h"
10 int main(
int argc,
char *argv[])
16 std::auto_ptr<Config> conf;
20 conf.reset(P.
parse_file(argc>=2 ? argv[1] : NULL));
21 }
catch(std::exception& e){
22 std::cerr<<
"Parse error: "<<e.what()<<
"\n";
26 std::cerr<<
"Generic AST:\n";
29 GLPSPrint(std::cout, *conf);
31 fprintf(stderr,
"Done\n");
33 }
catch(std::exception& e){
34 std::cerr<<
"Error: "<<e.what()<<
"\n";
Interface to lattice file parser.
Config * parse_file(const char *fname)
Open and parse a file.