2002-11-05 20:04:24 +00:00
|
|
|
/**
|
|
|
|
MyLanguageEngine
|
|
|
|
|
|
|
|
@COPYRIGHT@
|
|
|
|
|
|
|
|
Written by: @AUTHOR@
|
|
|
|
Date: @DATE@
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import "MyLanguageEngine.h"
|
|
|
|
|
|
|
|
@implementation MyLanguageEngine
|
2005-09-17 12:30:20 +00:00
|
|
|
- (id) interpretScript:(NSString *)aScript
|
|
|
|
inContext:(STContext *)context
|
2002-11-05 20:04:24 +00:00
|
|
|
{
|
2005-09-17 12:30:20 +00:00
|
|
|
id retval = nil;
|
2002-11-05 20:04:24 +00:00
|
|
|
|
|
|
|
/* execute the code sourceCode using environment env */
|
|
|
|
/* use [env objectDictionary] to get environment objects
|
2005-09-17 12:30:20 +00:00
|
|
|
(see STContext documentation or header file to see what you can do) */
|
2002-11-05 20:04:24 +00:00
|
|
|
|
|
|
|
/* retval = return value from the interpreter; */
|
|
|
|
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
@end
|