Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: GMBasic - A BASIC writing tool written in GML!  (Read 2984 times)

0 Members and 1 Guest are viewing this topic.

Source

Internet Tough Guy.
GMBasic - A BASIC writing tool written in GML!
« on: October 14, 2006, 06:22:49 am »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
[::DOWNLOAD::]

GMBasic is a program I came up with a while back. I was reading up on QBasic for whatever reason and it sort of popped into my head. That was a month ago. I finally began working on it early yesterday. So far, this is what I have. It has the START and PRINT operations, along with deleting operations, and an unfinished save and load function. Yes, this is a beta, so expect some weird bugs and stuff.

Disclaimer: Due to being as lazy as I am, I've decided on a different method of saving: you can save as a .GMB file, or you can export the code to a .TXT file. So no compiler for you. *cynical laughter*

Screenshot of Interface: http://img300.imageshack.us/img300/7163/screenshotjp2.png

The zip file is roughly 1 MB in size. Enjoy!
« Last Edit: November 20, 2006, 06:29:13 pm by Cronian »
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/

gm112

Re: GMBasic - A BASIC compiler written in GML!
« Reply #1 on: October 14, 2006, 06:41:12 am »
No offense, but why did you waste your time making a compiler with a scripting language(especially gamemaker <__<)? I congrats you on all the hard work but that just doesn't make sense XD.
Logged
Re: GMBasic - A BASIC compiler written in GML!
« Reply #2 on: October 14, 2006, 06:43:52 am »
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 4588
Its a new idea, I think, and I wish you luck.
Logged
the a o d c

Source

Internet Tough Guy.
Re: GMBasic - A BASIC compiler written in GML!
« Reply #3 on: October 14, 2006, 06:49:58 am »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
No offense, but why did you waste your time making a compiler with a scripting language(especially gamemaker <__<)? I congrats you on all the hard work but that just doesn't make sense XD.

Because it's possible.

Its a new idea, I think, and I wish you luck.

Well, kind of. Smarty on the GMC made GMSQL. GMBasic was inspired by GMSQL.
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/

gm112

Re: GMBasic - A BASIC compiler written in GML!
« Reply #4 on: October 14, 2006, 07:01:45 am »
Cronian, I respect how you're pushing gm's limits and proving it can make more than games.
Logged
Re: GMBasic - A BASIC compiler written in GML!
« Reply #5 on: October 14, 2006, 07:27:41 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6206
Impresive but I don't see the point of making this please Enlight Me!!!
Logged
Re: GMBasic - A BASIC compiler written in GML!
« Reply #6 on: October 14, 2006, 12:06:20 pm »
  • [sic]
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2334
Erm, two reasons, one is to prove that it's possible, but more importantly, a windows-based BASIC language. :)
Logged
Re: GMBasic - A BASIC compiler written in GML!
« Reply #7 on: October 14, 2006, 01:03:51 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Well its a nice idea, though totally impracticle in a scripting language. If your interpreting it, its going to be slow as hell. Try and compile it to assembly the assemble that into an executable, much faster :) (check out my compiler tutorial if you don't know what I mean).
Logged
Re: GMBasic - A BASIC compiler written in GML!
« Reply #8 on: October 14, 2006, 01:35:13 pm »
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 4588
I was about to recommend your tutorial. It's in the forum at binaryphoenix.com. Read up =)
Logged
the a o d c
Re: GMBasic - A BASIC compiler written in GML!
« Reply #9 on: October 14, 2006, 03:53:57 pm »
  • Minalien
  • *
  • Reputation: +10/-1
  • Offline Offline
  • Gender: Female
  • Posts: 2119
I think it's great to see users doing things like this and stretching the limits of programs like GM.

On a side note; I moved this to Misc Early Production & Ideas, because that's what this is, really; a post detailing the development of an in-progress program <_<

Good idea, even if there isn't much use, it could still teach you a good bit and is bound to come in useful sometime (trust me on that one, sometimes two completely unrelated things can supplement each other and improve you a lot <_<)
Logged
Quote
There's such a double standard about religion in the modern world. Catholics can gather, wear white robes, and say "In nomine Patris, et Filii, et Spiritus Sancti" and be considered normal.

But if my friends and I gather, wear black robes, and say  "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn", we're considered cultists.
  • Development Blog

Source

Internet Tough Guy.
Re: GMBasic - A BASIC compiler written in GML!
« Reply #10 on: October 14, 2006, 06:36:25 pm »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
Well its a nice idea, though totally impracticle in a scripting language. If your interpreting it, its going to be slow as hell. Try and compile it to assembly the assemble that into an executable, much faster :) (check out my compiler tutorial if you don't know what I mean).

BASIC itself was slow to begin with. Trust me: I used to program with it. Think of it as shoving two hypodermic needles into your eye sockets. Anyway, no matter what the speed of GMBasic, it'll still be hands down at least 50 times faster than any DOS based BASIC compiler.

Cronian, I respect how you're pushing gm's limits and proving it can make more than games.

Thanks.  :) It's nice to have some support.

Well its a nice idea, though totally impracticle in a scripting language. If your interpreting it, its going to be slow as hell. Try and compile it to assembly the assemble that into an executable, much faster :) (check out my compiler tutorial if you don't know what I mean).

I plan to have 3 different ways of saving:
  • You can save it as a .GMB file, which will save it in a unique GMBasic format.
  • You can export it to a .BAS file, which is the extension for BASIC
  • You can compile it into a .EXE
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/
Re: GMBasic - A BASIC compiler written in GML!
« Reply #11 on: October 14, 2006, 07:41:45 pm »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Quote
BASIC itself was slow to begin with. Trust me: I used to program with it. Think of it as shoving two hypodermic needles into your eye sockets. Anyway, no matter what the speed of GMBasic, it'll still be hands down at least 50 times faster than any DOS based BASIC compiler.
Actaully no, true the first one was because it was interpreted. But later versions and hybrids are not, for instance some of the versions of BlitzBasic (specifically BlitzMax) are the same speed as C.
As for being faster than a DOS basic compiler, your proof is where? Whats the execution speed of a single expression factor?

Quote
I plan to have 3 different ways of saving:
You can save it as a .GMB file, which will save it in a unique GMBasic format.
You can export it to a .BAS file, which is the extension for BASIC
You can compile it into a .EXE
So your compiler is going to have a retargetable backend? Writing a backend for each format
is more or less a waste of time, just go for the superior PE executable format.
Logged

Source

Internet Tough Guy.
Re: GMBasic - A BASIC compiler written in GML!
« Reply #12 on: October 15, 2006, 07:06:52 am »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
It wouldn't really be a waste of time. Essentially, it can only open .GMB files, which are used to save your work temporarily so you can pick up where you left off. The .BAS format is there in case you'd rather use a regular BASIC compiler, and we all know what .EXE is for. But the current way I compile stuff to .EXEs is really long and very buggy...where's that compiler example you meantioned? I could put it to good use.
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/
Re: GMBasic - A BASIC compiler written in GML!
« Reply #13 on: October 15, 2006, 07:23:42 am »
  • (y)(;>.<;)(y)
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3293
You should use 'workspaces', which allow you to load groups out your code instantly, as well as contain compiler information (whether to use console or GUI for example). I remember the early FreeBASIC Ide without this feature...annoying!

Just for the record OLD BASIC is slow, and that's because modern PC's nowadays EMULATE DoS, which is obviously gonna slow it down.

Look at the NEW Basic compilers, like FreeBASIC, BlitzBASIC and VisualBASIC. FreeBASIC I know from experience (it was one of my first languages) is very powerful, it's as, if not more, powerful than the MingW C compiler.
Logged
Re: GMBasic - A BASIC compiler written in GML!
« Reply #14 on: October 15, 2006, 10:30:09 am »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
It wouldn't really be a waste of time. Essentially, it can only open .GMB files, which are used to save your work temporarily so you can pick up where you left off. The .BAS format is there in case you'd rather use a regular BASIC compiler, and we all know what .EXE is for. But the current way I compile stuff to .EXEs is really long and very buggy...where's that compiler example you meantioned? I could put it to good use.
I don't think you quite understand what I meant.

Anyway my compiler tutorials are available from my website or here.

http://www.zfgc.com/forum/index.php?topic=8727.0
http://www.zfgc.com/forum/index.php?topic=8767.0
Logged

Source

Internet Tough Guy.
Re: GMBasic - A BASIC compiler written in GML!
« Reply #15 on: November 19, 2006, 04:55:33 am »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
Check the first post.  ;D
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/
Re: GMBasic - A BASIC compiler written in GML!
« Reply #16 on: November 19, 2006, 07:18:01 am »
  • =/
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2284
 Alright, here is something you should know from back when I developed my own GM compiler: Don't use .save files. You can't save user code that way, you'll run into multiple problems when trying to make an exe and it is just a bad habit. Use .ini files, encrypt them and have a password to open them. .ini files allow you to save a user variable, while a .save file ends all execute strings when saved, then getting rid of all the code the dude typed in and screwing with the resources s/he had.

 Plus, imagine all the hell you'll have to go through trying to make that go into another compiler.

 This really is nothing more then an interface and saving test, you couldn't use any basic functions, couldn't compile, etc but I do admire you for trying it.

 I'd also like to note that when saving, if you click cancel, no string is returned, then giving me an error. I suggest you have a break off from the original code if no string is returned.
Logged

Source

Internet Tough Guy.
Re: GMBasic - A BASIC compiler written in GML!
« Reply #17 on: November 19, 2006, 08:08:41 am »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
Regarding your comment on compiling...

Quote
Disclaimer: Due to being as lazy as I am, I've decided on a different method of saving: you can save as a .GMB file, or you can export the code to a .TXT file. So no compiler for you. *cynical laughter*

Basically, what the damn thing does is gives you your code in a .TXT (Notepad) format, mainly because I am too goddamn lazy to write my own compiler. As for the saving, my favorite show was coming on (Attack of the Show rocks and you know it), so I rushed it and forgot about it.  :P (You'll come to learn that I am the laziest and most forgetful programmer in existence and cope with it.) I'll try to fix these as I continue to work...my QBasic skills are a little rusty, so I'll have to fine tune those as well.

- Cronian
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/
Re: GMBasic - A BASIC compiler written in GML!
« Reply #18 on: November 20, 2006, 02:35:57 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 901
Some people would appreciate this a lot, especially people having some trouble.
Good job, I like it :)
Logged

Source

Internet Tough Guy.
Re: GMBasic - A BASIC writing tool written in GM...
« Reply #19 on: November 20, 2006, 10:18:07 pm »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
Thanks. Glad to see someone likes it. (Most of the GMC is like "u nub dis sux go 2 hell lololololol"  :P)
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.03 seconds with 75 queries.