[antlr-interest] Please help a newbie!

Richard Clark rd_clark at sbcglobal.net
Tue Aug 3 20:47:26 PDT 2004


Some of this just takes a Zen approach: becoming one with the 
documentation. Try adding # in front of the var names in the action 
(and look at the generated code to see what ANTLR does with it.)


assign
  { float f; }
          : i:ID EQ f=f_expr                 { assignTo(#i->getText(), 
#f); }
          ;

  ...R



 
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