efl(1) CLIX efl(1)
NAME
efl - Compiles an Extended FORTRAN Language program
SYNOPSIS
efl [flag ... ] [file ... ]
DESCRIPTION
The efl command compiles a program written in the EFL language into clean
FORTRAN on stdout. The command efl provides the C-like control constructs
of ratfor:
⊕ Statement grouping with braces.
⊕ Decision-making.
-- if, if-else, and select-case (also known as switch-case)
-- while, for, FORTRAN do, repeat, and repeat ... until loops
-- multilevel break and next
⊕ C-like data structures.
struct {
integer flags(3)
character(8) name
long real coords(2)
} table(100)
The language offers generic functions, assignment operators (+=, &=, and
so on), and sequentially evaluated logical operators (&& and ||). It has
a uniform input/output syntax:
write(6,x,y:f(7,2), do i=1,10 { a(i,j),z.b(i) })
EFL also provides some syntactic ``sugar'':
free-form input:
multiple statements per line; automatic continuation; statement
label names (not just numbers)
comments:
# this is a comment
translation of relational and logical operators:
>, >=, &, and so on, become .GT., .GE., .AND., and so on.
2/94 - Intergraph Corporation 1
efl(1) CLIX efl(1)
return expression to caller from function;
return(expression)
defines:
define name replacement
includes:
include file
The efl command understands several flag arguments: -w suppresses warning
messages, -# suppresses comments in the generated program, and the default
flag -C includes comments in the generated program.
An argument with an embedded = (equal sign) sets an EFL flag as if it had
appeared in an flag statement at the start of the program. A set of
defaults for a particular target machine may be selected by one of the
choices: system=unix, system=gcos, or system=cray. The default setting
of the system flag is the same as the machine the compiler is running on.
Other specific flags determine the style of input/output, error handling,
continuation conventions, the number of characters packed per word, and
default formats.
The efl command is best used with f77.
RELATED INFORMATION
Commands: acc(1), af77(1), cc(1), f77(1), ratfor(1)
2 Intergraph Corporation - 2/94