nuttx-apps/interpreters/bas
Huang Qi 7f67ee8c88 bas_fs.c: Fix nxstyle: Multiple data definitions
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2023-02-23 17:21:19 +08:00
..
bas_auto.c change strcpy to strlcpy 2023-02-22 23:09:55 +08:00
bas_auto.h interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
bas_autotypes.h interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
bas_error.h Add printflike to all printf like functions 2022-07-18 14:09:10 +03:00
bas_fs.c bas_fs.c: Fix nxstyle: Multiple data definitions 2023-02-23 17:21:19 +08:00
bas_fs.h interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
bas_global.c change strcpy to strlcpy 2023-02-22 23:09:55 +08:00
bas_global.h interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
bas_main.c interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
bas_program.c Fixes BAS list 'Error: Break at: end of program' error. 2021-11-04 13:48:57 -05:00
bas_program.h interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
bas_programtypes.h interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
bas_statement.c Add printflike to all printf like functions 2022-07-18 14:09:10 +03:00
bas_statement.h interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
bas_str.c interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
bas_str.h compiler.h: Add _ between format|printf|syslog|scanf|strftime and like 2022-12-21 01:05:12 +02:00
bas_token.c apps: Fix the nightly build warning 2020-04-13 08:32:42 -06:00
bas_token.h interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
bas_token.l Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00
bas_value.c change strcpy to strlcpy 2023-02-22 23:09:55 +08:00
bas_value.h compiler.h: Add _ between format|printf|syslog|scanf|strftime and like 2022-12-21 01:05:12 +02:00
bas_var.c interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
bas_var.h interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
bas_vt100.c interpreters: bas: update licenses to Apache 2021-06-09 10:31:54 -03:00
bas_vt100.h interpreters: bas: update licenses to Apache 2021-06-09 10:31:54 -03:00
bas.c interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
bas.h interpreters: bas: revert to original license 2021-06-09 10:31:54 -03:00
Kconfig Remove support for CONFIG_FS_WRITABLE and CONFIG_FS_READABLE 2020-03-22 08:23:28 -05:00
Make.defs Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00
Makefile Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
README.md Rewritten READMEs to Markdown 2020-07-25 01:01:51 -07:00

Interpreters / bas Bas BASIC

Introduction

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.

License

BAS 2.4 is released as part of NuttX under the standard 3-clause BSD license use by all components of NuttX. This is not incompatible with the original BAS 2.4 licensing

Copyright (c) 1999-2014 Michael Haardt

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.

Bas 2.4 Release Notes

Changes compared to version 2.3

  • Matrix inversion on integer arrays with option base 1 fixed.
  • PRINT USING behaviour for ! fixed.
  • PRINT, separator should advance to the next zone, even if the current position is at the start of a zone.
  • Added ip(), frac(), fp(), log10(), log2(), min() and max().
  • Fixed NEXT checking the variable case sensitive.
  • Use terminfo capability cr to make use of its padding.
  • LET segmentation fault fixed.
  • PRINT now uses print items.
  • -r for restricted operation.
  • MAT INPUT does not drop excess arguments, but uses them for the next row.
  • License changed to MIT.