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
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
Maths
;Bob.s
;Bob="bob"
;Jim.l=123+1
DEF.l Tim, Kim
Operators
+
-
*
/
^
<>
<=
>=
And
Not
Or
XOr
Binary, Octal and Hexadecimal support
Commands
Len "bob is cool"
Val.l = Val "123"
Bob.s = Len.s "Test" 'Will return 4 as string
Meta Expression
&Test=x+1
;&Test=1
;x.l=1
;&Test=2
I've also implimented a whole new, stack based, variable-handling system which has reduced memory usuage dramatically!
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 (PureBasic) 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
~It's a common mistake to make, the rules of the English langauge
do not apply to insanity~