using pbcompiler in interpreter mode

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
alokdube
Enthusiast
Enthusiast
Posts: 148
Joined: Fri Nov 02, 2007 10:55 am
Location: India
Contact:

using pbcompiler in interpreter mode

Post by alokdube »

Hi,

I need to embed a pb interpreter in my application, in other words I pass around pb code across different machines and they kind of overlap on the existing output
so either i need an interpreter which lets me share outputids/contexts with the existing program (so startdrawing(outputid) should be the same in both), or I need an include .pb which can interpret the entire pure basic visible code set and libraries and can be included in my executable.
any ideas? More like the older netscape days when one could draw graphics on the canvas using an interpreter. ofcourse i could always define a tag like "var type name" to define variables (strings and numbers and arrays) and define a local map which maps them back to global scoped variables.
alokdube
Enthusiast
Enthusiast
Posts: 148
Joined: Fri Nov 02, 2007 10:55 am
Location: India
Contact:

Re: using pbcompiler in interpreter mode

Post by alokdube »

or if someone has a list of all the PB inbuilt Procedures and their parameters on one page....pass it over, it would be great
User avatar
Innesoft
Enthusiast
Enthusiast
Posts: 105
Joined: Mon Jan 18, 2010 10:30 am
Location: UK
Contact:

Re: using pbcompiler in interpreter mode

Post by Innesoft »

I'm not sure this is possible with PB, unless you're willing to hand-code your own interpreter. PB compiles straight to ASM and uses a huge number of OS-dependent API's to get things done.

With that said, I'm not even sure from your post what you're aiming to do exactly, but it seems like a no-go to me.
Innesoft - The Software Marketplace - Innesoft Blog
» Applications, Educational Software, Casual Games
alokdube
Enthusiast
Enthusiast
Posts: 148
Joined: Fri Nov 02, 2007 10:55 am
Location: India
Contact:

Re: using pbcompiler in interpreter mode

Post by alokdube »

..no issues hand writing the interpreter...
Post Reply