Lines Matching refs:CommonToken
28 #import "CommonToken.h"
30 static CommonToken *SKIP_TOKEN;
31 static CommonToken *EOF_TOKEN;
32 static CommonToken *INVALID_TOKEN;
34 @implementation CommonToken implementation
52 EOF_TOKEN = [CommonToken newToken:TokenTypeEOF Text:@"EOF"];
53 SKIP_TOKEN = [CommonToken newToken:TokenTypeInvalid Text:@"Skip"];
54 INVALID_TOKEN = [CommonToken newToken:TokenTypeInvalid Text:@"Invalid"];
60 + (CommonToken *)INVALID_TOKEN
75 + (CommonToken *) newToken
77 return [[CommonToken alloc] init];
80 + (CommonToken *) newToken:(id<CharStream>)anInput Type:(NSInteger)aTType Channel:(NSInteger)aChann…
82 …return [[CommonToken alloc] initWithInput:(id<CharStream>)anInput Type:(NSInteger)aTType Channel:(…
85 + (CommonToken *) newToken:(TokenType)tokenType
87 return( [[CommonToken alloc] initWithType:tokenType] );
90 + (CommonToken *) newToken:(NSInteger)tokenType Text:(NSString *)tokenText
92 return( [[CommonToken alloc] initWithType:tokenType Text:tokenText] );
95 + (CommonToken *) newTokenWithToken:(CommonToken *)fromToken
97 return( [[CommonToken alloc] initWithToken:fromToken] );
104 EOF_TOKEN = [[CommonToken newToken:TokenTypeEOF Text:@"EOF"] retain];
113 SKIP_TOKEN = [[CommonToken newToken:TokenTypeInvalid Text:@"Skip"] retain];
122 INVALID_TOKEN = [[CommonToken newToken:TokenTypeInvalid Text:@"Invalid"] retain];
168 - (id) initWithToken:(CommonToken *)oldToken
180 if ( [oldToken isKindOfClass:[CommonToken class]] ) {
209 NSLog( @"called dealloc in CommonToken" );
220 CommonToken *copy = [[[self class] allocWithZone:theZone] init];