#include "tree.h"
#include "pretty.h"
#include "eval.h"
#include "stdio.h"

int lineno;

void yyparse();

EXP *theexpression;

int main()
{ lineno = 1;
  printf("Enter your expression, followed by Ctnl-D: \n");
  printf("===> ");
  yyparse();
  printf("The expression was: ");
  prettyEXP(theexpression);
  printf("\n");
  printf("The value of the expression is: %d\n",evalEXP(theexpression));
  return(1);
}

