Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: c080014c15
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (23 sloc) 0.561 kB
//
// TDNonReservedWord.m
// TDParseKit
//
// Created by Todd Ditchendorf on 8/13/08.
// Copyright 2008 Todd Ditchendorf. All rights reserved.
//
#import "TDNonReservedWord.h"
#import "TDReservedWord.h"
#import "TDToken.h"
@interface TDReservedWord ()
+ (NSArray *)reservedWords;
@end
@implementation TDNonReservedWord
- (BOOL)qualifies:(id)obj {
TDToken *tok = (TDToken *)obj;
if (!tok.isWord) {
return NO;
}
NSString *s = tok.stringValue;
return s.length && ![[TDReservedWord reservedWords] containsObject:s];
}
@end
Jump to Line
Something went wrong with that request. Please try again.