1 // $ANTLR 3.2 Aug 20, 2010 15:00:19 /usr/local/ANTLR3-ObjC2.0-Runtime/Framework/examples/treerewrite/TreeRewrite.g 2010-08-20 15:03:14 2 3 /* ============================================================================= 4 * Standard antlr3 OBJC runtime definitions 5 */ 6 #import <Cocoa/Cocoa.h> 7 #import "antlr3.h" 8 /* End of standard antlr3 runtime definitions 9 * ============================================================================= 10 */ 11 12 #pragma mark Tokens 13 #define WS 5 14 #define INT 4 15 #define EOF -1 16 #pragma mark Dynamic Global Scopes 17 #pragma mark Dynamic Rule Scopes 18 #pragma mark Rule Return Scopes start 19 @interface TreeRewriteParser_rule_return :ANTLRParserRuleReturnScope { // line 1672 20 // returnScopeInterface.memVars 21 ANTLRCommonTree *tree; // start of memVars() 22 } 23 24 // start properties 25 @property (retain, getter=getTree, setter=setTree:) ANTLRCommonTree *tree; 26 + (TreeRewriteParser_rule_return *)newTreeRewriteParser_rule_return; 27 // this is start of set and get methods 28 // returnScopeInterface.methodsdecl 29 - (ANTLRCommonTree *)getTree; 30 - (void) setTree:(ANTLRCommonTree *)aTree; 31 // methodsDecl 32 @end 33 @interface TreeRewriteParser_subrule_return :ANTLRParserRuleReturnScope { // line 1672 34 // returnScopeInterface.memVars 35 ANTLRCommonTree *tree; // start of memVars() 36 } 37 38 // start properties 39 @property (retain, getter=getTree, setter=setTree:) ANTLRCommonTree *tree; 40 + (TreeRewriteParser_subrule_return *)newTreeRewriteParser_subrule_return; 41 // this is start of set and get methods 42 // returnScopeInterface.methodsdecl 43 - (ANTLRCommonTree *)getTree; 44 - (void) setTree:(ANTLRCommonTree *)aTree; 45 // methodsDecl 46 @end 47 48 #pragma mark Rule return scopes end 49 @interface TreeRewriteParser : ANTLRParser { // line 529 50 // start of globalAttributeScopeMemVar 51 52 53 // start of action-actionScope-memVars 54 // start of ruleAttributeScopeMemVar 55 56 57 // Start of memVars 58 // parserHeaderFile.memVars 59 // parsermemVars 60 id<ANTLRTreeAdaptor> treeAdaptor; 61 62 } 63 64 // start of action-actionScope-methodsDecl 65 66 // parserHeaderFile.methodsdecl 67 // parserMethodsDecl 68 - (id<ANTLRTreeAdaptor>) getTreeAdaptor; 69 - (void) setTreeAdaptor:(id<ANTLRTreeAdaptor>)theTreeAdaptor; 70 71 - (TreeRewriteParser_rule_return *)mrule; 72 - (TreeRewriteParser_subrule_return *)msubrule; 73 74 75 @end /* end of TreeRewriteParser interface */ 76