From 033b938b22c7947992195e380fb2f7d1ca200f05 Mon Sep 17 00:00:00 2001 From: Teddy Date: Tue, 6 Aug 2013 12:58:21 +0800 Subject: boolean and char are now supported --- model.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'model.h') 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 EvalObjVec; /** * @class VecObj -- cgit v1.2.3