> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of Terence Parr
> Sent: Monday, November 22, 2010 11:15 AM
> To: Sam Harwell
> Cc: [email protected]
> Subject: Re: [antlr-dev] please remove hasDelegates
>
>
> On Nov 21, 2010, at 11:13 PM, Sam Harwell wrote:
>
> > This attribute was added to the CSharp3 target in CL 6464 while
> fixing
> > an issue with delegate grammars.
>
> Interesting. says
>
> * Add a HasDelegates property to Grammar
>
> but that was to your antlrcs stuff, right? It has never appeared in my
> Grammar.java.
>
> > I tried adding a CSharp3Target.java file, but ran into the following
> > problems:
> >
> > 1. The Java version of the tool doesn't implement rule visibility
> > (despite having it as part of the grammars). It results in all rule
> > methods in the grammar being private (the default in C#).
>
> can't you just add "public" to your templates?
We allowed qualifiers to the rules but did not pass them on anywhere to be
processed. it would be pretty easy to do that for languages where this might
be useful. I did account for that in the new grammars that you are using for
v4.
> >
> > 4. The Java version of the tool doesn't implement actions for
> > attribute scopes. In the C# version, you can have scopes like the
> following:
> >
> > scope S @scopeinit{$S::value=true;} {boolean value;}
>
> What can I do quickly to help you?
The problem with that is that for languages like C, it will be a bit of a
bitch to implement. not impossible of course, but some messing around.
Jim
_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev