musictheory / NilScript

Objective-C-style language superset of JavaScript with a tiny, simple runtime
Other
50 stars 5 forks source link

Space after @implementation class name generates invalid code #85

Closed iccir closed 8 years ago

iccir commented 8 years ago

If a space immediately follows the class name, oj generates invalid code:

@implementation Foo_
@end

(In this example, the underscore after Foo is really a space)

iccir commented 8 years ago

It also has to be an empty class with no body (including ivar declarations):

These are all fine:

@implementation Foo
{ }
@end

@implementation Foo_
- (void) foo { };
@end