1 // $ANTLR 3.4 /Users/acondit/source/antlr/code/antlr3/runtime/ObjC/Framework/examples/combined/Combined.g 2012-02-16 17:33:49 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 ID 4 31 #define INT 5 32 #define WS 6 33 #pragma mark Dynamic Global Scopes globalAttributeScopeInterface 34 #pragma mark Dynamic Rule Scopes ruleAttributeScopeInterface 35 #pragma mark Rule Return Scopes returnScopeInterface 36 37 /* Interface grammar class */ 38 @interface CombinedParser : Parser { /* line 572 */ 39 #pragma mark Dynamic Rule Scopes ruleAttributeScopeDecl 40 #pragma mark Dynamic Global Rule Scopes globalAttributeScopeMemVar 41 42 43 /* ObjC start of actions.(actionScope).memVars */ 44 /* ObjC end of actions.(actionScope).memVars */ 45 /* ObjC start of memVars */ 46 /* ObjC end of memVars */ 47 48 } 49 50 /* ObjC start of actions.(actionScope).properties */ 51 /* ObjC end of actions.(actionScope).properties */ 52 /* ObjC start of properties */ 53 /* ObjC end of properties */ 54 55 + (void) initialize; 56 + (id) newCombinedParser:(id<TokenStream>)aStream; 57 /* ObjC start of actions.(actionScope).methodsDecl */ 58 /* ObjC end of actions.(actionScope).methodsDecl */ 59 60 /* ObjC start of methodsDecl */ 61 /* ObjC end of methodsDecl */ 62 63 - (void)stat; 64 - (void)identifier; 65 66 67 @end /* end of CombinedParser interface */ 68 69