leftibot
532b6c2b57
Fix #8695 : [LANGUAGE REQUEST]: Add lua as a supported language ( #8696 )
...
Automated fix by @leftibot.
### What changed
> Fix #8695 : add Lua as a supported language
> Add support for Lua via the reference PUC-Rio interpreter. Disassembly
is
> produced by `luac -l -l -p`, which writes a verbose bytecode listing
to
> stdout that the LuaCompiler captures and writes to the output file.
The
> class exposes overridable hooks (`resolveLuacExe`,
`getDisassemblyArgs`)
> so alternative implementations such as LuaJIT can plug in a different
> bytecode dumper without rewriting the compiler. Production config
ships
> five Lua releases (5.1.5, 5.2.4, 5.3.6, 5.4.7, 5.5.0) covering the
> actively used minor versions.
### Files
```
etc/config/lua.amazon.properties | 27 ++++++
etc/config/lua.defaults.properties | 5 +
examples/lua/default.lua | 5 +
lib/compilers/_all.ts | 1 +
lib/compilers/lua.ts | 182 +++++++++++++++++++++++++++++++++++++
lib/languages.ts | 11 +++
test/lua-tests.ts | 138 ++++++++++++++++++++++++++++
types/languages.interfaces.ts | 1 +
8 files changed, 370 insertions(+)
```
Closes #8695
_Triggered by @lefticus._
---------
Co-authored-by: leftibot <leftibot@users.noreply.github.com >
Co-authored-by: Matt Godbolt <matt@godbolt.org >
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-03 22:45:23 -05:00
..
2026-06-03 22:45:23 -05:00
2025-02-02 17:54:31 +00:00
2025-07-28 10:34:46 -05:00
2024-09-07 14:36:43 +03:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2025-02-02 17:54:31 +00:00
2026-03-21 21:21:40 +01:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-02-08 14:23:56 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2025-02-02 17:54:31 +00:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2024-09-07 14:36:43 +03:00
2025-08-16 17:39:09 +03:00
2026-02-01 20:50:46 -06:00
2025-02-26 10:56:10 -06:00
2026-05-02 08:03:08 -05:00
2025-02-02 17:54:31 +00:00
2024-10-22 21:41:44 +03:00
2026-05-28 20:45:19 +03:00
2025-08-11 11:14:26 -05:00
2023-03-17 19:01:39 +01:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2026-02-01 20:50:46 -06:00
2026-06-03 22:16:57 -05:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2025-06-16 10:13:32 -05:00
2026-04-09 17:25:38 +03:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-05-10 09:15:36 -05:00
2024-04-16 21:26:53 +02:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2023-02-27 18:06:38 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2024-09-07 14:36:43 +03:00
2024-09-07 14:36:43 +03:00
2025-02-02 17:54:31 +00:00
2024-10-26 15:53:27 +03:00
2025-06-24 07:33:53 +03:00
2026-02-01 20:50:46 -06:00
2025-02-06 11:10:34 -06:00
2026-02-01 20:50:46 -06:00
2023-03-29 10:17:44 +02:00
2026-02-01 20:50:46 -06:00
2025-02-02 17:54:31 +00:00
2026-02-01 20:50:46 -06:00
2025-02-06 11:10:34 -06:00
2026-02-01 20:50:46 -06:00
2026-02-23 14:02:44 +01:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2025-02-02 17:54:31 +00:00
2025-09-12 14:23:49 -05:00
2024-10-26 15:53:27 +03:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2025-11-01 12:54:31 +02:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-06-02 12:19:29 -05:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-06-03 22:45:23 -05:00
2026-02-16 14:01:37 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2024-05-12 02:16:51 +03:00
2026-02-01 20:50:46 -06:00
2025-01-28 10:00:04 -06:00
2026-02-23 07:17:25 -06:00
2026-02-01 20:50:46 -06:00
2025-05-11 16:15:21 -05:00
2026-04-22 20:28:10 +02:00
2026-02-01 20:50:46 -06:00
2026-02-22 19:46:36 -06:00
2025-06-20 14:46:24 +02:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2025-12-15 19:53:32 -06:00
2026-02-01 20:50:46 -06:00
2025-02-18 17:23:17 -06:00
2026-02-01 20:50:46 -06:00
2025-06-11 07:11:57 +00:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2025-02-02 17:54:31 +00:00
2023-02-27 18:06:38 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2025-02-02 17:54:31 +00:00
2024-12-19 16:32:13 -06:00
2026-02-01 20:50:46 -06:00
2025-07-28 10:34:46 -05:00
2025-09-12 14:23:49 -05:00
2025-11-04 09:00:19 -06:00
2025-07-28 10:34:46 -05:00
2026-02-01 20:50:46 -06:00
2026-05-23 14:47:16 +03:00
2026-04-14 20:42:40 -05:00
2026-04-16 17:47:17 -04:00
2025-04-19 13:56:20 -05:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-06-01 21:46:34 -05:00
2025-02-02 17:54:31 +00:00
2024-10-27 15:28:38 +02:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2025-07-28 10:34:46 -05:00
2025-11-01 12:54:31 +02:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-02-09 19:27:57 +01:00
2026-02-01 20:50:46 -06:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2026-02-08 15:02:47 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2025-11-09 15:21:09 +02:00
2025-11-01 12:54:31 +02:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2025-11-09 15:21:09 +02:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00
2025-07-19 16:17:43 +03:00
2026-02-01 20:50:46 -06:00
2026-02-01 20:50:46 -06:00