1 // $ANTLR ${project.version} ${buildNumber} Lang.g 2011-05-06 17:38:52 2 3 /* ============================================================================= 4 * Standard antlr3 OBJC runtime definitions 5 */ 6 #import <Cocoa/Cocoa.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__10 10 31 #define DECL 4 32 #define FLOATTYPE 5 33 #define ID 6 34 #define INT 7 35 #define INTTYPE 8 36 #define WS 9 37 #pragma mark Dynamic Global Scopes 38 #pragma mark Dynamic Rule Scopes 39 #pragma mark Rule Return Scopes start 40 /* returnScopeInterface LangParser_start_return */ 41 @interface LangParser_start_return :ANTLRParserRuleReturnScope { /* returnScopeInterface line 1838 */ 42 /* AST returnScopeInterface.memVars */ 43 ANTLRCommonTree *tree; /* ObjC start of memVars() */ 44 } 45 /* start properties */ 46 /* AST returnScopeInterface.properties */ 47 @property (retain, getter=getTree, setter=setTree:) ANTLRCommonTree *tree; 48 + (LangParser_start_return *)newLangParser_start_return; 49 /* this is start of set and get methods */ 50 /* AST returnScopeInterface.methodsDecl */ 51 - (ANTLRCommonTree *)getTree; 52 53 - (void) setTree:(ANTLRCommonTree *)aTree; 54 /* methodsDecl */ 55 @end /* end of returnScopeInterface interface */ 56 57 58 59 /* returnScopeInterface LangParser_decl_return */ 60 @interface LangParser_decl_return :ANTLRParserRuleReturnScope { /* returnScopeInterface line 1838 */ 61 /* AST returnScopeInterface.memVars */ 62 ANTLRCommonTree *tree; /* ObjC start of memVars() */ 63 } 64 /* start properties */ 65 /* AST returnScopeInterface.properties */ 66 @property (retain, getter=getTree, setter=setTree:) ANTLRCommonTree *tree; 67 + (LangParser_decl_return *)newLangParser_decl_return; 68 /* this is start of set and get methods */ 69 /* AST returnScopeInterface.methodsDecl */ 70 - (ANTLRCommonTree *)getTree; 71 72 - (void) setTree:(ANTLRCommonTree *)aTree; 73 /* methodsDecl */ 74 @end /* end of returnScopeInterface interface */ 75 76 77 78 /* returnScopeInterface LangParser_type_return */ 79 @interface LangParser_type_return :ANTLRParserRuleReturnScope { /* returnScopeInterface line 1838 */ 80 /* AST returnScopeInterface.memVars */ 81 ANTLRCommonTree *tree; /* ObjC start of memVars() */ 82 } 83 /* start properties */ 84 /* AST returnScopeInterface.properties */ 85 @property (retain, getter=getTree, setter=setTree:) ANTLRCommonTree *tree; 86 + (LangParser_type_return *)newLangParser_type_return; 87 /* this is start of set and get methods */ 88 /* AST returnScopeInterface.methodsDecl */ 89 - (ANTLRCommonTree *)getTree; 90 91 - (void) setTree:(ANTLRCommonTree *)aTree; 92 /* methodsDecl */ 93 @end /* end of returnScopeInterface interface */ 94 95 96 97 98 /* Interface grammar class */ 99 @interface LangParser : ANTLRParser { /* line 572 */ 100 /* ObjC start of ruleAttributeScopeMemVar */ 101 102 103 /* ObjC end of ruleAttributeScopeMemVar */ 104 /* ObjC start of globalAttributeScopeMemVar */ 105 106 107 /* ObjC end of globalAttributeScopeMemVar */ 108 /* ObjC start of actions.(actionScope).memVars */ 109 /* ObjC end of actions.(actionScope).memVars */ 110 /* ObjC start of memVars */ 111 /* AST parserHeaderFile.memVars */ 112 NSInteger ruleLevel; 113 NSArray *ruleNames; 114 /* AST super.memVars */ 115 /* AST parserMemVars */ 116 id<ANTLRTreeAdaptor> treeAdaptor; /* AST parserMemVars */ 117 /* ObjC end of memVars */ 118 119 } 120 121 /* ObjC start of actions.(actionScope).properties */ 122 /* ObjC end of actions.(actionScope).properties */ 123 /* ObjC start of properties */ 124 /* AST parserHeaderFile.properties */ 125 /* AST super.properties */ 126 /* AST parserProperties */ 127 @property (retain, getter=getTreeAdaptor, setter=setTreeAdaptor:) id<ANTLRTreeAdaptor> treeAdaptor; /* AST parserproperties */ 128 /* ObjC end of properties */ 129 130 + (void) initialize; 131 + (id) newLangParser:(id<ANTLRTokenStream>)aStream; 132 /* ObjC start of actions.(actionScope).methodsDecl */ 133 /* ObjC end of actions.(actionScope).methodsDecl */ 134 135 /* ObjC start of methodsDecl */ 136 /* AST parserHeaderFile.methodsDecl */ 137 /* AST super.methodsDecl */ 138 /* AST parserMethodsDecl */ 139 - (id<ANTLRTreeAdaptor>) getTreeAdaptor; 140 - (void) setTreeAdaptor:(id<ANTLRTreeAdaptor>)theTreeAdaptor; /* AST parsermethodsDecl */ 141 /* ObjC end of methodsDecl */ 142 143 - (LangParser_start_return *)start; 144 - (LangParser_decl_return *)decl; 145 - (LangParser_type_return *)type; 146 147 148 @end /* end of LangParser interface */ 149 150