Hi Timothy, On Fri, Mar 4, 2011 at 5:14 AM, Timothy Baldridge <[email protected]> wrote: > I hope this is the right place for this question. > <---snip----> > pypy.rpython.error.TyperError: don't know how to convert from > <InstanceRepr for pypy.rlib.parsing.tree.Node> to <PyObjRepr * > PyObject>
Basically, it worked all right, except that you are trying to return from the main translated function an instance of Node, which the translator doesn't know how to convert back to Python level. You can only return simple types, like ints, strings, and so on. In "real usage", i.e. translating a stand-alone program with pypy/translator/goal/translate.py, the main translated function needs anyway to have a specific signature, similar to the main() function in C code: takes a list of strings (argv), and returns an integer (exit code). A bientôt, Armin. _______________________________________________ [email protected] http://codespeak.net/mailman/listinfo/pypy-dev
