// File: main2.C
//
// Simple test of the expression tree parser


#include <iostream.h>
#include <iomanip.h>
#include "bstring4.h"
#include "token.h"
#include "parse.h"

main() {
   BString bs ;

   cout << "? " ;
   cin >> bs ;

   TokenStream tkstrm(bs) ;
   ETree *T = Parse(tkstrm) ;
   if (T != NULL) {
      cout << "= " << Evaluate(*T) << endl ;
      T->inorder() ;
   }

   cout << endl ;
   delete T ;
}
