[antlr-interest] Tree structure

Monty Zukowski monty at codetransform.com
Thu Sep 30 10:14:59 PDT 2004


Have a look at the generated code.  is there a variable declaration 
missing or something?  Nothing is obviously wrong from what I see.

Monty

ANTLR & Java Consultant -- http://www.codetransform.com
ANSI C/GCC transformation toolkit -- 
http://www.codetransform.com/gcc.html
Embrace the Decay -- http://www.codetransform.com/EmbraceDecay.html

On Sep 30, 2004, at 9:52 AM, ManimuthuLakshmi Pitchaikani wrote:

> Hi,
>  
> I want the tree structure as follows:
>  
> Nice 
>       |
>      |--15
>  
> My code is as follows:
>
> opt_pri! :#(PRI priVal)
>
> {
>
> #opt_pri = #([NICE, "nice"], #priVal);
>
>
>  }
>
> ;
>
> priVal! : INT
>
> {
>
> #priVal = #[INT,"-15"];
>
>
> }
>
> ;
>  
> Am getting the following error:
>
> java.lang.Error: Unresolved compilation problem:
>
>  priVal cannot be resolved
>
> How i can resolve this error? Is there is any other way?
>
> Thanks.
>
> Best regards,
>
> Lakshmi
>
>  
>
>  
>  
>
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
>
>  Yahoo! Groups Links
>
> 	• 	To visit your group on the web, go to:
> http://groups.yahoo.com/group/antlr-interest/
>  
> 	• 	 To unsubscribe from this group, send an email to:
> antlr-interest-unsubscribe at yahoogroups.com
>  
> 	• 	 Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
> Service.
>
>  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2362 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20040930/01c24b1c/attachment.bin


More information about the antlr-interest mailing list