diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-07 17:35:31 -0800 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-12-20 11:19:47 -0800 |
| commit | 2861324208e13846eb306f01b32448f94177cc3b (patch) | |
| tree | b47908336cb73f749fb4799dc5e877817ded4f0b /lldb/test/Shell/ScriptInterpreter/Lua | |
| parent | 2a42a5a2f4144cd99812ad0d230480f94a1d1c92 (diff) | |
| download | bcm5719-llvm-2861324208e13846eb306f01b32448f94177cc3b.tar.gz bcm5719-llvm-2861324208e13846eb306f01b32448f94177cc3b.zip | |
[lldb/Lua] Implement a Simple Lua Script Interpreter Prototype
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
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Lua')
| -rw-r--r-- | lldb/test/Shell/ScriptInterpreter/Lua/lua.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Lua/lua.test b/lldb/test/Shell/ScriptInterpreter/Lua/lua.test new file mode 100644 index 00000000000..70184edbab1 --- /dev/null +++ b/lldb/test/Shell/ScriptInterpreter/Lua/lua.test @@ -0,0 +1,3 @@ +# REQUIRES: lua +# RUN: %lldb --script-language lua -o 'script print(1000+100+10+1)' 2>&1 | FileCheck %s +# CHECK: 1111 |

