Hello World
Create hello.wyn:
wyn
fn main() {
print("Hello from Wyn! 🐉")
}Run it:
sh
wyn run hello.wynOutput:
Hello from Wyn! 🐉What's Happening
wyn runtranspiles your.wynfile to C- Compiles the C with your system compiler
- Runs the resulting binary
For a compiled binary:
sh
wyn build hello.wyn -o hello
./helloTry It
Press Run or Ctrl+Enter
Next Steps
- Variables & Types -
var,const, type inference - Functions - define and call functions
- Control Flow -
if,for,while,match - Structs - custom data types with methods