summaryrefslogtreecommitdiff
path: root/lldb/test/Shell/ScriptInterpreter/Lua/lua.test
AgeCommit message (Collapse)Author
2021-07-09[lldb] Drop REQUIRES where redundant because of lit.local.cfgJonas Devlieghere
2020-09-15[lldb] Add -l/--language option to script commandJonas Devlieghere
Make it possible to run the script command with a different language than currently selected. $ ./bin/lldb -l python (lldb) script -l lua >>> io.stdout:write("Hello, World!\n") Hello, World! When passing the language option and a raw command, you need to separate the flag from the script code with --. $ ./bin/lldb -l python (lldb) script -l lua -- io.stdout:write("Hello, World!\n") Hello, World! Differential revision: https://reviews.llvm.org/D86996
2019-12-20[lldb/Lua] Implement a Simple Lua Script Interpreter PrototypeJonas Devlieghere
This implements a very elementary Lua script interpreter. It supports running a single command as well as running interactively. It uses editline if available. It's still missing a bunch of stuff though. Some things that I intentionally ingored for now are that I/O isn't properly hooked up (so every print goes to stdout) and the non-editline support which is not handling a bunch of corner cases. The latter is a matter of reusing existing code in the Python interpreter. Discussion on the mailing list: http://lists.llvm.org/pipermail/lldb-dev/2019-December/015812.html Differential revision: https://reviews.llvm.org/D71234