frame_transpiler
frame_transpiler copied to clipboard
Message alias feature
fn main {
var alias:# = #AliasDemo()
alias.start()
alias.one_two_three()
alias.stop()
}
#AliasDemo
-interface-
start @(">>")
one_two_three @("1..2..3")
stop @(`<<`)
-machine-
$Stopped
|>| print("In $Stopped") ^
|stop| print("In $Stopped") ^
|">>"|
print("Saw '>>'")
-> $Countdown ^
$Countdown
|>| print("In $Countdown") ^
|`1..2..3`|
print("Saw '1..2..3'")
-> $Running ^
$Running
|>| print("In $Running") ^
|`<<`|
print("Saw '<<'")
-> $Stopped ^
##