pattern: Add Lua 5.0 pattern (#466)

* patterns: Add Lua 5.0 pattern

Based on Lua 5.1 pattern.

* tests: Add Lua 5.0 test file

function fac(n)
    if n < 2 then
        return 1
    end
    return n * fac(n - 1)
end

./luac - < test.lua
Lua compiled with make ARFLAGS=rv CC="gcc -m32"
at commit 762c7370376dbd13cd8aeb4d8c8da0bb153269c3
luac compiled with make LUA=../lua CC="gcc -m32"
at commit d002063c4605d3ea12d419b34a23c562f9add318

---------

Co-authored-by: Nik <werwolv98@gmail.com>
This commit is contained in:
Illia Trukhanov
2026-01-03 21:31:40 +02:00
committed by GitHub
parent 8a9bd577ad
commit 5a04a4256b
3 changed files with 110 additions and 0 deletions

Binary file not shown.