[antlr-interest] fragments..

Jim Idle jimi at temporal-wave.com
Tue Apr 3 11:10:04 PDT 2007


Tobais,

Why are you doing:

	 // THIS IS A DIRTY HACK!
	 #define toString(A,B) toStringTT(theInput(),(A),(B))

?


-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Tobias Pape


Consider the following Grammar:

----in the Parser ----
// Grammar productions
classdef returns [ pASTClass c ]
   @init {
	 // seems to be buggy in \$label.text implementation
	 // THIS IS A DIRTY HACK!
	 #define toString(A,B) toStringTT(theInput(),(A),(B))
	}


More information about the antlr-interest mailing list