diff --git a/examples/v2/hello.eph b/examples/v2/hello.eph new file mode 100644 index 0000000..759ff89 --- /dev/null +++ b/examples/v2/hello.eph @@ -0,0 +1,13 @@ +module std/io + +extern "wasm" { + fn print_i32(val: I32): () +} + +pub fn main() -> I32 { + let! x = 40 + let y = 2 + let! result = x + y + print_i32(result) + result +}