Releases: CavefulGames/darklua
Releases · CavefulGames/darklua
v3.1.0
v2.0.0
PR'ed rules
remove-if-expression
Demo release v2.0.0
Implemented/merged rules
remove-continue
remove-redeclared-keys
remove-generalized-iteration
Changes
- Update to latest upstream (darklua v0.14.0)
- Use new full_moon version v1.0.0
- Remove
getmetatable
config inremove-generalized-iteration
rule
v1.2.0
v1.1.0
v1.0.1
v1.0.0
The v1.0.0
release is a major release that aims to make luau -> lua at least as viable as possible.
- Add
remove_redeclared_keys
rule - Add
inject_libraries
rule - Add
remove_generalized_iteration
rule - Succeed
cargo test
Try this .darklua.json5
configuration!
{
rules: [
"remove_interpolated_string",
"remove_compound_assignment",
"remove_types",
"remove_if_expression",
"remove_continue",
"remove_redeclared_keys",
"remove_generalized_iteration"
]
}
This demo release is only targeted for windows_x86_64
.
v0.3.0
v0.2.0
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 morecontinue
statements thanbreak
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 while1
in Lua)