1 /********************* */
2 /*! \file interactive_shell.h
4 ** Original author: Christopher L. Conway
5 ** Major contributors: Morgan Deters
6 ** Minor contributors (to current version): none
7 ** This file is part of the CVC4 project.
8 ** Copyright (c) 2009-2013 New York University and The University of Iowa
9 ** See the file COPYING in the top-level source directory for licensing
10 ** information.\endverbatim
12 ** \brief Interactive shell for CVC4
15 #ifndef __CVC4__INTERACTIVE_SHELL_H
16 #define __CVC4__INTERACTIVE_SHELL_H
21 #include "util/language.h"
22 #include "options/options.h"
32 }/* CVC4::parser namespace */
34 class CVC4_PUBLIC InteractiveShell
{
37 parser::Parser
* d_parser
;
38 const Options
& d_options
;
42 std::string d_historyFilename
;
44 static const std::string INPUT_FILENAME
;
45 static const unsigned s_historyLimit
= 500;
48 InteractiveShell(ExprManager
& exprManager
, const Options
& options
);
51 * Close out the interactive session.
56 * Read a command from the interactive shell. This will read as
57 * many lines as necessary to parse a well-formed command.
59 Command
* readCommand();
62 * Return the internal parser being used.
64 parser::Parser
* getParser() {
68 };/* class InteractiveShell */
72 #endif /* __CVC4__INTERACTIVE_SHELL_H */