Persephone

Bergel, Alexandre bergel at iam.unibe.ch
Tue Jul 10 08:27:53 UTC 2007


Hi Philippe,

Was wondering why an interpreter is needed in Persephone?

Alexandre


On 8 Jul 2007, at 17:30, Philippe Marschall wrote:

> 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
>>
>>
>>
>

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






More information about the Squeak-dev mailing list