[antlr-interest] Re: 3.0 multiple language support
Terence Parr
parrt at cs.usfca.edu
Sun Aug 8 14:57:46 PDT 2004
On Aug 2, 2004, at 11:24 PM, Robin Debreuil wrote:
> One tiny thing that could really go a long way is to change the
> wording of
> getType() currently used. In C# GetType() is an object member, so
> having
> that there unmodified means these two names only differ by case. This
> means
> it isn't CLS compliant (some languages aren't case sensitive, like
> VB). This
> means that while you can black box call the antlr.runtime.dll, but you
> can't
> do things like subclass AST for example, which otherwise you could. So
> other
> languages can only use grammars already created, they can't really use
> antlr
> itself.
>
> I know it isn't that big a deal to work around once you know your way
> around
> antlr, but it is a pretty intimidating first step to have to take.
> After
> that, you still have things like java naming conventions/styles that
> make
> things a bit akward, it might be nice if all that was abstracted
> somehow and
> could be set per language (as per this conversation I know).
Seems like a standard action (outside of a language-specific action
block) such as newline and skip and settype would be useful. Then
those could be translated to the target language via templates.
Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list