Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

SmallBASIC

From Wikipedia, the free encyclopedia
BASIC programming language dialect
This article is about the GPL programming language. For the Microsoft programming language, seeMicrosoft Small Basic.
icon
This article'slead sectionmay be too short to adequatelysummarize the key points. Please consider expanding the lead toprovide an accessible overview of all important aspects of the article.(February 2026)
SmallBASIC
Stable release
12.27 (Windows/Linux/Android)[1] / April 26, 2024; 21 months ago (2024-04-26)[1]
Implementation languageBASIC
LicenseGPL 3
Filename extensions.bas
Websitesmallbasic.github.io

SmallBASIC is aBASICprogramming languagedialect withinterpreters released asfree software under theGNU General Public License version 3 forWindows,Linux andAndroid.

Description

[edit]

The dialect is described by the authors as a second generation BASIC, and has a lot in common withQBasic. SmallBASIC includes trigonometric, matrices and algebra functions, a built in IDE, a string library, system, sound, and graphic commands along with structured programming syntax.

Intended application

[edit]

The "Small" prefix in the name SmallBASIC reflects the project's original intention of being used with thePalm, a small hand-held device. SmallBASIC was designed for portability, and is written inC with separate modules containing any code that is unique to a particular platform.[2][3]

SmallBASIC is intended to support the same sorts of applications supported byGW-BASIC andQBasic on theIBM PC, with support for drawinggeometric primitives, playing sounds,String Manipulation, and displaying text in various fonts. SmallBASIC also adds functions such as "File Save", "Save As", "Close File", and "Open File" to the Palm, a device with no native filesystem. SmallBASIC is also intended as a tool for mathematics, with built-in functions forUnit conversion,Algebra,Matrix math,Trigonometry,Statistics, and for two and three dimensionalEquation Graphing.[2][3]

History

[edit]

SmallBASIC was designed to run on minimal hardware. One of the primary platforms supported wasPalm OS,[4] where memory, CPU cycles, and screen space were limited. The SmallBASIC graphics engine could use ASCII graphics (similar toASCII art) and therefore ran many programs on pure text devices. SmallBASIC runs even on Palm OS wristwatches made byFossil, Inc.

Platforms

[edit]

SmallBASIC is available for allPOSIX-Compliant operating systems (includingLinux,BSD, andUNIX),[5]MS-DOS/DJGPP,[6]Win32,[7]FLTK,[8] VTOS,[8]Franklin eBookMan,[9]Cygwin/MingW,[10] Helio/VT-OS,[11]Android,[12] theNokia N770 Internet Tablet.,[13] and on any system that supportsSDL,FLTK,SVGALib,Linux framebuffer, orWindows GUI.

Syntax

[edit]

The syntax of SmallBASIC has a lot in common withQBasic.Line numbers are not required, and statements are terminated bynewlines. Multiple statements may be written on a single line by separating each statement with acolon (:)

An example"Hello, World!" program is:

PRINT"Hello, World!"

An example of how SmallBASIC allows to load an image file and display the image:

I=IMAGE("image_name.png")'Loads a png fileI.SHOW(100,100)'shows the image on screen at the coordinates 100,100

Loadable modules

[edit]

External modules can be written inC to extend the functionality provided by SmallBASIC.[14] Since version 12.20 modules forRaylib,Nuklear andWebSockets are included in the release.[15] Additionally a loadable module to access theGPIO connector of theRaspberry Pi exists.[16]

Reception

[edit]
  • Tech Republic calls it "an excellent tool to begin programming with."[17]
  • ASCII-World says "SmallBASIC is an excellent tool for mathematics"[2]
  • David Mertz, Ph.D. and Andrew Blais, Ph.D. of Gnosis Software say "SmallBASIC has one of the better development interfaces [we have] reviewed."[3]

See also

[edit]

References

[edit]
  1. ^ab"Browse Files for SmallBASIC". 26 April 2024. Retrieved23 May 2024.
  2. ^abc"About SmallBASIC". ASCII-World. 22 February 1999. Archived fromthe original on 12 November 2007. Retrieved19 January 2011.
  3. ^abcPalmOS Hosted Programming Languages: Using the Palm as a Development Environment
  4. ^Freshmeat.net: Editing text on PalmOS using SmallBASIC.
  5. ^"SourceForge.net Repository - Unix". Smallbasic.svn.sourceforge.net. Retrieved2011-01-22.
  6. ^"SourceForge.net Repository - DOS-DJGPP". Smallbasic.svn.sourceforge.net. Retrieved2011-01-22.
  7. ^"SourceForge.net Repository - WIN32". Smallbasic.svn.sourceforge.net. Retrieved2011-01-22.
  8. ^abGordon McComb (2002).Robot builder's sourcebook. McGraw-Hill Professional. p. 411.ISBN 0-07-140685-9. Retrieved19 January 2011.SmallBASIC.
  9. ^"SourceForge.net Repository - EBM". Smallbasic.svn.sourceforge.net. Retrieved2011-01-22.
  10. ^"Sigwin/MinG". Smallbasic.svn.sourceforge.net. Retrieved2011-01-22.
  11. ^"SourceForge.net Repository - Helio". Smallbasic.svn.sourceforge.net. Retrieved2011-01-22.
  12. ^"SourceForge.net Repository - Android". Smallbasic.svn.sourceforge.net. Retrieved2011-01-22.
  13. ^"SmallBASIC - N770 at". Sourceforge.net. Retrieved2011-01-22.
  14. ^"SmallBASIC plugins".GitHub. Retrieved22 March 2022.
  15. ^"SmallBASIC Home Page". Retrieved22 March 2022.
  16. ^"SmallBASIC PiGPIO Home Page". Retrieved22 March 2022.
  17. ^McPherson, James (4 June 2001)."Development in the palm of your hand, part 2". Articles.techrepublic.com.com. Archived fromthe original on 4 September 2012. Retrieved19 January 2011.

External links

[edit]
Dialects of theBASIC programming language (list)
Classic
Microsoft
Texas Instruments
Hewlett-Packard
Locomotive Software
Microcomputers
Minicomputers
Time-sharing computers
Other
Extenders
Procedure-
oriented
Proprietary
Free and
open source
Withobject
extensions
Proprietary
Free and
open source
RAD
designers
Proprietary
Free and
open source
Defunct
Retrieved from "https://en.wikipedia.org/w/index.php?title=SmallBASIC&oldid=1337216920"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp