[antlr-interest] $ Expansion Conflict w/ Class Name
Johannes Luber
jaluber at gmx.de
Wed Aug 13 03:21:03 PDT 2008
Foust schrieb:
> Although Java allows class names beginning with $, ANTLR does not.
>
> Is there a known workaround besides:
>
> 1. renaming the class (if you have the source code)
>
> 2. Writing an adaptor (if you don’t)
>
> (This is not always straightforward.)
>
> ?
>
> Brent
>
Are you referring to create a class with $ as an ANTLR parser or do you
want to to reference another class? In the latter case maybe using \$
may work. Although I have no idea, what classes with $ are supposed to
accomplish anyway.
Johannes
More information about the antlr-interest
mailing list