Switch Compiler 0.2 - Updated 03/04/06!

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

Switch Compiler 0.2 - Updated 03/04/06!

Post by Killswitch »

Update: 03/04/06

I fixed the bug that Nik found, and I've updated the compiler package. See the download link he provided, or the download button at the end of this post.

I've been busy at work updating my compiler! Apart from all the other stuff it suppoted (+ - * / ( ) ^, floats, longs) I've added in variable type declaration (you can use .l, .f and .s the same way as in PB - variables are no longer automatically set to a long), strings and constants!

The following is all valid:

Code: Select all

#Constant=1

A.s="bob"+jim"
B.s="kim"
C.s=A+B

D.f=#Constnat
E.f=2.1
F.f=D+E
As before write your code in Code.txt and run Compiler.exe - ignroe Optimizer.exe as it's automatically run!

DOWNLOAD
Last edited by Killswitch on Mon Apr 03, 2006 4:25 pm, edited 1 time in total.
~I see one problem with your reasoning: the fact is thats not a chicken~
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Damn ... this is awesome :)
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Thanks :D. I must give a big thanks to the guys on the FASM forums who helped me uderstand wsprintf!
~I see one problem with your reasoning: the fact is thats not a chicken~
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Cannot download it. It seems that the site does not support direct linking
from offsite :(.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Go To http://www.angelfire.com/planet/purebasicftpreplacem then put http://www.angelfire.com/planet/purebas ... ch_0.2.zip in the browser url space and press enter ;) It'll allow you to download tha way.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Got it :D. Thanks.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Sorry about the dodgey download, my FTP space is knackered so I had to scrape something together at the last minute.
~I see one problem with your reasoning: the fact is thats not a chicken~
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

No problem! About the compiler, you did a great job. I like it.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

If you want I can host it on a very fast server, you need not pay since we are kind of a community project. Our site is www.sceneproject.org (German), there is also an Advertising Banner you could click on to support us. you can mail me under niklas aaahht sceneproject.org if you are interessted
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

That'd be class mate! I can't seem to get your email working - mine's evil_grunger@hotmail.com - can you email me instead?
~I see one problem with your reasoning: the fact is thats not a chicken~
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Ok I will do so in an instant,

Code: Select all

A.s="bobobaba"
B.s="jimiyjo"
C.s=A+B
Ola.f=1.4
Hola.f=1.6
Teta.f=Ola.f+Hola.f

Generates an Invalid Memory Access on compile time
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

I've fixed the bug that Nik found. I've just gotta wait for him to upload it to his sever before I can provide you all with a download :).
~I see one problem with your reasoning: the fact is thats not a chicken~
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

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

Post by Killswitch »

^^ (That's the link for the updated Compiler - I've changed the download link at the top as well).
~I see one problem with your reasoning: the fact is thats not a chicken~
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Cool! Thanks :D.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Post Reply