开发者

Lua: looking for an open source graphical interpreter / console / interactive shell [closed]

开发者 https://www.devze.com 2023-03-27 18:50 出处:网络
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 8 years ago.

Improve this question

I'm looking for an open-source Lua interpreter (sometimes called a lua console or a lua shell) with the following features:

- Ability to write lua commands and see results

- Simple graphic UI - Auto-completion of global objects, class methods

- Ability to watch the value of global variables, packages, etc.

- If it comes integrated with script file edito开发者_如何学Pythonr or lua debugger it's even better...

Any ideas? Thanks!


ZeroBrane Studio provides a Lua console (both local to execute commands in the IDE and remote to execute them in the context of the client application). You can also modify variables in the application and get values pretty printed (including complex hierarchical data). The IDE does come with the debugger, Stack and Watch views and auto-completion.

The code for the console is available on GitHub, but for remote execution it mostly relies on capabilities provided by the debugger (MobDebug). If you want to integrate something like this in your application, then the source file I referenced may be a good starting point.


The usual contenders are:

  • ZeroBrane Studio
  • Decoda (now Open Source)

You can also go with IDE plugins:

  • for IntelliJ
  • Koneki LDT for Eclipse


The Lua plugin for IntelliJ that I developed contains 2 interpreter UI's in addition to a host of other features.

Here is a screencast of one of the interpreter UI's: http://www.screencast.com/t/0f262SeCKmqT

The other is in the image below.

Lua for IntelliJ IDEA. https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Home

Features:

  • Introduce Variable Refactoring (Experimental)
  • Debugger (Experimental)
  • Modules support (Experimental)
  • LuaDoc Highlighting and Folding
  • Lua SDK REPL Console
  • Basic Completions
  • Quick Documentation with Multiple documentation providers
  • Resolving Globals in project and libraries
  • Custom API Support including custom function signatures
  • Function Information via Quickhelp
  • Lua Standard Library Information via Quickhelp (ctrl-Q)
  • Hilighting of Upvalues and Fields
  • Goto Symbol
  • Safe Delete
  • Rename Identifier
  • JavaHelp For Lua 5.1
  • Execution in the Kahlua interpreter
  • Go to definition
  • find usages
  • Code formatting
  • Keyword completion
  • 1 quickfix
  • 6 code intentions
  • 11 code inspections
  • Highlighting global vs local variables
  • Script execution and run configurations
  • Kahlua interpreter window for interactive script execution (repl)
  • Comes with an embedded Lua compiler written in Java (Kahlua)
  • Structure view
  • Syntax checking
  • Syntax highlighting - including proper handling of extended syntax comments and quotes
  • Customizable highlighting colors
  • Code folding for code blocks and comments
  • Brace Matching for do blocks, long strings and comments, and (, { , [
  • Minor feature: comment in/out.

Lua: looking for an open source graphical interpreter / console / interactive shell [closed]


You haven't specified a platform so I'll make some suggestions that are focused on Windows and leave other platforms and/or platform portability for other answers.

First, start with the Lua for Windows bundled installation. That gives you the Lua interpreter along with an assortment of useful and interesting modules that are all built consistently and known to work on Windows. It also gives you the SciTE editor which has code coloring for Lua, some context help for library functions, and an integrated debugger that can debug Lua programs out of the box.

There has been work on an Eclipse plugin for Lua to add syntax coloring. Debugging support is certainly possible, but I don't know its current status.

There are Lua coloring plugins for both GNU Emacs and vim. Recent releases of vim are scriptable in Lua as well (possibly after configuring a plugin).


There is also this improvement to the standard lua shell: https://github.com/ilua/ilua

0

精彩评论

暂无评论...
验证码 换一张
取 消