Persephone

Philippe Marschall philippe.marschall at gmail.com
Tue Jul 10 18:50:02 UTC 2007


2007/7/10, Bergel, Alexandre <bergel at iam.unibe.ch>:
> Hi Philippe,
>
> Was wondering why an interpreter is needed in Persephone?

Easily hooking into the execution at a high level of abstraction.

Philippe

> 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