10 int xdlmain(
int argc,
char *argv[]);
11 int xdlmain(
int argc,
char *argv[])
14 bool readfile =
false;
16 for(
int ai = 1; ai < argc; ++ai)
28 std::fstream infile(argv[ai]);
31 std::cerr <<
"Could not open file: " << argv[ai] << std::endl;
35 bool result = importer(infile, argv[ai]);
38 std::cout <<
"Successfully parsed \"" << argv[ai] <<
"\"." << std::endl;
44 std::cout <<
"Failed to parse \"" << argv[ai] <<
"\"." << std::endl;
51 if (readfile)
return 0;
53 std::cout <<
"Reading expressions from stdin" << std::endl;
56 while( std::cout <<
"input: " &&
57 std::getline(std::cin, line) &&
60 bool result = importer(line,
"input");
64 std::cout <<
"Successfully parsed stdin" << std::endl;
int xdlmain(int argc, char *argv[])
DesignSharedPtr getDesignPtr(void)
Returns a shared pointer for the design.
bool mTraceScanning
Enable debug output in the flex scanner.
Header for the XdlImporter class.
Header for the XdlExport class.
bool mTraceParsing
Enable debug output in the bison parser.
Importer from XDL format into a physical design.
Physical design exporter for XDL.