mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-03 17:11:30 -06:00
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>
33 lines
1.2 KiB
Properties
33 lines
1.2 KiB
Properties
compilers=&lua
|
|
defaultCompiler=lua550
|
|
|
|
group.lua.compilers=lua515:lua524:lua536:lua547:lua550
|
|
group.lua.isSemVer=true
|
|
group.lua.baseName=Lua
|
|
group.lua.groupName=Lua (PUC-Rio)
|
|
group.lua.compilerType=lua
|
|
group.lua.licenseLink=https://www.lua.org/license.html
|
|
group.lua.licenseName=MIT License
|
|
group.lua.licensePreamble=Copyright (C) 1994-2024 Lua.org, PUC-Rio.
|
|
|
|
compiler.lua515.semver=5.1.5
|
|
compiler.lua515.exe=/opt/compiler-explorer/lua-5.1.5/bin/luac
|
|
compiler.lua515.interpreter=/opt/compiler-explorer/lua-5.1.5/bin/lua
|
|
compiler.lua524.semver=5.2.4
|
|
compiler.lua524.exe=/opt/compiler-explorer/lua-5.2.4/bin/luac
|
|
compiler.lua524.interpreter=/opt/compiler-explorer/lua-5.2.4/bin/lua
|
|
compiler.lua536.semver=5.3.6
|
|
compiler.lua536.exe=/opt/compiler-explorer/lua-5.3.6/bin/luac
|
|
compiler.lua536.interpreter=/opt/compiler-explorer/lua-5.3.6/bin/lua
|
|
compiler.lua547.semver=5.4.7
|
|
compiler.lua547.exe=/opt/compiler-explorer/lua-5.4.7/bin/luac
|
|
compiler.lua547.interpreter=/opt/compiler-explorer/lua-5.4.7/bin/lua
|
|
compiler.lua550.semver=5.5.0
|
|
compiler.lua550.exe=/opt/compiler-explorer/lua-5.5.0/bin/luac
|
|
compiler.lua550.interpreter=/opt/compiler-explorer/lua-5.5.0/bin/lua
|
|
|
|
supportsBinary=false
|
|
supportsExecute=true
|
|
interpreted=true
|
|
compilerType=lua
|