summaryrefslogtreecommitdiff
path: root/src/util/sexpr.i
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/sexpr.i')
-rw-r--r--src/util/sexpr.i5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/sexpr.i b/src/util/sexpr.i
index 99f197ff7..dba8a0f29 100644
--- a/src/util/sexpr.i
+++ b/src/util/sexpr.i
@@ -5,4 +5,9 @@
%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 */
+
%include "util/sexpr.h"
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback