summaryrefslogtreecommitdiff
path: root/src/main/interactive_shell.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2011-04-10 00:44:20 +0000
committerMorgan Deters <mdeters@gmail.com>2011-04-10 00:44:20 +0000
commit969b144a5f9630d646afdf0ff0a053df38d0ed1a (patch)
tree92eb38ad161abfe3af979a86285549168d118c5e /src/main/interactive_shell.h
parent8495ee8e7de4a7e472d72cfb20290940c59794e3 (diff)
merge from replay branch
Diffstat (limited to 'src/main/interactive_shell.h')
-rw-r--r--src/main/interactive_shell.h44
1 files changed, 27 insertions, 17 deletions
diff --git a/src/main/interactive_shell.h b/src/main/interactive_shell.h
index faa80fb84..a08e2cbb4 100644
--- a/src/main/interactive_shell.h
+++ b/src/main/interactive_shell.h
@@ -2,10 +2,10 @@
/*! \file interactive_shell.h
** \verbatim
** Original author: cconway
- ** Major contributors:
- ** Minor contributors (to current version):
+ ** Major contributors: none
+ ** Minor contributors (to current version): none
** This file is part of the CVC4 prototype.
- ** Copyright (c) 2009, 2010 The Analysis of Computer Systems Group (ACSys)
+ ** Copyright (c) 2009, 2010, 2011 The Analysis of Computer Systems Group (ACSys)
** Courant Institute of Mathematical Sciences
** New York University
** See the file COPYING in the top-level source directory for licensing
@@ -24,13 +24,13 @@
namespace CVC4 {
- class Command;
- class ExprManager;
- class Options;
+class Command;
+class ExprManager;
+class Options;
- namespace parser {
- class Parser;
- }
+namespace parser {
+ class Parser;
+}/* CVC4::parser namespace */
class CVC4_PUBLIC InteractiveShell {
std::istream& d_in;
@@ -41,14 +41,24 @@ class CVC4_PUBLIC InteractiveShell {
static const std::string INPUT_FILENAME;
public:
- InteractiveShell(ExprManager& exprManager,
- const Options& options);
+ InteractiveShell(ExprManager& exprManager, const Options& options);
+
+ /**
+ * Read a command from the interactive shell. This will read as
+ * many lines as necessary to parse a well-formed command.
+ */
+ Command* readCommand();
+
+ /**
+ * Return the internal parser being used.
+ */
+ parser::Parser* getParser() {
+ return d_parser;
+ }
+
+};/* class InteractiveShell */
- /** Read a command from the interactive shell. This will read as
- many lines as necessary to parse a well-formed command. */
- Command *readCommand();
-};
+}/* CVC4 namespace */
-} // CVC4 namespace
+#endif /* __CVC4__INTERACTIVE_SHELL_H */
-#endif // __CVC4__INTERACTIVE_SHELL_H
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback