[antlr-interest] ANTLR 3.0 tree construction proposal

Loring Craymer Loring.G.Craymer at jpl.nasa.gov
Tue Feb 1 21:41:42 PST 2005



> -----Original Message-----
> From: John D. Mitchell [mailto:johnm-antlr at non.net]
> Sent: Tuesday, February 01, 2005 9:06 PM
> To: Loring Craymer
> Cc: 'ANTLR Interest'
> Subject: RE: [antlr-interest] ANTLR 3.0 tree construction proposal
...
> > A key point: with automatically generated tree grammars, ANTLR errors
> can
> > only occur in the lexer or parser.  Even if Paul Lucas' idea of
> > propagating error trees is adopted, we can still handle that.  So the
> > problem is one of what error-handling support, if any, is provided to
> > users for their use.
> 
> Huh?  You're talking about generating all of my tree grammars for me?  Did

Modulo refactoring, yes.  And the set of refactorings for grammars looks to
be reasonably small--about 10 or so.  That's the key reason I developed a
target-language-independent construction syntax in the first place:  when
you specify the transformation, you provide enough information to define a
corresponding tree grammar which can then be refactored into a useful form.
The only piece missing right now is the insertion analysis.

> I miss something? 

Apparently!

--Loring

> Thanks,
> 	John



More information about the antlr-interest mailing list