Added Documentation
This commit is contained in:
@@ -8,21 +8,14 @@
|
||||
|
||||
#import "MPToken.h"
|
||||
|
||||
|
||||
|
||||
@implementation MPToken {
|
||||
NSRange _range;
|
||||
MPTokenType _tokenType;
|
||||
NSString *_stringValue;
|
||||
}
|
||||
|
||||
- (instancetype)initEOFTokenAtLocation:(NSUInteger)eofLocation
|
||||
{
|
||||
self = [super init];
|
||||
if (self) {
|
||||
_range = NSMakeRange(eofLocation, 0);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype)initWithTokenType:(MPTokenType)tokenType
|
||||
range:(NSRange)range
|
||||
stringValue:(NSString *)input
|
||||
@@ -36,21 +29,25 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
- (NSRange)range
|
||||
{
|
||||
return _range;
|
||||
}
|
||||
|
||||
|
||||
- (MPTokenType)tokenType
|
||||
{
|
||||
return _tokenType;
|
||||
}
|
||||
|
||||
|
||||
- (NSString *)stringValue
|
||||
{
|
||||
return _stringValue;
|
||||
}
|
||||
|
||||
|
||||
- (NSString *)description
|
||||
{
|
||||
return self.stringValue;
|
||||
|
||||
Reference in New Issue
Block a user