예제 #1
0
        public override int Execute(SmalltalkCommandLine commandLine)
        {
            ScriptSource source = commandLine.Engine.CreateScriptSourceFromString(this.Code, SourceCodeKind.Statements);

            return(commandLine.RunFile(source));
        }
예제 #2
0
        public override int Execute(SmalltalkCommandLine commandLine)
        {
            ScriptSource source = commandLine.Engine.CreateScriptSourceFromFile(this.File, commandLine.SmalltalkLanguageContext.DefaultEncoding);

            return(commandLine.RunFile(source));
        }