-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make generic visitor with parameterized return values: XVisitor<T> upon -visitor option #9
Comments
Cool stuff. Also BaseVisitor is a good thing. For generic return types this would be in each context class
and something like this in a visitor implementation provided by the user
Am I right? Visitor interface and blank default implementation would be generated by ANTLR I guess. |
The generated visitor interface might look like this public interface Visitor { |
Fixed with parrt/antlr4@725b105. Merged into master in #16. |
Complement and validate bitset bug fix
add the following double dispatch:
and generate XVisitor. Make a BaseXVisitor that has a
And generates the following default implementations:
I guess we also need a generic method in ParserRuleContext:
People can do things like this:
The text was updated successfully, but these errors were encountered: