[antlr-interest] proposal: new properties or Token methods

Terence Parr parrt at cs.usfca.edu
Fri Dec 28 13:31:36 PST 2007


hi. I find myself doing Integer.valueOf($label.text) a lot.  Integer  
values are so common in languages that perhaps we should define  
$label.int and maybe label.float?  Or, is it simpler to just define

	public int toInt();
	public float toFloat();
	public double toDouble();

in Token interface?  I guess I'll try that first.

Ter


More information about the antlr-interest mailing list