[antlr-interest] Rule methods are private (CSharp3 target)

Elnur Cabarov elnur.j at gmail.com
Tue Jul 21 04:53:28 PDT 2009


Yes, it helped, thank you,
though I seem that generated code must be maximum similar between target
languages, especially between so alike Java and C#


On Tue, Jul 21, 2009 at 12:42 AM, Gavin Lambert <antlr at mirality.co.nz>wrote:

> At 01:31 21/07/2009, Elnur Cabarov wrote:
>
>> I use Antlr executable by Sam Harwell, but rule methods for CSharp3 target
>> are private, so I can't call them externally
>>
>
> Have you tried putting "public" in front of the rules you want to be
> callable?  (This doesn't make any difference to the Java target, but it's
> possible it does for CSharp3.  I haven't checked though.)
>
>


-- 
Elnur Cabarov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090721/1305b39f/attachment.html 


More information about the antlr-interest mailing list