SmallBASIC is a fast and easy to learn BASIC language interpreter ideal for everyday calculations, scripts and prototypes. SmallBASIC includes trigonometric, matrices and algebra functions, a built in IDE, a powerful string library, system, sound, and graphic commands along with structured programming syntax. SmallBASIC is licensed under the GPL.

Welcome to SmallBASIC

Featured sample program: dogstar5.bas

'100 CLS:Print Tab(16);CAT(3);"D O G    S T A R";CAT(0):?:?
   ? Tab(8);"BY LANCE MICKLUS 1979"
   ? Tab(9);"FOR THE TRS-80 MODEL I"
?:? Tab(10);CAT(3);"PORTED BY joeydoa";CAT(0)
?:? Tab(16);CAT(3);"PRESS ANY KEY";CAT(0):PAUSE
?:INPUT "Do you wish instructions";ans
if UPPER(left(ans,1))<>"Y" then goto START
?"DOG STAR ADVENTURE"
?"written by Lance Micklus"
?"(c)(p) copyright 1979-81 by Lance Micklus, Inc. Burlington, Vt, 05401 All righ

GNU

SmallBASIC version 0.10.5 has been released

SmallBASIC version 0.10.5 is now available for both Linux and Windows.

Please report any bugs you happen to find. Enjoy !

lakeshore_demo.bas


' A small water waving/flickering program
' For SB(fltk) 2 Jan 2009 , by Keijo Koskinen
' You can download lakeshore1.jpg from:
' http://users.csolve.net/~keiko/smallbasic/lakeshore1.jpg
' When lakeshore1.jpg appears to screen,
' ..right clic it and choose save as
' ..to your bas_home directory

' *** load image ***
'img= env("C:\sb_fltk_97\FLTK_0.9.7\Bas-Home")+"lakeshore1.jpg"
' or
img= env("Bas-Home")+"lakeshore1.jpg"
if (!exist(img)) then
?

sphere.bas


' A small 3D globe rotation program
' Converted to SB(fltk) 23,may 2006, from an old basic code
' by Keijo koskinen
' You can download sphere.gif from:
' http://users.csolve.net/~keiko/smallbasic/sphere.gif
' When sphere.gif appears to screen, ..right clic it and shoose save as ..to your bas_home directory

img= env("Bas_Home")+"sphere.gif"
if
(!exist(img)) then
? "Sphere.gif does not exist "
? "then we are rolling this text"
?

conrec-sb-v01.bas


' CONREC - A Contouring Routine
'
' by Paul Bourke, Byte, June 1987
' Homepage http://ozviz.wasp.uwa.edu.au/~pbourke/papers/conrec/
' (See webpage for details of the method.)
' Adapted for SmallBasic-v0.9.5 by Ted Clayton
'
' CONREC avoids the advanced math & heavy computation
' of more-formal contour-generation methods, by using
' a series of geometric tests within a local 'box'
' around & above each point in a data-grid.
' Each contour-segment is generated independently
' of other segments while scanning the grid
' raster-fashion.
Syndicate content