| Index: bison/src/bison/2.4.1/bison-2.4.1-src/examples/calc++/calc++.cc
|
| ===================================================================
|
| --- bison/src/bison/2.4.1/bison-2.4.1-src/examples/calc++/calc++.cc (revision 0)
|
| +++ bison/src/bison/2.4.1/bison-2.4.1-src/examples/calc++/calc++.cc (revision 0)
|
| @@ -0,0 +1,16 @@
|
| +#line 8712 "../../doc/bison.texinfo"
|
| +#include <iostream>
|
| +#include "calc++-driver.hh"
|
| +
|
| +int
|
| +main (int argc, char *argv[])
|
| +{
|
| + calcxx_driver driver;
|
| + for (++argv; argv[0]; ++argv)
|
| + if (*argv == std::string ("-p"))
|
| + driver.trace_parsing = true;
|
| + else if (*argv == std::string ("-s"))
|
| + driver.trace_scanning = true;
|
| + else if (!driver.parse (*argv))
|
| + std::cout << driver.result << std::endl;
|
| +}
|
|
|
| Property changes on: bison\src\bison\2.4.1\bison-2.4.1-src\examples\calc++\calc++.cc
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|