SOURCE FILE: eNode.cpp


// ********************************************************
// Implementation file eNode.cpp for the ADT expression tree node
// ********************************************************
#include "eNode.h"      // header file

#include <cstddef> // definition of NULL
#include <cassert> // for assert()

/* ################################################## */
eNodeClass::eNodeClass()
{
}
/* ################################################## */
eNodeClass::eNodeClass(symbolType s, char chr) 
              : symbol(s) 
{
  if (symbol == op) op_f = chr ;
  if (symbol == var) var_f = chr ;
}    
/* ################################################## */
eNodeClass::eNodeClass(symbolType s, int value)
              : symbol(s) 
{
  if (symbol == num) num_f = value ;  
}
/* ################################################## */