I am playing with the idea of creating a scripting language for kids.
So given the script below p1 is being set to an object/Player named Ellipse:
script2
| t1 t2 p1 |
p1 := Ellipse
t1 := 'forward'.
t2 := 5
How can I get it to do/execute: *p1 forward: 5*
Stephen
The direct answer is thay it depends on how you design tour interpreter. In
Squeak we fiddle in a Workspace but that is not an interpreter. We invoke
the interpreter with do it or evaluate. In other scripting languages the
script is a file read by the interpreter.
In a smalltalk method, a
Take a look at: http://rmod.lille.inria.fr/botsinc
On Monday, February 28, 2011 at 6:05 PM, Gary Dunn wrote:
The direct answer is thay it depends on how you design tour interpreter. In
Squeak we fiddle in a Workspace but that is not an interpreter. We invoke the
interpreter with do it or
On 28.02.2011, at 08:31, Steve Thomas wrote:
I am playing with the idea of creating a scripting language for kids.
One way would be to just generate Smalltalk code that does what you want, and
compile it into a new method. But writing your own interpreter as you suggest
below would work, too.
Dear Squeakers,
welcome to this edition of The WeeklySqueakSummary, an (in principle)
monthly but somewhat traffic-dependent report on what's going on in
the world of Squeak based on the WeeklySqueak blog.
Again, we did not have too many posts during the past four weeks - two
this time.
The big
While studying DBus code I came across a method that appears to set a class
variable and return the value. In DBusConnection sessionBus
^SessionBus := self getBus: 0 from: SessionBus
and SessionBus is a class variable. Why return the value? Why not have the
sender examine the value of
Hi Gary,
This is a good question.
The code is probably lazily instantiating the variable so that it can be
used somewhere else. If the class variable was private to the class and
not intended to be used by another class and you were only planning on
calling it from the class side then it
Wow, a reply right from the author. I am beginning to understand (1%) DBus.
Your terrific browser led me to understand I should look for Gnome signals
in Gnome, that the solution will need to be platform dependent ... still in
the dark how that will pan out. One can learn a lot by reading good
Nothing else to download, that's what is great about the All-in-one.
If you are on Unix, run squeak.sh from the unpacked contents.
If you are on windows, run squeak.lnk (shortcut to Squeak.exe)
On mac, the folder itself is an app.
On Mon, Feb 28, 2011 at 7:10 PM, michael rice nowg...@yahoo.com
Got it working. Looks good.
Another quick question: if I run application with the outer squeak.sh and I
decide I want to save the image, does it save the new image over the bundled
image, replacing it?
Michael
--- On Mon, 2/28/11, K. K. Subramaniam kksubbu...@gmail.com wrote:
From: K. K.
10 matches
Mail list logo