summaryrefslogtreecommitdiff
path: root/src/parser/antlr_input.h
diff options
context:
space:
mode:
authorChristopher L. Conway <christopherleeconway@gmail.com>2010-05-03 20:52:41 +0000
committerChristopher L. Conway <christopherleeconway@gmail.com>2010-05-03 20:52:41 +0000
commit09b5745fa1a2fcdc6b8d0a0d31c1ba34c96d67f0 (patch)
treece337d6e07fb2879e9461b114b6ac2745772b57b /src/parser/antlr_input.h
parent1c5ad02344b9041cab9dd275ae69c953c31c6b8d (diff)
Importing ANTLR3 lexer nextToken function to avoid escaped exceptions.
Diffstat (limited to 'src/parser/antlr_input.h')
-rw-r--r--src/parser/antlr_input.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser/antlr_input.h b/src/parser/antlr_input.h
index 441d2a0b3..244735e9b 100644
--- a/src/parser/antlr_input.h
+++ b/src/parser/antlr_input.h
@@ -112,6 +112,10 @@ class AntlrInput : public Input{
/** Builds a message for a lexer error and calls <code>parseError</code>. */
static void lexerError(pANTLR3_BASE_RECOGNIZER recognizer);
+ /** Returns the next available lexer token from the current input stream. */
+ static pANTLR3_COMMON_TOKEN
+ nextTokenStr (pANTLR3_TOKEN_SOURCE toksource);
+
/* Since we own d_tokenStream and it needs to be freed, we need to prevent
* copy construction and assignment.
*/
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback