TheGameCreators / Dark-Basic-Pro

Dark Basic Pro is an open source BASIC programming language for creating Windows applications and games
MIT License
468 stars 124 forks source link

Running as Interpreter? #15

Open lonnietc opened 2 years ago

lonnietc commented 2 years ago

Hello,

I am on the hunt for an Object-Oriented BASIC interpreter which I can embed into an application as a type of VBA application language and have just come across Dark Basic Pro.

I see that it can be run as a compiler, but can it also be embedded as an interpreter which would also allow for stepping through in a debugger as well?

Thanks and have a great day

manuallyinstalled commented 2 years ago

You might find one here:

https://www.thefreecountry.com/compilers/basic.shtml

On Thu, Apr 14, 2022, 7:41 AM LonnieTC @.***> wrote:

Hello,

I am on the hunt for an Object-Oriented BASIC interpreter which I can embed into an application as a type of VBA application language and have just come across Dark Basic Pro.

I see that it can be run as a compiler, but can it also be embedded as an interpreter which would also allow for stepping through in a debugger as well?

Thanks and have a great day

— Reply to this email directly, view it on GitHub https://github.com/TheGameCreators/Dark-Basic-Pro/issues/15, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADUPE4WU5CBBWCUTF3G3F4DVE775LANCNFSM5TNQM64A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

lonnietc commented 2 years ago

Thanks,

I went out to the link and it says:

DarkBASIC Professional is an open source (though formerly commercial) BASIC implementation that supports a structured dialect of the BASIC language. It was designed as a game creation language, and supports the making of 2D and 3D games using DirectX. It comes with an IDE and a debugger. It generates standalone executables, which comprise your program, compiled into bytecode, and an interpreter. DarkBASIC is licensed under the MIT licence. You can download the executable package from the [releases page](https://github.com/TheGameCreators/Dark-Basic-Pro/releases). The main page which I linked to earlier only contains the source code, although it also links to a downloadable item labelled "DarkPHYSICS". There is no explicit explanation of what the latter does, but given its name, it sounds like a [physics engine](https://www.thefreecountry.com/sourcecode/physics.shtml).

Seems to suggest that it can run as a byte-code interpreter, but it also does not look to be an Object-Oriented BASIC as well.

I will try to compile and run it to do some testing.