Hi, I have some code I'd like to port from VisualWorks to Pharo. How would one do that ? Both file outs formats are different, as far as I could find. Regards, Thierry -- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
There is not a way to import code from visualWorks from pharo so far that I know. But the infrastructure is there: Look at CodeImporter and ChunkFileFormatParser classes in 2.0. Implementing an VisualWorksXmlFileFormatParser should not be very difficult. You can have a look at ConfigurationOfXmlSupport in MetacelloRepository for some xml parsers. Guille On Mon, May 21, 2012 at 12:51 PM, Goubier Thierry <thierry.goubier@cea.fr>wrote:
Hi,
I have some code I'd like to port from VisualWorks to Pharo. How would one do that ? Both file outs formats are different, as far as I could find.
Regards,
Thierry -- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
On May 21, 2012, at 12:51 PM, Goubier Thierry wrote:
Hi,
I have some code I'd like to port from VisualWorks to Pharo. How would one do that ? Both file outs formats are different, as far as I could find.
First there is a bundle to output Squeak format. Usually I hack the outputted to avoid _ and emit := instead. May be look on the cincom store for the package. I can look around. Then I flatten the namespace with emacs. Stef
I'm trying with the FileOut30 package, in VisualWorks compatibility mode. So far so good, but this code depends on the compiler infrastructure of VisualWorks. So what is the Pharo equivalent of ProgramNodeEnumerator ? Something in AST-* ? Thanks, Thierry Le 21/05/2012 14:45, Stéphane Ducasse a écrit :
On May 21, 2012, at 12:51 PM, Goubier Thierry wrote:
Hi,
I have some code I'd like to port from VisualWorks to Pharo. How would one do that ? Both file outs formats are different, as far as I could find.
First there is a bundle to output Squeak format. Usually I hack the outputted to avoid _ and emit := instead. May be look on the cincom store for the package. I can look around. Then I flatten the namespace with emacs.
Stef
-- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
I'm trying with the FileOut30 package, in VisualWorks compatibility mode. So far so good, but this code depends on the compiler infrastructure of VisualWorks.
but you should not run it in pharo but in vw so normally you do not need to change the parse tree visitor. Stef
So what is the Pharo equivalent of ProgramNodeEnumerator ? Something in AST-* ?
Thanks,
Thierry
Le 21/05/2012 14:45, Stéphane Ducasse a écrit :
On May 21, 2012, at 12:51 PM, Goubier Thierry wrote:
Hi,
I have some code I'd like to port from VisualWorks to Pharo. How would one do that ? Both file outs formats are different, as far as I could find.
First there is a bundle to output Squeak format. Usually I hack the outputted to avoid _ and emit := instead. May be look on the cincom store for the package. I can look around. Then I flatten the namespace with emacs.
Stef
-- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
Le 21/05/2012 15:03, Stéphane Ducasse a écrit :
I'm trying with the FileOut30 package, in VisualWorks compatibility mode. So far so good, but this code depends on the compiler infrastructure of VisualWorks.
but you should not run it in pharo but in vw so normally you do not need to change the parse tree visitor.
Oh, but my own code does make use of the compiler :-). RBProgramNodeVisitor seems to be the class I need to use in Pharo. Thierry
Stef
So what is the Pharo equivalent of ProgramNodeEnumerator ? Something in AST-* ?
Thanks,
Thierry
Le 21/05/2012 14:45, Stéphane Ducasse a écrit :
On May 21, 2012, at 12:51 PM, Goubier Thierry wrote:
Hi,
I have some code I'd like to port from VisualWorks to Pharo. How would one do that ? Both file outs formats are different, as far as I could find.
First there is a bundle to output Squeak format. Usually I hack the outputted to avoid _ and emit := instead. May be look on the cincom store for the package. I can look around. Then I flatten the namespace with emacs.
Stef
-- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
-- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
participants (3)
-
Goubier Thierry -
Guillermo Polito -
Stéphane Ducasse