This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/share/CodeBlocks/lexers/lexer_objc.sample

25 lines
311 B
Plaintext

#import <stdio.h>
#import <objc/Object.h>
@interface Hello: Object
- (void) init;
- (void) say;
@end
@implementation Hello
- (void) init {
[super init];
}
- (void) say {
printf("Hello world.\n");
}
@end
int main() {
Hello *hello = [Hello new];
[hello say];
[hello say
[hello free];
return 0;
}