FANDOM


A VM instruction that performs an unqualified control flow change to another part of a hakk.

Goto instructions may also use instruction block names as targets.

Usage Edit

goto: {label}

hakkML Example Edit

name: goto_example
blocks:
  core:
  entry: {name: 'main', loc: [0,1]}
code:
  main:
    - rem: instruct VM to goto a label
    - goto: leave
    - out: "This line is skipped over and will never execute."
    - lbl: leave
    - exit: 0