[antlr-interest] change a portion of a tree

Lloyd Dupont lloyd at nova-mind.com
Sun May 29 21:08:33 PDT 2005


here (in red) I tried to edit a portion of my tree, but that didn't work.. any idea?

objcClassDefinition
 : AT_INTERFACE! tName:ID
  (
           // 1st declaration
          (COLON! ID)? /* super class */
          (objcProtocolList)? /* protocols */
           // instance variable
          (
                LCURLY
                ( declaration ) *
                RCURLY
           )?
      |
           // or just a category 
           LPAREN! tCat:ID RPAREN!
           { #tCat = #( #[ObjcCATEGORY, "categorie"], #tCat); }
  )
  ( objcMethodName SEMI!  ) *
  AT_END!
  { ## = #( #[ObjcCLASS_DEF, "@interface"], ##); }
 ;
protected objcProtocolList
 : LT! ID (COMMA! ID) * GT!
  { ## = #( #[ObjcPROTOCOL, "@protocol"], ##); }
 ;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050530/dd873e4d/attachment.html


More information about the antlr-interest mailing list