compililation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

compililation

Samar Yazdani
hello!!

i have a BlockNode that i've extracted from a MethodNode
e.g.
method := self sourceCodeAt: #test3.
    methodNode := Compiler new
                compile: method
                in: self
                notifying: nil
                ifFail: nil.
    pne := ThreadedEnumerator new.
    tmp := pne doNode: methodNode node.

and after that i've visited the parsed tree to extract the BlockNode
required....

...Now i want to convert the BlockNode (that i've extracted) in a
compiled method...any idea???


regards/thanks in advance
Samar

Reply | Threaded
Open this post in threaded view
|

Re: compililation

Mathieu SUEN
You have to copy pass the StatementNode of your block node in a  
method node and be carfull with  all the variable.

On Apr 11, 2007, at 10:41 AM, Samar Yazdani wrote:

>
> ...Now i want to convert the BlockNode (that i've extracted) in a  
> compiled method...any idea???

        Mth