aboutsummaryrefslogtreecommitdiff
path: root/model.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-03 12:10:09 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-03 12:10:09 +0800
commite462669c3c3cc04ea29420e14dbb589899d201ec (patch)
treecc217c58388fbf13229bf4a25b639d17458e8fc9 /model.h
parentaf2da07be7d3f8a936640ef92b0692710a22e0d4 (diff)
AST parser can now work!
Diffstat (limited to 'model.h')
-rw-r--r--model.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/model.h b/model.h
index 42765ba..b8cd873 100644
--- a/model.h
+++ b/model.h
@@ -46,6 +46,9 @@ class EvalObj : public FrameObj {
virtual string ext_repr() = 0;
/**< Always true for all EvalObjs except BoolObj */
virtual bool is_true();
+#ifdef DEBUG
+ virtual void _debug_print();
+#endif
};
/** @class Cons
@@ -88,6 +91,7 @@ class RetAddr : public FrameObj {
Cons* addr; /**< The return address */
RetAddr(Cons *);
+ string _debug_repr();
};
@@ -110,7 +114,7 @@ class SymObj: public EvalObj {
public:
string val;
- SymObj(string);
+ SymObj(const string &);
#ifdef DEBUG
string _debug_repr();
#endif
@@ -181,7 +185,7 @@ class BuiltinProcObj: public OptObj {
BuiltinProc handler;
string name;
public:
- BuiltinProcObj(BuiltinProc, string);
+ BuiltinProcObj(BuiltinProc, const string &);
Cons *call(ArgList *arg_list, Environment * &envt,
Continuation * &cont, FrameObj ** &top_ptr);
};