Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: jjtree: how to change node name dynamically?



One way to do this is to modify SimpleNode to add an attribute
that represents the number.  Set the attribute from inside
the nodescope.

I.e.
 void nearExpr() : { Token t ;}
  {
      ( unaryExpr() ( t=<NEAR> unaryExpr()
                      { jjtThis.setNumber( extractNumber( t.image) ; }
                    )?
      ) #NEAR(>1)
  }




<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.