From 9b1d0e016822509e5d3ea7bdc6341b4533b42080 Mon Sep 17 00:00:00 2001 From: Teddy Date: Thu, 15 Aug 2013 20:06:54 +0800 Subject: move ParseBracket to model files --- model.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'model.cpp') diff --git a/model.cpp b/model.cpp index ba664a8..a56e530 100644 --- a/model.cpp +++ b/model.cpp @@ -24,7 +24,7 @@ bool FrameObj::is_parse_bracket() { } EvalObj::EvalObj(int _otype) : - FrameObj(CLS_EVAL_OBJ), otype(_otype) { +FrameObj(CLS_EVAL_OBJ), otype(_otype) { gc_obj = gc.join(this); } @@ -139,5 +139,15 @@ string EvalObj::ext_repr() { return res; } +ParseBracket::ParseBracket(unsigned char _btype) : +FrameObj(CLS_SIM_OBJ | CLS_PAR_BRA), btype(_btype) {} + +UnspecObj::UnspecObj() : EvalObj(CLS_SIM_OBJ) {} + +ReprCons *UnspecObj::get_repr_cons() { + return new ReprStr("#"); +} + + Container::Container(int otype, bool override) : - EvalObj(otype | (override ? 0 : CLS_CONTAINER)) {} +EvalObj(otype | (override ? 0 : CLS_CONTAINER)) {} -- cgit v1.2.3