[pypy-svn] r26292 - pypy/dist/pypy/translator

sanxiyn at codespeak.net sanxiyn at codespeak.net
Tue Apr 25 08:28:44 CEST 2006


Author: sanxiyn
Date: Tue Apr 25 08:28:38 2006
New Revision: 26292

Modified:
   pypy/dist/pypy/translator/driver.py
Log:
In the translation driver, use emitfile(), depend on ootype task
instead of rtype task, and add stubs for compiling and running lisp
sources.


Modified: pypy/dist/pypy/translator/driver.py
==============================================================================
--- pypy/dist/pypy/translator/driver.py	(original)
+++ pypy/dist/pypy/translator/driver.py	Tue Apr 25 08:28:38 2006
@@ -360,10 +360,21 @@
     def task_source_cl(self):
         from pypy.translator.cl.gencl import GenCL
         self.gen = GenCL(self.translator, self.entry_point)
-        self.gen.emitcode()
-    task_source_cl = taskdef(task_source_cl, ['backendopt', 'rtype'],
+        filename = self.gen.emitfile()
+        self.log.info("Wrote %s" % (filename,))
+    task_source_cl = taskdef(task_source_cl, ['ootype'],
                              'Generating Common Lisp source')
 
+    def task_compile_cl(self):
+        pass
+    task_compile_cl = taskdef(task_compile_cl, ['source_cl'],
+                              'XXX')
+
+    def task_run_cl(self):
+        pass
+    task_run_cl = taskdef(task_run_cl, ['compile_cl'],
+                              'XXX')
+
     def proceed(self, goals):
         if not goals:
             if self.default_goal:



More information about the Pypy-commit mailing list