For faster navigation, this Iframe is preloading the Wikiwand page for Turbo Basic.

Turbo Basic

PowerBASIC
登場時期 1989年 (1989)
開発者 Robert "Bob" Zale (b. 1945, d. 2012)
最新リリース 10.0/ 2011年5月4日 (13年前) (2011-05-04))[1]
影響を受けた言語 Turbo Basic
プラットフォーム Windows (32-bit のみ)・MS-DOS
テンプレートを表示

Turbo Basic は、元々は Robert 'Bob' Zale が開発したBASICコンパイラであり、ボーランドが製品化した。ボーランドが販売終了を決定したとき、Zale はそれを引き取り PowerBASIC に名称を変え、同名の会社を立ち上げてサポートと開発を継続した[2]

1985年に発売されたソフトウェアであり、当時のボーランドの言語製品である Turbo Pascal 4.0、Turbo C 1.0/1.5、Turbo Prolog 1.1 とよく似た黒い画面が特徴だった。青い画面がボーランドの特徴となるのは1989年ごろの Turbo C 2.0 や Turbo C++ 1.1 からであり、そのころには Turbo Basic や Turbo Prolog は既に販売終了していた。

当時の多くのBASIC処理系とは異なり、Turbo Basic は完全なコンパイラであり、MS-DOS用のネイティブなコードを生成した。他の実装はインタプリタだったり、ランタイムライブラリに依存していた。統合開発環境内でBASICプログラムを実行しデバッグすることが可能で、生成したEXEファイルは完全に単独で動作可能で、Turbo Basic 製品や、ランタイムライブラリのインストールは不要だった。

コード例

[編集]

下の例のように Turbo Basic の文法はALGOL風である。普通のBASICのように行番号を使うことはなく、制御構造が豊富であり、ALGOL風のサブルーチンをサポートしていた。Turbo Basic などがきっかけとなってBASICの拡張が盛んになり、構造化プログラミングが可能な言語になっていった。

 INPUT "What is your name:", A$
 PRINT "Hello "; A$
 DO
   S$ = ""
   INPUT "How many stars do you want to print"; S
   FOR I = 1 TO S
     S$ = S$ + "*"
   NEXT I
   PRINT S$
   DO 
     INPUT "Do you want to print more stars"; Q$
   LOOP WHILE LEN(Q$) = 0
   Q$ = LEFT$ (Q$, 1)
 LOOP WHILE (Q$ = "Y") OR (Q$ = "y")
 PRINT "Goodbye "; A$

脚注・出典

[編集]
  1. ^ Release of PowerBASIC 10.0 Compiler for Windows
  2. ^ Gerald Krug (1987). The Program Begins. Lulu. ISBN 0961289007 
{{bottomLinkPreText}} {{bottomLinkText}}
Turbo Basic
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?