FutureBASIC is an open source programming language created in 1992.
#1560on PLDB | 32Years Old |
FutureBasic is a free BASIC compiler for Apple Inc.'s Macintosh. It consists of an integrated development environment (IDE), editor, project manager, etc. for both PowerPC and Intel microprocessors. Read more on Wikipedia...
BeginCFunction
// Simple C function to add two integers
long simple_add( long a, long b )
{
long sum;
sum = a + b;
return (sum);
}
endC
// Define C function so FB can see it
toolbox fn simple_add ( long a, long b ) = long
// Create little program to add 2 + 2 with the C function
window 1
print fn simple_add ( 2, 2 )
do
HandleEvents
until ( gFBQuit )
Feature | Supported | Example | Token |
---|---|---|---|
Comments | ✓ | // A comment | |
Line Comments | ✓ | // A comment | // |
Semantic Indentation | X |