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-2019 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"
36 }/* CVC4::parser namespace */
38 class CVC4_PUBLIC InteractiveShell
40 const Options
& d_options
;
43 parser::Parser
* d_parser
;
47 std::string d_historyFilename
;
49 static const std::string INPUT_FILENAME
;
50 static const unsigned s_historyLimit
= 500;
53 InteractiveShell(api::Solver
* solver
);
56 * Close out the interactive session.
61 * Read a command from the interactive shell. This will read as
62 * many lines as necessary to parse a well-formed command.
64 Command
* readCommand();
67 * Return the internal parser being used.
69 parser::Parser
* getParser() { return d_parser
; }
71 };/* class InteractiveShell */
75 #endif /* CVC4__INTERACTIVE_SHELL_H */