microScheme
Functions
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). More...
 

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