[antlr-interest] Re: ANTLR 2.7.3 release candidate 3 available

lgcraymer lgc at mail1.jpl.nasa.gov
Fri Mar 19 11:23:47 PST 2004


--- In antlr-interest at yahoogroups.com, Ric Klaren <klaren at c...> wrote:
> Hi,
> 
> Great the DebugParser stuff is then covered :) and glad I didn't start
> hacking on those.
> 
> On Fri, Mar 19, 2004 at 12:24:09AM -0000, lgcraymer wrote:
> > generated C# code.  I'm expecting to install the ParseTreeDebugParser and
> > ParseTreeDebugTreeParser classes as antlr.test.Parser and
> > antlr.test.TreeParser in 2.8 (or antlr::test::Parser and
> > antlr::test::TreeParser for C++).
> 
> Slight nitpick ;) but why use a different convention as the java part? E.g.
> not antlr::debug::TreeParser etc.

They are really the same--it's just that the two languages differ in their namespace qualifier syntax--'.' vs '::'.  C# follows Java in this, so 
I have to translate '.'s to '::'s for packages when generating C++.

> 
> > I have also added some options and flags
> > to support the language independence--I'm not quite there yet, but the idea
> > is to use one set of grammar files for testing all three runtimes.
> >
> > That just leaves the C++ version of the TokenStreamRewriteEngine as a
> > missing feature.  Any volunteers?
> 
> I got the tokenWithIndex class ported (duh trivial) and started on the
> rewrite engine but doing a direct port is just too plain ugly (it wrings a
> bit between indici and iterators). I probably won't be able to finish and
> test this before monday. Providing an addon lateron is no problem though.

Way cool!  I've almost gotten the C++ runtime for my tree stuff up and running--only one of my test cases fails.  I have about two 
weeks of down time coming up and will use that to integrate the final 2.7.3 changes and clean a few things up.  With Micheal's port of 
the C# ParseTreeDebugParser, he should be able to bring the C# runtime up very quickly for 2.8 (I know just enough C# to edit the 
code generator, but have no hands-on experience).

--Loring

> 
> Cheers,
> 
> Ric
> --
> -----+++++*****************************************************+++++++++-------
>     ---- Ric Klaren ----- j.klaren at u... ----- +31 53 4893722  ----
> -----+++++*****************************************************+++++++++-------
>  'And this 'rebooting' business? Give it a good kicking, do you?' 'Oh, no,
>   of course, we ... that is ... well, yes, in fact,' said Ponder. 'Adrian
>     goes round the back and ... er ... prods it with his foot. But in a
>      technical way,' he added. --- From: Hogfather by Terry Pratchett.



 
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