74 lines
1.8 KiB
Objective-C
74 lines
1.8 KiB
Objective-C
// $ANTLR 3.4 /Users/acondit/source/antlr/code/antlr3/runtime/ObjC/Framework/examples/simplecTreeParser/SimpleC.g 2012-02-16 17:40:52
|
|
|
|
/* =============================================================================
|
|
* Standard antlr OBJC runtime definitions
|
|
*/
|
|
#import <Foundation/Foundation.h>
|
|
#import <ANTLR/ANTLR.h>
|
|
/* End of standard antlr3 runtime definitions
|
|
* =============================================================================
|
|
*/
|
|
|
|
/* Start cyclicDFAInterface */
|
|
|
|
#pragma mark Rule return scopes Interface start
|
|
#pragma mark Rule return scopes Interface end
|
|
#pragma mark Tokens
|
|
#ifdef EOF
|
|
#undef EOF
|
|
#endif
|
|
#define EOF -1
|
|
#define ARG_DEF 4
|
|
#define BLOCK 5
|
|
#define FUNC_DECL 6
|
|
#define FUNC_DEF 7
|
|
#define FUNC_HDR 8
|
|
#define K_CHAR 9
|
|
#define K_COMMA 10
|
|
#define K_EQ 11
|
|
#define K_EQEQ 12
|
|
#define K_FOR 13
|
|
#define K_ID 14
|
|
#define K_INT 15
|
|
#define K_INT_TYPE 16
|
|
#define K_LCURLY 17
|
|
#define K_LCURVE 18
|
|
#define K_LT 19
|
|
#define K_PLUS 20
|
|
#define K_RCURLY 21
|
|
#define K_RCURVE 22
|
|
#define K_SEMICOLON 23
|
|
#define K_VOID 24
|
|
#define VAR_DEF 25
|
|
#define WS 26
|
|
/* interface lexer class */
|
|
@interface SimpleCLexer : Lexer { // line 283
|
|
/* ObjC start of actions.lexer.memVars */
|
|
/* ObjC end of actions.lexer.memVars */
|
|
}
|
|
+ (void) initialize;
|
|
+ (SimpleCLexer *)newSimpleCLexerWithCharStream:(id<CharStream>)anInput;
|
|
/* ObjC start actions.lexer.methodsDecl */
|
|
/* ObjC end actions.lexer.methodsDecl */
|
|
- (void) mK_FOR ;
|
|
- (void) mK_CHAR ;
|
|
- (void) mK_INT_TYPE ;
|
|
- (void) mK_VOID ;
|
|
- (void) mK_ID ;
|
|
- (void) mK_INT ;
|
|
- (void) mK_LCURVE ;
|
|
- (void) mK_RCURVE ;
|
|
- (void) mK_PLUS ;
|
|
- (void) mK_COMMA ;
|
|
- (void) mK_SEMICOLON ;
|
|
- (void) mK_LT ;
|
|
- (void) mK_EQ ;
|
|
- (void) mK_EQEQ ;
|
|
- (void) mK_LCURLY ;
|
|
- (void) mK_RCURLY ;
|
|
- (void) mWS ;
|
|
- (void) mTokens ;
|
|
|
|
@end /* end of SimpleCLexer interface */
|
|
|