Fahrenheit provides a versatile command-line interface (CLI) for executing scripts and an interactive Read-Eval-Print Loop (REPL) for quick testing and exploration.
You can run the fahrenheit executable like:fahrenheitfahrenheit -helpfahrenheit [-i] [-Vname=value ...] [-L<path> ...] <file>
<file>: The Fahrenheit script file to execute.-h or -help: Display usage information.-i or -interactive: Start the interactive REPL shell after executing the script (or standalone if no script is provided).-V<name>=<value>: Inject a global string variable before executing the script.-L<path>: Load a dynamic extension library (.dll or .so) before execution.When running in interactive mode, the following special slash (/) commands are available for introspection and control:
/help: Show the list of available commands./bye: Exit the interactive shell./file <path>: Execute an external Fahrenheit script file./get <name>: Print the value of a variable or object field./set <name>=<value>: Set the value of a variable./variables: List all currently defined global variables./type <name>: Display the underlying type of a variable./fields <name>: List all fields of a given object./methods <name>: List all methods of a given object./structures: List all defined structures./packages: List all defined packages.