Home | History | Annotate | Download | only in treeparser
      1 tree grammar LangDumpDecl;
      2 options {
      3     tokenVocab=Lang;
      4 	language = ObjC;
      5     ASTLabelType = ANTLRCommonTree;
      6 }
      7 
      8 decl : ^(DECL type declarator)
      9        // label.start, label.start, label.text
     10        { NSLog(@"int \%@", $declarator.text);}
     11      ;
     12 
     13 type : INTTYPE ;
     14 
     15 declarator
     16      : ID
     17      ;
     18