Created
April 7, 2014 19:09
-
-
Save aamedina/10032440 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static NSString *readToken (PushbackReader *rdr) { | |
| NSMutableString *sb = [NSMutableString string]; | |
| unichar ch = [rdr read]; | |
| for (;;) { | |
| if (!ch || isWhitespace(ch)) | |
| return [NSString stringWithString:sb]; | |
| [sb appendFormat:@"%C", ch]; | |
| ch = [rdr read]; | |
| } | |
| return nil; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment