No, not a stupid question. In the screenshot you showed there was also semantic information displayed. You can get that in Pharo too, but you need to tell the AST in which context to resolve it:
(RBParser parseExpression: 'x + y')
annotateInClass: Point;
explore
Cheers,
Lukas
On 20 May 2011 22:33, Bernardo Ezequiel Contreras <[email protected]>wrote:
> yes, you are right!!
> stupid question.
>
> Thanks![?]
>
>
> On Fri, May 20, 2011 at 4:45 PM, Lukas Renggli <[email protected]> wrote:
>
>> Indeed, then
>>
>> (RBParser parseExpression: '1 + 2') explore
>>
>> is probably the closest you get.
>>
>> Lukas
>>
>> On 20 May 2011 21:37, Bernardo Ezequiel Contreras <[email protected]>
>> wrote:
>> > i dont know how to answer.
>> > so i would show an example
>> > http://groovy.codehaus.org/Groovy+Console
>> >
>> >
>> http://groovy.codehaus.org/download/attachments/36800/astbrowser.png?version=1&modificationDate=1238156032299
>> >
>> > The groovy console has an AST browser, and i was wondering where the AST
>> > Browser for Pharo is.
>> > I played with the RBParser to parse an expression and inspect the AST
>> tree,
>> > but i could not find a nice browser( or inspector )
>> >
>> > Thanks
>> >
>> >
>> >
>> > On Fri, May 20, 2011 at 2:54 PM, Lukas Renggli <[email protected]>
>> wrote:
>> >>
>> >> Hi Bernardo,
>> >>
>> >> What do you understand as an "AST browser"? A special inspector for AST
>> >> nodes?
>> >>
>> >> Lukas
>> >>
>> >> On 20 May 2011 18:35, Bernardo Ezequiel Contreras <
>> [email protected]>
>> >> wrote:
>> >> > Hi All,
>> >> >
>> >> > do you know where i can get an AST Browser?
>> >> >
>> >> > Thanks
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Lukas Renggli
>> >> www.lukas-renggli.ch
>> >>
>> >
>> >
>>
>>
>>
>> --
>> Lukas Renggli
>> www.lukas-renggli.ch
>>
>>
>
--
Lukas Renggli
www.lukas-renggli.ch
<<330.gif>>
