On 25.02.2010 21:47,  Jim Idle wrote:
> tree grammar IScriptTreeParser;
> options {
>    language = Java;
>    tokenVocab = IScript;
>    ASTLabelType = CommonTree;
>    SuperClass = AbstractIScriptTreeParser;
> } 
>   

Still not what I'd like to have. I think I'll give it one more try:

When finished I want to have following inheritance

TreeParser <-- IScriptTreeParser <-- ConcreteTreeParser
TreeParser <-- IScriptTreeParser <-- AnotherConcreteTreeParser

TreeParser
    *   is the ANTLR base class

IScriptTreeParser is:
    *    automatically generated from my treegrammar file
    *    abstract public class IScriptCompiler extends TreeParser {... }
        ----^^^
    *    has some abstract methods defined in @members

ConcreteTreeParser is:
    *    some class I am doing on my own
    *    implements abstract stuff from IScriptTreeParser

AnotherConcreteTreeParser is:
    *    some class I am doing on my own
    *    different implementation of abstract methods


so far I did not get a recommendation how to do that.

any ideas?
Christian
   


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to