ScriptVM, a script language

Developed or developing a new product in PureBasic? Tell the world about it.
BalrogSoft
Enthusiast
Enthusiast
Posts: 203
Joined: Sat Apr 26, 2003 6:33 pm
Location: Spain
Contact:

ScriptVM, a script language

Post by BalrogSoft »

Hi, i developed a byte-code interpreter with the compiler that can use dll's directly as command set, like D-LIB of Mischa, some features:

5 variable types: byte, word, long, float and string
Arrays of 4 types: byte, word, long, float, up to 16 dimensions
Nested functions up to 256 levels
Flow control comands: If - EndIf, Repeat - Until, While - Wend, up to 16 conditions with operators And, Or.
Autoinclude dll functions, using UseLibrary library.dll command.
Executable creation, with a runtime header of 11kb

If someone want to test, its the first version:
http://www.balrogsoftware.com/downloads/ScriptVM.zip
Iria
User
User
Posts: 43
Joined: Sat Nov 29, 2003 8:49 pm

Download link seems broken...

Post by Iria »

Tried the link...no joy, dont know if its me or more widespread.

IRIA
BalrogSoft
Enthusiast
Enthusiast
Posts: 203
Joined: Sat Apr 26, 2003 6:33 pm
Location: Spain
Contact:

Post by BalrogSoft »

i dont understand very well what are you saying. Do you have problems downloading the program? i tested the link and works.
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

worked for me :)
Blade
Enthusiast
Enthusiast
Posts: 362
Joined: Wed Aug 06, 2003 2:49 pm
Location: Venice - Italy, Japan when possible.
Contact:

Post by Blade »

Hi, works well here, but can you tell me how this can be useful?
Why someone should compile your script instead of writing a simple PB program? Am I missing something?
I "feel" that all this is cool, but can't imagine a proper use... :?:
TronDoc
Enthusiast
Enthusiast
Posts: 310
Joined: Wed Apr 30, 2003 3:50 am
Location: 3DoorsDown

Post by TronDoc »

it does not like long filenames?
console 2.bas
compiles to:
CONSOL~1.exe

EL_MURO.MID :D
peace
[pI 166Mhz 32Mb w95]
[pII 350Mhz 256Mb atir3RagePro WinDoze '98 FE & 2k]
[Athlon 1.3Ghz 160Mb XPHome & RedHat9]
BalrogSoft
Enthusiast
Enthusiast
Posts: 203
Joined: Sat Apr 26, 2003 6:33 pm
Location: Spain
Contact:

Post by BalrogSoft »

Hi, this language can not interest you, because we use PureBasic, but i made it to be included on iCamPlay as a little language to make little applications, or games, not for proffesional use, and if any PB user wants to test it, here is it, but i know that a PB user will not use this language.

About long filenames, im making a editor, and it will be solved.
I hope that i will not receive a demand of Roger Waters for EL_MURO.MID... :roll:
TronDoc
Enthusiast
Enthusiast
Posts: 310
Joined: Wed Apr 30, 2003 3:50 am
Location: 3DoorsDown

Post by TronDoc »

BalrogSoft wrote:Hi, this language can not interest you, because we use PureBasic, but i made it to be included on iCamPlay as a little language to make little applications, or games, not for proffesional use, and if any PB user wants to test it, here is it, but i know that a PB user will not use this language.
ah, but anything resembling BASIC that makes a .EXEcutable interests me :D and who said I am a professional??
BalrogSoft wrote:About long filenames, im making a editor, and it will be solved.
cool
BalrogSoft wrote: I hope that i will not receive a demand of Roger Waters for EL_MURO.MID... :roll:
:lol:
BalrogSoft
Enthusiast
Enthusiast
Posts: 203
Joined: Sat Apr 26, 2003 6:33 pm
Location: Spain
Contact:

Post by BalrogSoft »

Hi TronDoc, my previous reply was a message for you and for Blade, Blade says that ScriptVM its not usefull for a PureBasic User, and its true, but i dont designed it for PB users.

I uploaded to my web a new version of ScriptVM, with procedures support, local and global variables, a little editor, and a dll function viewer. I have some iCamPlay examples to use with this language, but it need last version that isnt not published, and will be available with new version of iCamPlay (that will include this language). To download ScriptVM click here: http://www.balrogsoftware.com/downloads/ScriptVM.zip
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

hi!

Post by thefool »

Well. I would say it is defenently usefull for a purebasic user. The source code is not free, but anyway any app made in purebasic inspires the beginner and the pro's, even the ones that havent bought PB yet. That you made this nice program in pb tells that this can also be made with PB.
Anyway i think its nice. Of course i dont have a lot of use, but it tells me that when i learn enough of PB i can also make a programming language(i hope :D )
BalrogSoft
Enthusiast
Enthusiast
Posts: 203
Joined: Sat Apr 26, 2003 6:33 pm
Location: Spain
Contact:

Post by BalrogSoft »

Hi, i dont made something new, Mischa made D-Lib, that its a script language, that have more options than ScriptVM. The source code will be published, at the moment it dont have any comment, and could be a little hard to understand, i want optimize a little before publish the source code, if i pusblish the source code now, newbie users will understand nothing, and advanced users dont need this source code because a advanced user can make it if he wants.
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

looking forward to have a look at the sourcecode :)
newcoder
User
User
Posts: 13
Joined: Tue Nov 25, 2003 11:34 pm

Post by newcoder »

Yep, I have been experimenting in comple/interpreter design for the longest and always wondered how to bind the source into an exe.

Hope to see it .
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Also keen to see this. :)

Would binding be a matter of:

  script: IncludeBinary "mysource.src"

And then finding the address ?script and processing from there?

Or is it some special trick?
BalrogSoft
Enthusiast
Enthusiast
Posts: 203
Joined: Sat Apr 26, 2003 6:33 pm
Location: Spain
Contact:

Post by BalrogSoft »

I included as binary the runtime header on the compiler, then write a file with the header that its an executable file, the virtual code object to execute and the lenght of the virtual code object. And the runtime header gets the executable name, read itselft, and get the virtual code object to execute, using the lenght to read only the program to execute.
Post Reply