-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
futurebasic.scroll
53 lines (43 loc) · 1.44 KB
/
futurebasic.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import ../code/conceptPage.scroll
id futurebasic
name FutureBASIC
appeared 1992
tags pl
isOpenSource true
rosettaCode http://www.rosettacode.org/wiki/Category:FutureBasic
centralPackageRepositoryCount 0
country United States
originCommunity Brilor Software
lineCommentToken //
hasLineComments true
// A comment
hasComments true
// A comment
hasSemanticIndentation false
wikipedia https://en.wikipedia.org/wiki/FutureBASIC
example
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 )
related basic powerpc c zbasic pascal applescript
summary 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. Since 1 January 2008, the package contains a translator, FBtoC, that converts the FutureBasic syntax to C and automatically calls Apple's GNU Compiler Collection (gcc). No knowledge of C is required. FutureBasic supports access to Mac OS library calls.
created 2008
backlinksCount 87
pageId 15647539
revisionCount 129
dailyPageViews 11
appeared 2016