Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: scutdavy/nu
base: 24ff39942d
...
head fork: scutdavy/nu
compare: 97ef1ea74d
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Aug 23, 2013
@scutdavy fix 4d3f685
Commits on Aug 26, 2013
@scutdavy remove unused operator 97ef1ea
Showing with 3 additions and 63 deletions.
  1. +3 −63 objc/Nu.m
View
66 objc/Nu.m
@@ -8224,40 +8224,6 @@ - (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context{
@end
-@interface Nu_cmethod_operator : NuOperator
-@end
-
-@implementation Nu_cmethod_operator
-- (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context{
- NSLog(@"The cmethod operator is deprecated. Please replace it with '+' in your code.");
- NuSymbolTable *symbolTable = [context objectForKey:SYMBOLS_KEY];
- NuClass *classWrapper = [context objectForKey:[symbolTable symbolWithString:@"_class"]];
- [classWrapper registerClass];
- Class classToExtend = [classWrapper wrappedClass];
- if (!classToExtend)
- [NSException raise:@"NuMisplacedDeclaration" format:@"class method declaration with no enclosing class declaration"];
- return help_add_method_to_class(classToExtend, cdr, context, YES);
-}
-
-@end
-
-@interface Nu_imethod_operator : NuOperator
-@end
-
-@implementation Nu_imethod_operator
-- (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context{
- NSLog(@"The imethod operator is deprecated. Please replace it with '-' in your code.");
- NuSymbolTable *symbolTable = [context objectForKey:SYMBOLS_KEY];
- NuClass *classWrapper = [context objectForKey:[symbolTable symbolWithString:@"_class"]];
- [classWrapper registerClass];
- Class classToExtend = [classWrapper wrappedClass];
- if (!classToExtend)
- [NSException raise:@"NuMisplacedDeclaration" format:@"instance method declaration with no enclosing class declaration"];
- return help_add_method_to_class(classToExtend, cdr, context, NO);
-}
-
-@end
-
@interface Nu_ivar_operator : NuOperator
@end
@@ -8289,28 +8255,6 @@ - (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context{
@end
-@interface Nu_ivars_operator : NuOperator
-@end
-
-@implementation Nu_ivars_operator
-- (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context{
- NSLog(@"The ivars operator is unnecessary. Please remove it from your source.");
- return [NSNull NU_null];
-}
-
-@end
-
-@interface Nu_ivar_accessors_operator : NuOperator
-@end
-
-@implementation Nu_ivar_accessors_operator
-- (id) callWithArguments:(id)cdr context:(NSMutableDictionary *)context{
- NSLog(@"The ivar-accessors operator is unnecessary. Please remove it from your source.");
- return [NSNull NU_null];
-}
-
-@end
-
@interface Nu_system_operator : NuOperator
@end
@@ -8600,7 +8544,7 @@ typedef NS_ENUM(NSInteger, NUPaserState) {
static int g_filecount = 0;
// Turn debug output on and off for this file only
-//#define PARSER_DEBUG 1
+#define PARSER_DEBUG 1
#ifdef PARSER_DEBUG
#define ParserDebug(arg...) NSLog(arg)
@@ -9076,14 +9020,14 @@ -(id) parse:(NSString*)string{
case NUPaserStateNormal:
switch(stri) {
case '(':
- ParserDebug(@"Parser: ( %d on line %d", _column, _linenum);
+ ParserDebug(@"Parser: ( %d on line %d", column, _linenum);
[_opens push:@(column)];
if ([_partial length] == 0) {
[self openList];
}
break;
case ')':
- ParserDebug(@"Parser: ) %d on line %d", _column, _linenum);
+ ParserDebug(@"Parser: ) %d on line %d", column, _linenum);
[_opens pop];
if ([_partial length] > 0) {
[self addAtom:atomWithString(_partial, _symbolTable)];
@@ -10329,11 +10273,7 @@ + (void) loadBuiltIns:(NuSymbolTable *) symbolTable{
install(@"sleep", Nu_sleep_operator);
install(@"class", Nu_class_operator);
- install(@"imethod", Nu_imethod_operator);
- install(@"cmethod", Nu_cmethod_operator);
install(@"ivar", Nu_ivar_operator);
- install(@"ivars", Nu_ivars_operator);
- install(@"ivar-accessors", Nu_ivar_accessors_operator);
install(@"call", Nu_call_operator);
install(@"send", Nu_send_operator);

No commit comments for this range

Something went wrong with that request. Please try again.