• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // $ANTLR 3.4 /Users/acondit/source/antlr/code/antlr3/runtime/ObjC/Framework/examples/treeparser/Lang.g 2012-02-16 17:58:54
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__10 10
31 #define DECL 4
32 #define FLOATTYPE 5
33 #define ID 6
34 #define INT 7
35 #define INTTYPE 8
36 #define WS 9
37 #pragma mark Dynamic Global Scopes globalAttributeScopeInterface
38 #pragma mark Dynamic Rule Scopes ruleAttributeScopeInterface
39 #pragma mark Rule Return Scopes returnScopeInterface
40 /* returnScopeInterface LangParser_start_return */
41 @interface LangParser_start_return : ParserRuleReturnScope { /* returnScopeInterface line 1838 */
42 /* AST returnScopeInterface.memVars */
43 CommonTree *tree; /* ObjC start of memVars() */
44 
45 }
46 /* start property declarations */
47 /* AST returnScopeInterface.properties */
48 @property (retain, getter=getTree, setter=setTree:) CommonTree *tree;
49 
50 /* start of method declarations */
51 
52 + (LangParser_start_return *)newLangParser_start_return;
53 /* this is start of set and get methods */
54 /* AST returnScopeInterface.methodsDecl */
55 - (CommonTree *)getTree;
56 
57 - (void) setTree:(CommonTree *)aTree;
58   /* methodsDecl */
59 
60 @end /* end of returnScopeInterface interface */
61 
62 
63 /* returnScopeInterface LangParser_decl_return */
64 @interface LangParser_decl_return : ParserRuleReturnScope { /* returnScopeInterface line 1838 */
65 /* AST returnScopeInterface.memVars */
66 CommonTree *tree; /* ObjC start of memVars() */
67 
68 }
69 /* start property declarations */
70 /* AST returnScopeInterface.properties */
71 @property (retain, getter=getTree, setter=setTree:) CommonTree *tree;
72 
73 /* start of method declarations */
74 
75 + (LangParser_decl_return *)newLangParser_decl_return;
76 /* this is start of set and get methods */
77 /* AST returnScopeInterface.methodsDecl */
78 - (CommonTree *)getTree;
79 
80 - (void) setTree:(CommonTree *)aTree;
81   /* methodsDecl */
82 
83 @end /* end of returnScopeInterface interface */
84 
85 
86 /* returnScopeInterface LangParser_type_return */
87 @interface LangParser_type_return : ParserRuleReturnScope { /* returnScopeInterface line 1838 */
88 /* AST returnScopeInterface.memVars */
89 CommonTree *tree; /* ObjC start of memVars() */
90 
91 }
92 /* start property declarations */
93 /* AST returnScopeInterface.properties */
94 @property (retain, getter=getTree, setter=setTree:) CommonTree *tree;
95 
96 /* start of method declarations */
97 
98 + (LangParser_type_return *)newLangParser_type_return;
99 /* this is start of set and get methods */
100 /* AST returnScopeInterface.methodsDecl */
101 - (CommonTree *)getTree;
102 
103 - (void) setTree:(CommonTree *)aTree;
104   /* methodsDecl */
105 
106 @end /* end of returnScopeInterface interface */
107 
108 
109 
110 /* Interface grammar class */
111 @interface LangParser  : Parser { /* line 572 */
112 #pragma mark Dynamic Rule Scopes ruleAttributeScopeDecl
113 #pragma mark Dynamic Global Rule Scopes globalAttributeScopeMemVar
114 
115 
116 /* ObjC start of actions.(actionScope).memVars */
117 /* ObjC end of actions.(actionScope).memVars */
118 /* ObjC start of memVars */
119 /* AST parserHeaderFile.memVars */
120 NSInteger ruleLevel;
121 NSArray *ruleNames;
122   /* AST super.memVars */
123 /* AST parserMemVars */
124 id<TreeAdaptor> treeAdaptor;   /* AST parserMemVars */
125 /* ObjC end of memVars */
126 
127  }
128 
129 /* ObjC start of actions.(actionScope).properties */
130 /* ObjC end of actions.(actionScope).properties */
131 /* ObjC start of properties */
132 /* AST parserHeaderFile.properties */
133   /* AST super.properties */
134 /* AST parserProperties */
135 @property (retain, getter=getTreeAdaptor, setter=setTreeAdaptor:) id<TreeAdaptor> treeAdaptor;   /* AST parserproperties */
136 /* ObjC end of properties */
137 
138 + (void) initialize;
139 + (id) newLangParser:(id<TokenStream>)aStream;
140 /* ObjC start of actions.(actionScope).methodsDecl */
141 /* ObjC end of actions.(actionScope).methodsDecl */
142 
143 /* ObjC start of methodsDecl */
144 /* AST parserHeaderFile.methodsDecl */
145   /* AST super.methodsDecl */
146 /* AST parserMethodsDecl */
147 - (id<TreeAdaptor>) getTreeAdaptor;
148 - (void) setTreeAdaptor:(id<TreeAdaptor>)theTreeAdaptor;   /* AST parsermethodsDecl */
149 /* ObjC end of methodsDecl */
150 
151 - (LangParser_start_return *)start;
152 - (LangParser_decl_return *)decl;
153 - (LangParser_type_return *)type;
154 
155 
156 @end /* end of LangParser interface */
157 
158