Skip to content

Commit a99dc21

Browse files
committed
feat(v2): add hello world grammar v2 example
1 parent 28acf87 commit a99dc21

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

examples/v2/hello.eph

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module std/io
2+
3+
extern "wasm" {
4+
fn print_i32(val: I32): ()
5+
}
6+
7+
pub fn main() -> I32 {
8+
let! x = 40
9+
let y = 2
10+
let! result = x + y
11+
print_i32(result)
12+
result
13+
}

0 commit comments

Comments
 (0)