[squeak-dev] Squeak 5.1, saving of Morphic projects is broken
H. Hirzel
hannes.hirzel at gmail.com
Tue Aug 30 13:11:51 UTC 2016
On 8/30/16, Bert Freudenberg <bert at freudenbergs.de> wrote:
> On Tue, Aug 30, 2016 at 11:22 AM, H. Hirzel <hannes.hirzel at gmail.com>
> wrote:
>>
>> BTW how do I get access to the Smalltalk tools in the Squeakland image?
>> http://www.squeakland.org/content/installers/Etoys-To-Go-5.0.zip
>>
>
>
> * Cmd-comma: simplified code menu
> * Cmd-Shift-W: full world menu
> * Or disable eToyFriendly preference to get world menu on click as usual
>
> - Bert -
>
Thank you. I found an example how the symbolic expressions work (see below).
The question is for which types of projects and object nets this works.
--Hannes
MSExpParser test1
| str1 str2 str3 |
str1 _ '(script :name "testscript1:" :type "Player" :player "12"
(parameter :name "parameter" :type "Number" :position "1")
(sequence
(loop :type "repeat"
(initial (literal :value "0"))
(increment (literal :value "1"))
(test (send :type "Number"
(selector :selector "+")
(send :type "Number"
(selector :getter "x")
(literal :type "Player" :value "self"))
(literal :type "Number" :value "1")))
(sequence
(assign :type "Number" :updating "Incr:" :property "x"
(literal :type "Player" :value "4")
(send :type "Number"
(selector :selector "+")
(literal :type "Number" :value "244.0")
(literal :type "Number" :value "1")))))))'.
str2 _ (MSExpParser parse: str1 with: #ksexp) prettyString.
str3 _ (MSExpParser parse: str2 with: #ksexp) prettyString.
(StringHolder new textContents:
(TextDiffBuilder buildDisplayPatchFrom: str2 to: str3))
openLabel: 'original sexp and new sexp'.
Object subclass: #SExpElement
instanceVariableNames: 'keyword attributes elements'
classVariableNames: ''
poolDictionaries: ''
category: 'Meta-Examples'
Array variableSubclass: #SExpAttributes
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'Meta-Examples'
More information about the Squeak-dev
mailing list
|