diff options
author | Teddy <ted.sybil@gmail.com> | 2013-08-11 09:58:22 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2013-08-11 09:58:22 +0800 |
commit | 05f893bbe7e8a839c26cc951fafb166c25d0a6ee (patch) | |
tree | 26ede7d65a8baf4038fd97c297bb9cb7b5a7b7be /model.h | |
parent | 2729f71c327f8ef4ddbb620dc486e7334ba40119 (diff) |
`apply` and `or` support
Diffstat (limited to 'model.h')
-rw-r--r-- | model.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -106,7 +106,9 @@ class EvalObj : public FrameObj { bool is_num_obj(); /** Check if the object is a boolean */ bool is_bool_obj(); + /** Check if the object is a string */ bool is_str_obj(); + /** Check if the object is a operator */ int get_otype(); virtual void prepare(Pair *pc); /** Any EvalObj has its external representation */ @@ -352,6 +354,11 @@ class StrObj: public EvalObj { * @return NULL if failed */ static StrObj *from_string(string repr); + bool lt(StrObj *r); + bool gt(StrObj *r); + bool le(StrObj *r); + bool ge(StrObj *r); + bool eq(StrObj *r); ReprCons *get_repr_cons(); }; |