Executing AST

Philippe Marschall philippe.marschall at gmail.com
Sun Jul 8 15:30:09 UTC 2007


2007/7/8, Norbert Hartl <norbert at hartl.name>:
> 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?

The Persephone package on SqueakSource includes an interpreter that
works on RB AST nodes. It even has support for primitives.

Cheers
Philippe

> thanks,
>
> Norbert
>
>
>



More information about the Squeak-dev mailing list