SimpleCParser.h revision 324c4644fee44b9898524c09511bd33c3f12e2df
1// $ANTLR ${project.version} ${buildNumber} SimpleC.g 2011-05-06 13:53:12
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
15typedef enum {
16    ANTLR_EOF = -1,
17    INVALID,
18    EOR,
19    DOWN,
20    UP,
21    MIN
22} ANTLR3TokenType;
23#endif
24
25#pragma mark Cyclic DFA interface start DFA2
26@interface DFA2 : ANTLRDFA {
27}
28+ newDFA2WithRecognizer:(ANTLRBaseRecognizer *)theRecognizer;
29- initWithRecognizer:(ANTLRBaseRecognizer *)recognizer;
30@end /* end of DFA2 interface  */
31
32#pragma mark Cyclic DFA interface end DFA2
33
34#pragma mark Tokens
35#ifdef EOF
36#undef EOF
37#endif
38#define EOF -1
39#define T__7 7
40#define T__8 8
41#define T__9 9
42#define T__10 10
43#define T__11 11
44#define T__12 12
45#define T__13 13
46#define T__14 14
47#define T__15 15
48#define T__16 16
49#define T__17 17
50#define T__18 18
51#define T__19 19
52#define T__20 20
53#define ID 4
54#define INT 5
55#define WS 6
56#pragma mark Dynamic Global Scopes
57#pragma mark Dynamic Rule Scopes
58#pragma mark Rule Return Scopes start
59
60/* Interface grammar class */
61@interface SimpleCParser : ANTLRParser { /* line 572 */
62/* ObjC start of ruleAttributeScopeMemVar */
63
64
65/* ObjC end of ruleAttributeScopeMemVar */
66/* ObjC start of globalAttributeScopeMemVar */
67
68
69/* ObjC end of globalAttributeScopeMemVar */
70/* ObjC start of actions.(actionScope).memVars */
71/* ObjC end of actions.(actionScope).memVars */
72/* ObjC start of memVars */
73/* ObjC end of memVars */
74
75DFA2 *dfa2;
76 }
77
78/* ObjC start of actions.(actionScope).properties */
79/* ObjC end of actions.(actionScope).properties */
80/* ObjC start of properties */
81/* ObjC end of properties */
82
83+ (void) initialize;
84+ (id) newSimpleCParser:(id<ANTLRTokenStream>)aStream;
85/* ObjC start of actions.(actionScope).methodsDecl */
86/* ObjC end of actions.(actionScope).methodsDecl */
87
88/* ObjC start of methodsDecl */
89/* ObjC end of methodsDecl */
90
91- (void)program;
92- (void)declaration;
93- (void)variable;
94- (void)declarator;
95- (NSString *)functionHeader;
96- (void)formalParameter;
97- (void)type;
98- (void)block;
99- (void)stat;
100- (void)forStat;
101- (void)assignStat;
102- (void)expr;
103- (void)condExpr;
104- (void)aexpr;
105- (void)atom;
106
107
108@end /* end of SimpleCParser interface */
109
110