| // $ANTLR ${project.version} ${buildNumber} Lang.g 2011-05-06 17:38:52 |
| |
| /* ============================================================================= |
| * Standard antlr3 OBJC runtime definitions |
| */ |
| #import <Cocoa/Cocoa.h> |
| #import <ANTLR/ANTLR.h> |
| /* End of standard antlr3 runtime definitions |
| * ============================================================================= |
| */ |
| |
| /* parserHeaderFile */ |
| #ifndef ANTLR3TokenTypeAlreadyDefined |
| #define ANTLR3TokenTypeAlreadyDefined |
| typedef enum { |
| ANTLR_EOF = -1, |
| INVALID, |
| EOR, |
| DOWN, |
| UP, |
| MIN |
| } ANTLR3TokenType; |
| #endif |
| |
| #pragma mark Tokens |
| #ifdef EOF |
| #undef EOF |
| #endif |
| #define EOF -1 |
| #define T__10 10 |
| #define DECL 4 |
| #define FLOATTYPE 5 |
| #define ID 6 |
| #define INT 7 |
| #define INTTYPE 8 |
| #define WS 9 |
| #pragma mark Dynamic Global Scopes |
| #pragma mark Dynamic Rule Scopes |
| #pragma mark Rule Return Scopes start |
| /* returnScopeInterface LangParser_start_return */ |
| @interface LangParser_start_return :ANTLRParserRuleReturnScope { /* returnScopeInterface line 1838 */ |
| /* AST returnScopeInterface.memVars */ |
| ANTLRCommonTree *tree; /* ObjC start of memVars() */ |
| } |
| /* start properties */ |
| /* AST returnScopeInterface.properties */ |
| @property (retain, getter=getTree, setter=setTree:) ANTLRCommonTree *tree; |
| + (LangParser_start_return *)newLangParser_start_return; |
| /* this is start of set and get methods */ |
| /* AST returnScopeInterface.methodsDecl */ |
| - (ANTLRCommonTree *)getTree; |
| |
| - (void) setTree:(ANTLRCommonTree *)aTree; |
| /* methodsDecl */ |
| @end /* end of returnScopeInterface interface */ |
| |
| |
| |
| /* returnScopeInterface LangParser_decl_return */ |
| @interface LangParser_decl_return :ANTLRParserRuleReturnScope { /* returnScopeInterface line 1838 */ |
| /* AST returnScopeInterface.memVars */ |
| ANTLRCommonTree *tree; /* ObjC start of memVars() */ |
| } |
| /* start properties */ |
| /* AST returnScopeInterface.properties */ |
| @property (retain, getter=getTree, setter=setTree:) ANTLRCommonTree *tree; |
| + (LangParser_decl_return *)newLangParser_decl_return; |
| /* this is start of set and get methods */ |
| /* AST returnScopeInterface.methodsDecl */ |
| - (ANTLRCommonTree *)getTree; |
| |
| - (void) setTree:(ANTLRCommonTree *)aTree; |
| /* methodsDecl */ |
| @end /* end of returnScopeInterface interface */ |
| |
| |
| |
| /* returnScopeInterface LangParser_type_return */ |
| @interface LangParser_type_return :ANTLRParserRuleReturnScope { /* returnScopeInterface line 1838 */ |
| /* AST returnScopeInterface.memVars */ |
| ANTLRCommonTree *tree; /* ObjC start of memVars() */ |
| } |
| /* start properties */ |
| /* AST returnScopeInterface.properties */ |
| @property (retain, getter=getTree, setter=setTree:) ANTLRCommonTree *tree; |
| + (LangParser_type_return *)newLangParser_type_return; |
| /* this is start of set and get methods */ |
| /* AST returnScopeInterface.methodsDecl */ |
| - (ANTLRCommonTree *)getTree; |
| |
| - (void) setTree:(ANTLRCommonTree *)aTree; |
| /* methodsDecl */ |
| @end /* end of returnScopeInterface interface */ |
| |
| |
| |
| |
| /* Interface grammar class */ |
| @interface LangParser : ANTLRParser { /* line 572 */ |
| /* ObjC start of ruleAttributeScopeMemVar */ |
| |
| |
| /* ObjC end of ruleAttributeScopeMemVar */ |
| /* ObjC start of globalAttributeScopeMemVar */ |
| |
| |
| /* ObjC end of globalAttributeScopeMemVar */ |
| /* ObjC start of actions.(actionScope).memVars */ |
| /* ObjC end of actions.(actionScope).memVars */ |
| /* ObjC start of memVars */ |
| /* AST parserHeaderFile.memVars */ |
| NSInteger ruleLevel; |
| NSArray *ruleNames; |
| /* AST super.memVars */ |
| /* AST parserMemVars */ |
| id<ANTLRTreeAdaptor> treeAdaptor; /* AST parserMemVars */ |
| /* ObjC end of memVars */ |
| |
| } |
| |
| /* ObjC start of actions.(actionScope).properties */ |
| /* ObjC end of actions.(actionScope).properties */ |
| /* ObjC start of properties */ |
| /* AST parserHeaderFile.properties */ |
| /* AST super.properties */ |
| /* AST parserProperties */ |
| @property (retain, getter=getTreeAdaptor, setter=setTreeAdaptor:) id<ANTLRTreeAdaptor> treeAdaptor; /* AST parserproperties */ |
| /* ObjC end of properties */ |
| |
| + (void) initialize; |
| + (id) newLangParser:(id<ANTLRTokenStream>)aStream; |
| /* ObjC start of actions.(actionScope).methodsDecl */ |
| /* ObjC end of actions.(actionScope).methodsDecl */ |
| |
| /* ObjC start of methodsDecl */ |
| /* AST parserHeaderFile.methodsDecl */ |
| /* AST super.methodsDecl */ |
| /* AST parserMethodsDecl */ |
| - (id<ANTLRTreeAdaptor>) getTreeAdaptor; |
| - (void) setTreeAdaptor:(id<ANTLRTreeAdaptor>)theTreeAdaptor; /* AST parsermethodsDecl */ |
| /* ObjC end of methodsDecl */ |
| |
| - (LangParser_start_return *)start; |
| - (LangParser_decl_return *)decl; |
| - (LangParser_type_return *)type; |
| |
| |
| @end /* end of LangParser interface */ |
| |