From 7bc27a9d6711c64334c38790a86c63992d8ceb63 Mon Sep 17 00:00:00 2001 From: "Jonathan D.A. Jewell" <6759885+hyperpolymath@users.noreply.github.com> Date: Sat, 16 May 2026 13:05:37 +0100 Subject: [PATCH] feat(v2): add hello world grammar v2 example --- examples/v2/hello.eph | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 examples/v2/hello.eph 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 +}