diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-06-19 21:16:13 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-06-19 21:16:13 +0200 |
commit | 85762b55bf85437e981ebbf162e9af2255236330 (patch) | |
tree | 2e37cd8847c78b36d42d9e3f9931b039f7c7de3a /MLKReadtable.m | |
parent | 66ed696a14623f3062f28ede477ec73049e69321 (diff) |
Make the list reader work for simple lists.
Diffstat (limited to 'MLKReadtable.m')
-rw-r--r-- | MLKReadtable.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MLKReadtable.m b/MLKReadtable.m index dd2a428..349688e 100644 --- a/MLKReadtable.m +++ b/MLKReadtable.m @@ -96,6 +96,12 @@ DEFINE_SYNTAX_PREDICATE(isConstituentCharacter:, CONSTITUENT) return [_readerMacros objectForKey:[NSNumber numberWithLong:ch]]; } +-(void) setMacroFunction:(MLKFuncallable *)function forCharacter:(unichar)ch +{ + [_readerMacros setObject:function + forKey:[NSNumber numberWithLong:ch]]; +} + -(unichar) charWithReadtableCase:(unichar)ch { switch (_case) |