nuttx-apps/interpreters/bas
Xiang Xiao 5720d72b71 apps: Fix the nightly build warning
src/cwindowfactory.cxx: In member function 'void Twm4Nx::CWindowFactory::redrawIcons(const nxgl_rect_s*)':
src/cwindowfactory.cxx:461:38: warning: 'iconPos.nxgl_point_s::y' may be used uninitialized in this function [-Wmaybe-uninitialized]
  461 |           iconBounds.pt2.y = iconPos.y + iconSize.h - 1;
      |                              ~~~~~~~~^
src/cwindowfactory.cxx:460:38: warning: 'iconPos.nxgl_point_s::x' may be used uninitialized in this function [-Wmaybe-uninitialized]
  460 |           iconBounds.pt2.x = iconPos.x + iconSize.w - 1;
      |                              ~~~~~~~~^

nsh_netcmds.c:424:20: warning: 'nsh_addrconv' defined but not used [-Wunused-function]
 static inline bool nsh_addrconv(FAR const char *hwstr,
                    ^
nsh_netcmds.c:446:20: warning: 'nsh_sethwaddr' defined but not used [-Wunused-function]
 static inline void nsh_sethwaddr(FAR const char *ifname,
                    ^

nsh_envcmds.c:94:21: warning: 'nsh_getdirpath' defined but not used [-Wunused-function]
 static inline char *nsh_getdirpath(FAR struct nsh_vtbl_s *vtbl,
                     ^

In file included from bas.c:84:0:
bas.c: In function 'bas_interpreter':
bas_error.h:110:37: warning: left-hand operand of comma expression has no effect [-Wunused-value]
 #define NOSUCHLINE         STATIC+40, _("No such line")
                                     ^
bas.c:2425:52: note: in expansion of macro 'NOSUCHLINE'
                           FS_putChars(STDCHANNEL, (NOSUCHLINE));
                                                    ^~~~~~~~~~
bas_fs.c:107:22: warning: 'g_vt100_colormap' defined but not used [-Wunused-const-variable=]
 static const uint8_t g_vt100_colormap[8] =
                      ^~~~~~~~~~~~~~~~
<stdout>:4048:16: warning: 'input' defined but not used [-Wunused-function]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I62610b4c90e67637250cbd0107c2935c8abc542f
2020-04-13 08:32:42 -06:00
..
.gitignore Revert "Don't generate .depend anymore" 2020-03-22 23:09:40 -05:00
bas_auto.c Fix a typo introduced with the cppcheck fixes 2014-11-25 15:43:38 -06:00
bas_auto.h Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06:00
bas_autotypes.h Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06:00
bas_error.h BAS: Editor and shell commands are now configurable 2014-11-24 08:41:04 -06:00
bas_fs.c apps: Fix the nightly build warning 2020-04-13 08:32:42 -06:00
bas_fs.h Run codespell -w with the latest dictonary again 2020-02-23 07:10:14 -06:00
bas_global.c Run codespell -w against all files 2020-02-22 14:41:36 -06:00
bas_global.h Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06:00
bas_main.c Run codespell -w with the latest dictonary again 2020-02-23 07:10:14 -06:00
bas_program.c Reserver the name 'err' for other purposes 2016-06-11 14:49:55 -06:00
bas_program.h Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06:00
bas_programtypes.h Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06:00
bas_statement.c strcasecmp, strncasecmp, bzero, bcmp, and bcopy should be defined in strings.h, not string.h. bzero, bcmp, and bcopy are legacy functions; the contemporary counterparts should be used instead. 2017-02-16 15:58:15 -06:00
bas_statement.h Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06:00
bas_str.c Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06:00
bas_str.h Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06:00
bas_token.c apps: Fix the nightly build warning 2020-04-13 08:32:42 -06:00
bas_token.h Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06:00
bas_token.l Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00
bas_value.c Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06:00
bas_value.h Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06:00
bas_var.c Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06:00
bas_var.h Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06:00
bas_vt100.c Add missing function names in function headers. 2018-08-13 15:52:59 -06:00
bas_vt100.h Add missing function names in function headers. 2018-08-13 15:52:59 -06:00
bas.c apps: Fix the nightly build warning 2020-04-13 08:32:42 -06:00
bas.h Rename all C files in apps/interpreters/bas to begin with bas_ in order to avoid future name collisions in libapps.a 2014-11-11 12:34:00 -06: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: This reverts part of commit cf0365ea9. It restores 'conditional' inclusion of TOPDIR/Make.defs. Otherwise all make targets fail if the board has not been configured. That is okay most of the time, but not for things like clean and distclean which should not depend on being configured. 2019-10-15 09:25:48 +08:00
README.txt BAS: Rename examples/bas to examples/bastest. Hook into build and configuration system. Finish ROMFS logic 2014-11-07 15:03:03 -06:00

README
======

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

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