nuttx-apps/interpreters
yinshengkai cd1bc19bf9 quickjs: fix compile warning
optind is a global variable in getopt.h (a macro defined in stdlib.h in nuttx).
Here it is used as a variable, not a variable of getopt
2022-03-29 22:47:11 +08:00
..
bas Fixes BAS list 'Error: Break at: end of program' error. 2021-11-04 13:48:57 -05:00
duktape interpreters/duktape: Remove v from tar command 2022-02-20 15:53:27 +01:00
ficl Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
lua interpreters: lua: replace awk command with shell script 2022-03-24 00:18:28 +08:00
minibasic apps: remove space befone newline in logs 2021-12-27 20:52:08 -06:00
quickjs quickjs: fix compile warning 2022-03-29 22:47:11 +08:00
wamr apps/wamr: Add wamr memory Kconfig 2022-03-14 20:52:39 +08:00
wasm3 interpreters: fix relative path CI error 2021-06-16 09:03:06 -05:00
.gitignore Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00
Make.defs Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
Makefile Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
README.md interpreters: add Lua support 2022-03-21 13:49:42 +08:00

Interpreters

This apps/ directory is set aside to hold interpreters that may be incorporated into NuttX.

Ficl

This is DIY port of Ficl (the Forth Inspired Command Language). See http://ficl.sourceforge.net/. It is a DIY port because the Ficl source is not in that directory, only an environment and instructions that will let you build Ficl under NuttX. The rest is up to you.

Lua

Fetch and build a Lua interpreter. Versions 5.2 through 5.4 are supported. The lua command will be added to NSH. Lua can run a script for a given path, execute a string of code, or open a readline compatible REPL on the NSH console. The <lua.h> and <lauxlib.h> headers are available to start a new embedded interpreter or extend Lua with C modules. See the luamod_hello example for how to include a built-in module.

A math library is required to build. Enable the LIBM config or use a toolchain provided math library.

The following configs are recommended for a full featured Lua interpreter:

  • LIBC_FLOATINGPOINT
  • SYSTEM_READLINE

Mini Basic

The Mini Basic implementation at apps/interpreters derives from version 1.0 by Malcolm McLean, Leeds University, and was released under the Creative Commons Attibution license. I am not legal expert, but this license appears to be compatible with the NuttX BSD license see: https://creativecommons.org/licenses/. I, however, cannot take responsibility for any actions that you might take based on my understanding. Please use your own legal judgement.