• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // $ANTLR 3.2 Aug 23, 2010 07:48:06 /usr/local/ANTLR3-ObjC2.0-Runtime/Framework/examples/simplecTreeParser/SimpleCTP.g 2010-08-23 07:55:04
2 
3 /* =============================================================================
4  * Standard antlr3 OBJC runtime definitions
5  */
6 #import <Cocoa/Cocoa.h>
7 #import "antlr3.h"
8 /* End of standard antlr3 runtime definitions
9  * =============================================================================
10  */
11 
12 #pragma mark Tokens
13 #define K_ID 10
14 #define T__26 26
15 #define T__25 25
16 #define T__24 24
17 #define T__23 23
18 #define K_EQEQ 16
19 #define T__22 22
20 #define K_INT 11
21 #define T__21 21
22 #define K_FOR 14
23 #define FUNC_HDR 6
24 #define FUNC_DEF 8
25 #define EOF -1
26 #define K_INT_TYPE 19
27 #define FUNC_DECL 7
28 #define ARG_DEF 5
29 #define WS 20
30 #define K_EQ 15
31 #define BLOCK 9
32 #define K_LT 17
33 #define K_CHAR 12
34 #define K_VOID 13
35 #define VAR_DEF 4
36 #define K_PLUS 18
37 #pragma mark Dynamic Global Scopes
38 @interface Symbols_Scope : ANTLRSymbolsScope {  /* globalAttributeScopeDecl */
39 ANTLRCommonTree * tree;
40 }
41 /* start of properties */
42 
43 @property (retain, getter=gettree, setter=settree:) ANTLRCommonTree * tree;
44 
45 /* end properties */
46 
47 + (Symbols_Scope *)newSymbols_Scope;
48 /* start of iterated get and set functions */
49 
50 - (ANTLRCommonTree *)gettree;
51 - (void)settree:(ANTLRCommonTree *)aVal;
52 
53 /* End of iterated get and set functions */
54 
55 @end /* end of Symbols_Scope interface */
56 
57 #pragma mark Dynamic Rule Scopes
58 #pragma mark Rule Return Scopes start
59 @interface SimpleCTP_expr_return :ANTLRTreeRuleReturnScope { // line 1672
60  // start of memVars()
61 }
62 
63 // start properties
64 @property (retain, getter=getTree, setter=setTree:) ANTLRCommonTree *tree;
65 + (SimpleCTP_expr_return *)newSimpleCTP_expr_return;
66 // this is start of set and get methods
67   // methodsDecl
68 @end /* end of returnScopeInterface interface */
69 
70 #pragma mark Rule return scopes end
71 @interface SimpleCTP : ANTLRTreeParser { // line 529
72 // start of globalAttributeScopeMemVar
73 /* globalAttributeScopeMemVar */
74 ANTLRSymbolStack *gStack;
75 Symbols_Scope *Symbols_scope;
76 
77 // start of action-actionScope-memVars
78 // start of ruleAttributeScopeMemVar
79 
80 
81 // Start of memVars
82 
83  }
84 
85 // start of action-actionScope-methodsDecl
86 
87 
88 - (void)program;
89 - (void)declaration;
90 - (void)variable;
91 - (void)declarator;
92 - (void)functionHeader;
93 - (void)formalParameter;
94 - (void)type;
95 - (void)block;
96 - (void)stat;
97 - (void)forStat;
98 - (SimpleCTP_expr_return *)expr;
99 - (void)atom;
100 
101 
102 @end /* end of SimpleCTP interface */
103