1 /********************* */
2 /*! \file interactive_shell.h
4 ** Top contributors (to current version):
5 ** Morgan Deters, Christopher L. Conway, Aina Niemetz
6 ** This file is part of the CVC4 project.
7 ** Copyright (c) 2009-2018 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
37 const Options
& d_options
;
40 parser::Parser
* d_parser
;
44 std::string d_historyFilename
;
46 static const std::string INPUT_FILENAME
;
47 static const unsigned s_historyLimit
= 500;
50 InteractiveShell(ExprManager
& exprManager
);
53 * Close out the interactive session.
58 * Read a command from the interactive shell. This will read as
59 * many lines as necessary to parse a well-formed command.
61 Command
* readCommand();
64 * Return the internal parser being used.
66 parser::Parser
* getParser() { return d_parser
; }
68 };/* class InteractiveShell */
72 #endif /* __CVC4__INTERACTIVE_SHELL_H */