diff options
author | Morgan Deters <mdeters@gmail.com> | 2011-10-03 22:07:38 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2011-10-03 22:07:38 +0000 |
commit | c5000befcf95c03a42a2f73a40c3dac6dc3492be (patch) | |
tree | 4a87ace04da1c62d1474673d485843d820e5cbd8 /src/parser | |
parent | 40253236078988fecc3becd2619dd5ccad5e3077 (diff) |
user push/pop support in minisat and simplification; also bindings work
Diffstat (limited to 'src/parser')
-rw-r--r-- | src/parser/parser.i | 17 |
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; + } +} +%} |