GithubHelp home page GithubHelp logo

ayplow / luaminify Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stravant/luaminify

0.0 1.0 0.0 67 KB

Lua source code minifier.

License: MIT License

Lua 99.95% Batchfile 0.03% Shell 0.03%

luaminify's Introduction

Lua Parsing and Refactorization tools

A collection of tools for working with Lua source code. Primarily a Lua source code minifier, but also includes some static analysis tools and a general Lua lexer and parser.

Currently the minifier performs:

  • Stripping of all comments and whitespace
  • True semantic renaming of all local variables to a reduced form
  • Reduces the source to the minimal spacing, spaces are only inserted where actually needed.

LuaMinify Command Line Utility Usage

The LuaMinify shell and batch files are given as shortcuts to running a command line instance of the minifier with the following usage:

LuaMinify sourcefile [destfile]

Which will minify to a given destination file, or to a copy of the source file with _min appended to the filename if no output file is given.

LuaMinify Roblox Plugin Usage

First, download the source code, which you can do by hitting this button:

Click That

Then copy the RobloxPlugin folder from the source into your Roblox Plugins directory, which can be found by hitting Tools->Open Plugins Folder in Roblox Studio.

Features/Todo

Features:

- Lua scanner/parser, which generates a full AST
- Lua reconstructor
    - minimal
    - full reconstruction (TODO: options, comments)
    - TODO: exact reconstructor
- support for embedded long strings/comments e.g. [[abc [[ def ]] ghi]]

Todo: - use table.concat instead of appends in the reconstructors

luaminify's People

Contributors

efrederickson avatar stravant avatar notafile avatar ayplow avatar tst2005 avatar comp500 avatar emilk avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.