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

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

            return(commandLine.RunFile(source));
        }