Install Flecha
Flecha is early-stage software. The most dependable installation path is currently a source build; tagged releases also publish platform archives and editor packages.
Requirements
Section titled “Requirements”- CMake 3.20 or newer
- Ninja or another CMake generator
- A supported C++23 compiler: Clang 17–23, GCC 13–16, or Apple Clang 16–17
- LLVM 17–23 development libraries and tools
- Git
See the supported toolchains for the tested platform matrix.
Build from source
Section titled “Build from source”git clone https://github.com/segfaultcafe/flecha.gitcd flechamake buildThe build writes the compiler to build/flecha and the project tool to build/longbow.
cmake -S . -B build -G Ninja -DBUILD_TESTING=OFFcmake --build build --parallelVerify the compiler
Section titled “Verify the compiler”build/flecha --versionbuild/flecha check examples/factorial.flbuild/flecha build examples/factorial.fl -o build/factorial./build/factorialThe example prints Factorial: 120.
Editor support
Section titled “Editor support”GitHub Releases include a VS Code extension named flecha-language-VERSION.vsix. Release archives also bundle Neovim support. Follow the editor installation guide for setup and verification.
Continue to Learn Flecha or browse the runnable examples.