A brand-spanking new version or Spectacle has just been released! I've the main change is that the keywords list is defined in source, and not read from an external file. This should speed up the program a tiny bit and remove an error some of you might have experienced. There is also two new commands:
Debug
FreeVariable
Code: Select all
'All of the following are valid!
Debug "bob"
Debug 1
Debug 1.1
Debug "bob", 1, 1.1
Code: Select all
'Use this is if you want to free up some memory (it's not the fastest command in the world though)
;Bob.s
FreeVariable "Bob"
Hopefully you'll find spectacle more useful as you now have a debugger!
DOWNLOAD HERE
12/11/05 - Update
Edit: You are free to use all or part of Spectacles source so long as you GIVE CREDIT for it!
Well I've been working on Spectacle (a BASIC programming langauge written in PB) for well over a month now and I thought it's about time I relased an alpha, as I'm quite proud of how the langage is progressing!
This is more of a sneaky-peak relase, as many parts of the language are incomplete (such as the debugger, and many command sets). I've introduced a new feature: Result Warping. I don't know about you, but I really get annoyed having to use Str(), Val() (etc) lots and lots of times. So, with specticle you can define a return type of a command, in the same way you'd define a variables type!
Here's some code exaples:
Comments
Code: Select all
Rem This is a comment
Command Arg1,Arg2 Rem this isn't a valid comment
RemStart
This is a comment
This is a comment
RemEnd
'This is a comment
Commadn Arg1,Arg2 'This is a valid comment
Code: Select all
;Bob.s
;Bob="bob"
;Jim.l=123+1
DEF.l Tim, Kim
Code: Select all
+
-
*
/
^
<>
<=
>=
And
Not
Or
XOr
Code: Select all
;%10101+7c8+0xDEADBEEF
Code: Select all
Len "bob is cool"
Val.l = Val "123"
Bob.s = Len.s "Test" 'Will return 4 as string
Code: Select all
&Test=x+1
;&Test=1
;x.l=1
;&Test=2
Here's the command set:
End
Val
ValF
Len
LCase
UCase
Right
Left
Asc
Chr
RTrim
LTrim
Trim
Space
Binary
Hex2Bin
Oct2Bin
Bin2Hex
Bin2Oct
hex2Dec
Oct2Dec
ElapsedMilliseconds
Wait
Rnd
RndF
Seed
I'd still like some help with the project, as well as ideas and comments! contray to what I've said before the source is avaliable as it's easier to see whats going on with it than the .exe.
To Spectacle code you must write your soure in a file called 'Code.txt' in the same directory as either the .exe or Main.pb (depending on how you want to run it).
The exe will probally look like it's doing nothing - that's why the source is included!
DOWNLOAD


