1 // $ANTLR 3.4 /Users/acondit/source/antlr/code/antlr3/runtime/ObjC/Framework/examples/polydiff/PolyDifferentiator.g 2012-02-16 18:10:53
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 PolyDifferentiator_poly_return */
40 @interface PolyDifferentiator_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 + (PolyDifferentiator_poly_return *)newPolyDifferentiator_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 
62 /* Interface grammar class */
63 @interface PolyDifferentiator  : TreeParser { /* line 572 */
64 #pragma mark Dynamic Rule Scopes ruleAttributeScopeDecl
65 #pragma mark Dynamic Global Rule Scopes globalAttributeScopeMemVar
66 
67 
68 /* ObjC start of actions.(actionScope).memVars */
69 /* ObjC end of actions.(actionScope).memVars */
70 /* ObjC start of memVars */
71 /* AST parserHeaderFile.memVars */
72 NSInteger ruleLevel;
73 NSArray *ruleNames;
74   /* AST super.memVars */
75 /* AST parserMemVars */
76 id<TreeAdaptor> treeAdaptor;   /* AST parserMemVars */
77 /* ObjC end of memVars */
78 
79  }
80 
81 /* ObjC start of actions.(actionScope).properties */
82 /* ObjC end of actions.(actionScope).properties */
83 /* ObjC start of properties */
84 /* AST parserHeaderFile.properties */
85   /* AST super.properties */
86 /* AST parserProperties */
87 @property (retain, getter=getTreeAdaptor, setter=setTreeAdaptor:) id<TreeAdaptor> treeAdaptor;   /* AST parserproperties */
88 /* ObjC end of properties */
89 
90 + (void) initialize;
91 + (id) newPolyDifferentiator:(id<TreeNodeStream>)aStream;
92 /* ObjC start of actions.(actionScope).methodsDecl */
93 /* ObjC end of actions.(actionScope).methodsDecl */
94 
95 /* ObjC start of methodsDecl */
96 /* AST parserHeaderFile.methodsDecl */
97   /* AST super.methodsDecl */
98 /* AST parserMethodsDecl */
99 - (id<TreeAdaptor>) getTreeAdaptor;
100 - (void) setTreeAdaptor:(id<TreeAdaptor>)theTreeAdaptor;   /* AST parsermethodsDecl */
101 /* ObjC end of methodsDecl */
102 
103 - (PolyDifferentiator_poly_return *)poly;
104 
105 
106 @end /* end of PolyDifferentiator interface */
107 
108