new version from Chris Torek
[unix-history] / usr / src / old / efl / efl.1
CommitLineData
509c8ddd 1.\" @(#)efl.1 6.1 (Berkeley) %G%
8d5377f7 2.\"
509c8ddd 3.TH EFL 1 ""
8d5377f7
KM
4.AT 3
5.SH NAME
6efl \- Extended Fortran Language
7.SH SYNOPSIS
8.B efl
9[ option ... ]
10[ filename ... ]
11.SH DESCRIPTION
12.I Efl
13compiles a program written in the EFL language into clean Fortran.
14.I Efl
01b1aeb5
KM
15provides the same control flow constructs as does
16.IR ratfor (1),
8d5377f7
KM
17which are essentially identical to those in C:
18.TP
19statement grouping with braces;
20decision-making with if, if-else, and switch-case;
21while,
22for,
23Fortran do,
24repeat,
25and repeat...until loops;
26multi-level break and next.
27In addition, EFL has C-like data structures,
28and more uniform and convenient input/output syntax,
29generic functions.
30EFL also provides
31some syntactic sugar to make programs easier to read and write:
32.TP
33free form input:
34multiple statements/line; automatic continuation
35statement label names (not just numbers),
36.TP
37comments:
38# this is a comment
39.TP
40translation of relationals:
41>, >=, etc., become .GT., .GE., etc.
42.TP
43return (expression)
44returns expression to caller from function
45.TP
46define:
47define name replacement
48.TP
49include:
50include filename
51.PP
52.fi
53The Efl command option
54.B \-w
55suppresses warning messages.
56The option
57.B \-C
58causes comments to be copied through to the Fortran output (default);
59.B \-#
60prevents comments from being copied through.
61If a command argument contains an embedded equal sign,
62that argument is treated as if it had appeared in an
63.B option
64statement at the beginning of the program.
65.I Efl
66is best used with
67.IR f77 (1).
68.SH "SEE ALSO"
69f77(1),
70ratfor(1).
71.br
72S. I. Feldman,
73.IR "The Programming Language EFL",
74Bell Labs Computing Science Technical Report #78.