summaryrefslogtreecommitdiff
path: root/src/parser/antlr_input.cpp
diff options
context:
space:
mode:
authorFrançois Bobot <francois@bobot.eu>2012-06-22 15:11:21 +0000
committerFrançois Bobot <francois@bobot.eu>2012-06-22 15:11:21 +0000
commiteda7d4df5481030d4e9cb6ef4a33d52afc8f7e0a (patch)
tree20d6a6335c5fd43fdf2a76dd7550d0519992d5e0 /src/parser/antlr_input.cpp
parent1cbf657d955776860580b662aefd53705b603680 (diff)
parser: add some acces function and recover the original nextToken from antlr3
in order to be able to use the stack of streams.
Diffstat (limited to 'src/parser/antlr_input.cpp')
-rw-r--r--src/parser/antlr_input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/antlr_input.cpp b/src/parser/antlr_input.cpp
index 52d98435e..7336dd084 100644
--- a/src/parser/antlr_input.cpp
+++ b/src/parser/antlr_input.cpp
@@ -312,7 +312,7 @@ void AntlrInput::setAntlr3Lexer(pANTLR3_LEXER pLexer) {
// Override default lexer error reporting
d_lexer->rec->reportError = &lexerError;
// Override default nextToken function, just to prevent exceptions escaping.
- d_lexer->rec->state->tokSource->nextToken = &nextTokenStr;
+ d_lexer->rec->state->tokSource->nextToken = &nextToken;
}
void AntlrInput::setParser(Parser& parser) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback