Page 1 of 1

Interactive shell for trayning FreeBasic ?

Posted: Sun May 04, 2008 1:07 pm
by Cleverson
Hi all

I'd like to have some kind of interactive shell/command prompt, where i could type a statement and it gets executed imediately, for practicing the FreeBasic language. An example is Python, that has an interactive shell. Have someone developed such thing for FreeBasic? Would be difficult to write one?

Many thanks


Posted: Sun May 04, 2008 1:22 pm
by Mentat
I would just use the quick run with FBide.

Posted: Tue May 06, 2008 4:04 pm
by Antoni
Python or QBasic have an inmediate mode because they are interpreters.
FreeBASIC is a compiler only. The Quick Run found IDEs as FBIde or FBEdit is the closest you can do with a compiler.
It is not like inmediate mode where variables are kept available for the next command you type. In a compiler Quick run the program runs and terminates, erasing its memory, so everything you want to test or print must be in the code before you launch it.
The code is saved before launched so if you come with something interesting you don't risk to have it lost in the screen buffer...

Doing a FB interpreter mimicking the compiler would require writing another 100000 lines of code, you have to be Microsoft to do that...