aboutsummaryrefslogblamecommitdiff
path: root/eval.h
blob: 1c8d14fa12ff0264b929b5b5482ba90d8731ddda (plain) (tree)
1
2
3
4
5
6
7
8
9



                  


                                     

                 

                                                                               

                    
                                                                   


      
#ifndef EVAL_H
#define EVAL_H
#include "model.h"

/** @class Evaluator 
 * A runtime platform of interpreting
 */
class Evaluator {
    private:
        Environment *envt;              /**< Store the current environment */
        void add_builtin_routines();    /**< Add builtin routines to the env */
    public:
        Evaluator();
        EvalObj *run_expr(Pair *prog);  /**< Interpret a program */
};

#endif