[antlr-interest] Re: ACE C preprocessor by Gosling

lgcraymer lgc at mail1.jpl.nasa.gov
Fri May 31 15:22:02 PDT 2002


--- In antlr-interest at y..., mzukowski at y... wrote:
> I would add 
> 
>     9.)  Error history.  Some errors and warnings can't be turned 
off, even
> when you want to.  It'd be nice to know what are only 'new' errors 
and
> warnings.

And interactive grammar development means that some errors will 
persist for several editing cycles until the grammar is "complete".  
An interactive environment will give us some incentive to make sure 
that there are no unfixable errors/warnings within ANTLR.  Getting rid 
of all causes for error messages is a part of the cleanup phase of 
development!

>     10.)  Built in version control.  I do an RCS checkin with every 
compile
> because it's so easy to lose a semicolon or whatnot.  This should 
persist
> across invocations of the editor, (persistent undo, basically) but 
not rely
> on the normal version control someone is using for the whole 
project.

Yes, indeed.  An interface to CVS (RCS) should be built in.  After 
working with VAJ, I don't think that we want to build in something 
less capable.

One other point that Ter and I have talked about and has been 
discussed in this NG:  this should be an open source effort with a 
civilized license (not GNU) that allows commercial use.

--Loring

> 
> Monty
> www.codetransform.com
> 
> > -----Original Message-----
> > From: lgcraymer [mailto:lgc at m...]
> > Sent: Friday, May 31, 2002 2:48 PM
> > To: antlr-interest at y...
> > Subject: [antlr-interest] Re: ACE C preprocessor by Gosling
> > 
> > 
> > --- In antlr-interest at y..., Bogdan Mitu <bogdan_mt at y...> wrote:
> > > 
> > > --- Terence Parr <parrt at j...> wrote:
> > > > Cool.  There should be lots of work for all...Loring is 
talking 
> > about an 
> > > > editor that highlights ambiguities etc... ;)
> > > 
> > > Here I might be able to help. I already have an editor with 
syntax 
> > highlight
> > > for ANTLR, an improved Ant task, and kind of "unit test" 
framework 
> > for ANTLR
> > > grammars. If someone needs them, just let me know.
> > 
> > That would help.  What I've actually been thinking about is an 
> > interactive development environment for ANTLR with
> >     1.)  Rule database.  This would make it easier to reuse pieces 
of 
> > grammars.
> >     2.)  Refactoring support.  This would include ordering 
> > alternatives to minimize "k" within a rule, computation of minimal 
> > syntactic predicates, etc.
> >     3.)  Tree grammar generation and storage of rewrites:  
> > the idea is 
> > that you generate a tree grammar from a predecessor parse or tree 
> > grammar, and refactor the generated grammar.  After the 
predecessor 
> > grammar is changed, a new version of the tree grammar is 
> > generated and 
> > the refactorings applied automatically.
> >     4.)  Interactive grammar analysis and editing support for a 
> > multi-grammar chain (lexer, parser, multiple tree grammars).
> >     5.)  Output "grammar" support.  This is the last painful part 
of 
> > building ANTLR translators.
> >     6.)  Full LL(k) analysis and predicate hoisting (just to 
> > point out 
> > that John Mitchell has the right idea here).
> >     7.)  Testing support.
> >     8.)  Whatever else makes sense.  You mentioned reverse 
> > translation 
> > support in a previous post; that might be possible via adding 
> > "comments" on deleted nodes (! is not reversible otherwise) and 
> > figuring out how to generate an ANTLR grammar as output--I suspect 
> > that that would not be too difficult.
> > 
> > Except for the output grammar stuff (Ter's working on that), most 
of 
> > this is either an extension of the current ANTLR engine or borrows 
> > from other efforts.  My guess is that this would drastically 
reduce 
> > turnaround for developing a language translator.  I suspect that 
such 
> > an environment would make development of domain specific languages 
> > into ordinary programming practice.
> > 
> > --Loring
> > 
> > > 
> > > Bogdan 
> > > 
> > > > Ter
> > 
> > 
> > 
> >  
> > 
> > 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