nuttx-apps/interpreters/bas
2014-11-01 19:01:20 -06:00
..
test Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
.gitignore Add BAS 2.4 .gitignore 2014-10-29 09:38:40 -06:00
auto.c Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
auto.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
autotypes.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
bas.c A few baby steps toward getting closer to the coding standard 2014-11-01 18:06:28 -06:00
bas.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
config.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
error.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
fs.c More BAS 2.4 fixes 2014-10-27 15:37:19 -06:00
fs.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
global.c A few baby steps toward getting closer to the coding standard 2014-11-01 18:06:28 -06:00
global.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
INSTALL Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
Kconfig Fix some configuration dependencies, warnings, back up some previous changes that weren't really necessary 2014-10-27 18:41:09 -06:00
LICENSE Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
main.c A few baby steps toward getting closer to the coding standard 2014-11-01 18:06:28 -06:00
Makefile Remove duplicate getopt() in BAS 2014-11-01 17:16:15 -06:00
NEWS Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
program.c A few baby steps toward getting closer to the coding standard 2014-11-01 18:06:28 -06:00
program.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
programtypes.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
README Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
statement.c A few baby steps toward getting closer to the coding standard 2014-11-01 18:06:28 -06:00
statement.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
str.c Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
str.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
token.c A few baby steps toward getting closer to the coding standard 2014-11-01 18:06:28 -06:00
token.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
token.l Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
value.c Another BAS file is closer to the NuttX coding standard 2014-11-01 19:01:20 -06:00
value.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00
var.c Another file is close to the NuttX coding standard 2014-11-01 18:18:06 -06:00
var.h Port of BAS 2.4 to NuttX by Alan Carvalho de Assis 2014-10-27 07:53:12 -06:00

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.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.