Worked great for me, and I ran most the examples. I'm always interested in scipting and compiler building. I'll keep my eye on this project.
ScriptVM, a script language
-
RJP Computing
- Enthusiast

- Posts: 202
- Joined: Sun Apr 27, 2003 4:44 am
- Location: Michigan, USA
- Contact:
-
BalrogSoft
- Enthusiast

- Posts: 203
- Joined: Sat Apr 26, 2003 6:33 pm
- Location: Spain
- Contact:
Hi, i published on this forums a previous version of the language, its a code to execute a virtual code, with nested functions like add(3,add(5,3)), and variable handling, but it dont have the compiler, it could be easy to understand than ScriptVM source code on actual version (because it dont have any comment, i never comment my code unless i make public my source code, and a script language with the virtual machine and the compiler its difficult to comment it for people)
The source of the little code snippet is here:
viewtopic.php?t=9565
And a new version of ScriptVM (v0.3) its available here (with source code available, but without any comment, sorry):
http://www.balrogsoftware.com/downloads/ScriptVM.zip
The source of the little code snippet is here:
viewtopic.php?t=9565
And a new version of ScriptVM (v0.3) its available here (with source code available, but without any comment, sorry):
http://www.balrogsoftware.com/downloads/ScriptVM.zip
-
BalrogSoft
- Enthusiast

- Posts: 203
- Joined: Sat Apr 26, 2003 6:33 pm
- Location: Spain
- Contact:
Hi, i compiled this program with PB 3.81, i not use PB 3.89b to compile my projects, try again with PB 3.81.
User Mike: You say that dont work because source have mistakes, are you sure? With PB 3.81 (complete version, not demo) works peferctly, im sure that have bugs, but not compiler mistakes.
Anyway, i will test it on PB 3.89.
User Mike: You say that dont work because source have mistakes, are you sure? With PB 3.81 (complete version, not demo) works peferctly, im sure that have bugs, but not compiler mistakes.
Anyway, i will test it on PB 3.89.
If it compiles for you fine, then there are no source code mistakes. Those were just the 2 possibilites of what I thought could have caused the problem.
No more worries though, I'm going to order the full version of PureBasic this weekend. Until then, I'll keep analyzing your souce.

No more worries though, I'm going to order the full version of PureBasic this weekend. Until then, I'll keep analyzing your souce.
-Pure Basic User and loving it!-
-
BalrogSoft
- Enthusiast

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

- Posts: 203
- Joined: Sat Apr 26, 2003 6:33 pm
- Location: Spain
- Contact:
Hi, i uploaded a new version of ScriptVM (v0.31) to my site, the link is the same that other versions, some bugs with floats numbers are solved, i added some features to ScriptVM Editor, and a better help file, its compiled with PB 3.81, i dont know if it will work with PB 3.89b, if i have time, i will port an opengl example to ScriptVM.
fsw: I dont work on my 3d engine since months, i think that would be better to rewrite it and planning it on a different way, and about make a PB library, you can try it, the source code is available on my site.
fsw: I dont work on my 3d engine since months, i think that would be better to rewrite it and planning it on a different way, and about make a PB library, you can try it, the source code is available on my site.
-
BalrogSoft
- Enthusiast

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

- Posts: 203
- Joined: Sat Apr 26, 2003 6:33 pm
- Location: Spain
- Contact:
Hi, a new version of ScriptVM is available on my web: http://www.balrogsoftware.com/scriptvm
The source code is available on the web too, the new version features:
Procedures parameters are now local variables.
Recursive procedures, a procedures can call itself, because ScriptVM makes a new instance of local variables when a procedure is called.
Support for CDECL libraries types using only & prefix.
ScriptVM now have a intaller tool, better than zip distribution.
Bye and enjoy, if someone have some questions about source code, only email me.
The source code is available on the web too, the new version features:
Procedures parameters are now local variables.
Recursive procedures, a procedures can call itself, because ScriptVM makes a new instance of local variables when a procedure is called.
Support for CDECL libraries types using only & prefix.
ScriptVM now have a intaller tool, better than zip distribution.
Bye and enjoy, if someone have some questions about source code, only email me.
Very nice job Pedro
I appreciate every piece of code where I can learn from.
Thanks
BTW:
can somebody please explain (maybe Fred
) why the following code, from the scriptvm.pb file, works with 3.81 but not with the fully updated 3.9
It crashes on ProcedureReturn 8O
It's not possible to return a pointer anymore
I appreciate every piece of code where I can learn from.
Thanks
BTW:
can somebody please explain (maybe Fred
Code: Select all
Procedure.b FPeekB(Address.l)
*PtrB.BYTE=Address.l
ProcedureReturn *PtrB\b
EndProcedure
It's not possible to return a pointer anymore
Last edited by fsw on Fri Apr 23, 2004 8:26 pm, edited 1 time in total.


