0

How to build a python interpreter in python

Like pypi

30th Oct 2016, 5:01 PM
Joshua Christian
Joshua Christian - avatar
2 Answers
+ 1
Ignoring that this feels wrong, and supposing you don't want to cheat and just 'exec' (fork), you could extend Python with the C++ interface. https://docs.python.org/2/extending/extending.html Basically...it's direct access to the runtime. It's probably worth noting that Python also allows one to override reserved words.
30th Oct 2016, 8:40 PM
Kirk Schafer
Kirk Schafer - avatar
0
I think python can not do it.
30th Oct 2016, 8:47 PM
Woramet Tps
Woramet Tps - avatar