joe run

The joe run tool is quite simple, and is intended primarily as a convenience to those learning the Joe language (and as a debugging aid for the Joe developer).

It takes a single argument, a Joe script to execute. It loads the script into a Joe interpreter, displaying any syntax errors; and if there are none executes the script and displays its output.

Here's a simple script.

// hello.joe
println("Hello, world!");

Execute it like this:

$ joe run hello.joe
Hello, world!
$

The joe.console API

The Joe interpreter used by joe run includes an optional Joe package, joe.console, that allows Joe scripts to access the command line arguments, read standard input and text files, and write text files. Follow the link for details.

Extending Joe

A vanilla Joe interpreter has no way of accessing the platform except by printing output, and even that can be redirected by the client application.

It is expected that projects using Joe will want to define an equivalent tool that includes the project-specific bindings. See Embedding Joe and Extending Joe for details.