>moria.de >Michael's homepage >Computing >bas

Bas 2.5

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.

If you find any bugs or if you miss features, you are welcome to report so and I will look into it. Please use "make check" after compiling bas to run a couple regression tests.

The source is available as a >GNU zipped tape archive.

If you are interested in other free BASIC interpreters and compilers, then check >abstracts about a variety of them.