SplitScript reference / Migration / Version-labelled state blocks

Version-labelled state blocks

Migration from ASL

Source pattern

Look for the ASL concept Version-labelled state blocks in the source. The semantic difference below is more important than a token-for-token rewrite.

Canonical SplitScript

Use the canonical language and API symbols linked below.

Semantic difference

Use one state block, initialize an ordinary build enum in onAttach, and guard version-specific fields with it.

Supported hosts

This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.