1 // $ANTLR 3.2 Aug 19, 2010 17:16:04 /usr/local/ANTLR3-ObjC2.0-Runtime/Framework/examples/scopes/SymbolTable.g 2010-08-19 17:16:47 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 6 14 #define T__12 12 15 #define T__11 11 16 #define T__14 14 17 #define T__13 13 18 #define T__10 10 19 #define INT 5 20 #define ID 4 21 #define EOF -1 22 #define T__9 9 23 #define T__8 8 24 #define T__7 7 25 #pragma mark Dynamic Global Scopes 26 @interface Symbols_Scope : ANTLRSymbolsScope { /* globalAttributeScopeDecl */ 27 ANTLRHashMap * names; 28 } 29 /* start of properties */ 30 31 @property (retain, getter=getnames, setter=setnames:) ANTLRHashMap * names; 32 33 /* end properties */ 34 35 + (Symbols_Scope *)newSymbols_Scope; 36 /* start of iterated get and set functions */ 37 38 - (ANTLRHashMap *)getnames; 39 - (void)setnames:(ANTLRHashMap *)aVal; 40 41 /* End of iterated get and set functions */ 42 43 @end 44 #pragma mark Dynamic Rule Scopes 45 #pragma mark Rule Return Scopes start 46 #pragma mark Rule return scopes end 47 @interface SymbolTableParser : ANTLRParser { // line 529 48 // start of globalAttributeScopeMemVar 49 /* globalAttributeScopeMemVar */ 50 ANTLRSymbolStack *gStack; 51 Symbols_Scope *Symbols_scope; 52 53 // start of action-actionScope-memVars 54 55 int level; 56 57 // start of ruleAttributeScopeMemVar 58 59 60 // Start of memVars 61 62 } 63 64 // start of action-actionScope-methodsDecl 65 66 67 - (void)prog; 68 - (void)globals; 69 - (void)method; 70 - (void)block; 71 - (void)stat; 72 - (void)decl; 73 74 75 @end // end of SymbolTableParser