Pharse Node

classic Classic list List threaded Threaded
3 messages Options
Pablo Herrero Pablo Herrero
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Pharse Node

Hello everybody!

I'm looking for documentation for the ParseNode class's hierarchy at
the 'Compiler-ParseNodes' category.
Does anyone know where I could find some?

PS1: I'm working on a project where I need to do some runtime code
manipulation, like creating AST Nodes on the fly and things like that.

PS2: Is this the correct list to post this questing or pharo-project
might be more apt?

Cheers!

Pablo

Lukas Renggli Lukas Renggli
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Pharse Node

The parser node classes in the Compiler package are quirky, they are
not conveniently usable for code generation and manipulation.

Better use the AST from the refactoring engine
(http://squeaksource.com/rb,html). You might also want to use the
AST-Compiler (http://source.lukas-renggli.ch/helvetia.html), to be
able to directly compile the AST from the refactoring engine without
going through source code.

Lukas

On 17 November 2011 04:48, Pablo Herrero <[hidden email]> wrote:

> Hello everybody!
>
> I'm looking for documentation for the ParseNode class's hierarchy at
> the 'Compiler-ParseNodes' category.
> Does anyone know where I could find some?
>
> PS1: I'm working on a project where I need to do some runtime code
> manipulation, like creating AST Nodes on the fly and things like that.
>
> PS2: Is this the correct list to post this questing or pharo-project
> might be more apt?
>
> Cheers!
>
> Pablo
>
>



--
Lukas Renggli
www.lukas-renggli.ch

Pablo Herrero Pablo Herrero
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Fwd: Pharse Node

Che parece q es la otra jerarquia la que hay q usar, igualmente
podemos mirar el framework, este que ya nos habia pasado antes
(http://squeaksource.com/rb), como para tener una idea de como se usa,
o aprovechar directamente este framework.


---------- Forwarded message ----------
From: Lukas Renggli <[hidden email]>
Date: 2011/11/17
Subject: Re: [Pharo-users] Pharse Node
To: A friendly place where any question about pharo is welcome
<[hidden email]>


The parser node classes in the Compiler package are quirky, they are
not conveniently usable for code generation and manipulation.

Better use the AST from the refactoring engine
(http://squeaksource.com/rb,html). You might also want to use the
AST-Compiler (http://source.lukas-renggli.ch/helvetia.html), to be
able to directly compile the AST from the refactoring engine without
going through source code.

Lukas

On 17 November 2011 04:48, Pablo Herrero <[hidden email]> wrote:

> Hello everybody!
>
> I'm looking for documentation for the ParseNode class's hierarchy at
> the 'Compiler-ParseNodes' category.
> Does anyone know where I could find some?
>
> PS1: I'm working on a project where I need to do some runtime code
> manipulation, like creating AST Nodes on the fly and things like that.
>
> PS2: Is this the correct list to post this questing or pharo-project
> might be more apt?
>
> Cheers!
>
> Pablo
>
>



--
Lukas Renggli
www.lukas-renggli.ch

Loading...