atrexus / unluau

A decompiler for Luau (Roblox's Lua based programming language: https://luau-lang.org/).
Apache License 2.0
87 stars 21 forks source link

quick suggestion (simplify variables more option) #48

Open ChloeDoesThings opened 7 months ago

ChloeDoesThings commented 7 months ago

I'm not sure if you guys already have this in unluau or not yet, but if not this is what the feature should do.

image

In the above image, the variable "amby" is var7.Ambassador, which can be simplified as "amby = script.Parent.Parent.Parent.Ambassador"

This could help simplify some of the resulting code and make it (maybe) a bit more readable. I'm not sure if this is really necessary or if anyone else needs it, but I think it would be helpful to have.

atrexus commented 7 months ago

Thanks for the suggestion. This seems to be an alpha version (v1) which had some issues with registers (variables). We will keep your request in mind while we work on v2. Thanks for showing interest in the project!