v0.2.0
Pre-release
Pre-release
Just a demo but updated (Now remove_continue rule supports GenericFor, Repeat and While)
BTW, To transpile(no no ofc it's not perfect yet, just a simple example usage) Luau to Lua, try this .darklua.json5.
{
rules: [
"remove_if_expression",
"remove_continue",
"remove_comments", // optimization
"remove_compound_assignment",
"remove_interpolated_string",
"remove_types",
"remove_spaces" // optimization,
"remove_function_call_parens" // optimization
]
}TO-DOs
- minifying remove_continue (use
__DARKLUA_REMOVE_CONTINUE_continue{hash}if there are morecontinuestatements thanbreakstatements) related to #202 - Implement
remove_generalized_iterationrule (need more idea to go ahead against tons of limitations!) related to #203 - Implement
remove_duplicated_keysrule (due to({1, [1] = "a"})[1]is"a"in Luau while1in Lua)