Skip to content

1. Hello, Archer!

Prerequisite: install Flecha v0.3.0 and confirm that flecha --version and longbow --version both report 0.3.0.

Create a project:

Terminal window
longbow new hello-archer
cd hello-archer

Replace src/main.fl with the tested source below:

src/main.fl
module main;
@imports
:: lib::std::fmt;
i32 main() {
fmt::println("Hello, Archer!");
return 0;
}

Check types before building, then run through Longbow:

Terminal window
longbow check
longbow run

The exact output is:

Hello, Archer!

module main; declares the logical module. @imports makes the standard library formatter available. The parameterless i32 main() is the executable entry point, and zero reports success to the host.