Re: [Newbies] How can I create a script from within a script?

2011-02-28 Thread Bert Freudenberg
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.

Re: [Newbies] How can I create a script from within a script?

2011-02-28 Thread Alex Schenkman
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 e

Re: [Newbies] How can I create a script from within a script?

2011-02-28 Thread Gary Dunn
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 statemen

[Newbies] How can I create a script from within a script?

2011-02-28 Thread Steve Thomas
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 __