• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // $ANTLR 3.4 /Users/acondit/source/antlr/code/antlr3/runtime/ObjC/Framework/examples/scopes/SymbolTable.g 2012-02-16 17:50:30
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__7 7
31 #define T__8 8
32 #define T__9 9
33 #define T__10 10
34 #define T__11 11
35 #define T__12 12
36 #define T__13 13
37 #define T__14 14
38 #define ID 4
39 #define INT 5
40 #define WS 6
41 #pragma mark Dynamic Global Scopes globalAttributeScopeInterface
42 /* globalAttributeScopeInterface */
43 @interface Symbols_Scope : SymbolsScope {
44 PtrBuffer * names;
45  }
46 /* start of globalAttributeScopeInterface properties */
47 @property (assign, getter=getnames, setter=setnames:) PtrBuffer * names;
48 /* end globalAttributeScopeInterface properties */
49 + (Symbols_Scope *)newSymbols_Scope;
50 - (id) init;
51 /* start of globalAttributeScopeInterface methodsDecl */
52 - (PtrBuffer *)getnames;
53 - (void)setnames:(PtrBuffer *)aVal;
54 /* End of globalAttributeScopeInterface methodsDecl */
55 @end /* end of Symbols_Scope interface */
56 
57 #pragma mark Dynamic Rule Scopes ruleAttributeScopeInterface
58 #pragma mark Rule Return Scopes returnScopeInterface
59 
60 /* Interface grammar class */
61 @interface SymbolTableParser  : Parser { /* line 572 */
62 #pragma mark Dynamic Rule Scopes ruleAttributeScopeDecl
63 #pragma mark Dynamic Global Rule Scopes globalAttributeScopeMemVar
64 /* globalAttributeScopeMemVar */
65 SymbolStack *Symbols_stack;
66 Symbols_Scope *Symbols_scope;
67 
68 
69 /* ObjC start of actions.(actionScope).memVars */
70 
71 int level;
72 
73 /* ObjC end of actions.(actionScope).memVars */
74 /* ObjC start of memVars */
75 /* ObjC end of memVars */
76 
77  }
78 
79 /* ObjC start of actions.(actionScope).properties */
80 /* ObjC end of actions.(actionScope).properties */
81 /* ObjC start of properties */
82 /* ObjC end of properties */
83 
84 + (void) initialize;
85 + (id) newSymbolTableParser:(id<TokenStream>)aStream;
86 /* ObjC start of actions.(actionScope).methodsDecl */
87 /* ObjC end of actions.(actionScope).methodsDecl */
88 
89 /* ObjC start of methodsDecl */
90 /* ObjC end of methodsDecl */
91 
92 - (void)prog;
93 - (void)globals;
94 - (void)method;
95 - (void)block;
96 - (void)stat;
97 - (void)decl;
98 
99 
100 @end /* end of SymbolTableParser interface */
101 
102