Executing AST
Bergel, Alexandre
bergel at iam.unibe.ch
Sun Jul 8 16:13:38 UTC 2007
Hi Norbert,
I am currently working on a squeak interpreter.
It is available on Squeaksource. If you want to try it, load Perseus,
and SmalltalkP
http://www.squeaksource.com/Perseus
http://www.squeaksource.com/SmalltalkInPerseus
Have a look at the test.
This is a very preliminary work, and the design will have to be
redone, but the essence is there.
Let me know about how far you went with it :-)
Alexandre
On 8 Jul 2007, at 14:31, Norbert Hartl wrote:
> Hi,
>
> I'm playing a little with parsing and executing smalltalk
> expressions.
>
> I have a tree from
>
> RBParser parseExpression: ('3 + 4' readStream)
>
> How can I execute the expression? Do I have to generate code
> first or is this tree somehow executable?
>
> thanks,
>
> Norbert
>
>
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
More information about the Squeak-dev
mailing list
|