Simple web tool that replaces calls to global functions with calls to local functions and generates a single line of local variable assignments at the top
It properly parses the source code (using luaparse) and traverses the AST, detects calls, checks if they're not already defined in the script somewhere and generates that localization line based on that. It also finds calls to already localized functions that aren't defined in the script.
Then it also replaces the 'dot-syntax' with the 'underscore-syntax'. you can just give it a already optimized script and remove that massive header and make it only generate the localization line
- materialize.css
- luaparse
- ace (editor) with the 'Darcula' theme
- lua-beautifier