frame_transpiler icon indicating copy to clipboard operation
frame_transpiler copied to clipboard

State Instance Variables

Open frame-lang opened this issue 2 years ago • 0 comments

fn main {

}

#StateInstanceVariable

    -machine-

    $S1 
        var next_state:$ = nil 

        |<| [msg]
            print(msg) ^

        |init| [flag]
            flag ? 
                next_state = $S2($(1),<("bye"),>("hi"))
            :
                next_state = $S3($("Natasha")) 
            :|
            -> next_state ^
    
    $S2 [a]
        |>|
            print(a) ^

    $S3 [name]
        |>|
            print(name) ^
##

frame-lang avatar Feb 10 '24 02:02 frame-lang