summaryrefslogtreecommitdiff
path: root/MLKReadtable.m
diff options
context:
space:
mode:
Diffstat (limited to 'MLKReadtable.m')
-rw-r--r--MLKReadtable.m6
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)