Full Block Closure
John Duncan
jddst19+ at pitt.edu
Sat Nov 20 02:22:21 UTC 1999
> How does one grab the parse tree of a method? I.e., which
> method with what
> arguments can one inspect the results to look parse tree? Tips?
>
> Cheers,
> Bijan Parsia.
>
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.
More information about the Squeak-dev
mailing list
|