40 lines
1.1 KiB
Objective-C
40 lines
1.1 KiB
Objective-C
// $ANTLR 3.4 /Users/acondit/source/antlr/code/antlr3/runtime/ObjC/Framework/examples/lexertest-simple/TestLexer.g 2012-02-16 17:36:38
|
|
|
|
/* =============================================================================
|
|
* 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 DIGIT 4
|
|
#define ID 5
|
|
#define LETTER 6
|
|
/* interface lexer class */
|
|
@interface TestLexer : Lexer { // line 283
|
|
/* ObjC start of actions.lexer.memVars */
|
|
/* ObjC end of actions.lexer.memVars */
|
|
}
|
|
+ (void) initialize;
|
|
+ (TestLexer *)newTestLexerWithCharStream:(id<CharStream>)anInput;
|
|
/* ObjC start actions.lexer.methodsDecl */
|
|
/* ObjC end actions.lexer.methodsDecl */
|
|
- (void) mID ;
|
|
- (void) mDIGIT ;
|
|
- (void) mLETTER ;
|
|
- (void) mTokens ;
|
|
|
|
@end /* end of TestLexer interface */
|
|
|