[antlr-interest] Abstract tree parser
Michael Bedward
michael.bedward at gmail.com
Thu Feb 25 19:41:13 PST 2010
Neat !
I've been following this thread with interest. Thanks for starting it Christian.
Michael
On 26 February 2010 07:47, Jim Idle <jimi at temporal-wave.com> wrote:
> tree grammar IScriptTreeParser;
> options {
> language = Java;
> tokenVocab = IScript;
> ASTLabelType = CommonTree;
> SuperClass = AbstractIScriptTreeParser;
> }
>
> @header {
> package com.something.test;
> }
>
>
> program
> : g=globalStatement { blah($g);
>
> ;
>
>
> AbstractIScriptCompiler.java
>
> public class AbstractIScriptCompiler extends TreeParser {
>
> ///// Implement constructors
>
> ////; Implement member methods
>
> protected void blah(CommonTree t) ...
> }
>
>
>
> Etc!
>
> Jim
>
More information about the antlr-interest
mailing list