summaryrefslogtreecommitdiff
path: root/src/parser/parser.i
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2011-10-03 22:07:38 +0000
committerMorgan Deters <mdeters@gmail.com>2011-10-03 22:07:38 +0000
commitc5000befcf95c03a42a2f73a40c3dac6dc3492be (patch)
tree4a87ace04da1c62d1474673d485843d820e5cbd8 /src/parser/parser.i
parent40253236078988fecc3becd2619dd5ccad5e3077 (diff)
user push/pop support in minisat and simplification; also bindings work
Diffstat (limited to 'src/parser/parser.i')
-rw-r--r--src/parser/parser.i17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/parser/parser.i b/src/parser/parser.i
index 55119be9a..dd52bfcda 100644
--- a/src/parser/parser.i
+++ b/src/parser/parser.i
@@ -8,7 +8,24 @@ namespace CVC4 {
enum SymbolType;
%ignore operator<<(std::ostream&, DeclarationCheck);
%ignore operator<<(std::ostream&, SymbolType);
+
+ class ParserExprStream : public CVC4::ExprStream {
+ Parser* d_parser;
+ public:
+ ExprStream(Parser* parser) : d_parser(parser) {}
+ ~ExprStream() { delete d_parser; }
+ Expr nextExpr() { return d_parser->nextExpression(); }
+ };/* class Parser::ExprStream */
+
}/* namespace CVC4::parser */
}/* namespace CVC4 */
%include "parser/parser.h"
+
+%{
+namespace CVC4 {
+ namespace parser {
+ typedef CVC4::parser::Parser::ExprStream ParserExprStream;
+ }
+}
+%}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback