Spectacle - PureBasic scripting language - v0.9

Developed or developing a new product in PureBasic? Tell the world about it.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Spectacle - PureBasic scripting language - v0.9

Post by Killswitch »

Update

Just a little update to how this projects heading. I've decieded to abandon this code base completly; adding further functionality will only slow things down and there's little room to add new VM features (such as simultanious running of scripts).

That doesn't mean I've abandoned this project though :). Instead I'm going to start completely afresh, turning this from a purely interpreted language to a compiled language. I've already begun work on the bytecode language and it's assembler. After that will come the VM and finally the actual scripting language.

The whole lot'll be open source, again. This time I'll try to have more detailed documentation - for everything.

Old(er) News

Merry Christmas!

As the festive season is nearing I thought I'd release v0.9 of Spectacle, a scripting language written in PureBasic for PureBasic. I was severly tempted to call this version v1.0 but it's not quite bug free enough to be classed as such.

The documentation is also nearly complete, I actually forgot to mention anything about arrays, so:

Code: Select all

Dim Array[10]
Defines an array.

This release is also purely sourced based. For some reason TailBite wouldn't let me create a library out of this - if anyone can tell me why or actually create a library out of this then great :D.

Anyway, I hope you enjoy!

Edit: The Link!

DOWNLOAD
Last edited by Killswitch on Wed Dec 21, 2005 3:02 am, edited 3 times in total.
~I see one problem with your reasoning: the fact is thats not a chicken~
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Thank you, this is nice!
I like logic, hence I dislike humans but love computers.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Excuse what is probably a silly question, but am I supposed to run "Main.pb" ?

If so, it keeps crashing out in the various include files!

I'm probably missing something stupid!
I may look like a mule, but I'm not a complete ass.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Yeah, you're supposed to run Main.pb.

I'm sorry for the crashes, it should all have been fixed. Remember that all the Spectacle code you want to run should be written in Code.txt, unless you specifiy otherwise.

Edit: Download link above will get ya the new, working source - as will this one (same link as above):

DOWNLOAD HERE
~I see one problem with your reasoning: the fact is thats not a chicken~
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Nice.

I'm going to poke around with this for a while.

Thanks.
I may look like a mule, but I'm not a complete ass.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

No problem! I wouldn't be too worried if you can't follow the code completley - I'm baffled how some of it works myself :shock: :P
~I see one problem with your reasoning: the fact is thats not a chicken~
Brice Manuel

Post by Brice Manuel »

Wowzers, this is cool. I hope you will continue to develop it.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Killswitch wrote:No problem! I wouldn't be too worried if you can't follow the code completley - I'm baffled how some of it works myself :shock: :P
8)

Looks nicely structured to me.
I may look like a mule, but I'm not a complete ass.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Yeah I'll continue development :D. I'd like some help in making it cross platform though, and this is one of my main focuses at the moment (as there's little point in having a PB scripting language that only works on 1/4 OSes PB supports!).
~I see one problem with your reasoning: the fact is thats not a chicken~
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Looks awesome. Maybe if sometime (god i can only hope) I get some free time I'll plug away at getting it to run in Linux
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

There's not much that needs to be done in order to get it to be cross platform. I made sure that the core interpreter code doesn't rely on any platform specific APIs - it's just the commands that need rewriting.
~I see one problem with your reasoning: the fact is thats not a chicken~
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Can you send me the code you're trying to Tailbite to see what's wrong?

Thx, and regards,
El_Choni
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

The code I'm trying to tailbite is pretty much exactly the same as the code in the files above, except that one procedure is definded as a ProcedureDLL . I haven't really used TailBite much before, so there's probally a simple explination for why I can't make a library:

DOWNLOAD

(I've changed the code slightly, to recreate the code I was trying to tailbite - download using one of the other links if you want the unaltered project)
Last edited by Killswitch on Mon Dec 19, 2005 3:35 pm, edited 1 time in total.
~I see one problem with your reasoning: the fact is thats not a chicken~
ebs
Enthusiast
Enthusiast
Posts: 561
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

Killswitch,

Your scripting language is AMAZING! I haven't had time to fully explore it yet, but I did want to let you know of a small problem with the HTML manual:

A number of the links to the command descriptions, such as "ElapsedMilliSeconds" , "Wait", "FileSize", and "MoveFile" include the path to your "My Documents" folder in them, so the target file is not found.

I'll let you know if I find anything else.

Regards,
Eric
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Updated the manual to fix the problems address above. I'll add some more files to the manual later on today.

Thanks for your comments :D

DOWNLOAD
~I see one problem with your reasoning: the fact is thats not a chicken~
Post Reply