unluac

A decompiler for Lua 5.1

5.0 Stars (7)
195 Downloads (This Week)
Last Update:
Download unluac_2014_11_11.jar
Browse All Files

Description

unluac is a decompiler for Lua 5.1. It runs on Lua chunks that have been compiled with the standard Lua compiler. It requires that debugging information has not been stripped from the chunk. (By default, the Lua compiler includes this debugging information.)

This program is written in Java. A JAR package is available in the downloads section so you don't have to compile it. It runs from the command line and accepts a single argument: the file name of a Lua chunk. The decompiled code is printed to the standard output.

Here is an example usage of unluac:
java -jar unluac.jar myfile.lua > myfile_decompiled.lua

unluac Web Site

Categories

Compilers

License

MIT License

Update Notifications





User Ratings

★★★★★
★★★★
★★★
★★
7
0
0
0
0
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 5 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
Write a Review

User Reviews

  • sunsonzh
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Having a little problem. eg: function split(szFullString, szSeparator) local nFindStartIndex = 1 local nSplitIndex = 1 local nSplitArray = {} while true do local nFindLastIndex = string.find(szFullString, szSeparator, nFindStartIndex) if not nFindLastIndex then nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, string.len(szFullString)) break end nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, nFindLastIndex - 1) nFindStartIndex = nFindLastIndex + string.len(szSeparator) nSplitIndex = nSplitIndex + 1 end return nSplitArray end Dec: function split(_ARG_0_, _ARG_1_) do while true do if not string.find(_ARG_0_, _ARG_1_, 1) then {}[1] = string.sub(_ARG_0_, 1, string.len(_ARG_0_)) break end {}[1] = string.sub(_ARG_0_, 1, string.find(_ARG_0_, _ARG_1_, 1) - 1) end return {} end end

    Posted 12/13/2014
  • tbk0000
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Functions great :) Very easy to use (in a shell: java unluac.jar input.lua > dec_input.lua).

    Posted 12/08/2013
  • windhamwong
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    The program is easy to use for programmers and engineers but the project needs some more support and wiki to tell people how to use it instead of running the jar or reading the source code by their own.

    Posted 10/14/2013
  • jonahbishop
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Great app

    Posted 02/16/2013
  • lukemorgan
    1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Thanks unluac

    Posted 12/22/2012
Read more reviews

Additional Project Details

Languages

English

Intended Audience

Advanced End Users, Developers

User Interface

Command-line

Programming Language

Java

Registered

2012-04-14
Screenshots can attract more users to your project.
Features can attract more users to your project.

Icons must be PNG, GIF, or JPEG and less than 1 MiB in size. They will be displayed as 48x48 images.