SmallBASIC
Stable release | |
---|---|
Implementation language | GPL 3 |
Filename extensions | .bas |
Website | smallbasic.github.io |
SmallBASIC is a
Description
The dialect is described by the authors as a second generation BASIC, and has a lot in common with QBasic. 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
The "Small" prefix in the name SmallBASIC reflects the project's original intention of being used with the Palm, a small hand-held device. SmallBASIC was designed for portability, and is written in C 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 by
History
SmallBASIC was designed to run on minimal hardware. One of the primary platforms supported was
Platforms
SmallBASIC is available for all
Syntax
The syntax of SmallBASIC has a lot in common with QBasic. Line numbers are not required, and statements are terminated by newlines. Multiple statements may be written on a single line by separating each statement with a colon (:)
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 file
I.SHOW(100,100) 'shows the image on screen at the coordinates 100,100
Loadable modules
External modules can be written in
Reception
- 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
References
- ^ a b "Browse Files for SmallBASIC". 11 May 2023. Retrieved 28 May 2023.
- ^ a b c "About SmallBASIC". ASCII-World. 22 February 1999. Archived from the original on 12 November 2007. Retrieved 19 January 2011.
- ^ a b c PalmOS Hosted Programming Languages: Using the Palm as a Development Environment
- ^ Freshmeat.net: Editing text on PalmOS using SmallBASIC.
- ^ "SourceForge.net Repository - Unix". Smallbasic.svn.sourceforge.net. Retrieved 2011-01-22.
- ^ "SourceForge.net Repository - DOS-DJGPP". Smallbasic.svn.sourceforge.net. Retrieved 2011-01-22.
- ^ "SourceForge.net Repository - WIN32". Smallbasic.svn.sourceforge.net. Retrieved 2011-01-22.
- ^ ISBN 0-07-140685-9. Retrieved 19 January 2011.
SmallBASIC.
- ^ "SourceForge.net Repository - EBM". Smallbasic.svn.sourceforge.net. Retrieved 2011-01-22.
- ^ "Sigwin/MinG". Smallbasic.svn.sourceforge.net. Retrieved 2011-01-22.
- ^ "SourceForge.net Repository - Helio". Smallbasic.svn.sourceforge.net. Retrieved 2011-01-22.
- ^ "SourceForge.net Repository - Android". Smallbasic.svn.sourceforge.net. Retrieved 2011-01-22.
- ^ "SmallBASIC - N770 at". Sourceforge.net. Retrieved 2011-01-22.
- ^ "SmallBASIC plugins". GitHub. Retrieved 22 March 2022.
- ^ "SmallBASIC Home Page". Retrieved 22 March 2022.
- ^ "SmallBASIC PiGPIO Home Page". Retrieved 22 March 2022.
- ^ McPherson, James (4 June 2001). "Development in the palm of your hand, part 2". Articles.techrepublic.com.com. Archived from the original on 4 September 2012. Retrieved 19 January 2011.