#include "mbconfig.h"
#include <iostream>
#include <sstream>
#include "input.h"
#include "mathp.h"
#include "dummypgin.h"
Go to the source code of this file.
      
        
          | int main | ( | int | argc, | 
        
          |  |  | const char *const | argv[] | 
        
          |  | ) |  |  | 
      
 
Definition at line 43 of file cl.cc.
References MathParser::GetForever(), and verbose.
   48                 if (strcmp(argv[1], 
"-?") == 0 
 
   49                     || strcmp(argv[1], 
"-h") == 0
 
   50                     || strcmp(argv[1], 
"--help") == 0) {
 
   52                                 << 
"usage: " << argv[0] 
 
   53                                 << 
"     reads from stdin" << std::endl
 
   54                                 << 
"       " << argv[0] << 
" {-?|-h|--help}" 
   55                                 " prints this message" << std::endl
 
   57                                 << 
" <arg1> [<arg2> ...]" 
   58                                 " evaluates the expressions" << std::endl;
 
   60                 } 
else if (strcmp(argv[1], 
"-s") == 0) {
 
   73                 for (
int i = 1; i < argc; i++) {
 
   74                         std::istringstream in(argv[i]);
 
   83                                 std::cout << 
"argv[" << i << 
"] = ";
 
   87                                 mp.GetForever(std::cout, 
"; ");
 
   88                                 std::cout << std::endl;
 
   90                                 std::cout << std::endl;
 
  105                 mp.GetForever(std::cout, 
"\n");
 
  106                 std::cout << std::endl;
 
  109                 std::cout << std::endl;