1 // $ANTLR 3.4 /Users/acondit/source/antlr/code/antlr3/runtime/ObjC/Framework/examples/polydiff/Simplifier.g 2012-02-16 18:11: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 /* treeParserHeaderFile */
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 Simplifier_poly_return */
40 @interface Simplifier_poly_return : TreeRuleReturnScope { /* returnScopeInterface line 1838 */
41 /* ASTTreeParser 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 + (Simplifier_poly_return *)newSimplifier_poly_return;
52 /* this is start of set and get methods */
53 /* ASTTreeParser returnScopeInterface.methodsDecl */
54 - (CommonTree *)getTree;
55 - (void) setTree:(CommonTree *)aTree;
56   /* methodsDecl */
57 
58 @end /* end of returnScopeInterface interface */
59 
60 
61 /* returnScopeInterface Simplifier_synpred1_Simplifier_return */
62 @interface Simplifier_synpred1_Simplifier_return : TreeRuleReturnScope { /* returnScopeInterface line 1838 */
63 /* ASTTreeParser returnScopeInterface.memVars */
64 CommonTree *tree; /* ObjC start of memVars() */
65 
66 }
67 /* start property declarations */
68 /* AST returnScopeInterface.properties */
69 @property (retain, getter=getTree, setter=setTree:) CommonTree *tree;
70 
71 /* start of method declarations */
72 
73 + (Simplifier_synpred1_Simplifier_return *)newSimplifier_synpred1_Simplifier_return;
74 /* this is start of set and get methods */
75 /* ASTTreeParser returnScopeInterface.methodsDecl */
76 - (CommonTree *)getTree;
77 - (void) setTree:(CommonTree *)aTree;
78   /* methodsDecl */
79 
80 @end /* end of returnScopeInterface interface */
81 
82 
83 /* returnScopeInterface Simplifier_synpred2_Simplifier_return */
84 @interface Simplifier_synpred2_Simplifier_return : TreeRuleReturnScope { /* returnScopeInterface line 1838 */
85 /* ASTTreeParser returnScopeInterface.memVars */
86 CommonTree *tree; /* ObjC start of memVars() */
87 
88 }
89 /* start property declarations */
90 /* AST returnScopeInterface.properties */
91 @property (retain, getter=getTree, setter=setTree:) CommonTree *tree;
92 
93 /* start of method declarations */
94 
95 + (Simplifier_synpred2_Simplifier_return *)newSimplifier_synpred2_Simplifier_return;
96 /* this is start of set and get methods */
97 /* ASTTreeParser returnScopeInterface.methodsDecl */
98 - (CommonTree *)getTree;
99 - (void) setTree:(CommonTree *)aTree;
100   /* methodsDecl */
101 
102 @end /* end of returnScopeInterface interface */
103 
104 
105 /* returnScopeInterface Simplifier_synpred3_Simplifier_return */
106 @interface Simplifier_synpred3_Simplifier_return : TreeRuleReturnScope { /* returnScopeInterface line 1838 */
107 /* ASTTreeParser returnScopeInterface.memVars */
108 CommonTree *tree; /* ObjC start of memVars() */
109 
110 }
111 /* start property declarations */
112 /* AST returnScopeInterface.properties */
113 @property (retain, getter=getTree, setter=setTree:) CommonTree *tree;
114 
115 /* start of method declarations */
116 
117 + (Simplifier_synpred3_Simplifier_return *)newSimplifier_synpred3_Simplifier_return;
118 /* this is start of set and get methods */
119 /* ASTTreeParser returnScopeInterface.methodsDecl */
120 - (CommonTree *)getTree;
121 - (void) setTree:(CommonTree *)aTree;
122   /* methodsDecl */
123 
124 @end /* end of returnScopeInterface interface */
125 
126 
127 /* returnScopeInterface Simplifier_synpred4_Simplifier_return */
128 @interface Simplifier_synpred4_Simplifier_return : TreeRuleReturnScope { /* returnScopeInterface line 1838 */
129 /* ASTTreeParser returnScopeInterface.memVars */
130 CommonTree *tree; /* ObjC start of memVars() */
131 
132 }
133 /* start property declarations */
134 /* AST returnScopeInterface.properties */
135 @property (retain, getter=getTree, setter=setTree:) CommonTree *tree;
136 
137 /* start of method declarations */
138 
139 + (Simplifier_synpred4_Simplifier_return *)newSimplifier_synpred4_Simplifier_return;
140 /* this is start of set and get methods */
141 /* ASTTreeParser returnScopeInterface.methodsDecl */
142 - (CommonTree *)getTree;
143 - (void) setTree:(CommonTree *)aTree;
144   /* methodsDecl */
145 
146 @end /* end of returnScopeInterface interface */
147 
148 
149 
150 /* Interface grammar class */
151 @interface Simplifier  : TreeParser { /* line 572 */
152 #pragma mark Dynamic Rule Scopes ruleAttributeScopeDecl
153 #pragma mark Dynamic Global Rule Scopes globalAttributeScopeMemVar
154 
155 
156 /* ObjC start of actions.(actionScope).memVars */
157 /* ObjC end of actions.(actionScope).memVars */
158 /* ObjC start of memVars */
159 /* AST parserHeaderFile.memVars */
160 NSInteger ruleLevel;
161 NSArray *ruleNames;
162   /* AST super.memVars */
163 /* AST parserMemVars */
164 id<TreeAdaptor> treeAdaptor;   /* AST parserMemVars */
165 /* ObjC end of memVars */
166 
167 SEL synpred2_SimplifierSelector;
168 SEL synpred1_SimplifierSelector;
169 SEL synpred4_SimplifierSelector;
170 SEL synpred3_SimplifierSelector;
171  }
172 
173 /* ObjC start of actions.(actionScope).properties */
174 /* ObjC end of actions.(actionScope).properties */
175 /* ObjC start of properties */
176 /* AST parserHeaderFile.properties */
177   /* AST super.properties */
178 /* AST parserProperties */
179 @property (retain, getter=getTreeAdaptor, setter=setTreeAdaptor:) id<TreeAdaptor> treeAdaptor;   /* AST parserproperties */
180 /* ObjC end of properties */
181 
182 + (void) initialize;
183 + (id) newSimplifier:(id<TreeNodeStream>)aStream;
184 /* ObjC start of actions.(actionScope).methodsDecl */
185 /* ObjC end of actions.(actionScope).methodsDecl */
186 
187 /* ObjC start of methodsDecl */
188 /* AST parserHeaderFile.methodsDecl */
189   /* AST super.methodsDecl */
190 /* AST parserMethodsDecl */
191 - (id<TreeAdaptor>) getTreeAdaptor;
192 - (void) setTreeAdaptor:(id<TreeAdaptor>)theTreeAdaptor;   /* AST parsermethodsDecl */
193 /* ObjC end of methodsDecl */
194 
195 - (Simplifier_poly_return *)poly;
196 - (void)synpred1_Simplifier_fragment;
197 - (void)synpred2_Simplifier_fragment;
198 - (void)synpred3_Simplifier_fragment;
199 - (void)synpred4_Simplifier_fragment;
200 
201 
202 @end /* end of Simplifier interface */
203 
204