Computer Programs
NESC0678 MORTRAN2
last modified: 01-MAY-1980 | catalog | categories | new | search |

NESC0678 MORTRAN2

MORTRAN-2, FORTRAN Language Extension with User-Supplied Macros

top ]
1. NAME OR DESIGNATION OF PROGRAM:  MORTRAN2
top ]
2. COMPUTERS
To submit a request, click below on the link of the version you wish to order. Rules for end-users are available here.
Program name Package id Status Status date
MORTRAN-2 NESC0678/01 Tested 01-MAY-1980

Machines used:

Package ID Orig. computer Test computer
NESC0678/01 IBM 370 series IBM 370 series
top ]
3. DESCRIPTION OF PROBLEM OR FUNCTION

MORTRAN2    is   a    FORTRAN
language extension that permits a  relatively easy transition from
FORTRAN  to  a  more  convenient  and  structured  language.   Its
features include free-field format; alphanumeric statement labels;
flexible comment  convention; nested  block structure;  for-by-to,
do,  while,  until,  loop,  if-then-elseif-else,  exit,  and  next
statements;    multiple   assignment    statements;    conditional
compilation; and  automatic listing indentation.  The  language is
implemented  by   a  macro-based  pre-processor  and   is  further
extensible by user-defined macros.
top ]
4. METHOD OF SOLUTION

The MORTRAN2 pre-processor may be regarded as
a  compiler  whose object  code  is  ANSI Standard  FORTRAN.   The
MORTRAN2 language is dynamically defined by macros which are input
at each use of the pre-processor.
top ]
5. RESTRICTIONS ON THE COMPLEXITY OF THE PROBLEM

The  pre-processor
output must be accepted by a FORTRAN compiler.
top ]
6. TYPICAL RUNNING TIME:  Processing of the sample problem used about
2 seconds.
top ]
7. UNUSUAL FEATURES OF THE PROGRAM

The  MORTRAN2  pre-processor  is
written in ANSI  Standard FORTRAN, and the output  also is FORTRAN
so  that  transportability  of  both  the  pre-processor  and  its
generated programs  is assured.  By  changing the input  macros, a
knowledgeable user can  tailor MORTRAN2 to a specific  need, or he
can develop an entirely new high-level language and still preserve
portability.
top ]
8. RELATED AND AUXILIARY PROGRAMS

MORTRAN2 is  an extension  of the
earlier  MORTRAN  language  used  for  SLAC  high  energy  physics
applications.
top ]
9. STATUS
Package ID Status date Status
NESC0678/01 01-MAY-1980 Tested at NEADB
top ]
10. REFERENCES

A. James  Cook and L. J.  Shustek, A User's  Guide to
MORTRAN2, SLAC CTGM No. 165, June 1975.
             A. James Cook and  L. J. Shustek, MORTRAN2,  A Macro-
based Structured FORTRAN Extension, SLAC-PUB-1527, January 1975.
NESC0678/01, included references:
- A.J. Cook and L.J. Shustek:
  A User's Guide to MORTRAN2
  CTGM No. 165 (February 1975)
- A.J. Cook and L.J. Shustek
  MORTRAN2, A Macro-based Structured FORTRAN Extension
  SLAC-PUB-1527 (January 1975)
top ]
11. MACHINE REQUIREMENTS:  170K bytes of memory
top ]
12. PROGRAMMING LANGUAGE(S) USED
Package ID Computer language
NESC0678/01 FORTRAN-IV
top ]
13. OPERATING SYSTEM UNDER WHICH PROGRAM IS EXECUTED:   OS/360,370.
top ]
14. OTHER PROGRAMMING OR OPERATING INFORMATION OR RESTRICTIONS

MORTRAN2 should be readily adaptable for use on non-IBM computers.
It  is  expected  that  the  version  being  distributed  will  be
integrated  into the  operating system  via cataloged  procedures.
MORTRAN2 can, however, be implemented  as a stand-alone batch job.
The  MORTRAN2 user's  guide and  a system  programmer's guide  are
included as files on the transmittal tape.
top ]
15. NAME AND ESTABLISHMENT OF AUTHORS

                 A. James Cook and L. J. Shustek
                 Computation Research Group
                 Stanford Linear Accelerator Center
                 Stanford, California  94305
top ]
16. MATERIAL AVAILABLE
NESC0678/01
File name File description Records
NESC0678_01.001 INFORMATION 5
NESC0678_01.002 INSTALLATION GUIDE 279
NESC0678_01.003 USER'S GUIDE 2233
NESC0678_01.004 MORTRAN-2 OBJECTIVE BINARY PROGRAM 393
NESC0678_01.005 MORTRAN-2 MACROS (RESERVED WORD) 87
NESC0678_01.006 TEST PROGRAM (RESERVED WORD) 54
NESC0678_01.007 MORTRAN-2 MACROS (BRACKETED KEYWORD) 90
NESC0678_01.008 TEST PROGRAM (BRACKETED KEYWORD) 54
NESC0678_01.009 MORTRAN-2 SOURCE (F4,EBCDIC) 792
NESC0678_01.010 CATALOGUED PROCEDURES 803
NESC0678_01.011 SYSTEM PROGRAMMER'S GUIDE 765
NESC0678_01.012 BOOTSTRAP PROGRAM FOR RECREATING MORTRAN 465
NESC0678_01.013 PRINTED OUTPUT OF RESERVED WORD 59
NESC0678_01.014 PRINTED OUTPUT OF BRACKETED KEYWORD 59
top ]
17. CATEGORIES
  • P. General Mathematical and Computing System Routines

Keywords: FORTRAN, programming languages, structured programming.