Update the language template

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@21720 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Stefan Urbanek 2005-09-17 12:30:20 +00:00
parent f8d68f9d0f
commit 31585ce54c
2 changed files with 10 additions and 5 deletions

View file

@ -11,14 +11,14 @@
#import "MyLanguageEngine.h" #import "MyLanguageEngine.h"
@implementation MyLanguageEngine @implementation MyLanguageEngine
- (id) executeCode:(NSString *)sourceCode - (id) interpretScript:(NSString *)aScript
inEnvironment:(STEnvironment *)env inContext:(STContext *)context
{ {
id retval = nil; id retval = nil;
/* execute the code sourceCode using environment env */ /* execute the code sourceCode using environment env */
/* use [env objectDictionary] to get environment objects /* use [env objectDictionary] to get environment objects
(see STEnvironment.h to see what you can do) */ (see STContext documentation or header file to see what you can do) */
/* retval = return value from the interpreter; */ /* retval = return value from the interpreter; */

View file

@ -1,4 +1,9 @@
{ {
/* Array of file types of your language scripts */ /* Array of file types of your language scripts */
STFileTypes = ( "mylang" ); StepTalkLanguages = {
MyLanguage = {
FileTypes = ("mylang");
EngineClass = "MyLanguageEngine";
}
}
} }