Lua 5.1 Prettyprinter menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    Saiket's Avatar Contributor
    Reputation
    146
    Join Date
    Jul 2007
    Posts
    176
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua 5.1 Prettyprinter

    This program loads in an ugly Lua 5.1 file and spits out a pretty one. Well maybe not pretty, but readable. I wrote it to help make sense of Carbonite's unencrypted source, but I'm sure there are other uses as well.

    LuaFormat.exe (2008-06-23)
    Code:
    LuaFormat:
    usage: LuaFormat [options] [filenames].
    Available options are:
      -o name  output to file 'name' (default is "LuaFormat.lua")
    Note that this is a Lua 5.1 pretty printer with support for vararg functions and other changes from 5.0. Another point is that LuaFormat doesn't preserve comments--not too big a deal if you're feeding it computer-generated code.

    Here's the source in case anyone feels like turning it into an obfuscater or code deflator. It's a simple modification of "luac.exe", complete with VC6 build files.
    Source: LuaFormat-5.1.zip (2008-06-23)
    AddOn developer and long time explorer.

    Lua 5.1 Prettyprinter
  2. #2
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Pretty nice. +Rep x4

    Have you found any good interpreters (the source code for them) recently?

  3. #3
    Saiket's Avatar Contributor
    Reputation
    146
    Join Date
    Jul 2007
    Posts
    176
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The only one I've ever seen is the original from lua.org; I just took that source and added outputs to the parsing process. In fact, I avoided looking to third party interpreters since this one parses exactly as well as the original.

    Here's a link to all of Lua 5.1's modular source. I used this Lua 5.0 project to organize the 5.1 source into.

    Thanks for the support, by the way!
    AddOn developer and long time explorer.

Similar Threads

  1. [Guide] Lua Scripting Guide is here [Updating]
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 93
    Last Post: 11-04-2008, 06:56 PM
  2. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
  3. Lua Ascent Script Documentation
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 11-26-2007, 12:42 PM
  4. LUA Refrences
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 11-22-2007, 08:09 PM
All times are GMT -5. The time now is 07:42 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search