diff options
author | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-03-31 19:53:41 +0000 |
---|---|---|
committer | Christopher L. Conway <christopherleeconway@gmail.com> | 2010-03-31 19:53:41 +0000 |
commit | 57bb8dbac522bef0061cc5209dd5d6b66fa86b6a (patch) | |
tree | 76a684b2b2af7ff4ac0d7fdac82b102e3b9e6f19 /src/parser/antlr_input.cpp | |
parent | 0feb76aa01664745642035262b5fe27fb520fbcf (diff) |
Code cleanup in parser
Diffstat (limited to 'src/parser/antlr_input.cpp')
-rw-r--r-- | src/parser/antlr_input.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parser/antlr_input.cpp b/src/parser/antlr_input.cpp index 02e07bc8f..0c0006031 100644 --- a/src/parser/antlr_input.cpp +++ b/src/parser/antlr_input.cpp @@ -308,6 +308,9 @@ void AntlrInput::setLexer(pANTLR3_LEXER pLexer) { void AntlrInput::setParser(pANTLR3_PARSER pParser) { d_parser = pParser; // ANTLR isn't using super, AFAICT. + // We could also use @parser::context to add a field to the generated parser, but then + // it would have to be declared separately in every input's grammar and we'd have to + // pass it in as an address anyway. d_parser->super = this; d_parser->rec->reportError = &reportError; } |