diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-10 14:33:00 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-10 14:33:00 +0200 |
commit | b3be10fa461a52b3ca774ad2a25162d0fc830cda (patch) | |
tree | 3574cb23104dc58a34b1fdf3934aa2b76f110569 /MLKForm.m | |
parent | 08c03e123a60973d47f6284957de917ed7571a91 (diff) |
MLKForm class cluster: Add instance variables.
Diffstat (limited to 'MLKForm.m')
-rw-r--r-- | MLKForm.m | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -209,7 +209,23 @@ @end +@implementation MLKBodyForm +@end + + +@implementation MLKDeclaringForm +@end + + +@implementation MLKDocstringForm +@end + + @implementation MLKFunctionCallForm +// -(id <MLKFuncallable>) functionInfo +// { +// return [_context functionInfoForSymbol:_head]; +// } @end @@ -230,6 +246,23 @@ @implementation MLKFunctionForm ++(Class) dispatchClassForObject:(id)object +{ + id funname = [[object cdr] car]; + if ([funname isKindOfClass:[MLKCons class]] + && [funname car] == LAMBDA) + return [MLKLambdaFunctionForm class]; + else + return [MLKSimpleFunctionForm class]; +} +@end + + +@implementation MLKLambdaFunctionForm +@end + + +@implementation MLKSimpleFunctionForm @end |