diff options
author | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-10-26 18:17:13 +0000 |
---|---|---|
committer | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-10-26 18:17:13 +0000 |
commit | f4969cca302fe640fed334cf9cbf8e032b468ae6 (patch) | |
tree | b8270886391fc10a5859ac12488824983ae25d84 /src/main/interactive_shell.cpp | |
parent | 88838a403d526a12c8fcd71626e5b9d4d2e43cb0 (diff) |
Cleaning up some header files
Diffstat (limited to 'src/main/interactive_shell.cpp')
-rw-r--r-- | src/main/interactive_shell.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/interactive_shell.cpp b/src/main/interactive_shell.cpp index 8437d61b2..b2c8b8c1d 100644 --- a/src/main/interactive_shell.cpp +++ b/src/main/interactive_shell.cpp @@ -17,17 +17,32 @@ #include <iostream> #include "interactive_shell.h" + #include "expr/command.h" #include "parser/input.h" #include "parser/parser.h" #include "parser/parser_builder.h" +#include "util/options.h" using namespace std; namespace CVC4 { +using namespace parser; + const string InteractiveShell::INPUT_FILENAME = "<shell>"; +InteractiveShell::InteractiveShell(ExprManager& exprManager, + const Options& options) : + d_in(*options.in), + d_out(*options.out), + d_language(options.inputLanguage) { + ParserBuilder parserBuilder(exprManager,INPUT_FILENAME,options); + /* Create parser with bogus input. */ + d_parser = parserBuilder.withStringInput("").build(); +} + + Command* InteractiveShell::readCommand() { /* Don't do anything if the input is closed. */ if( d_in.eof() ) { |