hi. the <it.decl> probably using the toString() of Attribute object   
Look at the scope object's attributes field to see what kind of  
objects they are.

        protected LinkedHashMap<String,Attribute> attributes = new  
LinkedHashMap();

Then it's using toString. instead use <it.name>:<it.type> I believe.
T
On Dec 20, 2009, at 10:04 AM, Christian Reisinger wrote:

> Hi all ANTLR devs,
>
> I am currently working on a scala port of ANTLR, it uses
> the Java runtime and the templates are about 95 % the same
> as the Java version. I just changed it, to reflect the scala
> way of doing things. I have one problem to solve, for which
> I need help.
>
> I need to change the order of variable declarations in
> classes (e.g. foo_return) and rule parameters (e.g. public
> void foo(int x)), because in scala a variable is defined var
> name:type (e.g. var foo:Int)).
>
> I found the the correct template,
>
> parameterScope(scope) ::= <<
> <scope.attributes:{<it.decl>}; separator=", ">
>>>
>
> but i do not know which template <it.decl> calls,
> that i need to change.
>
> Christian
>
> __________________________________________________
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden  
> Schutz gegen Massenmails.
> http://mail.yahoo.com
> _______________________________________________
> antlr-dev mailing list
> [email protected]
> http://www.antlr.org/mailman/listinfo/antlr-dev

_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to