Interpretation
Interpretation
Is there a way to use freeBASIC as an interpreter? I hate manual compilation and was wondering if there was an option to automatically compile or maybe interpret freeBASIC.
Ok cool bye
Ok cool bye
Re: Interpretation
What you need is an editor that supports external commands.
There exists Integrated Development Environment (IDEs) for both Windows and Linux.
viewtopic.php?t=28347/ <- big list of editors specific to FreeBASIC
You can also use other common tools like Visual Studio Code, Geany, or even Notepad++, you just have to set up the compile options so that you can hit F5 or whatever to compile and run the open file.
There exists Integrated Development Environment (IDEs) for both Windows and Linux.
viewtopic.php?t=28347/ <- big list of editors specific to FreeBASIC
You can also use other common tools like Visual Studio Code, Geany, or even Notepad++, you just have to set up the compile options so that you can hit F5 or whatever to compile and run the open file.
Cool
Can you post the compiler on Repl.it (AKA replit.com )?
Re: Interpretation
You can use Autoit with a similar Basic syntax, which is an interpreter and can execute the code immediately without compiling it first, which is also possible.
However, intepreter languages are significantly slower, as the code is evaluated and executed in real time.
However, intepreter languages are significantly slower, as the code is evaluated and executed in real time.
-
- Posts: 439
- Joined: Sep 28, 2013 15:08
- Location: Germany
Re: Interpretation
If you use FBEdit, FBIde, IUP_FB_Editor or an other IDE, you can also press the "Quick Run" Button. This will create a temporary compiled file which is executed immediately, working nearly like an interpreter.
Re: Interpretation
I managed to integrate a basic interpreter inside FreeBasic programs:
viewtopic.php?t=29109
But that interpreter is not FreeBasic, it is a different basic dialect
viewtopic.php?t=29109
But that interpreter is not FreeBasic, it is a different basic dialect
Re: Interpretation
Here is a qbasic interpreter for windows.
(very like #lang "qb" in FreeBASIC)
https://apps.microsoft.com/detail/9ntmc ... n-US&gl=US
Works well on Win 11.
(very like #lang "qb" in FreeBASIC)
https://apps.microsoft.com/detail/9ntmc ... n-US&gl=US
Works well on Win 11.
-
- Posts: 439
- Joined: Sep 28, 2013 15:08
- Location: Germany
Re: Interpretation
I tested it last year. Very bad experiences. I could only run some programs which were delivered with this app, nothing else. Have a luck at the ratings!
Re: Interpretation
I see what you mean Lother.
I'll get rid of it.
I'll get rid of it.
Re: Interpretation
I remember it, it was mentioned on PetesQBSite years ago, I intervened too:
http://www.petesqbsite.com/phpBB3/viewt ... 070#p39070
It is an open source program, written in javascript (with some WASM and TypeScript). It can be downloaded for free here:
https://github.com/IshikawaMasashi/QBasic
It is not windows only, it can be used also on Linux.
It seems to be based on this old demo: http://stevehanov.ca/blog/?id=92, that hasn't been developed since 11 years, and it doesn't offer anything more: the only complete QB games that works is NIBBLES.BAS (even GORILLAS.BAS doesn't work), because it doesn't offer any graphic mode.
A similar product, much more functional, is QBjs:
https://qbjs.org/
It supports graphics mode, and some of the extensions of QB64. It is open source, too:
https://github.com/boxgaming/qbjs
http://www.petesqbsite.com/phpBB3/viewt ... 070#p39070
It is an open source program, written in javascript (with some WASM and TypeScript). It can be downloaded for free here:
https://github.com/IshikawaMasashi/QBasic
It is not windows only, it can be used also on Linux.
It seems to be based on this old demo: http://stevehanov.ca/blog/?id=92, that hasn't been developed since 11 years, and it doesn't offer anything more: the only complete QB games that works is NIBBLES.BAS (even GORILLAS.BAS doesn't work), because it doesn't offer any graphic mode.
A similar product, much more functional, is QBjs:
https://qbjs.org/
It supports graphics mode, and some of the extensions of QB64. It is open source, too:
https://github.com/boxgaming/qbjs