Skip to content

Hello World

Create hello.wyn:

wyn
fn main() -> int {
    println("Hello from Wyn! 🐉")
    return 0
}

Run it:

sh
wyn run hello.wyn

Output:

Hello from Wyn! 🐉

What's Happening

  1. wyn run transpiles your .wyn file to C
  2. Compiles the C with your system compiler
  3. Runs the resulting binary

For a compiled binary:

sh
wyn build hello.wyn -o hello
./hello

Try It

🐉 Playground
Press Run or Ctrl+Enter

MIT License