1 /********************* */
2 /*! \file interactive_shell.h
4 ** Original author: cconway
5 ** Major contributors: mdeters
6 ** Minor contributors (to current version): none
7 ** This file is part of the CVC4 prototype.
8 ** Copyright (c) 2009, 2010, 2011 The Analysis of Computer Systems Group (ACSys)
9 ** Courant Institute of Mathematical Sciences
10 ** New York University
11 ** See the file COPYING in the top-level source directory for licensing
12 ** information.\endverbatim
14 ** \brief Interactive shell for CVC4
17 #ifndef __CVC4__INTERACTIVE_SHELL_H
18 #define __CVC4__INTERACTIVE_SHELL_H
23 #include "util/language.h"
33 }/* CVC4::parser namespace */
35 class CVC4_PUBLIC InteractiveShell
{
38 parser::Parser
* d_parser
;
39 const InputLanguage d_language
;
43 std::string d_historyFilename
;
45 static const std::string INPUT_FILENAME
;
46 static const unsigned s_historyLimit
= 500;
49 InteractiveShell(ExprManager
& exprManager
, const Options
& options
);
52 * Close out the interactive session.
57 * Read a command from the interactive shell. This will read as
58 * many lines as necessary to parse a well-formed command.
60 Command
* readCommand();
63 * Return the internal parser being used.
65 parser::Parser
* getParser() {
69 };/* class InteractiveShell */
73 #endif /* __CVC4__INTERACTIVE_SHELL_H */