1 // $ANTLR 3.4 /Users/acondit/source/antlr/code/antlr3/runtime/ObjC/Framework/examples/polydiff/Poly.g 2012-02-16 18:10:10 2 3 /* ============================================================================= 4 * Standard antlr OBJC runtime definitions 5 */ 6 #import <Foundation/Foundation.h> 7 #import <ANTLR/ANTLR.h> 8 /* End of standard antlr3 runtime definitions 9 * ============================================================================= 10 */ 11 12 /* parserHeaderFile */ 13 #ifndef ANTLR3TokenTypeAlreadyDefined 14 #define ANTLR3TokenTypeAlreadyDefined 15 typedef enum { 16 ANTLR_EOF = -1, 17 INVALID, 18 EOR, 19 DOWN, 20 UP, 21 MIN 22 } ANTLR3TokenType; 23 #endif 24 25 #pragma mark Tokens 26 #ifdef EOF 27 #undef EOF 28 #endif 29 #define EOF -1 30 #define T__8 8 31 #define T__9 9 32 #define ID 4 33 #define INT 5 34 #define MULT 6 35 #define WS 7 36 #pragma mark Dynamic Global Scopes globalAttributeScopeInterface 37 #pragma mark Dynamic Rule Scopes ruleAttributeScopeInterface 38 #pragma mark Rule Return Scopes returnScopeInterface 39 /* returnScopeInterface PolyParser_poly_return */ 40 @interface PolyParser_poly_return : ParserRuleReturnScope { /* returnScopeInterface line 1838 */ 41 /* AST returnScopeInterface.memVars */ 42 CommonTree *tree; /* ObjC start of memVars() */ 43 44 } 45 /* start property declarations */ 46 /* AST returnScopeInterface.properties */ 47 @property (retain, getter=getTree, setter=setTree:) CommonTree *tree; 48 49 /* start of method declarations */ 50 51 + (PolyParser_poly_return *)newPolyParser_poly_return; 52 /* this is start of set and get methods */ 53 /* AST returnScopeInterface.methodsDecl */ 54 - (CommonTree *)getTree; 55 56 - (void) setTree:(CommonTree *)aTree; 57 /* methodsDecl */ 58 59 @end /* end of returnScopeInterface interface */ 60 61 62 /* returnScopeInterface PolyParser_term_return */ 63 @interface PolyParser_term_return : ParserRuleReturnScope { /* returnScopeInterface line 1838 */ 64 /* AST returnScopeInterface.memVars */ 65 CommonTree *tree; /* ObjC start of memVars() */ 66 67 } 68 /* start property declarations */ 69 /* AST returnScopeInterface.properties */ 70 @property (retain, getter=getTree, setter=setTree:) CommonTree *tree; 71 72 /* start of method declarations */ 73 74 + (PolyParser_term_return *)newPolyParser_term_return; 75 /* this is start of set and get methods */ 76 /* AST returnScopeInterface.methodsDecl */ 77 - (CommonTree *)getTree; 78 79 - (void) setTree:(CommonTree *)aTree; 80 /* methodsDecl */ 81 82 @end /* end of returnScopeInterface interface */ 83 84 85 /* returnScopeInterface PolyParser_exp_return */ 86 @interface PolyParser_exp_return : ParserRuleReturnScope { /* returnScopeInterface line 1838 */ 87 /* AST returnScopeInterface.memVars */ 88 CommonTree *tree; /* ObjC start of memVars() */ 89 90 } 91 /* start property declarations */ 92 /* AST returnScopeInterface.properties */ 93 @property (retain, getter=getTree, setter=setTree:) CommonTree *tree; 94 95 /* start of method declarations */ 96 97 + (PolyParser_exp_return *)newPolyParser_exp_return; 98 /* this is start of set and get methods */ 99 /* AST returnScopeInterface.methodsDecl */ 100 - (CommonTree *)getTree; 101 102 - (void) setTree:(CommonTree *)aTree; 103 /* methodsDecl */ 104 105 @end /* end of returnScopeInterface interface */ 106 107 108 109 /* Interface grammar class */ 110 @interface PolyParser : Parser { /* line 572 */ 111 #pragma mark Dynamic Rule Scopes ruleAttributeScopeDecl 112 #pragma mark Dynamic Global Rule Scopes globalAttributeScopeMemVar 113 114 115 /* ObjC start of actions.(actionScope).memVars */ 116 /* ObjC end of actions.(actionScope).memVars */ 117 /* ObjC start of memVars */ 118 /* AST parserHeaderFile.memVars */ 119 NSInteger ruleLevel; 120 NSArray *ruleNames; 121 /* AST super.memVars */ 122 /* AST parserMemVars */ 123 id<TreeAdaptor> treeAdaptor; /* AST parserMemVars */ 124 /* ObjC end of memVars */ 125 126 } 127 128 /* ObjC start of actions.(actionScope).properties */ 129 /* ObjC end of actions.(actionScope).properties */ 130 /* ObjC start of properties */ 131 /* AST parserHeaderFile.properties */ 132 /* AST super.properties */ 133 /* AST parserProperties */ 134 @property (retain, getter=getTreeAdaptor, setter=setTreeAdaptor:) id<TreeAdaptor> treeAdaptor; /* AST parserproperties */ 135 /* ObjC end of properties */ 136 137 + (void) initialize; 138 + (id) newPolyParser:(id<TokenStream>)aStream; 139 /* ObjC start of actions.(actionScope).methodsDecl */ 140 /* ObjC end of actions.(actionScope).methodsDecl */ 141 142 /* ObjC start of methodsDecl */ 143 /* AST parserHeaderFile.methodsDecl */ 144 /* AST super.methodsDecl */ 145 /* AST parserMethodsDecl */ 146 - (id<TreeAdaptor>) getTreeAdaptor; 147 - (void) setTreeAdaptor:(id<TreeAdaptor>)theTreeAdaptor; /* AST parsermethodsDecl */ 148 /* ObjC end of methodsDecl */ 149 150 - (PolyParser_poly_return *)poly; 151 - (PolyParser_term_return *)term; 152 - (PolyParser_exp_return *)exp; 153 154 155 @end /* end of PolyParser interface */ 156 157