Epic and ARM

The UNIX version of EPIC software requires an ANSI-C compatible compiler and has been reported to run on SGI IRIX, Sun4OS4, Solaris, BSD, Linux, HP-UX and AIX.

Installing the software

Getting started

First, find out about EPIC. As example, you can study the files in EP/examples/bincalc, a binary calculator that features a (rudimentary) parser. Compile the module numbers.ep as follows:
epic numbers.ep
This yields new files numbers.arm and numbers. The latter is an executable shell-script that loads the arm interpreter with the former arm program, and reduces prefix terms on its standard input to its standard output:
user> echo "plus(i,i)" | numbers
jxt(i,o)
user>

When called with several .arm, .ep and .rnx files, the compiler will leave the .arm files alone, compile the .ep and .rnx files, and generate a script that loads all relevant .arm files.

Furthermore, when epic is called with the -S option, the generated script will lift standard input to EPIC string representation, and apply the function ppp_bincalc to this lifted string. At the moment, type-checking of external functions is not working correctly, with the -Q option, type-checking is skipped altogether.

epic -S -Q io.ep numbers.arm bincalc.ep
Now you can use the syntax defined in io.ep:
user> echo "101*101" | bincalc
11001
user>

Type

epic
to find out more about compiler options (some of which are only relevant to RNx users).
© 1998 Babelfish BV