[antlr-interest] Separation of specification and code

Loring Craymer Loring.G.Craymer at jpl.nasa.gov
Mon Mar 7 11:40:26 PST 2005


Ken--

This is done in ANTLR via trees and Ter's StringTemplate package.  For tree 
support, check out

http://www.openchannelsoftware.org/projects/ANTLR_Tree_Extensions/

where I have just released an ANTLR 2.8 version which includes an extended 
syntax for tree rewriting and automated tree grammar generation from an 
annotated input grammar.  For StringTemplate, check out

http://www.stringtemplate.org/

and I believe that some other material may appear on the ANTLR site.

--Loring


At 10:20 AM 3/7/2005, Ken Weinert wrote:
>I've been an antlr advocate since it was pccts (Hi Terence :) but I've
>not really had occasion to use it much since then.
>
>My boss stopped by today with a question that I'm relaying here as I'm
>really not familiar enough with the mechanics to know if antlr
>supports this mode of operation.
>
>What he'd like is to be able to keep the specification clean and the
>code separate. He mentioned Grammatica which uses the EBNF to produce
>a parser, but you implement the actions by extending the class for
>each leaf in the generated code.
>
>Have I made myself clear? Is this something that antlr supports?
>Pointers to where I can easily resolve this are as (if not more)
>welcome as direct answers.
>
>Thanks for any information.
>
>--
>Ken Weinert   kweinert at gmail.com




More information about the antlr-interest mailing list