diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-31 11:48:46 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-07-31 11:48:46 +0200 |
commit | ca17649dab6d0d1ed49a3e072827e8324629aa64 (patch) | |
tree | 4b6cd04a660f44e11aa6089a02df7ab925c60eaf /MLKReadtable.m | |
parent | 0f383318a079bd0c7bb23c909f30771b1c20b29c (diff) |
Reader: Add support for dispatching macro characters.
Diffstat (limited to 'MLKReadtable.m')
-rw-r--r-- | MLKReadtable.m | 4 |
1 files changed, 2 insertions, 2 deletions
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 <MLKFuncallable>) macroFunctionForCharacter:(unichar)ch; { return [_readerMacros objectForKey:[NSNumber numberWithLong:ch]]; } --(void) setMacroFunction:(MLKFuncallable *)function forCharacter:(unichar)ch +-(void) setMacroFunction:(id <MLKFuncallable>)function forCharacter:(unichar)ch { [_readerMacros setObject:function forKey:[NSNumber numberWithLong:ch]]; |