[antlr-interest] Antlr 3 syntax question

shmuel siegel antlr at shmuelhome.mine.nu
Wed Apr 26 15:00:48 PDT 2006


In Antlr2 I was able to change the text of the token stream with code 
like this

ESCAPE
     :    '\\'
          ( '\\' { $setText("\\"); }
          | '"' { $setText("\""); }
          )
     ;

What is the equivalent in Antlr 3?


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.6/324 - Release Date: 4/25/2006



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.6/324 - Release Date: 4/25/2006



More information about the antlr-interest mailing list