Full Block Closure
Torge Husfeldt
jean-jaques.gelee at gmx.de
Sat Nov 20 21:46:35 UTC 1999
Bijan wrote:
----- Original Message -----
From: Bijan Parsia <bparsia at email.unc.edu>
To: <squeak at cs.uiuc.edu>
Sent: Saturday, November 20, 1999 4:13 AM
Subject: RE: Full Block Closure
> At 9:22 PM -0500 11/19/99, John Duncan wrote:
>
> [snip]
> >You can try this:
> >
> > | t m class sel |
> > class _ Browser "for example"
> > sel _ #contents "for example"
> > t _ class sourceCodeAt: sel
> > (m _ Parser new parse: (ReadStream on: t) class: Browser noPattern:
> >false context: nil notifying: nil ifFail: []) explore
> >
> >exploring is much more useful for abstract syntax trees than
> >inspecting.
>
> Thanks! How might this work for WorkSpace code, or should I just set up a
> dummy class and methods to fuss around with?
For workspace code you choose noPattern: true.
The class should not matter in this case.
Regards, Torge
More information about the Squeak-dev
mailing list
|