Building your own Isis interpreter
Once you have mastered the basics of the language and want to write
your own external routines and use them inside of Isis, you are ready
to build your own private version of the Isis interpreter. You also
need a private interpreter to use certain external libraries available
for Isis. The following are exact step-by-step instructions that
should take you less than 5 minutes to complete.
- If you have not already done so, install Isis on your machine.
- Create a new folder where your private interpreter's source code
will reside.
- Copy one of the following pairs of Makefiles and source code
templates to this folder. Be sure the Makefile is actually named
Makefile with a capital M. The source file can be named
anything you wish but it is typically called main.c.
- Edit the Makefile. You will have to enter a name for your
interpreter on the PROGNAME line, the name of your source
code (typically main.c) file on the SRCS line. It
is probably a good idea to not call your program isis
so it can be distinguished from the master installed version.
- To actually make the program, simply type:
make
You may now type the program name in your shell and use the
interpreter!
- To install the program in the master Isis bin directory
so that it is accessible inside of any folder or to others who use
your machine, type:
make install
If it is the first time you have ever installed the program, you must
also enter the command rehash to force your shell to look for
newly installed programs. You should now be able to use your private
interpreter from within any folder!
- If you ever want to remake the entire program from scratch,
erasing any old intermediate files from previous compilations, type:
make clean install