[pypy-svn] r20574 - pypy/dist/pypy/tool

pedronis at codespeak.net pedronis at codespeak.net
Fri Dec 2 15:37:55 CET 2005


Author: pedronis
Date: Fri Dec  2 15:37:54 2005
New Revision: 20574

Modified:
   pypy/dist/pypy/tool/run_translation.py
Log:
Translator -> TranslationContext



Modified: pypy/dist/pypy/tool/run_translation.py
==============================================================================
--- pypy/dist/pypy/tool/run_translation.py	(original)
+++ pypy/dist/pypy/tool/run_translation.py	Fri Dec  2 15:37:54 2005
@@ -7,11 +7,12 @@
 module = __import__('pypy.translator.goal.%s', None, None, ['target'])
 entry_point, arg_s = module.target()
 
-from pypy.translator.translator import Translator
+from pypy.translator.translator import TranslationContext
 from pypy.translator.goal.query import polluted
 
-t = Translator(entry_point)
-a = t.annotate(arg_s)
+t = TranslationContext()
+a = t.buildannotator()
+a.build_types(entry_point, args_s)
 a.simplify()
 
 print polluted(t)



More information about the Pypy-commit mailing list