Folks
Can anyone tell me quick if this makes sense... I have grammar A that imports
B. I want to reuse the A parser so I call
AParser.setTokenStream(input);
Thing is setTokenStream() is inherited from Parser and by default does not
communicate with delegate parsers. Should I override in AParser with
public void setTokenStream(TokenStream input) {
super.setTokenStream(input);
gB.setTokenStream(input);
}
where gB is the delegate parser in AParser?
And a feature request... I use grammar imports quite extensively and have
already run into an issue where I needed a method in a parser to get its
delegate parsers. Is there some fundamental barrier to providing such a method
on Lexer, Parser, and TreeParser that would return some collection of delegate
parsers/lexers/tree parsers?
Bill Andersen
Highfleet, Inc. (www.highfleet.com)
3600 O'Donnell Street, Suite 600
Baltimore, MD 21224
Office: +1.410.675.1201
Cell: +1.443.858.6444
Fax: +1.410.675.1204
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en.