summaryrefslogtreecommitdiff
path: root/src/parser/smt
diff options
context:
space:
mode:
authorChristopher L. Conway <christopherleeconway@gmail.com>2010-05-01 20:44:09 +0000
committerChristopher L. Conway <christopherleeconway@gmail.com>2010-05-01 20:44:09 +0000
commitd0affb22ebcd4cc7cc7dd6ec7a51233d8632d630 (patch)
tree42246c776b7e060e7ec5d13de28f23883352337b /src/parser/smt
parent40a3135f24b66574518c1b206d012b10332782c7 (diff)
Fixing private/public header warnings in parser library
Diffstat (limited to 'src/parser/smt')
-rw-r--r--src/parser/smt/Smt.g16
-rw-r--r--src/parser/smt/smt_input.cpp3
-rw-r--r--src/parser/smt/smt_input.h6
3 files changed, 13 insertions, 12 deletions
diff --git a/src/parser/smt/Smt.g b/src/parser/smt/Smt.g
index 5cd94ec0d..bc2ecb661 100644
--- a/src/parser/smt/Smt.g
+++ b/src/parser/smt/Smt.g
@@ -61,7 +61,7 @@ namespace CVC4 {
#include "expr/expr.h"
#include "expr/kind.h"
#include "expr/type.h"
-#include "parser/input.h"
+#include "parser/antlr_input.h"
#include "parser/parser.h"
#include "util/integer.h"
#include "util/output.h"
@@ -174,7 +174,7 @@ benchAttribute returns [CVC4::Command* smt_command]
*/
annotatedFormula[CVC4::Expr& expr]
@init {
- Debug("parser") << "annotated formula: " << Input::tokenText(LT(1)) << std::endl;
+ Debug("parser") << "annotated formula: " << AntlrInput::tokenText(LT(1)) << std::endl;
Kind kind;
std::string name;
std::vector<Expr> args; /* = getExprVector(); */
@@ -235,10 +235,10 @@ annotatedFormula[CVC4::Expr& expr]
| TRUE_TOK { expr = MK_CONST(true); }
| FALSE_TOK { expr = MK_CONST(false); }
| NUMERAL_TOK
- { expr = MK_CONST( Input::tokenToInteger($NUMERAL_TOK) ); }
+ { expr = MK_CONST( AntlrInput::tokenToInteger($NUMERAL_TOK) ); }
| RATIONAL_TOK
{ // FIXME: This doesn't work because an SMT rational is not a valid GMP rational string
- expr = MK_CONST( Input::tokenToRational($RATIONAL_TOK) ); }
+ expr = MK_CONST( AntlrInput::tokenToRational($RATIONAL_TOK) ); }
// NOTE: Theory constants go here
/* TODO: quantifiers, arithmetic constants */
;
@@ -260,7 +260,7 @@ annotatedFormulas[std::vector<CVC4::Expr>& formulas, CVC4::Expr& expr]
*/
builtinOp[CVC4::Kind& kind]
@init {
- Debug("parser") << "builtin: " << Input::tokenText(LT(1)) << std::endl;
+ Debug("parser") << "builtin: " << AntlrInput::tokenText(LT(1)) << std::endl;
}
: NOT_TOK { $kind = CVC4::kind::NOT; }
| IMPLIES_TOK { $kind = CVC4::kind::IMPLIES; }
@@ -422,7 +422,7 @@ identifier[std::string& id,
CVC4::parser::DeclarationCheck check,
CVC4::parser::SymbolType type]
: IDENTIFIER
- { id = Input::tokenText($IDENTIFIER);
+ { id = AntlrInput::tokenText($IDENTIFIER);
Debug("parser") << "identifier: " << id
<< " check? " << toString(check)
<< " type? " << toString(type) << std::endl;
@@ -437,7 +437,7 @@ identifier[std::string& id,
let_identifier[std::string& id,
CVC4::parser::DeclarationCheck check]
: LET_IDENTIFIER
- { id = Input::tokenText($LET_IDENTIFIER);
+ { id = AntlrInput::tokenText($LET_IDENTIFIER);
Debug("parser") << "let_identifier: " << id
<< " check? " << toString(check) << std::endl;
PARSER_STATE->checkDeclaration(id, check, SYM_VARIABLE); }
@@ -451,7 +451,7 @@ let_identifier[std::string& id,
flet_identifier[std::string& id,
CVC4::parser::DeclarationCheck check]
: FLET_IDENTIFIER
- { id = Input::tokenText($FLET_IDENTIFIER);
+ { id = AntlrInput::tokenText($FLET_IDENTIFIER);
Debug("parser") << "flet_identifier: " << id
<< " check? " << toString(check) << std::endl;
PARSER_STATE->checkDeclaration(id, check); }
diff --git a/src/parser/smt/smt_input.cpp b/src/parser/smt/smt_input.cpp
index 451310cfd..520e6a6d6 100644
--- a/src/parser/smt/smt_input.cpp
+++ b/src/parser/smt/smt_input.cpp
@@ -17,6 +17,7 @@
#include "smt_input.h"
#include "expr/expr_manager.h"
+#include "parser/input.h"
#include "parser/parser.h"
#include "parser/parser_exception.h"
#include "parser/smt/generated/SmtLexer.h"
@@ -27,7 +28,7 @@ namespace parser {
/* Use lookahead=2 */
SmtInput::SmtInput(AntlrInputStream *inputStream) :
- Input(inputStream, 2) {
+ AntlrInput(inputStream, 2) {
pANTLR3_INPUT_STREAM input = inputStream->getAntlr3InputStream();
AlwaysAssert( input != NULL );
diff --git a/src/parser/smt/smt_input.h b/src/parser/smt/smt_input.h
index e9f4d2578..429f4dad5 100644
--- a/src/parser/smt/smt_input.h
+++ b/src/parser/smt/smt_input.h
@@ -13,12 +13,12 @@
** [[ Add file-specific comments here ]]
**/
-#include "cvc4parser_public.h"
+#include "cvc4parser_private.h"
#ifndef __CVC4__PARSER__SMT_INPUT_H
#define __CVC4__PARSER__SMT_INPUT_H
-#include "parser/input.h"
+#include "parser/antlr_input.h"
#include "parser/smt/generated/SmtLexer.h"
#include "parser/smt/generated/SmtParser.h"
@@ -32,7 +32,7 @@ class ExprManager;
namespace parser {
-class SmtInput : public Input {
+class SmtInput : public AntlrInput {
/** The ANTLR3 SMT lexer for the input. */
pSmtLexer d_pSmtLexer;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback