|
![]() |
|
![]() Á×ÔÏÒ John Perr <johnperr(at)Linuxfocus.org> ï Á×ÔÏÒÅ: ðÏÌØÚÏ×ÁÔÅÌØ Linux Ó 1994, ÏÄÉÎ ÉÚ ÆÒÁÎÃÕÚÓËÉÈ ÒÅÄÁËÔÏÒÏ× LinuxFocus. ðÅÒÅ×ÏÄ ÎÁ òÕÓÓËÉÊ: Dmitry Martsynkevitch <ursa(at)zaba.ru> óÏÄÅÒÖÁÎÉÅ: |
òÅÚÀÍÅ:
òÁÚÒÁÂÏÔËÁ ðï ÐÏÄ Linux ÉÌÉ ÄÒÕÇÕÀ Unix -ÓÉÓÔÅÍÕ ÎÁ BASIC? ðÏÞÅÍÕ ÎÅÔ? òÁÚÎÏÏÂÒÁÚÎÙÅ ÂÅÓÐÌÁÔÎÙÅ ÐÒÅÄÌÏÖÅÎÉÑ ÐÏÚ×ÏÌÑÀÔ ÎÁÍ ÉÓÐÏÌØÚÏ×ÁÔØ BASIC ÄÌÑ ÓÏÚÄÁÎÉÑ ËÁË ÓËÏÍÐÉÌÉÒÏ×ÁÎÎÙÈ, ÔÁË É ÉÎÔÅÒÐÒÅÔÉÒÕÅÍÙÈ ÐÒÉÌÏÖÅÎÉÊ.
îÅ ÓÍÏÔÒÑ ÎÁ ÔÏ, ÞÔÏ BASIC ÐÏÑ×ÉÌÓÑ ÎÁ ËÏÍÐØÀÔÅÒÎÏÊ ÓÃÅÎÅ ÐÏÚÖÅ ÄÒÕÇÉÈ ÑÚÙËÏ×, ÏÎ ÂÙÓÔÒÏ ÓÔÁÌ ÒÁÓÐÒÏÓÔÒÁΣÎÎÙÍ ÎÁ ÓÉÓÔÅÍÁÈ ÏÔÌÉÞÎÙÈ ÏÔ Unix É ÅÇÏ ÐÏÔÏÍËÏ×, ËÁË ÚÁÍÅÎÉÔÅÌØ ÑÚÙËÏ× ÓÃÅÎÁÒÉÅ×. ÷ÏÚÍÏÖÎÏ ÜÔÏ ÇÌÁ×ÎÁÑ ÐÒÉÞÉÎÁ, ÐÏ ËÏÔÏÒÏÊ ÐÏÌØÚÏ×ÁÔÅÌÉ Unix ÒÅÄËÏ ÐÒÉÂÅÇÁÀÔ Ë ÐÏÍÏÝÉ ÜÔÏÇÏ ÑÚÙËÁ. Unix Ó ÓÁÍÏÇÏ ÒÏÖÄÅÎÉÑ ÏÂÌÁÄÁÌ ÇÏÒÁÚÄÏ ÂÏÌÅÅ ÍÏÝÎÙÍÉ ÑÚÙËÁÍÉ ÓÃÅÎÁÒÉÅ×. þÁÝÅ ×ÓÅÇÏ, ËÁË É ÄÌÑ ÄÒÕÇÉÈ ÑÚÙËÏ× ÓÃÅÎÁÒÉÅ×, ÄÌÑ BASIC ×ÙÐÕÓËÁÀÔ ÉÎÔÅÒÐÒÅÔÁÔÏÒÙ. ïÎ ÏÂÌÁÄÁÅÔ ÄÏÓÔÁÔÏÞÎÏ ÐÒÏÓÔÙÍ ÓÉÎÔÁËÓÉÓÏÍ — ÂÅÚ ÔÉÐÏ× ÄÁÎÎÙÈ, ÎÕ ËÒÏÍÅ ÒÁÚÌÉÞÉÑ ÓÔÒÏË É ÞÉÓÅÌ. éÍÅÎÎÏ ÉÚ-ÚÁ Ó×ÏÅÊ ÐÒÏÓÔÏÔÙ É ×ÏÚÍÏÖÎÏÓÔÉ Ó ÐÏÍÏÝØÀ ÎÅÇÏ ÌÅÇËÏ ÏÂÕÞÁÔØ ÓÔÕÄÅÎÔÏ× ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÀ, BASIC É ÐÏÌÕÞÉÌ Ó×Ï£ ÎÁÚ×ÁÎÉÅ.
ë ÓÏÖÁÌÅÎÉÀ, ÎÅÄÏÓÔÁÔÏË ÓÔÁÎÄÁÒÔÉÚÁÃÉÉ, ÐÒÉ×£Ì Ë ÐÏÑ×ÌÅÎÉÀ ÍÎÏÇÏÞÉÓÌÅÎÎÙÈ ×ÅÒÓÉÊ,
× ÂÏÌØÛÉÎÓÔ×Å Ó×Ï£Í ÎÅ ÓÏ×ÍÅÓÔÉÍÙÈ.
íÏÖÎÏ ÄÁÖÅ ÓËÁÚÁÔØ, ÞÔÏ ÓËÏÌØËÏ ÉÎÔÅÒÐÒÅÔÁÔÏÒÏ×, ÓÔÏÌØËÏ É ×ÅÒÓÉÊ BASIC -Á, ÜÔÏ
ÄÅÌÁÅÔ ÅÇÏ ÔÒÕÄÎÏ ÐÅÒÅÎÏÓÉÍÙÍ.
îÅ ÓÍÏÔÒÑ ÎÁ ×ÙÛÅ ÐÅÒÅÞÉÓÌÅÎÎÙÅ, É ÍÎÏÇÉÅ ÄÒÕÇÉÅ ÎÅÄÏÓÔÁÔËÉ, Ï ËÏÔÏÒÙÈ ÎÁÍ ÎÁÐÏÍÎÑÔ "ÎÁÓÔÏÑÝÉÅ
ÐÒÏÇÒÁÍÍÉÓÔÙ", BASIC ÏÓÔÁ£ÔÓÑ ÏÄÎÉÍ ÉÚ ×ÏÚÍÏÖÎÙÈ ÓÒÅÄÓÔ× ÄÌÑ
ÂÙÓÔÒÏÇÏ ÓÏÚÄÁÎÉÑ ÍÁÌÅÎØËÉÈ ÐÒÏÇÒÁÍÍ.
äÏÌÇÉÅ ÇÏÄÙ ÜÔÏ ÂÙÌÏ ÏÓÏÂÅÎÎÏ ÚÁÍÅÔÎÏ × Windows ×ÅÒÓÉÑÈ,
üÔÏ ÏÓÏÂÅÎÎÏ ÚÁÍÅÔÎÏ × Windows ×ÅÒÓÉÑÈ, ÇÄÅ, Ó ÐÏÍÏÝØÀ éÎÔÅÇÒÉÒÏ×ÁÎÎÏÊ óÒÅÄÙ
òÁÚÒÁÂÏÔËÉ, ÍÏÖÎÏ ÓÏÚÄÁ×ÁÔØ ÇÒÁÆÉÞÅÓËÉÊ ÉÎÔÅÒÆÅÊÓ ÚÁ ÎÅÓËÏÌØËÏ ËÌÉËÏ× ÍÙÛËÏÊ.
âÏÌÅÅ ÔÏÇÏ, ÜÔÉ ×ÅÒÓÉÉ, ÎÁÚ×ÁÎÎÙÅ "Visual", ÉÓÐÏÌØÚÕÀÔÓÑ ÄÌÑ ÒÁÓÛÉÒÅÎÉÑ ×ÏÚÍÏÖÎÏÓÔÅÊ
ÐÒÉÌÏÖÅÎÉÊ, ÚÁ ÓÞ£Ô ÎÁÐÉÓÁÎÉÑ ÍÁËÒÏÓÏ×, ÞÔÏ Õ×ÅÌÉÞÉÌÏ ÒÁÓÐÒÏÓÔÒÁÎÅÎÉÑ ÜÔÉÈ
ÐÒÉÌÏÖÅÎÉÊ ÓÒÅÄÉ ÌÀÄÅÊ, ËÏÔÏÒÙÅ ÎÉËÏÇÄÁ ÂÙ ÔÁË É ÎÅ ÎÁÞÁÌÉ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÔØ.
úÄÅÓØ ÍÙ ÒÁÓÓÍÏÔÒÉÍ ÎÅÓËÏÌØËÏ ÎÁÉÂÏÌÅÅ ÉÚ×ÅÓÔÎÙÈ ×ÅÒÓÉÊ BASIC ÐÏÄ Linux
É ÐÏÐÒÏÂÕÅÍ ÓÒÁ×ÎÉÔØ ÉÈ.
ó×ÅÄÅÎÉÑ ×ÚÑÔÙ ÉÚ ÄÏËÕÍÅÎÔÁÃÉÉ Ë kbasic, Andrea M. Marconi.
ñÚÙË BASIC (õÎÉ×ÅÒÓÁÌØÎÁÑ óÉÍ×ÏÌÉÞÅÓËÁÑ óÉÓÔÅÍÁ ëÏÍÁÎÄ ÄÌÑ îÁÞÉÎÁÀÝÉÈ) ÒÏÄÉÌÓÑ × äÁÒÔÍÕÔÓËÏÍ ÕÎÉ×ÅÒÓÉÔÅÔÅ, × îØÀ èÜÍÐÛÉÒÅ (óûá), × 1964 ÇÏÄÕ. åÇÏ ÒÁÚÒÁÂÏÔÁÌÉ äÖ. ëÅÍÅÎÉ (1926-93) É ôÏÍÁÓ å. ëÕÒà (1928-). äÏ ÜÔÏÇÏ ëÅÍÅÎÉ ÒÁÂÏÔÁÌ × ðÒÏÅËÔÅ íÁÎÈÜÔÔÜÎ (1945), Á ÐÏÚÄÎÅÅ (1948-49), ËÁË ÁÓÓÉÓÔÅÎÔ áÌØÂÅÒÔÁ åÊÎÛÔÅÊÎÁ. ïÎ ×ÓÔÒÅÔÉÌ ëÕÒÃÁ × äÁÒÔÍÕÔÅ, × 1956.
ïÂÁ ÏÎÉ ÎÁÞÁÌÉ ÒÁÂÏÔÁÔØ ÎÁÄ ÎÏ×ÙÍ ÕÐÒÏÝ£ÎÎÙÍ ÑÚÙËÏÍ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ, É ÐÏÓÌÅ ×ÅÒÓÉÊ, ËÏÔÏÒÙÅ ÎÁÚÙ×ÁÌÉÓØ Darsimco É DOPE, ÏÎÉ ÓÆÏÒÍÕÌÉÒÏ×ÁÌÉ ÄÌÑ ÓÅÂÑ ÓÌÅÄÕÀÝÉÅ Ó×ÏÊÓÔ×Á ÖÅÌÁÅÍÏÇÏ ÑÚÙËÁ:
þÔÏÂÙ ÒÅÁÌÉÚÏ×ÁÔØ ÜÔÏ ÏÎÉ ÎÁÞÁÌÉ Ó FORTRAN É ALGOL. ïËÏÎÞÁÔÅÌØÎÁÑ ×ÅÒÓÉÑ ÎÁÚÙ×ÁÌÁÓØ "Dartmuth BASIC" É ×ËÌÀÞÁÌÁ × ÓÅÂÑ 14 ËÏÍÁÎÄ. "äÁÒÔÍÕÔÓËÉÊ BASIC" ÂÙÌ ËÏÍÐÉÌÉÒÏ×ÁÎÎÙÍ, Á ÐÏÔÏÍÕ ×ÅÓØÍÁ ÂÙÓÔÒÙÍ ÄÌÑ ÔÏÇÏ ×ÒÅÍÅÎÉ.
õÓÉÌÉÑ ëÅÍÅÎÉ É ëÕÒÃÁ ÂÙÌÉ ×ÏÚÎÁÇÒÁÖÄÅÎÙ 1 ÍÁÑ, 1964 ÇÏÄÁ, × 4 ÞÁÓÁ ÕÔÒÁ, ËÏÇÄÁ Ä×Å BASIC ÐÒÏÇÒÁÍÍÙ ÂÙÌÉ ÏÄÎÏ×ÒÅÍÅÎÎÏ ÚÁÐÕÝÅÎÙ ÎÁ ËÏÍÐØÀÔÅÒÅ äÖÅÎÅÒÁÌ üÌÅËÔÒÉË 255 à óÉ äÁÒÔÍÕÔÓËÏÇÏ ÕÎÉ×ÅÒÓÉÔÅÔÁ.
ëÅÍÅÎÉ é ëÕÒà ÎÅ ÓÔÁÌÉ ÐÁÔÅÎÔÏ×ÁÔØ Ó×Ï£ ÉÚÏÂÒÅÔÅÎÉÅ, ÞÔÏ ÓÐÏÓÏÂÓÔ×Ï×ÁÌÏ ÅÇÏ ÒÁÚ×ÉÔÉÀ É Õ×ÅÌÉÞÅÎÉÀ ÞÉÓÌÁ ×ÅÒÓÉÊ. óÒÅÄÉ ÐÅÒ×ÙÈ ÐÏÌØÚÏ×ÁÔÅÌÅÊ BASIC ÂÙÌÁ É ËÏÍÐÁÎÉÑ äÖÅÎÅÒÁÌ üÌÅËÔÒÉË, ÐÒÏÄÁ×ÛÁÑ GE-255 × äÁÒÔÍÕÔ.
õ ÉÓÔÏËÏ× ÍÎÏÇÉÈ ×ÅÒÓÉÊ BASIC ÓÔÏÉÔ çÏÒÄÏÎ àÂÁÎËÓ (ÇÌÁ×ÎÙÊ ÁÄÍÉÎÉÓÔÒÁÔÏÒ ËÏÍÐÁÎÉÉ óÉÍÁÎÔÅË). ÷ 1970 ×ÙÛÅÌ E-BASIC, ÏÎ ÉÓÐÏÌØÚÏ×ÁÌ ÐÓÅ×ÄÏËÏÄ, ËÁË ÓÅÇÏÄÎÑ Java. ðÏÔÏÍ ÂÙÌ CBASIC É ÍÎÏÇÏ ÄÒÕÇÉÈ, ÞÔÏ ÚÁÓÔÁ×ÉÌÏ ANSI ÏÐÒÅÄÅÌÉÔØ ÎÅËÏÔÏÒÙÅ ÓÔÁÎÄÁÒÔÙ. îÏ ËÏÇÄÁ × 1978 ÏÎÉ ×ÙÛÌÉ, ÉÍÉ ÎÉËÔÏ ÎÅ ÓÔÁÌ ÐÏÌØÚÏ×ÁÔØÓÑ: BASIC ÂÙÌ ÒÁÓÐÒÏÓÔÒÁΣΠÕÖÅ ÏÞÅÎØ ÛÉÒÏËÏ.
÷ ÜÔÏ ÖÅ ×ÒÅÍÑ (1975), âÏ áÌØÂÒÅÈÔ É äÜÎÎÉÓ üÌÌÉÓÏÎ ×ÙÐÕÓËÁÀÔ TinyBasic: ÏÎ ÒÁÂÏÔÁÅÔ ×ÓÅÇÏ ÐÒÉ 2 ËÉÌÏÂÁÊÔÁÈ ÏÐÅÒÁÔÉ×ÎÏÊ ÐÁÍÑÔÉ. ôÏÇÄÁ ÖÅ ÐÏÑ×ÌÑÅÔÓÑ É ÐÅÒ×ÙÊ ÉÎÔÅÒÐÒÅÔÁÔÏÒ BASIC. åÇÏ ÒÁÚÒÁÂÏÔÁÌÉ õÉÌØÑÍ è. çÅÊÔÓ III (1955-, ÂÏÌØÛÅ ÉÚ×ÅÓÔÎÙÊ ËÁË âÉÌÌ) É ðÏÌ áÌÌÅÎ (1953-). ðÒÏÉÚ×ÏÄÉÔÅÌÉ ËÏÍÐØÀÔÅÒÏ× ÓÔÁÌÉ ÚÁÐÉÓÙ×ÁÔØ ËÏÐÉÀ BASIC ÎÁ ÐÏÓÔÏÑÎÎÙÅ ÚÁÐÏÍÉÎÁÀÝÉÅ ÕÓÔÒÏÊÓÔ×Á Ó×ÏÉÈ ÍÁÛÉÎ. ÷ ËÏÎÃÅ 70 -È, ÐÅÒ×ÙÅ ÐÅÒÓÏÎÁÌØÎÙÅ ËÏÍÐØÀÔÅÒÙ ÔÁËÖÅ ÉÍÅÀÔ Ó×ÏÀ ×ÅÒÓÉÀ BASIC:
ó ÎÁÞÁÌÁ 80 -È, ÉÓÔÏÒÉÑ BASIC ÔÅÓÎÏ Ó×ÑÚÁÎÁ Ó ÉÓÔÏÒÉÅÊ ËÏÍÐØÀÔÅÒÏ×. ä×Á
ÐÒÏÄÕËÔÁ ÄÏÍÉÎÉÒÏ×ÁÌÉ ÎÁ ÒÙÎËÅ:
IBM ÐÒÅÄÌÁÇÁÌÁ BASIC A Ó PC-DOS, ÜÔÏ ÉÎÔÅÒÐÒÅÔÁÔÏÒ, ÚÁÐÉÓÁÎ × ROM, ÒÁÓÛÉÒÑÅÍ.
MS-DOS ÐÒÅÄÌÁÇÁÌÁ Gee-Witz BASIC (÷ÏÔ ÔÁË BASIC).
÷ 1984 ÐÏÑ×ÌÑÅÔÓÑ ËÏÍÐÉÌÑÔÏÒ Microsoft BASIC, Á ÚÁ ÎÉÍ ÍÎÏÇÏÞÉÓÌÅÎÎÙÅ ×ÅÒÓÉÉ,
ÓÒÅÄÉ ËÏÔÏÒÙÈ ÓÅÒÉÑ QuickBASIC. å£ ÎÁÞÁÌÉ ×ÙÐÕÓËÁÔØ × 1985, Á ÚÁËÏÎÞÉÌÉ
× 1990 ÐÁËÅÔÏÍ Microsoft BASIC Professional Development System 7.1
ðÏÑ×ÌÅÎÉÅ ÇÒÁÆÉÞÅÓËÏÇÏ ÉÎÔÅÒÆÅÊÓÁ (GUI) Õ ÏÐÅÒÁÃÉÏÎÎÙÈ ÓÉÓÔÅÍ, ÐÒÉ×ÏÄÉÔ Ë ÏÞÅÒÅÄÎÙÍ ÉÚÍÅÎÅÎÉÑÍ × ÑÚÙËÅ. ÷ÙÈÏÄÉÔ Visual BASIC, ÓÄÅÌÁÎÎÙÊ ÓÐÅÃÉÁÌØÎÏ ÄÌÑ ÐÏÄÄÅÒÖËÉ GUI; ÕÔ×ÅÒÖÄÁÅÔÓÑ, ÞÔÏ ÏÎ ÏÂßÅËÔÎÏ-ÏÒÉÅÎÔÉÒÏ×ÁÎÎÙÊ. íÎÏÇÉÅ ÐÒÏÇÒÁÍÍÉÓÔÙ Ó ÜÔÉÍ ÎÅ ÓÏÇÌÁÓÎÙ, ÏÄÎÁËÏ, ÐÏ ÐÏÓÌÅÄÎÉÍ ÐÏÄÓÞ£ÔÁÍ ÄÏ 90% ÐÒÏÇÒÁÍÍ ÄÌÑ Windows 9x ÉÓÐÏÌØÚÕÀÔ Visual BASIC.
åÓÌÉ ÍÙ ÚÁÈÏÔÉÍ ÓÏÓÔÁ×ÉÔØ ÓÐÉÓÏË Basic ÄÏÓÔÕÐÎÙÈ ÐÏÄ Linux, ÔÏ ÎÁÊÄ£Í ÏËÏÌÏ ÐÏÌÕÄÀÖÉÎÙ ÂÏÌÅÅ ÍÅÎÅÅ ÉÎÔÅÒÅÓÎÙÈ ÄÌÑ ÒÁÓÓÍÏÔÒÅÎÉÑ. îÁ ÓÁÊÔÅ sourceforge ÅÓÔØ "ëÕÚÎÉÃÁ BASIC", ÐÏ ËÏÔÏÒÏÊ ÍÏÖÎÏ ÓÕÄÉÔØ Ï ËÏÌÉÞÅÓÔ×Å ÓËÁÞÉ×ÁÎÉÊ:
÷ÏÔ ÎÁÉÂÏÌÅÅ ÓËÁÞÉ×ÁÅÍÙÅ ÐÁËÅÔÙ Ó Sourceforge.net
ôÁËÖÅ ÎÁÍ ÉÚ×ÅÓÔÎÏ, ÞÔÏ Gnome É KDE ÉÍÅÀÔ ÐÒÏÅËÔ, ËÏÔÏÒÙÊ ÄÏÌÖÅÎ
ÚÁÍÅÎÉÔØ Visula BASIC.
âÏÌÅÅ ÔÏÇÏ, òÉÞÁÒÄ óÔÏÌÌÍÜÎ ÇÏ×ÏÒÉÔ Ï ÎÅÏÂÈÏÄÉÍÏÓÔÉ ÂÅÓÐÌÁÔÎÏÊ ÁÌØÔÅÒÎÁÔÉ×Ù VB
×ÐÉÓØÍÅ × ÉÎÔÅÒÎÅÔ-ÖÕÒÎÁÌ "the register",
ÏÔ 10 ÆÅ×ÒÁÌÑ 2002 ÇÏÄÁ.
üÎÔÏÎÉ ìÉÇÕÏÒÉ (ajl13-at-bellatantic.net),
Á×ÔÏÒ GLBCC (ëÏÌÌÅËÃÉÑ ËÏÍÐÉÌÑÔÏÒÏ× Liberty Basic) ÅÄÉÎÓÔ×ÅÎÎÙÊ ÐÒÏÅËÔ
BASIC Ó ÕÐÏÍÉÎÁÎÉÅÍ GNU, ÔÁËÖÅ ÐÒÏÓÉÔ ÏÂ ÜÔÏÍ
ÎÁ ÓÁÊÔÅ GLBCC (lbpp.sourceforge.net).
äÁ×ÁÊÔÅ ÒÁÓÓÍÏÔÒÉÍ ÒÁÚÎÙÅ ÐÁËÅÔÙ BASIC, ÞÔÏÂÙ ÓÏÓÔÁ×ÉÔØ ÐÒÅÄÓÔÁ×ÌÅÎÉÅ Ï ÉÈ ÉÎÔÅÒÆÅÊÓÅ É ×ÏÚÍÏÖÎÏÓÔÑÈ ÐÒÅÄÏÓÔÁ×ÌÑÅÍÏÇÏ ÑÚÙËÁ:
XBasic — ÜÔÏ ÓÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ Ó ÏÄÎÉÍ ÉÚ ÎÁÉÂÏÌÅÅ ÍÏÝÎÙÈ ÐÏÌØÚÏ×ÁÔÅÌØÓËÉÈ ÉÎÔÅÒÆÅÊÓÏ×. üÔÏ éÎÔÅÇÒÉÒÏ×ÁÎÎÁÑ óÒÅÄÁ òÁÚÒÁÂÏÔÞÉËÁ, ÔÏ ÅÓÔØ, ÜÔÏ ×ÏÚÍÏÖÎÏÓÔØ ÓÏÚÄÁ×ÁÔØ ÇÒÁÆÉÞÅÓËÉÊ ÉÎÔÅÒÆÅÊÓ ÐÒÏÇÒÁÍÍÙ, ÏÔÌÁÖÉ×ÁÔØ Å£ É ËÏÍÐÉÌÉÒÏ×ÁÔØ. óÉÓÔÅÍÁ "ÔÏÞËÁ - ËÏÍÁÎÄÁ" ("dot commands") ÐÏÚ×ÏÌÑÅÔ ÉÓÐÏÌØÚÏ×ÁÔØ ×ÏÚÍÏÖÎÏÓÔÉ ÓÒÅÄÙ ÎÅ ÍÙÛËÏÊ, Á ËÌÁ×ÉÁÔÕÒÏÊ, ÐÅÞÁÔÁÑ ÔÏÞËÕ, Á ÚÁ ÎÅÊ ËÏÍÁÎÄÕ, × ÐÏÌÅ ××ÏÄÁ ÓÌÅ×Á ××ÅÒÈÕ ÇÌÁ×ÎÏÇÏ ÏËÎÁ:
þÔÏ ËÁÓÁÅÔÓÑ ×ÏÚÍÏÖÎÏÓÔÅÊ, XBasic ÉÍÅÅÔ ×Ó£ ÎÅÏÂÈÏÄÉÍÏÅ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ
ÇÒÁÆÉÞÅÓËÉÈ ÉÎÔÅÒÆÅÊÓÏ×, Á ÔÁËÖÅ ÍÎÏÇÏ ÒÁÓÛÉÒÅÎÉÊ. îÕÖÎÏ ÄÏÂÁ×ÉÔØ, ÞÔÏ ÉÍÅÅÔÓÑ
×ÏÚÍÏÖÎÏÓÔØ ×ÙÚÏ×Á ÐÒÏÃÅÄÕÒ, ÎÁÐÉÓÁÎÎÙÈ ÎÁ C. åÓÔØ ÔÁËÖÅ ÔÁËÉÅ ÞÅÒÔÙ C, ËÁË
ÏÐÒÅÄÅÌÅÎÉÅ ÎÏ×ÙÈ ÔÉÐÏ×, ÁÓÓÏÃÉÁÃÉÑ ÐÅÒÅÍÅÎÎÙÈ, ÓÏÚÄÁÎÉÅ ÂÉÂÌÉÏÔÅË.
é ÐÏÓÌÅÄÎÅÅ: XBasic ÄÏÓÔÕÐÅÎ ÐÏ GPL ÐÏÄ Windows ÉÌÉ Linux ÎÁ:
http://www.xbasic.org
SmallBASIC — ÜÔÏ ÉÎÔÅÒÐÒÅÔÁÔÏÒ, ×ÙÐÕÝÅÎÎÙÊ ÐÏËÁ ÐÏÄ Win32,
Linux É PalmOS.
äÌÑ ×ÏÚÍÏÖÎÏÓÔÉ ÐÅÒÅÎÏÓÁ ÎÁ ÄÒÕÇÉÅ ÓÉÓÔÅÍÙ, ÅÓÔØ ÓÐÅÃÉÁÌØÎÁÑ ÈÏÒÏÛÁÑ
ÄÏËÕÍÅÎÔÁÃÉÑ. éÎÔÅÒÐÒÅÔÁÔÏÒ ÍÏÖÅÔ ÂÙÔØ ÓÏÂÒÁÎ ÄÌÑ ÒÁÚÎÙÈ ÉÎÔÅÒÆÅÊÓÏ×:
ïÎ ÍÏÖÅÔ ÂÙÔØ ÚÁÐÕÝÅÎ ËÁË × ÔÅËÓÔÏ×ÏÍ, ÔÁË É × ÇÒÁÆÉÞÅÓËÏÍ ÒÅÖÉÍÅ. üÔÏÔ ÐÒÉÍÅÒ ÚÁÐÕÓËÁÅÔ ÐÒÏÇÒÁÍÍÕ System_info.bas:
$ sbasic System_info.bas SmallBASIC version 0.8.2, use -h for help http://smallbasic.sourceforge.net VMT Initialization... File: System_info.bas Section: Main PASS1: Line 24; finished SB-MemMgr: Maximum use of memory: 30KB PASS2: Node 3/3 Creating byte-code... Variables 20 Labels 0 Proc/Func 0 Code size 707 System Information OS: Unix/Linux version 2.4.18-6mdk (quintela @ bi.mandrakesoft.com) (gcc version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)) #1 Fri Mar 15 02:59:08 CET 2002 204018 SB: 802 Display 99x58 Colors 16 Font: 1x1 Total free memory: 127728 KB Stack size: 127728 KB Largest free memory block: 127728 KB * DONE * SB-MemMgr: Maximum use of memory: 30KB $
$ sbasic -g System_info.bas SmallBASIC version 0.8.2, use -h for help http://smallbasic.sourceforge.net VMT Initialization... File: System_info.bas Section: Main PASS1: Line 24; finished SB-MemMgr: Maximum use of memory: 30KB PASS2: Node 3/3 Creating byte-code... Variables 20 Labels 0 Proc/Func 0 Code size 707 SB-MemMgr: Maximum use of memory: 30KB $
ñÚÙË SmallBASIC ÄÏÓÔÁÔÏÞÎÏ ÐÒÏÓÔ É ÂÌÉÚÏË Ë ÔÏÍÕ, ÞÔÏ ×Ù ÍÏÖÅÔÅ ÏÖÉÄÁÔØ
ÏÔ "ÓÔÁÎÄÁÒÔÎÏÇÏ" BASIC. óÒÅÄÉ ÇÒÁÆÉÞÅÓËÉÈ ÆÕÎËÃÉÊ ÎÅÔ ÎÉÞÅÇÏ ÎÏ×ÏÇÏ, É ËÌÁÓÓÉÞÅÓËÉÅ
RECTANGLE É CIRCLE ÍÏÇÕÔ ÂÙÔØ ×ÙÐÏÌÎÅÎÎÙÍÉ ÎÁ ÌÀÂÏÊ, ÕËÁÚÁÎÎÏÊ ÒÁÎÅÅ ÏÐÅÒÁÃÉÏÎÎÏÊ
ÓÉÓÔÅÍÅ. ôÉÐÙ ÐÅÒÅÍÅÎÎÙÈ ÏÔÓÕÔÓÔ×ÕÀÔ.
ïÄÎÁËÏ, SmallBASIC ÓÏ×ÍÅÓÔÉÍ ÓÏ ÓÔÁÒÙÍÉ TINYBasic É QuickBasic É ÈÏÒÏÛÏ
ÉÎÔÅÇÒÉÒÏ×ÁÎ × PalmOS, ÓËÁÞÁÔØ ÅÇÏ ÍÏÖÎÏ ÎÁ
http://smallbasic.sourceforge.net
wxBasic ÉÍÅÅÔ ÞÅÒÔÙ QuickBASICÁ, ÎÏ ËÏÅ-ÞÔÏ ÏÎ ×ÚÑÌ ÉÚ Unix , ËÁË ÎÁÐÒÉÍÅÒ ÁÓÓÏÃÉÉÒÏ×ÁÎÎÙÅ ÍÁÓÓÉ×Ù. wxBasic — ÜÔÏ ÉÎÔÅÒÐÒÅÔÁÔÏÒ, ÏÎ ÐÏÍÅÝÁÅÔÓÑ ×ÓÅÇÏ ÎÁ ÏÄÎÕ ÄÉÓËÅÔÕ, ÏÂÌÁÄÁÅÔ ÐÏÌÎÏÊ ÄÏËÕÍÅÎÔÁÃÉÅÊ (138 ÓÔÒ.), ÄÏÓÔÕÐÎÏÊ × ÆÏÒÍÁÔÅ pdf. ÷ ËÏÍÐÌÅËÔ ÐÏÓÔÁ×ËÉ ×ÈÏÄÉÔ ÇÒÁÆÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ, ÐÏÚ×ÏÌÑÀÝÁÑ ÐÉÓÁÔØ ÐÒÏÇÒÁÍÍÙ ÄÌÑ X Window ÉÌÉ Windows. ó ÜÔÏÊ ÓÔÏÒÏÎÙ ÄÁÎÎÙÊ ÑÚÙË ÂÌÉÚÏË Ë ÏÂßÅËÔÎÏ-ÏÒÉÅÎÔÉÒÏ×ÁÎÎÙÍ, ËÁË ÎÁÐÒÉÍÅÒ C++. ïÄÎÁËÏ, ÇÒÁÆÉÞÅÓËÉÊ ÉÎÔÅÒÆÅÊÓ ÐÒÉÈÏÄÉÔÓÑ ÄÅÌÁÔØ ×ÒÕÞÎÕÀ, ÔÁËÖÅ ÎÅÔ ÎÉËÁËÏÇÏ ×ÓÔÒÏÅÎÎÏÇÏ ÉÎÔÅÒÆÅÊÓÁ ÒÁÚÒÁÂÏÔËÉ.
// My first wxBasic demo... option explicit // create the window dim frame=new wxFrame(0,-1,"wxBasic App",wxPoint(10,10),wxSize(300,200)) frame.Centre() // place a panel in the window dim panel = new wxPanel(frame, -1) // add a status bar dim sBar = frame.CreateStatusBar( 1 ) sBar.SetStatusText("wxBasic Frame Demo") // attach a menubar to the window dim mBar = new wxMenuBar() frame.SetMenuBar(mBar) // build the "File" dropdown menu dim mFile = new wxMenu() mBar.Append(mFile,"&File") // populate it mFile.Append(wxID_NEW, "&New", "Creates a new file") mFile.Append(wxID_OPEN, "&Open", "Loads an existing file from disk") mFile.Append(wxID_SAVE, "&Save", "Saves current file") mFile.Append(wxID_SAVEAS, "Save &As", "Saves current file with new name") mFile.AppendSeparator() mFile.Append(wxID_EXIT, "&Exit", "Exit Application") // build the "Edit" dropdown menu etc.....
÷Ü ÓÁÊÔ : http://wxbasic.sourceforge.net
ôÁËÖÅ ÎÁÚÙ×ÁÅÍÙÊ GLBCC (ëÏÌÌÅËÃÉÑ ËÏÍÐÉÌÑÔÏÒÏ× Liberty Basic), ÜÔÏ ËÏÍÐÉÌÑÔÏÒ, Á ×ÅÒÎÅÅ ÉÎÔÅÒÆÅÊÓ Ë GNU ËÏÍÐÉÌÑÔÏÒÕ gcc, ÐÅÒÅ×ÏÄÑÝÉÊ BASIC × C. üÔÏ ÎÅÍÎÏÇÏ ÐÏÈÏÖÅ ÎÁ ÎÅËÏÔÏÒÙÅ ËÏÍÐÉÌÑÔÏÒÙ C++, ÐÅÒÅ×ÏÄÑÝÉÅ ÐÅÒÅÄ ËÏÍÐÉÌÉÒÏ×ÁÎÉÅÍ C++ × C. ëÁË ×ÉÄÎÏ ÉÚ ÎÁÚ×ÁÎÉÑ, ÜÔÏÔ ËÏÍÐÉÌÑÔÏÒ ÓÔÏÐÒÏÃÅÎÔÎÏ ÓÏ×ÍÅÓÔÉÍ Ó Liberty BASIC. ðÏÓÌÅÄÎÉÊ ÐÏÑ×ÉÌÓÑ × 90 -È, ÎÁ Windows ÐÌÁÔÆÏÒÍÁÈ, É ÉÍÅÌ ×ÅÓØÍÁ ÛÉÒÏËÕÀ ÐÏÐÕÌÑÒÎÏÓÔØ ÉÚ-ÚÁ Ó×ÏÅÊ ÄÏÓÔÕÐÎÏÓÔÉ (ÏÔÓÀÄÁ É ÎÁÚ×ÁÎÉÅ). úÁ ÄÁÌØÎÅÊÛÅÊ ÉÎÆÏÒÍÁÃÉÅÊ, ÏÂÒÁÝÁÊÔÅÓØ ÎÁ ÜÔÏÔ ÓÁÊÔ, ÎÁ Î£Í ×Ù ÎÁÊÄ£ÔÅ ÍÎÏÇÏ ÄÏËÁÚÁÔÅÌØÓÔ× ×ÙÓÏËÏÇÏ ËÁÞÅÓÔ×Á ÄÁÎÎÏÇÏ ÐÒÏÇÒÁÍÍÎÏÇÏ ÐÒÏÄÕËÔÁ. üÔÏÔ ÑÚÙË ÎÅ ÂÅÓÐÌÁÔÅÎ, ÎÏ ÐÒÏÂÎÕÀ ×ÅÒÓÉÀ ÍÏÖÎÏ ÓËÁÞÁÔØ.
ëÏÍÐÉÌÑÔÏÒ GLBCC ÉÍÅÅÔ ÒÅÁÌÉÚÁÃÉÉ ËÁË ÐÏÄ Linux, ÔÁË É ÐÏÄ Windows, É ÍÏÖÅÔ ÓÏÚÄÁ×ÁÔØ ÎÅÚÁ×ÉÓÉÍÙÅ ÉÓÐÏÌÎÉÍÙÅ ÆÁÊÌÙ, ÒÁÂÏÔÁÀÝÉÅ ÎÅ ÍÅÄÌÅÎÎÅÅ, ÞÅÍ ÔÁËÉÅ ÖÅ, ÎÏ ÎÁÐÉÓÁÎÎÙÅ ÎÁ ÌÀÂÏÍ ÄÒÕÇÏÍ ÑÚÙËÅ. á×ÔÏÒ ÏÂÒÁÝÁÅÔ ×ÎÉÍÁÎÉÅ, ÞÔÏ ÐÒÏÇÒÁÍÍÁ ÎÁ Liberty BASIC, ÓËÏÍÐÉÌÉÒÏ×ÁÎÎÁÑ c GLBCC, × ÏÔÎÏÛÅÎÉÉ ÓËÏÒÏÓÔÉ "ÄÅÌÁÅÔ" Visual BASIC.
õÓÔÁÎÏ×ËÁ GLBCC ÐÏÄ Linux ÄÏÓÔÁÔÏÞÎÏ ÐÒÏÓÔÁ — ÎÅÏÂÈÏÄÉÍÙ ËÌÁÓÓÉÞÅÓËÉÊ
"tar", ÞÔÏÂÙ ÒÁÓÐÁËÏ×ÁÔØ ÁÒÈÉ×, É "make install".
÷ ÏÂÙÞÎÏÍ ÒÅÖÉÍÅ, ÐÒÏÇÒÁÍÍÁ ÉÓÐÏÌØÚÕÅÔ ËÏÍÁÎÄÎÕÀ ÓÔÒÏËÕ. "glbcc hello.bas"
ÓÏÚÄÁÓÔ ×ÙÐÏÌÎÉÍÙÊ ÆÁÊÌ ÐÒÉÍÅÒÎÏ ÔÁË:
$ glbcc /usr/local/bin/lbpp -I/usr/local/lib/glbcc-lib/0.0.7/include -o out.c hello.bas gcc -g -I/usr/local/lib/glbcc-lib/0.0.7/include `gnome-config --cflags gnomeui` -o hello out.c /usr/local/lib/glbcc-lib/0.0.7/lib/lbcrt0.o -L/usr/local/lib/glbcc-lib/0.0.7/lib -lLB -lm `gnome-config --libs gnomeui` $ ls -l hello* -rwxr-xr-x 1 john john 339671 oct 13 21:55 hello -rw-r--r-- 1 john john 22 avr 14 17:41 hello.bas $ cat hello.bas print "Hello, world!" $ ./hello Hello, world!
ëÏÇÄÁ ÐÁÒÁÍÅÔÒÙ ÎÅ ÕËÁÚÁÎÙ, GLBCC ÏÔËÒÏÅÔ ÇÒÁÆÉÞÅÓËÉÊ ÄÉÁÌÏÇ É ÐÏÐÒÏÓÉÔ ×ÁÓ ××ÅÓÔÉ ÉÍÑ ÆÁÊÌÁ Ó ËÏÄÏÍ ÎÁ BASIC É ÉÍÑ ÉÓÐÏÌÎÉÍÏÇÏ ÆÁÊÌÁ, ËÏÔÏÒÙÊ ÂÕÄÅÔ ÓÏÚÄÁÎ. ðÏ ÕÍÏÌÞÁÎÉÀ, ÐÏÄ Windows Ë ÉÍÅÎÉ ×ÈÏÄÎÏÊ ÐÒÏÇÒÁÍÍÙ ÄÏÂÁ×ÉÔÓÑ ÓÕÆÆÉËÓ ".exe", Á ÐÏÄ Linux ÎÅ ÄÏÂÁ×ÉÔÓÑ ÎÉËÁËÏÊ.
òÁÂÏÔÁ Ó ÇÒÁÆÉËÏÊ × GLBCC ÏÓÎÏ×ÁÎÁ ÎÁ ÂÉÂÌÉÏÔÅËÅ GTK. úÁÂÁ×ÎÏ, ÞÔÏ GLBCC ÓÁÍ ÎÁÐÉÓÁÎ ÎÁ BASIC.
åÝ£ ÏÄÉÎ Basic ÐÏÄ Unix É Windows
èÏÔØ YaVASIC É ×ÅÄ£Ô ÓÅÂÑ ËÁË ÉÎÔÅÒÐÒÅÔÁÔÏÒ, ÉÎÔÅÒÐÒÅÔÁÔÏÒÏÍ ÏÎ ÎÅ Ñ×ÌÑÅÔÓÑ. ðÒÏÓÔÏ ÐÏÄÁÎÎÙÊ ÎÁ ×ÈÏÄ ËÏÄ ÏÎ ÓÒÁÚÕ ËÏÍÐÉÌÉÒÕÅÔ É ÓÒÁÚÕ ÖÅ ÚÁÐÕÓËÁÅÔ. YaBASIC ×ÙÚÙ×ÁÅÔÓÑ ÉÚ ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÉ, Ó ÕËÁÚÁÎÉÅÍ × ËÁÞÅÓÔ×Å ÁÒÇÕÍÅÎÔÁ ÉÍÅÎÉ ÆÁÊÌÁ. åÓÌÉ ÆÁÊÌ ÕËÁÚÁÎ, ÔÏ ÏÎ É ËÏÍÐÉÌÉÒÕÅÔÓÑ, ÅÓÌÉ ÎÅÔ, ÔÏ ×Ù ÐÏÐÁÄ£ÔÅ × ÒÅÖÉÍ ÉÎÔÅÒÐÒÅÔÁÃÉÉ, ËÁË × ÜÔÏÍ ÐÒÉÍÅÒÅ:
$ yabasic Enter your program, type RETURN twice when done. for i=1 to 10 print i,"hello, world" next i 1hello, world 2hello, world 3hello, world 4hello, world 5hello, world 6hello, world 7hello, world 8hello, world 9hello, world 10hello, world $
ôÁËÏÊ ÓÐÏÓÏ ÒÁÂÏÔÙ YaBASIC ÐÏÚ×ÏÌÑÅÔ ÐÉÓÁÔØ ÎÁ Î£Í Unix ÓÃÅÎÁÒÉÉ ÉÌÉ ÄÁÖÅ CGI ÓËÒÉÐÔÙ, ×ÓÔÁ×ÌÑÑ × ÎÁÞÁÌÏ ÆÁÊÌÁ ÓÔÒÏËÕ ×ÉÄÁ "#!/bin/yabasic", É ÄÅÌÁÑ ÔÁËÏÊ ÆÁÊÌ ÉÓÐÏÌÎÉÍÙÍ.
ñÚÙË YaBasic ÂÌÉÚÏË Ë Quick BASIC, ÂÅÚ ÔÉÐÏ× ÐÅÒÅÍÅÎÎÙÈ. åÓÔØ ÔÏÌØËÏ ×ÏÚÍÏÖÎÏÓÔØ ÒÁÚÌÉÞÁÔØ ÓÔÒÏËÉ É ÞÉÓÌÁ, ÓÔÁ×Ñ ÉÌÉ ÎÅÔ ÓÉÍ×ÏÌ $ × ËÏÎÃÅ ÉÍÅÎÉ ÐÅÒÅÍÅÎÎÏÊ. úÄÅÓØ ÎÅÔ ÏÂßÅËÔÎÏ-ÏÒÉÅÎÔÉÒÏ×ÁÎÎÏÇÏ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ, ÎÏ ÅÓÔØ ×ÏÚÍÏÖÎÏÓÔØ ÓÏÚÄÁ×ÁÔØ Ó×ÏÉ ÓÏÂÓÔ×ÅÎÎÙÅ ÂÉÂÌÉÏÔÅËÉ, ÅÓÔØ ËÏÍÁÎÄÙ ÄÏÓÔÕÐÁ Ë ÇÒÁÆÉÞÅÓËÉÍ ÒÅÖÉÍÁÍ X11 ÉÌÉ Windows, × ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÏÐÅÒÁÃÉÏÎÎÏÊ ÓÉÓÔÅÍÙ. åÓÔØ ÔÁËÖÅ ÎÅÓËÏÌØËÏ ÐÏÌÅÚÎÙÈ ÍÏÍÅÎÔÏ×, ÔÁËÉÈ ËÁË ÆÕÎËÃÉÑ split(), ÐÏÄÏÂÎÁÑ ÏÄÎÏÉÍ£ÎÎÏÊ ÉÚ Perl ÉÌÉ php, ÃÉËÌÙ FOR, WHILE ÉÌÉ REPEAT UNTIL, Á ÔÁËÖÅ ËÏÎÓÔÒÕËÃÉÑ IF ELSE ENDIF; ÐÏÓÌÅÄÎÉÅ ËÏÎÓÔÒÕËÃÉÉ ×ÏÛÌÉ × BASIC × 80 -È, Ó ÐÏÑ×ÌÅÎÉÅÍ ÓÔÒÕËÔÕÒÎÏÇÏ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ.
X11-BASIC — ÜÔÏ ÉÎÔÅÒÐÒÅÔÁÔÏÒ ÓÔÒÕËÔÕÒÉÒÏ×ÁÎÎÏÇÏ BASIC, Ó ÇÒÁÆÉÞÅÓËÉÍÉ
×ÏÚÍÏÖÎÏÓÔÑÍÉ X11. üÔÏÔ BASIC ÐÅÒÅÎÅÓ£Î Ó ÓÉÓÔÅÍÙ Atari ST GEM/TOS
(ËÏÎÅà 80 -È) ÎÁ Unix. åÇÏ ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ËÁË ÉÎÔÅÒÐÒÅÔÁÔÏÒ, ÓÏÚÄÁ×ÁÔØ
ÓÃÅÎÁÒÉÉ ÉÌÉ CGI ÓËÒÉÐÔÙ. åÓÔØ ËÏÍÐÉÌÑÔÏÒ,
ËÏÔÏÒÙÊ ÍÏÖÅÔ ÄÅÌÁÔØ ÏÔÄÅÌØÎÙÅ ÉÓÐÏÌÎÉÍÙÅ ÆÁÊÌÙ (ÓÔÁÔÉÞÅÓËÉÊ ÒÅÖÉÍ), ÉÌÉ
ÐÒÉÌÉÎËÏ×ÁÎÎÙÅ Ë ÓÔÁÎÄÁÒÔÎÏÊ ÂÉÂÌÉÏÔÅËÅ X11 ÒÁÚÍÅÒÏÍ ÏËÏÌÏ 200 ëÂÁÊÔ
(ÄÉÎÁÍÉÞÅÓËÉÊ ÒÅÖÉÍ). ëÏÍÐÉÌÑÔÏÒ ÎÁ ÓÁÍÏÍ ÄÅÌÅ ÎÅ ÎÁÓÔÏÑÝÉÊ,
ÔÁË ËÁË ×ÙÄÁ£Ô ÎÅ ÉÓÐÏÌÎÑÅÍÙÊ CPU ËÏÄ, Á ÓÖÁÔÙÊ ÉÎÔÅÒÐÒÅÔÁÔÏÒÏÍ ÉÓÈÏÄÎÙÊ.
óÁÍ ÐÓÅ×ÄÏËÏÍÐÉÌÑÔÏÒ ÎÁÐÉÓÁÎ ÎÁ X11-BASIC.
ñÚÙË ÜÔÏÇÏ BASIC ×ÅÓØÍÁ ÂÏÇÁÔ, ÓÔÒÕËÔÕÒÉÒÏ×ÁÎ, Ó ÎÁÌÉÞÉÅÍ ÔÉÐÏ× ÐÅÒÅÍÅÎÎÙÈ
(integer, floating, text, array, boolean). äÏÓÔÕÐÎÙÅ ËÏÍÁÎÄÙ ÐÏÚ×ÏÌÑÀÔ
ÏÂÒÁÝÁÔØÓÑ Ë ÐÁÍÑÔÉ, ÐÏÄÏÂÎÏ malloc() × C, ÉÌÉ ÐÅÒÅÍÎÏÖÁÔØ ÍÁÔÒÉÃÙ,
ÈÒÁÎÑÝÉÅÓÑ × ÍÁÓÓÉ×ÁÈ.
çÒÁÆÉÞÅÓËÉÅ ËÏÍÁÎÄÙ ÔÁËÉÅ ÖÅ ËÁË É × Atari ST GFA BASIC, ÉÍÅÀÔ ÔÁËÏÊ ÖÅ
ÒÅÚÕÌØÔÁÔ, ÎÏ ÐÏÄ ÓÉÓÔÅÍÏÊ X Window. îÁÐÒÉÍÅÒ ËÏÍÁÎÄÁ MENU ÓÏÚÄÁ£Ô
× ÇÒÁÆÉÞÅÓËÏÍ ÏËÎÅ ÍÅÎÀ. üÔÏÔ ÉÎÔÅÒÐÒÅÔÁÔÏÒ ÓÎÁÂ֣ΠÄÏËÕÍÅÎÔÁÃÉÅÊ É ÂÏÌØÛÉÍ
ËÏÌÉÞÅÓÔ×ÏÍ ÐÒÉÍÅÒÏ×, ÐÒÁ×ÄÁ ÐÏËÁ ÜÔÁ ÄÏËÕÍÅÎÔÁÃÉÑ ÍÅÓÔÁÍÉ ÎÁ ÎÅÍÅÃËÏÍ ÑÚÙËÅ.
îÅÐÒÉÑÔÎÁÑ ÓÔÏÒÏÎÁ ÓÏÓÔÏÉÔ × ÔÏÍ, ÞÔÏ ÐÅÒÅÎÏÓ Ó ÉÓÈÏÄÎÏÊ ÓÉÓÔÅÍÙ ÅÝ£ ÎÅ ÚÁËÏÎÞÅÎ,
É ÍÏÇÕÔ ÂÙÔØ ÐÒÏÂÌÅÍÙ, ÄÁÖÅ Ó ÐÒÉÍÅÒÁÍÉ. ÷ ÚÁËÌÀÞÅÎÉÉ ÓËÁÖÅÍ, ÞÔÏ ÜÔÏÔ
ÉÎÔÅÒÐÒÅÔÁÔÏÒ × ÏÓÎÏ×ÎÏÍ ×ÅÄ£Ô ÓÅÂÑ ËÁË ÂÅÔÁ ×ÅÒÓÉÑ, ÉÍ ×ÐÏÌÎÅ ÍÏÇÕÔ ÐÏÌØÚÏ×ÁÔØÓÑ
ÌÀÄÉ, ÓÞÉÔÁÀÝÉÅ BASIC "Ó×ÏÉÍ" ÑÚÙËÏÍ.
$ xbasic *************************************************************** * xbasic V. 1.07 * * by Markus Hoffmann 1997-2002 (c) * * * * version date: Wed Sep 25 10:26:29 CEST 2002 * * library V. 1.07 date: Wed Sep 25 10:26:29 CEST 2002 * ***************************************************************äÏÍÁÛÎÑÑ ÓÔÒÁÎÉÞËÁ: http://www-cip.physik.uni-bonn.de/~hoffmann/X11-Basic/
÷ÏÔ BASIC, ÐÒÏÉÚ×ÏÄÑÝÉÊ ÈÏÒÏÛÅÅ ×ÐÅÞÁÔÌÅÎÉÅ Ó ÐÅÒ×ÏÇÏ ×ÚÇÌÑÄÁ, ÍÏÖÅÔ ÜÔÏ ÏÔ ÅÇÏ ×ÏÚÍÏÖÎÏÓÔÅÊ, Á ÍÏÖÅÔ ÏÔ ËÁÞÅÓÔ×Á ÄÏËÕÍÅÎÔÁÃÉÉ, ËÏÔÏÒÁÑ ×ÅÓÉÔ 7.7 íÅÇÁÂÁÊÔ. åÓÌÉ Õ ×ÁÓ ÎÅÔ ÐÏÓÌÅÄÎÅÊ ×ÅÒÓÉÉ ÄÉÓÔÒÉÂÕÔÉ×Á Linux, ÔÏ, ×ÏÚÍÏÖÎÏ, ×ÁÍ ÐÏÎÁÄÏÂÉÔÓÑ Qt-3.*, ÄÏÓÔÕÐÎÁÑ ÎÁ ÓÁÊÔÅ Trolltech (http://www.troll.no). üÔÏ ÐÏÌÎÁÑ ÓÒÅÄÁ ÒÁÚÒÁÂÏÔËÉ ÓÏ ×ÓÅÍ, ÞÔÏ ÍÏÖÅÔ ÚÁÈÏÔÅÔØ ÐÒÏÇÒÁÍÍÉÓÔ (ÎÅ ÓÍÏÔÒÑ ÎÁ "ÍÏÌÏÄÏÓÔØ" : ×ÅÒÓÉÑ 0.8 ):
á×ÔÏÒÙ HBasic ÐÒÅÄÕÐÒÅÖÄÁÀÔ: "îÁÓÔÏÑÝÁÑ ×ÅÒÓÉÑ HBasic ÅÝ£ ÎÅ ÄÏÓÔÁÔÏÞÎÏ ÓÔÁÂÉÌØÎÁ, ÞÔÏÂ٠ţ ÍÏÇÌÉ ÉÓÐÏÌØÚÏ×ÁÔØ ÒÁÚÒÁÂÏÔÞÉËÉ ÐÒÏÇÒÁÍÍ ÎÁ BASIC. éÍ ÎÁÄÏ ÄÏÖÄÁÔØÓÑ ×ÙÐÕÓËÁ ÐÅÒ×ÏÊ ÓÔÁÂÉÌØÎÏÊ ×ÅÒÓÉÉ: 1.0".
ðÒÏÅËÔ GNOME Basic ÈÏÔÅÌÉ ÓÄÅÌÁÔØ ÓÔÏÐÒÏÃÅÎÔÎÏ ÓÏ×ÍÅÓÔÉÍÙÍ Ó Visual BASIC,
VBA, VBScript, É ÄÒÕÇÉÍÉ Ó×ÑÚÁÎÎÙÍÉ Ó ÎÉÍÉ ÑÚÙËÁÍÉ. ÷ÎÁÞÁÌÅ ÏÎ ÂÙÌ
ÐÒÅÄÎÁÚÎÁÞÅÎ ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ VBA ÍÁËÒÏÓÏ× ÉÚ gnumeric, ÎÏ, × Ó×ÑÚÉ Ó ÎÅÏÖÉÄÁÎÎÙÍÉ
ÉÚÍÅÎÅÎÉÑÍÉ, ÏÎ ÍÏÖÅÔ ÉÓÐÏÌÎÉÔØ ÔÏÌØËÏ ÎÅËÏÔÏÒÙÅ ÆÏÒÍÙ, ÐÒÏ×ÅÒÉÔØ ÂÏÌØÛÕÀ
ÞÁÓÔØ VB ËÏÄÁ É ÉÓÐÏÌÎÉÔØ ÎÅËÏÔÏÒÙÅ ÓËÒÉÐÔÙ ÎÁ ASP. ó ÂÏÌÅÅ ËÁÞÅÓÔ×ÅÎÎÏÊ ÉÎÔÅÇÒÁÃÉÅÊ
× Bonobo, ÍÏÖÎÏ ÏÖÉÄÁÔØ ÂÏÌÅÅ MS ÓÏ×ÍÅÓÔÉÍÏÊ ÓÒÅÄÙ.
óÅÊÞÁÓ Gnome Basic — ÜÔÏ ÐÏÐÙÔËÁ ÐÒÅÄÁÔØ ÞÅÒÔÙ VB ÐÒÏÅËÔÕ Gnome, ÏÓÏÂÅÎÎÏ
ÄÌÑ ÐÏ×ÙÛÅÎÉÑ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔÉ É ÕÄÏÂÓÔ×Á ÐÒÉÌÏÖÅÎÉÊ.
üÔÏÔ ÐÒÏÅËÔ ×Ó£ ÅÝ£ ÎÁÈÏÄÉÔÓÑ × ÐÒÅÄ×ÁÒÉÔÅÌØÎÏÍ ÓÏÓÔÏÑÎÉÉ É ÄÏÌÖÅÎ ÂÙÔØ
ÏÓÔÁ×ÌÅÎ ÒÁÚÒÁÂÏÔÞÉËÁÍ Gnome.
äÏÍÁÛÎÑÑ ÓÔÒÁÎÉÞËÁ : http://www.gnome.org/gb/
ðÅÒÅÄ ÎÁÍÉ ÅÝ£ ÏÄÎÁ ÐÏÐÙÔËÁ ÓÄÅÌÁÔØ BASIC ÓÏ×ÍÅÓÔÉÍÙÍ Ó Visual Basic. òÁÚÒÁÂÏÔÞÉËÉ ÎÁÄÅÀÔÓÑ ×ÙÐÕÓÔÉÔØ ÐÅÒ×ÕÀ ÓÔÁÂÉÌØÎÕÀ ×ÅÒÓÉÀ 1.0 ÌÅÔÏÍ 2003. óÅÊÞÁÓ ÜÔÏ ÔÏÌØËÏ ÎÅÓÔÁÂÉÌØÎÁÑ ×ÅÒÓÉÑ, ÎÁÈÏÄÑÝÁÑÓÑ × ÓÔÁÄÉÉ ÒÁÚÒÁÂÏÔËÉ. KBasic ÂÕÄÅÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÏËÒÕÖÅÎÉÅ Kdevelop.
÷ÏÔ ËÁË ×ÙÇÌÑÄÉÔ kbasic ÄÏÓÔÕÐÎÙÊ ÓÅÊÞÁÓ ÄÌÑ ÓËÁÞÉ×ÁÎÉÑ:$ kbasic1 --help Usage: kbasic1 [OPTION]... FILE --help display this help and exit -V, --version print version information and exit -c, --copyright print copyright information and exit $ kbasic1 -V KBasic version 0.8 Copyright (C) 2000, 2001, 2002 The KBasic Team This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, to the extent permitted by law. Visit us on http://www.kbasic.org/ $kbasic1 hello.bas -- scan -- LINE 00001 PRINT STRING "Hello, world!" EOL LINE 00002 END -- parse -- STRING in line 1 EOL in line 1 parsed PRINT parsed END -- interpret -- 0000: KBASIC KBASIC 0006: VER 1.000000 0011: OPTION R OFF 0013: JMP 36 0036: DIM_STAT "Hello, world!", 1 0055: JMP 18 0018: PUSHS 1 , " Hello, world! " 0023: PRINT Hello, world! 0034: END execution ended
ëÁË ×Ù ÍÏÖÅÔÅ ×ÉÄÅÔØ, kbasic ÒÁÂÏÔÁÅÔ, ÎÏ ÄÁÌ£Ë ÏÔ ÖÅÌÁÅÍÏÇÏ: ÎÅÔ ×ÏÚÍÏÖÎÏÓÔÉ ÏÔËÌÀÞÉÔØ ×Ù×ÏÄ ÏÔÌÁÄÏÞÎÙÈ ÓÏÏÂÝÅÎÉÊ ÉÎÔÅÒÐÒÅÔÁÔÏÒÁ É ÓÇÅÎÅÒÉÒÏ×ÁÎÎÏÇÏ ÁÓÓÅÍÂÌÅÒÎÏÇÏ ËÏÄÁ.
óÁÊÔ: http://www.kbasic.org
üÔÏÔ ÏÂÚÏÒ ÉÎÔÅÒÐÒÅÔÁÔÏÒÏ× É ËÏÍÐÉÌÑÔÏÒÏ× BASIC, ÄÁ£Ô ÎÁÍ ÎÅËÏÔÏÒÕÀ ÉÎÆÏÒÍÁÃÉÀ.
÷ ÐÅÒ×ÕÀ ÏÞÅÒÅÄØ, ÎÁ ÕÄÉ×ÌÅÎÉÅ, ÜÔÏÔ ÓÔÏÌØ ÄÉÓËÒÅÄÉÔÉÒÏ×ÁÎÎÙÊ ÑÚÙË
×Ó£ ÅÝ£ ÖÉ×, ÄÁÖÅ ÎÁ Unix ÓÉÓÔÅÍÁÈ, ÇÄÅ ÅÇÏ ÐÏÌÅÚÎÏÓÔØ ×ÅÓØÍÁ ÓÏÍÎÉÔÅÌØÎÁ,
ÔÁË ËÁË ÅÓÔØ ÍÎÏÇÏ ÁÌØÔÅÒÎÁÔÉ× (PERL, python, Tcl/Tk, php....), ÔÁËÖÅ
ÒÁÂÏÔÁÀÝÉÈ × ÒÅÖÉÍÅ ÉÎÔÅÒÐÒÅÔÁÃÉÉ.
õÄÉ×ÉÔÅÌØÎÏ, ËÁËÕÀ ÁËÔÉ×ÎÏÓÔØ ÒÁÚÒÁÂÏÔÞÉËÏ× Ó×ÏÂÏÄÎÏ ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÏÇÏ ðï
×ÙÚÙ×ÁÅÔ ÜÔÏÔ ÑÚÙË.
þÉÓÌÏ ÐÒÏÅËÔÏ× ÄÏÓÔÁÔÏÞÎÏ ×ÅÌÉËÏ, É ×ÓÅ ÏÎÉ ×ÅÓØÍÁ ÁËÔÉ×ÎÙ.
÷ÏÚÍÏÖÎÏ ×ÙÓÏË ÓÐÒÏÓ, ÞÔÏ ÓÐÏÓÏÂÓÔ×ÕÅÔ ÒÁÚ×ÉÔÉÀ Ó×ÏÂÏÄÎÏÇÏ ðï, ÔÅÍ ÓÁÍÙÍ
ÐÒÉ×ÌÅËÁÑ BASIC ÐÒÏÇÒÁÍÍÉÓÔÏ×.
÷ Windows ÓÉÓÔÅÍÁÈ, Visual Basic ÛÉÒÏËÏ ÒÁÓÐÒÏÓÔÒÁΣΠÉÚ-ÚÁ Ó×ÏÅÊ ÉÎÔÅÇÒÉÒÏ×ÁÎÎÏÓÔÉ
× ÓÁÍÕ ÓÉÓÔÅÍÕ, ASP É ÒÁÚÌÉÞÎÙÅ ÐÒÉÌÏÖÅÎÉÑ. ïÄÎÁËÏ, ÓÔÏÉÔ ÚÁÍÅÔÉÔØ, ÞÔÏ ÂÏÌØÛÁÑ
ÞÁÓÔØ ÒÁÓÓÍÏÔÒÅÎÎÙÈ ÎÁÍÉ BASIC ÒÁÂÏÔÁÅÔ ÎÁ ÏÂÅÉÈ ÐÌÁÔÆÏÒÍÁÈ,
Á ÉÎÏÇÄÁ É ÎÅËÏÔÏÒÙÈ ÄÒÕÇÉÈ.
äÁÌÅÅ, BASIC ×Ó£ ÅÝ£ ÉÍÅÅÔ ÉÚßÑÎÙ. îÅÄÏÓÔÁÔÏÞÎÁÑ ÓÔÁÎÄÁÒÔÉÚÁÃÉÑ
ÐÒÉ×ÏÄÉÔ Ë ÐÏÑ×ÌÅÎÉÀ ÂÏÌØÛÏÇÏ ÞÉÓÌÁ ×ÅÒÓÉÊ, × ÏÓÎÏ×ÎÏÍ ÎÅÓÏ×ÍÅÓÔÉÍÙÈ
ÍÅÖÄÕ ÓÏÂÏÊ. öÅÌÁÎÉÅ ÎÅËÏÔÏÒÙÈ ÐÒÏÅËÔÏ×, ÔÁËÉÈ ËÁË Gnome BASIC É KBasic,
ÐÏÄÄÅÒÖÉ×ÁÔØ Visual Basic, ÓÔÁ×ÛÉÊ ÓÔÁÎÄÁÒÔÏÍ ÄÅ ÆÁËÔÏ, ÂÙÌÏ ÂÙ ÈÏÒÏÛÅÊ ÉÄÅÅÊ,
ÅÓÌÉ ÂÙ VB ÂÙÌ ÂÅÓÐÌÁÔÎÙÍ, ÞÔÏ ÏÞÅ×ÉÄÎÏ ÎÅ ÔÁË. íÏÎÏÐÏÌÉÚÁÃÉÑ × ÄÁÎÎÏÍ ÓÌÕÞÁÅ
ÂÙÌÁ ÂÙ ÂÏÌÅÅ ÐÏÄÈÏÄÑÝÅÊ...
þÔÏ ËÁÓÁÅÔÓÑ ÒÁÚÒÁÂÏÔÞÉËÏ× ÐÒÏÇÒÁÍÍ ÎÁ BASIC: Õ ÎÉÈ ÅÓÔØ ×ÙÂÏÒ, ÈÏÔØ
É ÎÅÂÏÌØÛÏÊ. ÷ ËÁÞÅÓÔ×Å IDE, HBasic ×ÙÇÌÑÄÉÔ ÍÎÏÇÏÏÂÅÝÁÀÝÅ. îÁÉÂÏÌÅÅ
ÚÁËÏÎÞÅÎÎÙÍ, ÎÁ ÓÅÇÏÄÎÑÛÎÉÊ ÄÅÎØ, ×ÙÇÌÑÄÉÔ XBasic. ïÄÎÁËÏ smallbasic
É yabasic ÄÁÀÔ ×ÏÚÍÏÖÎÏÓÔØ ÔÅÍ, ËÔÏ ÔÏÌØËÏ ÞÔÏ ÐÅÒÅÛ£Ì ÎÁ Unix, ÐÉÓÁÔØ
ÓËÒÉÐÔÙ É CGI, ÎÅ ÚÁÄÕÍÙ×ÁÑÓØ Ï ×ÙÂÏÒÅ ÉÚ ÂÏÌØÛÏÇÏ ÞÉÓÌÁ ÐÒÅÄÌÏÖÅÎÉÊ,
ÐÒÅÄÏÓÔÁ×ÌÑÅÍÙÈ ÜÔÏÊ ÓÉÓÔÅÍÏÊ. ôÁËÖÅ ÅÓÔØ GLBCC, ÐÏÚ×ÏÌÑÀÝÉÊ ÐÏÍÉÍÏ ×ÓÅÇÏ
ËÏÍÐÉÌÉÒÏ×ÁÔØ ÐÒÏÇÒÁÍÍÙ ×ÅÌÉËÉÍ GCC. îÏ ÏÔÓÕÔÓÔ×ÉÅ Õ ÎÅÇÏ IDE, É ÐÏÜÔÏÍÕ
ÐÒÏÓÔÏÇÏ ×
ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÏÔÌÁÄÞÉËÁ, ÄÅÌÁÅÔ ÓÌÏÖÎÙÍ ÒÁÚÒÁÂÏÔËÕ É ÐÏÄÄÅÒÖÁÎÉÅ ÂÏÌØÛÉÈ
ÐÒÏÇÒÁÍÍ. îÁËÏÎÅÃ, wx-Basic ÎÅ ÏÔÎÏÓÉÔÓÑ ÎÉ Ë ËÁËÏÊ ËÁÔÅÇÏÒÉÉ,
ÎÏ ÏÂÌÁÄÁÅÔ ÎÅËÏÔÏÒÙÍÉ ÄÏÓÔÏÉÎÓÔ×ÁÍÉ, ÔÁËÉÍÉ ËÁË ×ÏÚÍÏÖÎÏÓÔØ ÓÏÚÄÁÎÉÑ
ÇÒÁÆÉÞÅÓËÏÇÏ ÉÎÔÅÒÆÅÊÓÁ.
èÏÒÏÛÁÑ ÓÔÏÒÏÎÁ ÜÔÉÈ BASIC, ÜÔÏ ÐÒÏÓÔÏÔÁ ÐÅÒÅÎÏÓÁ ÐÒÏÇÒÁÍÍ
Ó ÏÄÎÏÊ ÐÌÁÔÆÏÒÍÙ ÎÁ ÄÒÕÇÕÀ, ÂÅÚ ÐÅÒÅËÏÍÐÉÌÑÃÉÉ, ÔÁË ËÁË ÂÏÌØÛÁÑ ÞÁÓÔØ
ÐÒÅÄÓÔÁ×ÌÅÎÎÙÈ ×ÅÒÓÉÊ ÄÏÓÔÕÐÎÁ É ÄÌÑ Win32 É ÄÌÑ Unix.
ôÁËÉÍ ÏÂÒÁÚÏÍ ÐÅÒÅÄ ÒÁÚÒÁÂÏÔÞÉËÁÍÉ ÓÔÏÉÔ ÎÅÐÒÏÓÔÏÊ ×ÏÐÒÏÓ: ×ÙÂÒÁÔØ ÐÒÁ×ÉÌØÎÏÅ
ÓÒÅÄÓÔ×Ï ÄÌÑ Ó×ÏÉÈ ÃÅÌÅÊ.
|
Webpages maintained by the LinuxFocus Editor team
© John Perr, FDL LinuxFocus.org |
Translation information:
|
2003-01-17, generated by lfparser version 2.31