The SmallBASIC project aims to provide a full featured and easy to use scripting language suitable for non serious programming on any computing platform.

Welcome to SmallBASIC

Featured sample program: AI.bas

'AI.bas
''AI.bas
'' 16/09/2002
''Author:Robert Blennerhed
dim ctxt(1000) ''memory
dim btxt(1000) ''memory
antal=0
F=Freefile
rem test if memory.dat exist
if exist("memory.dat") then
goto 10
else
goto 20
fi
10 rem load memory
OPEN "memory.dat" FOR INPUT AS #F
INPUT #F, antal
for aa=1 to antal
input #F,ctxt(aa)
input #F,btxt(aa)
next aa
CLOSE #F
goto 15
''***
20 ?"HELP!I HAVE NO MEMORY!CHAT WITH ME":goto 30
15 rem
prin

GNU

virgin_happy_hour.bas

' The purpose of this program is check the Virgin Blue web site for lunch time happy hour specials.
'
' Installation instructions for windows users
'
' 1. Click the Download link below and save this file to c:\temp
'
' 2.

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.

SmallBASIC version 0.10.1 has been released

SmallBASIC version 0.10.1 for windows has been released.

This version includes the following features:
- Allows you to open multiple editor tabs.
- Drag and drop files from windows explorer into the File widget.
- Hide editor mode which (sort of) makes your program appear as a standalone application
- Updated online Help system integrated with this web site.
- Includes various language enhancements described in the previous article.

New features

SmallBASIC has a number of new features intended to broaden its appeal as a general purpose scripting language.

Local variable declaration and assignment

You can now declare and assign a local variable on the same line

local foo = "foo"

Program defined window geometry

The FLTK and SDL versions now allow the window geometry to be set from your program.

  option predef grmode 200x300

User defined structures

Syndicate content