Page 1 of 6
ScriptVM, a script language
Posted: Thu Feb 26, 2004 10:53 pm
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
Download link seems broken...
Posted: Thu Feb 26, 2004 11:43 pm
by Iria
Tried the link...no joy, dont know if its me or more widespread.
IRIA
Posted: Fri Feb 27, 2004 12:37 am
by BalrogSoft
i dont understand very well what are you saying. Do you have problems downloading the program? i tested the link and works.
Posted: Fri Feb 27, 2004 12:55 am
by jack
worked for me

Posted: Fri Feb 27, 2004 6:30 pm
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...

Posted: Fri Feb 27, 2004 7:32 pm
by TronDoc
it does not like long filenames?
console 2.bas
compiles to:
CONSOL~1.exe
EL_MURO.MID

Posted: Fri Feb 27, 2004 10:06 pm
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:
Posted: Sun Feb 29, 2004 5:47 pm
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

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:

Posted: Thu Mar 04, 2004 3:06 pm
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
hi!
Posted: Sun Mar 07, 2004 10:21 pm
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

)
Posted: Mon Mar 08, 2004 12:11 pm
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.
Posted: Mon Mar 08, 2004 1:03 pm
by jack
looking forward to have a look at the sourcecode

Posted: Tue Mar 09, 2004 3:14 am
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 .
Posted: Tue Mar 09, 2004 4:16 am
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?
Posted: Tue Mar 09, 2004 11:36 am
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.