blob: 8d4af5ba17c957ccfd286b1b9e0a09d09abba35b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/********************* -*- C++ -*- */
/** parser.cpp
** This file is part of the CVC4 prototype.
** Copyright (c) 2009 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.
**
** Parser implementation.
**/
#include <iostream>
#include <fstream>
#include "parser.h"
#include "util/command.h"
#include "util/Assert.h"
#include "parser_exception.h"
#include "parser/antlr_parser.h"
#include "parser/smt/generated/AntlrSmtParser.hpp"
#include "parser/smt/generated/AntlrSmtLexer.hpp"
#include "parser/cvc/generated/AntlrCvcParser.hpp"
#include "parser/cvc/generated/AntlrCvcLexer.hpp"
using namespace std;
namespace CVC4 {
namespace parser {
Parser::Parser(ExprManager* em) :
d_expr_manager(em), d_done(false) {
}
void Parser::setDone(bool done) {
d_done = done;
}
bool Parser::done() const {
return d_done;
}
}/* CVC4::parser namespace */
}/* CVC4 namespace */
|