[antlr-interest] Re: Could someone answer me,please?

lgcraymer lgc at mail1.jpl.nasa.gov
Tue Jul 6 22:57:26 PDT 2004


That won't help--David Wigg's C++ grammar is heavily dependent on
semantic predicates that are actually syntactic predicates that have
been lifted from PCCTS-generated code.  Fortunately, Ter is supporting
predicate hoisting in ANTLR 3--Wigg had to work around the lack in
ANTLR 2.

--Loring


--- In antlr-interest at yahoogroups.com, Kaleb Pederson <kibab at i...> wrote:
> On Tuesday 06 July 2004 2:12 am, Ric Klaren wrote:
> > On Tue, Jul 06, 2004 at 08:27:31AM -0000, yjargudo wrote:
> > > The only thing that I need a clean grammar (without any antlr action
> > > inserted)that recognize c++. There are some place where I can
get It?
> >
> > The only antlr grammar that does C++ I'm aware of is the one you
used from
> > David. It depends on how thorougly you want to recognize C++
wether it will
> > work without action code or subsequent tree walking/post processing.
> 
> If you use the -html switch to antlr.Tool, you can generate HTML which 
> contains just the grammar.  You can then copy and paste the grammar,
without 
> actions, back into a text file and you now have an action free grammar.
> 
> It's kind of a hack, but it should work.  I find the formatting
particularly 
> annoying, but that's just my personal preference....
> 
> Hope that helps.
> 
> --Kaleb



 
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