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?
to your account
Reported by carlburch on 2005-05-31 18:22 UTC
I had reason to want a generic in the method's return type:
JFlex kindly tells me that '<' is an unexpected character. I had to
work around it by defining a subclass that extends the desired type.
I wanted generics with %implements, too, but interestingly JFlex has
no trouble with that. Although I haven't run into a reason to do the
same for %extends, it has the same limitation as %type.
If you decide to support generics, then I'd preemptively point out that
there are several other weird characters that could potentially occur
too: space, comma, question mark, ampersand.
(Thanks for JFlex!)
The text was updated successfully, but these errors were encountered:
Commented by lsf37 on 2008-05-27 05:14 UTC
Logged In: YES
Took a while, but I've now implemented this in revision 356.
Generics syntax for %class and the new %ctorargs is supported as well.
Sorry, something went wrong.
Updated by lsf37 on 2008-05-27 11:46 UTC
No branches or pull requests