diff options
author | Tim King <taking@google.com> | 2016-01-05 17:28:38 -0800 |
---|---|---|
committer | Tim King <taking@google.com> | 2016-01-05 17:28:38 -0800 |
commit | b5f91dae58691468f6c8f2d7c6aebf639f1d017b (patch) | |
tree | e6584f75105e4a3c1fa461b988286c0d649d42d3 /src/util/sexpr.i | |
parent | 5eabda0f55cee3be81aa7ae126269c32e818322f (diff) |
Moving sexpr.{cpp,h,i} from expr/ back into util/.
Diffstat (limited to 'src/util/sexpr.i')
-rw-r--r-- | src/util/sexpr.i | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/util/sexpr.i b/src/util/sexpr.i new file mode 100644 index 000000000..4c89c5019 --- /dev/null +++ b/src/util/sexpr.i @@ -0,0 +1,21 @@ +%{ +#include "util/sexpr.h" +%} + +%ignore CVC4::operator<<(std::ostream&, const SExpr&); +%ignore CVC4::operator<<(std::ostream&, SExpr::SexprTypes); + +// for Java and the like +%extend CVC4::SExpr { + std::string toString() const { return self->getValue(); } +};/* CVC4::SExpr */ + +%ignore CVC4::SExpr::SExpr(int); +%ignore CVC4::SExpr::SExpr(unsigned int); +%ignore CVC4::SExpr::SExpr(unsigned long); +%ignore CVC4::SExpr::SExpr(const char*); + +%rename(equals) CVC4::SExpr::operator==(const SExpr&) const; +%ignore CVC4::SExpr::operator!=(const SExpr&) const; + +%include "util/sexpr.h" |