eval.cpp File Reference

#include "eval.hpp"

Functions

Celleval (Cell *const c)
 Evaluate the expression tree whose root is pointed to by c (error if c does not hold a well-formed expression).

Detailed Description

A dummy implementation for example purposes. Just barely enough is implemented to allow the parser to run. Merely returns the input expression without evaluating it.

Function Documentation

Cell* eval ( Cell *const   c  ) 

Evaluate the expression tree whose root is pointed to by c (error if c does not hold a well-formed expression).

Returns:
The value resulting from evaluating the expression.

Referenced by parse_eval_print().


Generated on Fri Oct 5 14:08:52 2012 for a1 by  doxygen 1.5.8