summaryrefslogtreecommitdiff
path: root/src/parser/antlr_input.h
diff options
context:
space:
mode:
authorChristopher L. Conway <christopherleeconway@gmail.com>2010-05-06 20:07:56 +0000
committerChristopher L. Conway <christopherleeconway@gmail.com>2010-05-06 20:07:56 +0000
commit1e8c9ae990adc55570298d1ffc5d8c55fbc71237 (patch)
tree8c8c0243a44a75ee471e7a477ed2391279df419c /src/parser/antlr_input.h
parente909abcaf122e7c426d2b078728679f43a8ca442 (diff)
Adding bit-vector constants in SMT2
Diffstat (limited to 'src/parser/antlr_input.h')
-rw-r--r--src/parser/antlr_input.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/parser/antlr_input.h b/src/parser/antlr_input.h
index f52467ad9..38fe1bce8 100644
--- a/src/parser/antlr_input.h
+++ b/src/parser/antlr_input.h
@@ -29,6 +29,7 @@
#include "expr/expr.h"
#include "expr/expr_manager.h"
#include "util/Assert.h"
+#include "util/bitvector.h"
#include "util/integer.h"
#include "util/rational.h"
@@ -148,8 +149,6 @@ public:
static Integer tokenToInteger( pANTLR3_COMMON_TOKEN token );
/** Retrieve a Rational from the text of a token */
static Rational tokenToRational(pANTLR3_COMMON_TOKEN token);
- /** Retrive a Bitvector from the text of a token */
-// static Bitvector tokenToBitvector(pANTLR3_COMMON_TOKEN token, int base);
protected:
/** Create an input. This input takes ownership of the given input stream,
@@ -201,8 +200,7 @@ inline unsigned AntlrInput::tokenToUnsigned(pANTLR3_COMMON_TOKEN token) {
}
inline Integer AntlrInput::tokenToInteger(pANTLR3_COMMON_TOKEN token) {
- Integer i( tokenText(token) );
- return i;
+ return Integer( tokenText(token) );
}
inline Rational AntlrInput::tokenToRational(pANTLR3_COMMON_TOKEN token) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback