在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):hoelzro/lua-repl开源软件地址(OpenSource Url):https://github.com/hoelzro/lua-repl开源编程语言(OpenSource Language):Lua 99.7%开源软件介绍(OpenSource Introduction):REPL.lua - a reusable Lua REPL written in Lua, and an alternative to /usr/bin/luaThis project has two uses:
Many software projects have made the choice to embed Lua in their projects to allow their users some extra flexibility. Some of these projects would also like to provide a Lua REPL in their programs for debugging or rapid development. Most Lua programmers are familiar with the standalone Lua interpreter as a Lua REPL; however, it is bound to the command line. Until now, Lua programmers would have to implement their own REPL from scratch if they wanted to include one in their programs. This project aims to provide a REPL implemented in pure Lua that almost any project can make use of. This library also includes an example application (rep.lua), which serves as an alternative
to the standalone interpreter included with Lua. If the lua-linenoise library is installed,
it uses linenoise for history and tab completion; otherwise, it tries to use rlwrap for
basic line editing. If you would like the arrow keys to work as expected rather than printing
things like Project Goals
Building
CompatibilityThe current version of the software runs on Lua 5.1, LuaJIT ?.? etc. A port to Lua 5.2 is envisaged, but is not at this stage a priority. Since it is written purely in Lua, it should work on any platform that has one of those versions of Lua installed. XXX Check which version of LuaJIT this works with XXX Check that it works with other Lua interpreters InstallationYou can install lua-repl via LuaRocks:
You can also install it by hand by copying the Recommended packages
Features
Backwards Compatibility ChangesRemoval of default plugins in 0.8Lua REPL 0.8 breaks backwards compatability by disabling the loading of the
default plugins (currently if repl.VERSION >= 0.8 then
-- default plugins
repl:loadplugin 'linenoise'
repl:loadplugin 'history'
repl:loadplugin 'completion'
repl:loadplugin 'autoreturn'
end
-- suppress warning message
repl.quiet_default_plugins = true As mentioned in the code snippet, |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论