| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" |
| 2 |
"http://www.w3.org/TR/REC-html40/loose.dtd"> |
| 3 |
|
| 4 |
<HTML> |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
<HEAD> |
| 31 |
<TITLE>2.2 Motivation For FunnelWeb</TITLE> |
| 32 |
<STYLE TYPE="text/css"> <!-- A {text-decoration: none} // --> </STYLE> |
| 33 |
</HEAD> |
| 34 |
<BODY BACKGROUND="binary/background.gif" |
| 35 |
BGCOLOR="#FFFFFF" |
| 36 |
TEXT="#000000" |
| 37 |
VLINK="#660000" |
| 38 |
LINK="#FF0000" |
| 39 |
ALINK="#CC0000"> |
| 40 |
|
| 41 |
<TABLE WIDTH="490"> |
| 42 |
<TR> |
| 43 |
<TD WIDTH="130" VALIGN="top"> |
| 44 |
<IMG SRC="binary/d_clear.gif" ALT="" WIDTH="130" HEIGHT="1"><BR> |
| 45 |
|
| 46 |
<FONT SIZE="2"> |
| 47 |
<BR> |
| 48 |
|
| 49 |
<A HREF="http://www.ross.net/" |
| 50 |
TARGET="rosshome" |
| 51 |
onClick="window.open('','rosshome','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 52 |
> |
| 53 |
<IMG SRC="binary/rossnet_logo.gif" |
| 54 |
WIDTH="64" HEIGHT="32" |
| 55 |
BORDER="0" ALT="RossNet" |
| 56 |
HSPACE="0" VSPACE="1"></A><BR> |
| 57 |
<BR> |
| 58 |
|
| 59 |
<A HREF="../index.shtml" |
| 60 |
TARGET="funnelweb" |
| 61 |
onClick="window.open('','funnelweb','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 62 |
> |
| 63 |
<IMG SRC="binary/linklogo.gif" |
| 64 |
WIDTH="64" HEIGHT="32" |
| 65 |
BORDER="0" ALT="FunnelWeb" |
| 66 |
HSPACE="0" VSPACE="1"></A><BR> |
| 67 |
<BR> |
| 68 |
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD BGCOLOR="#000000"> |
| 69 |
<A HREF="../reference/index.html" |
| 70 |
TARGET="funnelwebreference" |
| 71 |
onClick="window.open('','funnelwebreference','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 72 |
><FONT COLOR="#FFFFFF"><B>Reference</B></FONT></A><BR> |
| 73 |
<BR> |
| 74 |
<A HREF="../tutorial/index.html" |
| 75 |
TARGET="funnelwebtutorial" |
| 76 |
onClick="window.open('','funnelwebtutorial','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 77 |
><FONT COLOR="#FFFFFF"><B>Tutorial</B></FONT></A><BR> |
| 78 |
<BR> |
| 79 |
<A HREF="index.html"><FONT COLOR="#FFFFFF"><B>Developer</B></FONT></A><BR> |
| 80 |
<A HREF="compile.html"><FONT COLOR="#FFFFFF">1 Compile</FONT></A><BR> |
| 81 |
<A HREF="design.html"><FONT COLOR="#FFFFFF">2 Design</FONT></A><BR> |
| 82 |
<A HREF="implement.html"><FONT COLOR="#FFFFFF">3 Implement</FONT></A><BR> |
| 83 |
<A HREF="modify.html"><FONT COLOR="#FFFFFF">4 Modify</FONT></A><BR> |
| 84 |
<A HREF="misc.html"><FONT COLOR="#FFFFFF">5 Misc</FONT></A><BR> |
| 85 |
<A HREF="gpl.html"><FONT COLOR="#FFFFFF">6 Licence</FONT></A><BR> |
| 86 |
|
| 87 |
<BR> |
| 88 |
<A HREF="search.html"><FONT COLOR="#FFFFFF"><B>SEARCH</B></FONT></A><BR> |
| 89 |
</FONT> |
| 90 |
</TD></TR></TABLE> |
| 91 |
|
| 92 |
|
| 93 |
</TD> |
| 94 |
<TD WIDTH="360" VALIGN="top"> |
| 95 |
<FONT SIZE="3"> |
| 96 |
|
| 97 |
|
| 98 |
<A HREF="index.html"><IMG SRC="binary/title.gif" |
| 99 |
WIDTH="316" HEIGHT="24" |
| 100 |
BORDER="0" ALT="FunnelWeb Developer Manual" |
| 101 |
HSPACE="0" VSPACE="0"></A> |
| 102 |
<P><FONT SIZE="5">2.2 Motivation For FunnelWeb</FONT><BR> |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
<P>During 1986, I discovered Donald |
| 107 |
Knuth's <SAMP>WEB</SAMP> literate |
| 108 |
programming system in the form of Jon |
| 109 |
Bentley's <I>Programming |
| 110 |
Pearls</I> column in |
| 111 |
<I>Communications of |
| 112 |
the ACM</I> <STRONG>[Bentley86]</STRONG>. This prompted me to |
| 113 |
obtain a copy of the report on the Web |
| 114 |
system<STRONG>[Knuth83]</STRONG> and to try out the WEB program. |
| 115 |
|
| 116 |
<P>WEB was the best system that I had seen for producing |
| 117 |
printed and online, inline documentation. To me the most |
| 118 |
extraordinary aspect of the system was its success despite |
| 119 |
the fact that it had been built into the horribly antiquated |
| 120 |
file/batch processing systems that we all know and love |
| 121 |
(and use). I had imagined sophisticated documentation |
| 122 |
systems before this time, but had always assumed that they |
| 123 |
would be parts of complex programming environments. Knuth |
| 124 |
showed that, to some extent, it can be done using 1960s |
| 125 |
software technology (excluding the 1980s typesetting |
| 126 |
technology). |
| 127 |
|
| 128 |
<P>The WEB system was enticing and promising, but to me |
| 129 |
suffered from many drawbacks, many of which Knuth had |
| 130 |
categorized as advantages. The following highly subjective list |
| 131 |
of disadvantages formed a springboard for the construction |
| 132 |
of FunnelWeb. |
| 133 |
|
| 134 |
<UL> |
| 135 |
|
| 136 |
<LI> WEB can only process Pascal programs. |
| 137 |
|
| 138 |
<LI> WEB can produce only one output file. In many |
| 139 |
instances it is desirable to generate more than one output |
| 140 |
file. |
| 141 |
|
| 142 |
<LI> WEB enforces Knuth's individual style of |
| 143 |
indentation. WEB supplies commands to over-ride the |
| 144 |
automatic indentation, but it is an uphill battle and the |
| 145 |
code becomes clogged up with format |
| 146 |
directives. |
| 147 |
|
| 148 |
<LI> WEB does not cater for non-standard Pascal |
| 149 |
programs. In particular, all identifiers are truncated to |
| 150 |
about eight characters. |
| 151 |
|
| 152 |
<LI> WEB formats the program output file into a form |
| 153 |
that is unreadable to humans. |
| 154 |
|
| 155 |
<LI> WEB does not provide an include facility. This |
| 156 |
was considered a feature essential for supporting macro |
| 157 |
libraries. |
| 158 |
|
| 159 |
<LI> WEB provides macros with at most one parameter. |
| 160 |
Knuth describes a hack that can extract a multiple parameter |
| 161 |
macro facility from a single parameter one, but it is |
| 162 |
hardly satisfactory. |
| 163 |
|
| 164 |
<LI> WEB does not provide conditionals. |
| 165 |
|
| 166 |
</UL> |
| 167 |
|
| 168 |
<P>Most of these objections boiled down to two points: |
| 169 |
that WEB is far too specialized, and that Knuth's |
| 170 |
"Occam's Razor" had cut too |
| 171 |
far. What I wanted was a documentation system that employed |
| 172 |
all the same principles as WEB but was far more general. |
| 173 |
The result was FunnelWeb V1 which could process |
| 174 |
programs in any language or any combination of languages at |
| 175 |
the cost of setting the text in <SAMP>tt font</SAMP> instead |
| 176 |
of typesetting it in a language-specific way, as WEB does. |
| 177 |
|
| 178 |
<P>Originally, it was intended that FunnelWeb would be |
| 179 |
typesetter independent as well as language independent. It |
| 180 |
was intended that a format file consisting of a set of |
| 181 |
productions describing how the document file was to be |
| 182 |
formatted would be handed to FunnelWeb along with the input |
| 183 |
file. However, time pressures forced me to take the back |
| 184 |
door and hack up a TeX document file generator. In version |
| 185 |
3.2 an HTML generator was added. |
| 186 |
|
| 187 |
|
| 188 |
<P> |
| 189 |
<TABLE WIDTH="100%"> |
| 190 |
<TR> |
| 191 |
<TD ALIGN="left" VALIGN="bottom"><A HREF="design_introduction.html"><IMG SRC="binary/fw_left.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Prev"></A></TD> |
| 192 |
<TD ALIGN="center" VALIGN="bottom"><A HREF="design.html"><IMG SRC="binary/fw_up.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Up"></A></TD> |
| 193 |
<TD ALIGN="right" VALIGN="bottom"><A HREF="design_indentation.html"><IMG SRC="binary/fw_right.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Next"></A></TD> |
| 194 |
</TR> |
| 195 |
</TABLE> |
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
<P> |
| 200 |
<HR> |
| 201 |
<FONT SIZE="2"> |
| 202 |
<A HREF="mailto:[email protected]">Webmaster</A> |
| 203 |
<A HREF="copyright.html">Copyright © Ross N. Williams 1992,1999. All rights reserved.</A><BR> |
| 204 |
</FONT> |
| 205 |
|
| 206 |
</FONT> |
| 207 |
</TD> |
| 208 |
</TR> |
| 209 |
</TABLE> |
| 210 |
|
| 211 |
|
| 212 |
</BODY> |
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
</HTML> |