Rune

From Erights

(Difference between revisions)
Jump to: navigation, search
(Running an E script from rune)
m (rlwrap, Java capitalization)
Line 22: Line 22:
<code>./rune example.e</code>
<code>./rune example.e</code>
-
Second, you can start the script directly from the E command prompt, which can save some time because the running java VM is used:
+
Second, you can start the script directly from the E command prompt, which can save some time because the running Java VM is used:
<code>? rune(["example.e"])</code>
<code>? rune(["example.e"])</code>
Line 28: Line 28:
== Command history ==
== Command history ==
The interactive E interpreter does not provide command history. Under windows, the shell has its own command history, which can be used by pressing the up and down arrow keys.
The interactive E interpreter does not provide command history. Under windows, the shell has its own command history, which can be used by pressing the up and down arrow keys.
-
If your system does not provide command history, you can try [http://freshmeat.net/projects/rlwrap/ RLWrap].
+
If your system does not provide command history, you can try [http://freshmeat.net/projects/rlwrap/ rlwrap].

Revision as of 14:26, 15 March 2007

Rune is the interactive command line interpreter for E code.

Setting up rune

Windows: Copy the file rune-bat-template.txt to rune.bat and edit the settings in the file.

unix/linux/mac: Copy rune-template.txt to rune and edit it. Add execute rights to the file by entering chmod a+x rune.

You should now be able to execute rune and get an interactive shell.

As an alternative, rune can be started using the java executable: java -jar e.jar --rune

Running an E script from rune

There are two ways to start an E script using rune. First, you can give the name of the script as a command line argument:

./rune example.e

Second, you can start the script directly from the E command prompt, which can save some time because the running Java VM is used:

? rune(["example.e"])

Command history

The interactive E interpreter does not provide command history. Under windows, the shell has its own command history, which can be used by pressing the up and down arrow keys. If your system does not provide command history, you can try rlwrap.

Personal tools
more tools