aboutsummaryrefslogtreecommitdiff
path: root/model.h
diff options
context:
space:
mode:
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