The system diskette contains the following files:
README REFC EXE REFGO EXE REFTR EXE RDHELP TXT TEST REF TEST RSL E REF MBPREP REF REFLIB REF
refc E refc MBPREP refc REFLIBThis will add the files E.RSL , MBPREP.RSL and REFLIB.RSL to REFAL .
SET RD_HELP=REFAL\RDHELP.TXTin your AUTOEXEC.BAT file. This will enable you to read a help file from the Refal Tracer.
refgo testThis will start an interactive program for the translation of simple arithmetic expressions.
In the following XXX , YYY , etc. are some file names (without extensions).
Using any editor, create a Refal program in XXX.REF . To compile, execute:
refc XXX
If there are no errors, no message will be sent. The file XXX.RSL that contains the translation of the Refal program into the interpreted language RASL will be added to the current directory. If there is an error message, see file XXX.LIS for the listing of the Refal program with the descriptions of errors.
To run the Refal program execute:
refgo XXX
If you need functions defined in other modules: YYY , ZZZ , etc. compile YYY , ZZZ , etc. and run:
refgo XXX+YYY+ZZZ etc.In particular, do not forget to include the module reflib if you use some of the standard functions defined there.
You can specify options with refgo :
refgo -nt XXX+YYY etc.or:
refgo XXX+YYY etc. -ntThen the number of steps and the execution time will be printed out at the end. -n will print out only the number of steps, -t the execution time.
To run the program by the tracer, use REFTR instead of refgo :
reftr XXX+YYY+ZZZ etc.(see Reference Section D for the description of the tracer).
To run with arguments, execute:
refgo XXX+YYY etc. Arg1 Arg2 etc. reftr XXX+YYY etc. Arg1 Arg2 etc.An argument cannot start with - . To access the arguments from the Refal program, use <Arg sN> (see Reference Section C).
To evaluate any function calls defined in some file XXX using the evaluator E (consult Sec. 6.3), see that this file includes the line:
$ENTRY Upd { eX = <Up eX>; }Then enter:
refgo e+XXX+...or:
reftr e+XXX+...