Skip to content

v0.2.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@jiwonz jiwonz released this 04 Sep 08:30
· 47 commits to demo since this 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 more continue statements than break statements) related to #202
  • Implement remove_generalized_iteration rule (need more idea to go ahead against tons of limitations!) related to #203
  • Implement remove_duplicated_keys rule (due to ({1, [1] = "a"})[1] is "a" in Luau while 1 in Lua)