Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Bas is an interpreter for the classic dialect of the programming language BASIC extended for use with the "Little-Wire - minimal AVR programmer and more"
C Shell Visual Basic
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
test
.gitignore
AUTHORS
COPYING
INSTALL
Makefile.in
NEWS
README
auto.c
auto.h
autotypes.h
bas.1.in
bas.c
bas.h
bas.pdf
bas.pot
config.guess
config.h.in
config.sub
configure
configure.in
de.po
error.h
fs.c
fs.h
getopt.c
getopt.h
getopt1.c
global.c
global.h
install-sh
littleWire.c
littleWire.h
littleWire_servo.c
littleWire_servo.h
littleWire_util.c
littleWire_util.h
main.c
opendevice.c
opendevice.h
program.c
program.h
programtypes.h
statement.c
statement.h
str.c
str.h
token.h
token.l
value.c
value.h
var.c
var.h

README

Bas is an interpreter for the classic dialect of the programming language
BASIC.  It is pretty compatible to typical BASIC interpreters of the 1980s,
unlike some other UNIX BASIC interpreters, that implement a different
syntax, breaking compatibility to existing programs.  Bas offers many ANSI
BASIC statements for structured programming, such as procedures, local
variables and various loop types.  Further there are matrix operations,
automatic LIST indentation and many statements and functions found in
specific classic dialects.  Line numbers are not required.

The interpreter tokenises the source and resolves references to variables
and jump targets before running the program.  This compilation pass
increases efficiency and catches syntax errors, type errors and references
to variables that are never initialised.  Bas is written in ANSI C for
UNIX systems.

Please do "make check" after compiling bas to run a couple regression
tests.

This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
Something went wrong with that request. Please try again.