• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // $ANTLR 3.4 /Users/acondit/source/antlr/code/antlr3/runtime/ObjC/Framework/examples/LL-star/SimpleC.g 2012-02-16 17:39:18
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 Cyclic DFA interface start DFA2
26 @interface DFA2 : DFA {
27 }
28 + (DFA2 *) newDFA2WithRecognizer:(BaseRecognizer *)theRecognizer;
29 - initWithRecognizer:(BaseRecognizer *)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 globalAttributeScopeInterface
57 #pragma mark Dynamic Rule Scopes ruleAttributeScopeInterface
58 #pragma mark Rule Return Scopes returnScopeInterface
59 
60 /* Interface grammar class */
61 @interface SimpleCParser  : Parser { /* line 572 */
62 #pragma mark Dynamic Rule Scopes ruleAttributeScopeDecl
63 #pragma mark Dynamic Global Rule Scopes globalAttributeScopeMemVar
64 
65 
66 /* ObjC start of actions.(actionScope).memVars */
67 /* ObjC end of actions.(actionScope).memVars */
68 /* ObjC start of memVars */
69 /* ObjC end of memVars */
70 
71 DFA2 *dfa2;
72  }
73 
74 /* ObjC start of actions.(actionScope).properties */
75 /* ObjC end of actions.(actionScope).properties */
76 /* ObjC start of properties */
77 /* ObjC end of properties */
78 
79 + (void) initialize;
80 + (id) newSimpleCParser:(id<TokenStream>)aStream;
81 /* ObjC start of actions.(actionScope).methodsDecl */
82 /* ObjC end of actions.(actionScope).methodsDecl */
83 
84 /* ObjC start of methodsDecl */
85 /* ObjC end of methodsDecl */
86 
87 - (void)program;
88 - (void)declaration;
89 - (void)variable;
90 - (void)declarator;
91 - (NSString *)functionHeader;
92 - (void)formalParameter;
93 - (void)type;
94 - (void)block;
95 - (void)stat;
96 - (void)forStat;
97 - (void)assignStat;
98 - (void)expr;
99 - (void)condExpr;
100 - (void)aexpr;
101 - (void)atom;
102 
103 
104 @end /* end of SimpleCParser interface */
105 
106