eval.hpp File Reference

#include "cons.hpp"

Go to the source code of this file.

Functions

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).


Detailed Description

Encapsulates the interface for the expression evaluator function.

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 Wed Oct 17 13:56:48 2012 for a1 by  doxygen 1.5.8