nuttx-apps/interpreters
YAMAMOTO Takashi 73f27b7cae toywasm: regen for v33
```
REF=e03d1f61d3f3163da76b33c4c770dbf0d2024324 ./regen.sh
```
2023-08-23 03:02:12 +08:00
..
bas Change all sizeof(arr)/sizeof(arr[0]) to nitems 2023-08-17 22:51:51 +03:00
duktape Makefile: replace INCDIR to INCDIR_PREFIX 2022-11-10 02:38:58 +08:00
ficl apps/interpreters/ficl/Make.defs: Add missing Apache Foundation copyright header 2023-03-08 13:50:23 -03:00
lua lua: download tarball from github release tag 2023-03-21 20:38:29 -03:00
luajit interpreters/luajit: use section name for custom heap 2023-08-09 09:49:23 +02:00
luamodules Fix Error: luv/src/constants.c:674:11: error: implicit declaration of function 'getprotobyname' 2023-08-12 15:58:11 +03:00
minibasic Replace all strncpy with strlcpy 2023-05-08 21:35:16 +03:00
quickjs Fix Kconfig style 2023-08-11 22:13:17 +08:00
toywasm toywasm: regen for v33 2023-08-23 03:02:12 +08:00
wamr Fix Kconfig style 2023-08-11 22:13:17 +08:00
wasm3 Fix Kconfig style 2023-08-11 22:13:17 +08:00
.gitignore
CMakeLists.txt add initial cmake build system 2023-07-08 13:52:02 +08: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.