#include <iostream>
#include "interactive_shell.h"
+
#include "expr/command.h"
#include "parser/input.h"
#include "parser/parser.h"
#include "parser/parser_builder.h"
+#include "util/options.h"
using namespace std;
namespace CVC4 {
+using namespace parser;
+
const string InteractiveShell::INPUT_FILENAME = "<shell>";
+InteractiveShell::InteractiveShell(ExprManager& exprManager,
+ const Options& options) :
+ d_in(*options.in),
+ d_out(*options.out),
+ d_language(options.inputLanguage) {
+ ParserBuilder parserBuilder(exprManager,INPUT_FILENAME,options);
+ /* Create parser with bogus input. */
+ d_parser = parserBuilder.withStringInput("").build();
+}
+
+
Command* InteractiveShell::readCommand() {
/* Don't do anything if the input is closed. */
if( d_in.eof() ) {
#include <iostream>
#include <string>
-#include "parser/parser_builder.h"
#include "util/language.h"
-#include "util/options.h"
namespace CVC4 {
class Command;
+ class ExprManager;
+ class Options;
- using namespace parser;
+ namespace parser {
+ class Parser;
+ }
class CVC4_PUBLIC InteractiveShell {
std::istream& d_in;
std::ostream& d_out;
- Parser* d_parser;
+ parser::Parser* d_parser;
const InputLanguage d_language;
static const std::string INPUT_FILENAME;
public:
InteractiveShell(ExprManager& exprManager,
- const Options& options) :
- d_in(*options.in),
- d_out(*options.out),
- d_language(options.inputLanguage) {
- ParserBuilder parserBuilder(exprManager,INPUT_FILENAME,options);
- /* Create parser with bogus input. */
- d_parser = parserBuilder.withStringInput("").build();
- }
+ const Options& options);
/** Read a command from the interactive shell. This will read as
many lines as necessary to parse a well-formed command. */
parser.cpp \
parser_builder.h \
parser_builder.cpp \
- parser_options.h \
parser_exception.h
libcvc4parser_noinst_la_SOURCES = \
#include <string>
#include <vector>
-#include "parser/input.h"
-#include "parser/parser_options.h"
-#include "parser/parser_exception.h"
-#include "parser/bounded_token_buffer.h"
-#include "expr/expr.h"
-#include "expr/expr_manager.h"
+#include "bounded_token_buffer.h"
+#include "parser_exception.h"
+#include "input.h"
+
#include "util/Assert.h"
#include "util/bitvector.h"
#include "util/integer.h"
#include "expr/expr.h"
#include "expr/expr_manager.h"
#include "parser/parser_exception.h"
-#include "parser/parser_options.h"
#include "util/Assert.h"
+#include "util/language.h"
namespace CVC4 {
#include "input.h"
#include "parser_exception.h"
-#include "parser_options.h"
#include "expr/declaration_scope.h"
-#include "expr/expr.h"
#include "expr/kind.h"
-#include "util/Assert.h"
namespace CVC4 {
// Forward declarations
class BooleanType;
+class Expr;
class ExprManager;
class Command;
class FunctionType;
-class KindType;
class Type;
namespace parser {
+class Input;
+
/** Types of check for the symols */
enum DeclarationCheck {
/** Enforce that the symbol has been declared */
#include <string>
#include "parser_builder.h"
+#include "input.h"
+#include "parser.h"
+#include "smt/smt.h"
+#include "smt2/smt2.h"
+
#include "expr/expr_manager.h"
-#include "parser/input.h"
-#include "parser/parser.h"
-#include "parser/smt/smt.h"
-#include "parser/smt2/smt2.h"
+#include "util/options.h"
namespace CVC4 {
#include <string>
#include "input.h"
-#include "parser_options.h"
-#include "util/options.h"
+#include "util/language.h"
namespace CVC4 {
class ExprManager;
+class Options;
namespace parser {
+++ /dev/null
-/********************* */
-/*! \file parser_options.h
- ** \verbatim
- ** Original author: cconway
- ** Major contributors: mdeters
- ** 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)
- ** Courant Institute of Mathematical Sciences
- ** New York University
- ** See the file COPYING in the top-level source directory for licensing
- ** information.\endverbatim
- **
- ** \brief [[ Add file-specific comments here ]].
- **
- ** [[ Add file-specific comments here ]]
- **/
-
-#include "cvc4_public.h"
-
-#ifndef __CVC4__PARSER__PARSER_OPTIONS_H
-#define __CVC4__PARSER__PARSER_OPTIONS_H
-
-#include <iostream>
-
-#include "util/language.h"
-
-namespace CVC4 {
-namespace parser {
-
-// content moved to util/language.h
-
-}/* CVC4::parser namespace */
-}/* CVC4 namespace */
-
-#endif /* __CVC4__PARSER__PARSER_OPTIONS_H */
AM_LDFLAGS_BLACK =
AM_LDFLAGS_PUBLIC =
AM_LIBADD_WHITE = \
+ @abs_top_builddir@/src/main/libmain.a \
@abs_top_builddir@/src/parser/libcvc4parser_noinst.la \
- @abs_top_builddir@/src/libcvc4_noinst.la \
- @abs_top_builddir@/src/main/libmain.a
+ @abs_top_builddir@/src/libcvc4_noinst.la
AM_LIBADD_BLACK = \
+ @abs_top_builddir@/src/main/libmain.a \
@abs_top_builddir@/src/parser/libcvc4parser_noinst.la \
- @abs_top_builddir@/src/libcvc4_noinst.la \
- @abs_top_builddir@/src/main/libmain.a
+ @abs_top_builddir@/src/libcvc4_noinst.la
AM_LIBADD_PUBLIC = \
@abs_top_builddir@/src/parser/libcvc4parser.la \
@abs_top_builddir@/src/libcvc4.la
#include "expr/expr_manager.h"
#include "parser/parser.h"
#include "parser/parser_builder.h"
-#include "parser/parser_options.h"
#include "parser/smt2/smt2.h"
#include "expr/command.h"
#include "util/output.h"
+#include "util/language.h"
using namespace CVC4;
using namespace CVC4::parser;
#include "expr/command.h"
#include "parser/parser.h"
#include "parser/parser_builder.h"
-#include "parser/parser_options.h"
+#include "util/language.h"
typedef __gnu_cxx::stdio_filebuf<char> filebuf_gnu;