Using own tree generation (2)
0 posts in topic
Flat View  Flat View

Posted By:   frigot_eric
Posted On:   Thursday, October 25, 2001 01:38 AM

Just another exemple that need confirmation :

i have got this rule :

elements : (statement)+ ;

I want to do something like that :

elements[Script script=null] : (stat:statement {if (script == null) {list = new LinkedList (stat); } else {list.add (stat) ;} } )+ {script = Script(list) ; } ;

I don't know if i can made this initialisation (script=null) here,
and i don't know how to declare a temporary variable (list), i don't know finally if it's the better solution.
Perhaps you can help me !!!, Thank You.

About | Sitemap | Contact