Skip to content
Browse files

Update README.md

Updated the readme to use the new tokenisation method.
  • Loading branch information...
1 parent 741ffae commit 553d3b061112a524e3faa08a23d378228acad825 @beelsebob committed Aug 24, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 README.md
View
7 README.md
@@ -68,13 +68,12 @@ Next, we add ourself as a delegate to the tokeniser. We implement the tokeniser
return YES;
}
-- (NSArray *)tokeniser:(CPTokeniser *)tokeniser willProduceToken:(CPToken *)token
+- (void)tokeniser:(CPTokeniser *)tokeniser requestsToken:(CPToken *)token pushedOntoStream:(CPTokenStream *)stream
{
- if ([token isKindOfClass:[CPWhiteSpaceToken class]] || [[token name] isEqualToString:@"Comment"])
+ if (![token isWhiteSpaceToken] && ![[token name] isEqualToString:@"Comment"])
{
- return [NSArray array];
+ [stream pushToken:token];
}
- return [NSArray arrayWithObject:token];
}
```

0 comments on commit 553d3b0

Please sign in to comment.
Something went wrong with that request. Please try again.