[antlr-interest] forest growing

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


well, I used a protected subrule for protocol and it worked......

  ----- Original Message ----- 
  From: Lloyd Dupont 
  To: antlr-interest at antlr.org 
  Sent: Monday, May 30, 2005 1:47 PM
  Subject: [antlr-interest] forest growing


  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/ebe9ae8f/attachment.html


More information about the antlr-interest mailing list