• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // $ANTLR ${project.version} ${buildNumber} TreeRewrite.g 2011-05-06 18:56:28
2 
3 /* =============================================================================
4  * Standard antlr3 OBJC runtime definitions
5  */
6 #import <Cocoa/Cocoa.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 INT 4
31 #define WS 5
32 #pragma mark Dynamic Global Scopes
33 #pragma mark Dynamic Rule Scopes
34 #pragma mark Rule Return Scopes start
35 /* returnScopeInterface TreeRewriteParser_rule_return */
36 @interface TreeRewriteParser_rule_return :ANTLRParserRuleReturnScope { /* returnScopeInterface line 1838 */
37 /* AST returnScopeInterface.memVars */
38 ANTLRCommonTree *tree; /* ObjC start of memVars() */
39 }
40 /* start properties */
41 /* AST returnScopeInterface.properties */
42 @property (retain, getter=getTree, setter=setTree:) ANTLRCommonTree *tree;
43 + (TreeRewriteParser_rule_return *)newTreeRewriteParser_rule_return;
44 /* this is start of set and get methods */
45 /* AST returnScopeInterface.methodsDecl */
46 - (ANTLRCommonTree *)getTree;
47 
48 - (void) setTree:(ANTLRCommonTree *)aTree;
49   /* methodsDecl */
50 @end /* end of returnScopeInterface interface */
51 
52 
53 
54 /* returnScopeInterface TreeRewriteParser_subrule_return */
55 @interface TreeRewriteParser_subrule_return :ANTLRParserRuleReturnScope { /* returnScopeInterface line 1838 */
56 /* AST returnScopeInterface.memVars */
57 ANTLRCommonTree *tree; /* ObjC start of memVars() */
58 }
59 /* start properties */
60 /* AST returnScopeInterface.properties */
61 @property (retain, getter=getTree, setter=setTree:) ANTLRCommonTree *tree;
62 + (TreeRewriteParser_subrule_return *)newTreeRewriteParser_subrule_return;
63 /* this is start of set and get methods */
64 /* AST returnScopeInterface.methodsDecl */
65 - (ANTLRCommonTree *)getTree;
66 
67 - (void) setTree:(ANTLRCommonTree *)aTree;
68   /* methodsDecl */
69 @end /* end of returnScopeInterface interface */
70 
71 
72 
73 
74 /* Interface grammar class */
75 @interface TreeRewriteParser : ANTLRParser { /* line 572 */
76 /* ObjC start of ruleAttributeScopeMemVar */
77 
78 
79 /* ObjC end of ruleAttributeScopeMemVar */
80 /* ObjC start of globalAttributeScopeMemVar */
81 
82 
83 /* ObjC end of globalAttributeScopeMemVar */
84 /* ObjC start of actions.(actionScope).memVars */
85 /* ObjC end of actions.(actionScope).memVars */
86 /* ObjC start of memVars */
87 /* AST parserHeaderFile.memVars */
88 NSInteger ruleLevel;
89 NSArray *ruleNames;
90   /* AST super.memVars */
91 /* AST parserMemVars */
92 id<ANTLRTreeAdaptor> treeAdaptor;   /* AST parserMemVars */
93 /* ObjC end of memVars */
94 
95  }
96 
97 /* ObjC start of actions.(actionScope).properties */
98 /* ObjC end of actions.(actionScope).properties */
99 /* ObjC start of properties */
100 /* AST parserHeaderFile.properties */
101   /* AST super.properties */
102 /* AST parserProperties */
103 @property (retain, getter=getTreeAdaptor, setter=setTreeAdaptor:) id<ANTLRTreeAdaptor> treeAdaptor;   /* AST parserproperties */
104 /* ObjC end of properties */
105 
106 + (void) initialize;
107 + (id) newTreeRewriteParser:(id<ANTLRTokenStream>)aStream;
108 /* ObjC start of actions.(actionScope).methodsDecl */
109 /* ObjC end of actions.(actionScope).methodsDecl */
110 
111 /* ObjC start of methodsDecl */
112 /* AST parserHeaderFile.methodsDecl */
113   /* AST super.methodsDecl */
114 /* AST parserMethodsDecl */
115 - (id<ANTLRTreeAdaptor>) getTreeAdaptor;
116 - (void) setTreeAdaptor:(id<ANTLRTreeAdaptor>)theTreeAdaptor;   /* AST parsermethodsDecl */
117 /* ObjC end of methodsDecl */
118 
119 - (TreeRewriteParser_rule_return *)rule;
120 - (TreeRewriteParser_subrule_return *)subrule;
121 
122 
123 @end /* end of TreeRewriteParser interface */
124 
125