[antlr-interest] Problem with scope in members functions

Terence Parr parrt at cs.usfca.edu
Tue Oct 23 02:51:06 PDT 2007


On Oct 23, 2007, at 5:37 PM, Guillaume Chavanon wrote:

> Terence Parr wrote:Hi.
> The rule paragraph declares "scope Parag;".
> And the exception is raised when I try to generate the parser not  
> when I use it.

Oh!  Right. sorry...still suffering from jetlag here in beijing.   
anyway, i think maybe my simple algorithm is trying to look for  
assignments to scoped var and gets into a recursive weird thing here.

> More strange : it work fine if I replace
> $Parag::nbWord = $Parag::nbWord + 1;
> by
> $Parag::nbWord++;

which is why that works.  Sorry.  added bug:

http://www.antlr.org:8888/browse/ANTLR-185

Ter

>
> Regards,
> -- 
> Systems'ViP
> (Boost your R&D efficiency, implement the functional Virtual  
> Prototyping with us)
>
> Guillaume Chavanon
>
> 4 Rue Boussingault
> F - 67000 Strasbourg
> guillaume.chavanon at systemsvip.com
> www.systemsvip.com
> tel:    +33 811 036 094
> fax:    +33 874 761 346
>
> This e-mail, including attachments, is intended for the person(s)  
> or company named and may contain confidential and/or legally  
> privileged information. Unauthorized disclosure, copying or use of  
> this information may be unlawful and is prohibited. If you are not  
> the intended recipient,please delete this message and notify the  
> sender
>



More information about the antlr-interest mailing list