You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported by carlburch on 2005-05-31 18:22 UTC
I had reason to want a generic in the method's return type:
%type Token<JavaTokenType>
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:
lsf37
changed the title
Support generics for %type and %extends
[Bug] Support generics for %type and %extends [sf#73]
Feb 15, 2015
Reported by carlburch on 2005-05-31 18:22 UTC
I had reason to want a generic in the method's return type:
%type Token<JavaTokenType>
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: