The meaning of life...as per suggested by Pete and the board

Discuss whatever you want here--both QB and non-QB related. Anything from the DEF INT command to the meaning of life!

Moderators: Pete, Mods

Post Reply
User avatar
Levi
Veteran
Posts: 79
Joined: Tue Jul 27, 2004 11:44 pm
Location: Alone and forgotten
Contact:

The meaning of life...as per suggested by Pete and the board

Post by Levi »

I would tell you mine but I don't want people ragging on me because of what I believe. Happens too often, I'm tired of it.

I do however wish to share a few ideas on life...

But if you read my topic in humor "Can Philosophy and humor mix?" you'll know them.

I found that my philosophy and humor cannot mix. I am not funny.

So how about talking about the possibility of making a windows IDE for Qbasic?

It of course would be incapable of testing the programs itself but it would be a cool tool for those more use to the GUI of windows rather than the Dos based one we always see.
Later days,
Matthew

May those who love us love us
And those who don't
May the good Lord turn their hearts
And if he doesn't
May he turn their ankles
So we'll know them by their limping
-Irish prayer
User avatar
Pete
Site Admin
Posts: 887
Joined: Sun Dec 07, 2003 9:10 pm
Location: Candor, NY
Contact:

Post by Pete »

That's an interesting idea... I know WisdomDude / James Robert Osbrone was dreaming of making a W32-compatible version of QBASIC...basically remaking the entire interpreter and compiler so that it is compatible with Windows rather than DOS... but that would be one hell of a project. Especially since QBASIC and QuickBasic aren't open source.

But actually, you can program QB in a Windows IDE... in fact, it's been packed in with Windows for fifteen years or more. It's a little program called Notepad. Heheheh.

Some people actually do write QB programs in Notepad, so that they can copy and paste source code from tutorials, browser windows or other programs easily. Then they just run them in QB to test / debug. I've done it before myself.

To make a simple text editor for QB without the capability to run or compile programs would not be hard at all. It would basically be an advanced version of Notepad which could create separate modules for SUBs and FUNCTIONs.

What I'm wondering, though, is what this has to do with the meaning of life. :wink:
User avatar
Levi
Veteran
Posts: 79
Joined: Tue Jul 27, 2004 11:44 pm
Location: Alone and forgotten
Contact:

Well...

Post by Levi »

If you read all of my post you'd know what happened to that idea.

As for the editor, I want color coding. I want drop down boxes and tooltips like in VB, but make it for QB. Test for errors, catch them and return the info almost like the editor itself were doing it. I know it's possible, just difficult. I have some sample code in VB or syntax coloring but it's very hard to do and in no way complete. I basically gave up on it.
Later days,
Matthew

May those who love us love us
And those who don't
May the good Lord turn their hearts
And if he doesn't
May he turn their ankles
So we'll know them by their limping
-Irish prayer
User avatar
Pete
Site Admin
Posts: 887
Joined: Sun Dec 07, 2003 9:10 pm
Location: Candor, NY
Contact:

Post by Pete »

You might find this interesting. It was just posted on the Yahoo! QBasic Group:
QuickerBasic Preliminary Scratch Interpreter 1
Here's something that can actually do something:

Code: Select all

http://qkrbasic.sourceforge.net/qkrbasic-prelim1b.zip
It supports the following subset of QuickBasic:
GOTO
Line labels
One line IF...THEN...ELSE
Expressions
Variables/Variable-assignment
PRINT
INPUT

(This makes it Turing complete I hope...)

All variables are implicitly defined and are of the DOUBLE type.
Nearly all stuff that can be used with PRINT and INPUT (excluding SPC
and TAB in PRINT) eg. INPUT; "hello", a

The scratch interpreter does the following:
- Converts the source file into tokens
- Parses the token stream into semi-atomic code
- Executes (interprets) the semi-atomic code

It will create a "win32 console" and output to it. Scrolling is
supported. Minimal parsing will be done on INPUT.

Included examples include "testexpr.txt", which tests all the features
and "sqrroot.txt", which computes a square root for a given number.
I'd like to see if you can come up with anything useful with such a
minimal set of features!

The interpreter is programmed in VB6. A compiled binary is included.
Post Reply