1 #line 10507 "../../doc/bison.texi" 2 #include <iostream> 3 #include "calc++-driver.hh" 4 5 6 int main(int argc,char * argv[])7main (int argc, char *argv[]) 8 { 9 calcxx_driver driver; 10 for (int i = 1; i < argc; ++i) 11 if (argv[i] == std::string ("-p")) 12 driver.trace_parsing = true; 13 else if (argv[i] == std::string ("-s")) 14 driver.trace_scanning = true; 15 else if (!driver.parse (argv[i])) 16 std::cout << driver.result << std::endl; 17 } 18 19