ShakeWhile

Represents a 'while' loop statement in the Shake language.

Since

0.1.0

Inheritors

Properties

Link copied to clipboard
abstract val body: ShakeCode

The body of the while loop. This is the block of code that gets executed repeatedly as long as the condition is true.

Link copied to clipboard
abstract val condition: ShakeValue

The condition for the while loop. The loop continues as long as this condition evaluates to true.

Functions

Link copied to clipboard
abstract fun toJson(): Map<String, Any?>

Converts this statement to a JSON representation. This can be useful for serialization, debugging, or analyzing the structure of the code.