| 1 |
/* |
| 2 |
Project: pcpg |
| 3 |
|
| 4 |
Author: Gregory John Casamento,,, |
| 5 |
|
| 6 |
Created: 2011-08-16 14:11:00 -0400 by heron |
| 7 |
*/ |
| 8 |
|
| 9 |
#import <Foundation/Foundation.h> |
| 10 |
#import "PLCPG.h" |
| 11 |
|
| 12 |
int |
| 13 |
main(int argc, const char *argv[]) |
| 14 |
{ |
| 15 |
id pool = [[NSAutoreleasePool alloc] init]; |
| 16 |
|
| 17 |
// Your code here... |
| 18 |
if(argc > 0) |
| 19 |
{ |
| 20 |
NSString *argument = [[NSString alloc] initWithCString: argv[1]]; |
| 21 |
PLCPG *plcpg = [[PLCPG alloc] initWithPlist: argument]; |
| 22 |
[plcpg generate]; |
| 23 |
[argument release]; |
| 24 |
[plcpg release]; |
| 25 |
} |
| 26 |
// The end... |
| 27 |
|
| 28 |
[pool release]; |
| 29 |
|
| 30 |
return 0; |
| 31 |
} |
| 32 |
|