mirror of
https://github.com/gnustep/libs-steptalk.git
synced 2025-02-22 11:01:06 +00:00
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:
parent
f8d68f9d0f
commit
31585ce54c
2 changed files with 10 additions and 5 deletions
|
@ -11,14 +11,14 @@
|
|||
#import "MyLanguageEngine.h"
|
||||
|
||||
@implementation MyLanguageEngine
|
||||
- (id) executeCode:(NSString *)sourceCode
|
||||
inEnvironment:(STEnvironment *)env
|
||||
- (id) interpretScript:(NSString *)aScript
|
||||
inContext:(STContext *)context
|
||||
{
|
||||
id retval = nil;
|
||||
id retval = nil;
|
||||
|
||||
/* execute the code sourceCode using environment env */
|
||||
/* 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; */
|
||||
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{
|
||||
/* Array of file types of your language scripts */
|
||||
STFileTypes = ( "mylang" );
|
||||
StepTalkLanguages = {
|
||||
MyLanguage = {
|
||||
FileTypes = ("mylang");
|
||||
EngineClass = "MyLanguageEngine";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue