fun(1)

NAME
fun - Fun language runner and REPL

SYNOPSIS
fun [options] [script.fun] [-- args...]

DESCRIPTION
fun runs programs written for the Fun virtual machine. When invoked with a script path, it parses, compiles and executes the script. If no script is provided and the binary was built with REPL support, fun starts an interactive Read-Eval-Print Loop.

OPTIONS

-i , --repl
    Start the interactive REPL explicitly (if built with REPL support).

-v , --version
    Print version and exit.

-h , --help
    Show usage information and exit.

Note: Available options may vary by build configuration. Check fun --help for your binary.

ENVIRONMENT

FUN_LIB_DIR
    Top-priority search path for included Fun modules. Set this when running from the source tree to point to ./lib.

DEFAULT_LIB_DIR
    Compiled-in default library directory searched after FUN_LIB_DIR.

EXIT STATUS

0   Success.

non-zero
    Error during parse, compile, or runtime.

EXAMPLES

Run an installed example:
      fun /usr/share/fun/examples/hello.fun

Run from a build tree without installing (point stdlib to repo):
      FUN_LIB_DIR=./lib /path/to/build_dir/fun examples/hello.fun

Pass arguments to a script (after -- they are forwarded):
      fun myscript.fun -- arg1 arg2

FILES

Binary (default install)
    /usr/bin/fun

Standard library (default install)
    /usr/share/fun/lib

Examples (optional, default install)
    /usr/share/fun/examples

SEE ALSO
funstx(1)
Project documentation: docs/fun.md, docs/cli.md, docs/includes.md

AUTHORS
The Fun project authors.

COPYRIGHT
© The Fun authors. Licensed under the project license; see the LICENSE file distributed with this source.