Spectacle (Programming Language) - *Update*

Everything else that doesn't fall into one of the other PB categories.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

I've tried to learn, but finding a good (as in one I find easy to follow and understand) online tutorial is hard, and it's also difficult trying to commit to learning another language when you're writing a new one yourself!
~I see one problem with your reasoning: the fact is thats not a chicken~
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

ASM is way over my head, though, just too hard :) I guess if I was studying it a little bit I could understand it, but, well... ;)
Doing a compiler that output in C should be "quite" easy, as the basic stuffs are already there, it should be easy to convert things like if/endif, for/next, Procedure/EndProcedure.
And the same goes for the expressions (and we can so have double support :D)
And the same goes for maths (math.h :D)
So, with little knowledge, it should be quite easy, and would produce nearly as optimized .exe as Purebasic !
Sad I already have a project going on, but I might do that later ;)
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Killswitch wrote:I've tried to learn, but finding a good (as in one I find easy to follow and understand) online tutorial is hard, and it's also difficult trying to commit to learning another language when you're writing a new one yourself!
The programming tutorial for dos on the flat assembler site is good for learning. Also, fasm comes with a pdf document with a list of all the instructions you can use and what they do.
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

Thanks!
~I see one problem with your reasoning: the fact is thats not a chicken~
chris319
Enthusiast
Enthusiast
Posts: 782
Joined: Mon Oct 24, 2005 1:05 pm

Post by chris319 »

Other thing you can do is output C Code from the basic code

Guess what, I don't know any C either! Would anybody here be interested in helping create a compiler?
I was working on a BASIC-to-FreePascal translator a few months ago and have since moved on to other projects but may come back to it some day. I chose FreePascal because it is available for so many platforms. Part of my vision for the BASIC-to-FreePascal translator was that it adhere as closely as practical to standard (ANSI/ISO) BASIC syntax, with some allowance for QB compatability. I'm kind of a stickler when it comes to standard BASIC syntax as I believe BASIC code should be fairly portable. FreePascal is a nice language and should come fairly close to C in terms of execution speed. There are similarities between BASIC and Pascal which helps.

There is also BCX, a BASIC-to-C compiler, but it's locked into Windows.
Post Reply