[antlr-interest] forest growing

Lloyd Dupont lloyd at nova-mind.com
Sun May 29 20:47:23 PDT 2005


I want to make a custom tree but I have problem with the syntax.

my rue is something like:

objClassDef:
    name:ID (COLON! superclass:ID)? (LT! protocol1:ID (protocol2:COMMA! ID)* GT!)?
    (methodName SEMI!) *
    ;

I would like a tree looking like
#(OBJC_CLASS_DEF ID /*name*/ (ID /*superclass*/)? #(PROTOCOL (ID)+)? (methodName) *)

how do I do that?
thanks ;)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050530/0922b80a/attachment.html


More information about the antlr-interest mailing list