Fwd: If python goes Etoys, let's go scripting then - with the best IDE for creating and a clean license for running(!) scripts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: If python goes Etoys, let's go scripting then - with the best IDE for creating and a clean license for running(!) scripts

Markus Gälli-3
> It is amusing that everybody is interested in defining the language,
> but nobody seems to want to define the proper class library for a
> scripting system.  The important part is string matching and I/O, not
> the format for the language.  Make a script be the same as a
> workspace, except that there is an automatic "do it" on the entire
> script.
>
> -Ralph

Hi Ralph,

Masashi answered this question yesterday partially, but as a reply to  
the "close set" of adresses of my original mail.
Please find his answer below.

Markus


> Hello,
>
>> What was missing were more practical, readibly-accessible libraries
>> to deal with files etc. For that I simply used regular Smalltalk
>> code, but for example I did not add anything specific to know about
>> the folder you were in and do something useful there. So while you
>> could do:
>>
>> c:\>vwscript "  'myfile.txt' asFilename writeStream nextPutAll:
>> 'Hello' "
>>
>> it was a bit more tedious to start enumerating files etc.
>
> I developed FileMan package for handling multi files easily.
>
> FileMan:
> http://map.squeak.org/package/f9917683-25da-4a6c-a013-b36527a100c1
>
> In FileMan, you can write such kind of code.
>
> "ex1. Write 'Hello' to a file 'myFile.txt'"
> 'myfile.txt' asFileEntry fileContents: 'Hello'.
>
> "ex2. Enumerate all .image files in the current directory"
> '.' asDirectoryEntry filesMatches: [:each | each name endsWith:  
> '.image'].
>
> Also, Yamamiya-san had once developed Folktale, which provides a  
> command shell
> interface for a headless Squeak.
>
> Folktale:
> http://map.squeak.org/package/f5f09337-51ea-4b59-acf3-c7b57b32638d
>
> Just FYI.
> --
> [:masashi | ^umezawa]