[antlr-interest] unexpected end of subtree
    Mr Torsten Curdt 
    tcurdt at yahoo.com
       
    Thu Jun 24 01:24:05 PDT 2004
    
    
  
I really don't understand why the end of the
subtree is being unexspected. And I need to
get rid of the System.out message.
Other than that everything seems to work
just fine.
Anyone a pointer?
--- Mr Torsten Curdt <tcurdt at yahoo.com> wrote:
> Can someone please explain why the following
> snippet generates an "unexpected end of subtree"
> warning? Everything else seem to be fine.
> 
> keyvalue returns [ Object o ]
>   {
>     o = null;
>     String kn;
>     Object kv;
>   }
>   : { java.util.HashMap map = new
> java.util.HashMap();
> o = map; }
>     ( 
>       #(KEY kn=literal kv=literal) {
>         map.put(kn,kv);        
>       }
>     )+
>   | #(VALUE kv=literal) {
>       o = kv;
>     }
>   ;
> 
> Is it because (#KEY)+ is unbound? I assume
> I get the warning when the end of the childs
> are reached.
> 
> cheers
> --
> Torsten
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
>      antlr-interest-unsubscribe at yahoogroups.com
> 
>  
> 
> 
		
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 
 
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:
     http://docs.yahoo.com/info/terms/
 
    
    
More information about the antlr-interest
mailing list