I was a little bored today and I started to google how the Python Virtual Machine works. I found a bunch of helpfull articles and kind of understand at least some of the very basic PVM code using the modules py_compile and dis. I was wondering how to write the actual PVM code to a file (without writing python code to a file and compiling it with py_compile) if i wanted to generate PVM code from another language - kind of like jython and the java interpreter. Ill probably just use it to implement a simple language like brainfsck but maybe branch out if I can/have the willpower. If anybody knows or at least can help point me in the right direction your help will be greatly apreciated.
All 4 RepliesReply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.