compiling to python byte codes
"Martin v. Löwis"
martin at v.loewis.de
Fri Sep 3 09:35:51 CEST 2004
Maurice LING wrote:
>> Hmmm, could you post an example of this assembly-like code? It might be
>> easiest to implement a Python interpreter directly; if the assembly-like
>> code is simple enough it isn't even worth a true parser.
> What do you mean by implementing a Python interpreter directly? Sorry, I
> am unable to provide an example of this assembly-like code. This is
> currently still unpublished work, so I'm not able to disclose much,
> especially in a public forum.
He didn't mean to suggest that that you write an interpreter *of*
Python, but an interpreter *of* your language *in* Python. Instead
of compiling your intermediate language into Python bytecode,
directly implement the VM (if you prefer that term over "interpreter")
for MA in Python.
More information about the Python-list