From fb5428ce85127413da6cba184dda178352a82b3c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 1 Feb 2009 22:10:32 -0400 Subject: Added support for metadata and tagging, and made regexs a first-class type. --- src/op.h | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'src/op.h') diff --git a/src/op.h b/src/op.h index c643aeff..1b6e5e54 100644 --- a/src/op.h +++ b/src/op.h @@ -47,7 +47,6 @@ #define _OP_H #include "expr.h" -#include "mask.h" namespace ledger { @@ -71,7 +70,6 @@ private: variant // used by all binary operators data; @@ -81,7 +79,6 @@ public: // Constants VALUE, IDENT, - MASK, INDEX, CONSTANTS, @@ -115,6 +112,7 @@ public: O_COMMA, + O_LOOKUP, O_CALL, O_MATCH, @@ -193,27 +191,6 @@ public: data = val; } - bool is_mask() const { - if (kind == MASK) { - assert(data.type() == typeid(mask_t)); - return true; - } - return false; - } - mask_t& as_mask_lval() { - assert(is_mask()); - return boost::get(data); - } - const mask_t& as_mask() const { - return const_cast(this)->as_mask_lval(); - } - void set_mask(const mask_t& val) { - data = val; - } - void set_mask(const string& expr) { - data = mask_t(expr); - } - bool is_function() const { return kind == FUNCTION; } -- cgit v1.2.3