Skip to content

Add dynamic value computation #38

@AdvancedAntiSkid

Description

@AdvancedAntiSkid

Is your feature request related to a problem? Please describe.
Natively, Hypixel actions only support direct assignment and update (eg a = 2 or b += 3).

Describe the solution you'd like
Add an operator lowering compiler pass that transform complex computations like a = b + 3 - 1 and convert them to individual updates and if needed introduces temp variables.

Describe alternatives you've considered

Additional context
Make sure these computations are very broadly tested and working correctly. For now I do not care if it makes slightly more temp variables then should be, but logical order must be 100% right.

Metadata

Metadata

Labels

compilerSomething regarding the compilerenhancementNew feature or requestsyntaxSyntax support for a feature
No fields configured for Feature.

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions