[antlr-interest] Variables starting with _
mzukowski at yci.com
mzukowski at yci.com
Fri Mar 14 15:11:25 PST 2003
Antlr creates some of its own variables starting with _, so it might be
preventing you from doing the same.
Monty
-----Original Message-----
From: Andrew Deren [mailto:andrew at adersoftware.com]
Sent: Friday, March 14, 2003 2:59 PM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] Variables starting with _
It seems antlr won't accept variables that start with _ (underscore)
for example, a parser rule:
rule { Exp _exp = null; }
:
_exp = exp
;
will result in TokenStreamException. I don't know if that is meant to be
that way, but I would think it should be fine, because _exp is valid
java/c++/c# variable name.
Andrew
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list