Hi all,

 

I have a global scope 

 

scope Symbols {
  List names;
}

 

In the rule statement, I used the global scope:

 

statement
scope Symbols;
@init{ level++;
    $Symbols::names = new ArrayList();
}

 

But I also want to use Dynamic Attribute Scope in the statment, so I do the 
following:

 

scope {Symbols;
List out;
}

 

 

But the error said :

java.lang.Error: Unresolved compilation problem: 
Syntax error on token "Symbols", VariableDeclarator expected after this token

 

So how to use them together?

 

 

Thanks,

Annie

 

 

_________________________________________________________________
梦幻K图,百变造型,让你的照片与众不同,快来MClub试试吧!
http://club.msn.cn/?form=3
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-interest@googlegroups.com
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to