Jump to content

Basic4GL

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Visi calc (talk | contribs) at 14:12, 4 January 2007 (Added SourceForge Links). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Basic4GL
Basic4GL Logo
DeveloperTom Mulgrew
Stable release
v2.4.3 / Aug 19 - 2006
OSWindows
LicenseGpl
Websitehttp://www.basic4gl.net
Dialects
BASIC

Basic4GL is an interpreted, open source version of the BASIC programming language which also features support for 3D computer graphics using OpenGL.

It uses a syntax similar to traditional dialects of BASIC and features an IDE and a Debugger.

Basic4GL is not designed to compete with programming languages such as C++; it was intended to replace older languages such as QBasic or GFA BASIC.

Basic4GL features the usual commands that you would expect to find in a version of BASIC such as...

  • PRINT
  • INPUT
  • GOSUB

It also includes a few features that C programmers will be familiar with, such as support for pointers and structures.

Platform

Basic4GL was designed to run on the Windows operating system but a version is being developed for Linux.

Example

Dim A
For A = 0 To 4
Printr "Hello "; A
Next

When the above code is entered into Basic4GL and executed, you should see the following output on your monitor screen.

Hello 0
Hello 1
Hello 2
Hello 3
Hello 4

Plugins

In August 2006 support for Plugin DLL's was added to Basic4GL. This means that you can write your own commands and include them in the Basic4GL programming language, all you need is a C++ Compiler such as Codeblocks.

Basic4GL for Linux

Currently Basic4GL is being ported over to Linux. The major difference between Basic4GL for Windows and the new Linux version is that it uses the SDL library rather than GLUT to initialize an OpenGL enabled window.

SourceForge

Both Basic4GL for Windows and the new Linux version have been placed on SourceForge, this means that people are free to develop the languages and make improvements to them.

See also