Skip to content
Xen / docs

Search documentation

English · v0.1.0-demo.2

Type to search the documentation.

    한국어
    Xen / examples v0.1.0-demo.2

    First program

    First program

    Run from the repository or distribution root. Put xen on PATH, or substitute ./bin/xen.

    Terminal window
    xen check examples/hello.xen
    xen run examples/hello.xen
    Hello, Xen!
    hello.xen
    // SPDX-License-Identifier: MIT OR Apache-2.0
    fn main() {
    println("Hello, Xen!");
    }

    Download file

    Terminal window
    xen build examples/hello.xen -o app

    Run the generated executable on a compatible Linux machine.