aboutsummaryrefslogtreecommitdiff
path: root/model.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-11 09:58:22 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-11 09:58:22 +0800
commit05f893bbe7e8a839c26cc951fafb166c25d0a6ee (patch)
tree26ede7d65a8baf4038fd97c297bb9cb7b5a7b7be /model.h
parent2729f71c327f8ef4ddbb620dc486e7334ba40119 (diff)
`apply` and `or` support
Diffstat (limited to 'model.h')
-rw-r--r--model.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/model.h b/model.h
index 0b7ac19..dbd54a5 100644
--- a/model.h
+++ b/model.h
@@ -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();
};