[antlr-interest] Stupid problem (Antlr 2.7.6)

Jose Ventura jose.ventura.roda at gmail.com
Fri Jan 26 05:39:31 PST 2007

With this very simple antlr parser I have problems generating java program

 class pru extends Parser;
 copy: la:"COPY"    {System.out.println (#la.getText());};

Antlr generate

 try { // for error handling
   la = LT(1);
   System.out.println (#la.getText());

Wy don't translate the #?

Is a stupid question, sure. But I don't see it.

Any help? Thank's.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070126/6598094f/attachment.html 

More information about the antlr-interest mailing list