[antlr-interest] parameterized maps as arguments to rules??
Richard Clark
rdclark at gmail.com
Tue Jun 26 14:59:57 PDT 2007
On 6/26/07, Oti <ohumbel at gmail.com> wrote:
> > I have the beginning of a rule:
> > formalParameterDecls returns [HashMap<String,String> params].
> >
> > But I get a compilation error
You can use JDK 5 features in any {} block (including @members, @init,
@after, and rule actions), but you can't use them in a rule
declaration. ANTLR 3 doesn't do the right thing with parameterized
types in declarations.
...Richard
More information about the antlr-interest
mailing list