From ca17649dab6d0d1ed49a3e072827e8324629aa64 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Thu, 31 Jul 2008 11:48:46 +0200 Subject: Reader: Add support for dispatching macro characters. --- MLKReadtable.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MLKReadtable.m') diff --git a/MLKReadtable.m b/MLKReadtable.m index 01e6b38..95180e5 100644 --- a/MLKReadtable.m +++ b/MLKReadtable.m @@ -92,12 +92,12 @@ DEFINE_SYNTAX_PREDICATE(isConstituentCharacter:, CONSTITUENT) isEqual:[[NSString stringWithFormat:@"%C", ch] lowercaseString]]); } --(MLKFuncallable *) macroFunctionForCharacter:(unichar)ch; +-(id ) macroFunctionForCharacter:(unichar)ch; { return [_readerMacros objectForKey:[NSNumber numberWithLong:ch]]; } --(void) setMacroFunction:(MLKFuncallable *)function forCharacter:(unichar)ch +-(void) setMacroFunction:(id )function forCharacter:(unichar)ch { [_readerMacros setObject:function forKey:[NSNumber numberWithLong:ch]]; -- cgit v1.2.3