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: dmsareaplot.bas

'#sec:Main
CONST pausing = 1
CONST plotsize = 135 + 5 * (NOT pausing)
REPEAT
  INPUT "Dataset";ds$
  IF LEN(ds$) = 0 THEN
    EXIT LOOP
  ENDIF
  IF EXIST(ds$) THEN
    fh = FREEFILE
    OPEN ds$ FOR INPUT AS #fh
    INPUT #fh;t,type
    ERASE n,e,b$,l
    DIM n(0 TO t)
    DIM e(0 TO t)
    DIM b$(0 TO t)
    DIM l(0 TO t)
    n(t) = 0
    e(t) = 0
    INPUT "" + type + " - confirm";type
    closed = LCASE(LEFT(type,1))="c"

GNU

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