Hi,

I've published an initial release of Pharo scripting you cant get this release 
here :  http://www.squeaksource.com/SaphirScripting. I would like to thanks
*Mathieu Suen* who has done a very good work and give me a lot of help !!!

You need the last version of the AST : http://www.squeaksource.com/AST
and also the NewCompiler : http://www.squeaksource.com/NewCompiler but
don't try the last version use the *281* And finally you can add the OSProcess
repository : http://www.squeaksource.com/OSProcess.

Don't worry if when you load the NewCompiler package you have a warning
about a missing SmaccSomething :)

here is a small example of the syntax :

        [
        Object subclass: #SaBox
                instanceVariableNames: ''bob''
                classVariableNames: ''''
                poolDictionaries: ''''
                category: ''SandBox''
        ]

        SaBox >> initialize
        [
                <category: ''initialize release''>
                <authorInitials: ''him''>
                bob := ''Script test working''.
        ]

        SaBox >> printOn: aStream
        [
                <authorInitials: ''him''>"
                aStream nextPutAll: bob
        ]

        SaBox class >> dummy
        [
                <authorInitials: ''him''>
                ^3
        ]

        [
        SaBox new printString.
        ]

If you want the scripts are launched at startUp do : 
        Smalltalk addToStartUpList: ScriptInterpreter

you can script you system with pharo ;)

Cheers,
Gwenael

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to