aboutsummaryrefslogtreecommitdiff
path: root/model.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-06 12:58:21 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-06 12:58:21 +0800
commit033b938b22c7947992195e380fb2f7d1ca200f05 (patch)
treefd6628c9f376ee289d7bd6621fe4b8fc3d717ce4 /model.h
parent9e76d377dad809f4aa3faa700883dbfc9b2fa769 (diff)
boolean and char are now supported
Diffstat (limited to 'model.h')
-rw-r--r--model.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/model.h b/model.h
index 4dcdc59..0fcf5d3 100644
--- a/model.h
+++ b/model.h
@@ -331,6 +331,23 @@ class StrObj: public EvalObj {
string ext_repr();
};
+/** @class CharObj
+ * Character type support
+ */
+class CharObj: public EvalObj {
+ public:
+ char ch;
+
+ /** Construct a string object */
+ CharObj(char ch);
+ /** Try to construct an CharObj object
+ * @return NULL if failed
+ */
+ static CharObj *from_string(string repr);
+ string ext_repr();
+};
+
+
typedef vector<EvalObj*> EvalObjVec;
/**
* @class VecObj