lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


luaprompt is a simple library that provides a Lua command prompt
that can be embedded in a host application. It's meant for
applications that use Lua as a configuration or interface
language and can therefore benefit from an interactive prompt for
debugging or regular use.

Also included is luap, an interactive interpreter which tries to
mimic the standard lua interpreter as much as possible while
providing the extra set of features described below. Some
tweaking of the makefile may be required to get it to build.

luaprompt features:

    * Readline-based input with history and completion: In
      particular all keywords, global variables, table
      accesses (with string or integer keys), filenames as
      well as most module names  can be completed in
      addition to readline's standard file completion.

    * Persistent command history (retained across sessions).

    * Proper value pretty-printing for interactive use.

    * Color highlighting of error messages and variable printouts.

This release includes a few completion-related improvements:

* The auto-completer now completes module names based on
package.preload, pacakge.path and package.cpath.  Module names are
either completed within strings for use with require or as a
global variable, as if the module was already loaded.  In the
latter case the tab completer also loads the module once it's
fully completed and exports it as a global variable so that
further completions apply to the module's table.

* Completion can be disabled individually for certain kinds of
symbols via compile-time switches.

You can find more information either at luaprompt's homepage at

http://www.nongnu.org/techne/lua/luaprompt/

or its project page on GitHub at

https://github.com/dpapavas/luaprompt

Source download links can be found at

https://github.com/dpapavas/luaprompt/releases

Dimitris