frame_transpiler icon indicating copy to clipboard operation
frame_transpiler copied to clipboard

Operations tests

Open frame-lang opened this issue 1 year ago • 0 comments



fn main {
     print(#OperationsDemo.add(2,1))
     var od:# = #OperationsDemo()
     print(od.sub(2,1))
}

#OperationsDemo 

    -operations-

    #[static]
    add [a,b] {
        ^(a+b)
    }

    sub [a,b] {
        ^(a-b)
    }


##

frame-lang avatar Dec 19 '23 06:12 frame-lang