nuttx-apps/interpreters
Xiang Xiao d1e46c2d3e compiler.h: Add _ between format|printf|syslog|scanf|strftime and like
align with other macro naming style

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-12-21 01:05:12 +02:00
..
bas compiler.h: Add _ between format|printf|syslog|scanf|strftime and like 2022-12-21 01:05:12 +02:00
duktape Makefile: replace INCDIR to INCDIR_PREFIX 2022-11-10 02:38:58 +08:00
ficl Remove the unnecessary "return;" at the end of function 2022-11-27 22:36:40 +01:00
lua Makefile: replace INCDIR to INCDIR_PREFIX 2022-11-10 02:38:58 +08:00
luamodules luamodules/luv: fix comile warning -Werror=int-to-pointer-cast 2022-12-12 18:06:53 +08:00
minibasic Remove the unnecessary "return;" at the end of function 2022-11-27 22:36:40 +01:00
quickjs Makefile: replace INCDIR to INCDIR_PREFIX 2022-11-10 02:38:58 +08:00
toywasm interpreters/toywasm/src/toywasm_config.c: add an empty section 2022-12-20 10:45:07 +08:00
wamr interpreters/wamr: New option to support spec test 2022-11-17 13:28:40 +08:00
wasm3 Makefile: replace INCDIR to INCDIR_PREFIX 2022-11-10 02:38:58 +08: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.