1 /********************* */
2 /*! \file interactive_shell.h
4 ** Top contributors (to current version):
5 ** Morgan Deters, Christopher L. Conway, Tim King
6 ** This file is part of the CVC4 project.
7 ** Copyright (c) 2009-2016 by the authors listed in the file AUTHORS
8 ** in the top-level source directory) and their institutional affiliations.
9 ** All rights reserved. See the file COPYING in the top-level source
10 ** directory for licensing information.\endverbatim
12 ** \brief Interactive shell for CVC4
15 #ifndef __CVC4__INTERACTIVE_SHELL_H
16 #define __CVC4__INTERACTIVE_SHELL_H
21 #include "options/language.h"
22 #include "options/options.h"
23 #include "util/unsafe_interrupt_exception.h"
33 }/* CVC4::parser namespace */
35 class CVC4_PUBLIC InteractiveShell
{
38 parser::Parser
* d_parser
;
39 const Options
& d_options
;
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() throw (UnsafeInterruptException
);
63 * Return the internal parser being used.
65 parser::Parser
* getParser() {
69 };/* class InteractiveShell */
73 #endif /* __CVC4__INTERACTIVE_SHELL_H */