diff options
author | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-05-12 20:29:17 +0000 |
---|---|---|
committer | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-05-12 20:29:17 +0000 |
commit | 8d691eac8e478576ebceb6406a8e372db5e3f7f1 (patch) | |
tree | cd808cd26804490fd5a2e938bf24fdec85918004 /src/parser/smt2/smt2_input.h | |
parent | 05d29aa0de4c2d4d773a81375fb14584221595ea (diff) |
true and false are only defined if the core theory is loaded in SMT v2 strict mode
Diffstat (limited to 'src/parser/smt2/smt2_input.h')
-rw-r--r-- | src/parser/smt2/smt2_input.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parser/smt2/smt2_input.h b/src/parser/smt2/smt2_input.h index ad32edcbc..c003a76ec 100644 --- a/src/parser/smt2/smt2_input.h +++ b/src/parser/smt2/smt2_input.h @@ -33,6 +33,7 @@ class ExprManager; namespace parser { class Smt2Input : public AntlrInput { + typedef AntlrInput super; /** The ANTLR3 SMT2 lexer for the input. */ pSmt2Lexer d_pSmt2Lexer; @@ -85,6 +86,11 @@ protected: */ Expr parseExpr() throw(ParserException); + /** Set the Parser object for this input. This implementation overrides the super-class + * implementation to add the core theory symbols to the parser state when strict + * mode is disabled. */ + virtual void setParser(Parser& parser); + };/* class Smt2Input */ }/* CVC4::parser namespace */ |