| 1 |
|
| 2 |
<HTML> |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
<HEAD> |
| 29 |
<TITLE>1.2 What Is FunnelWeb?</TITLE> |
| 30 |
<STYLE TYPE="text/css"> <!-- A {text-decoration: none} // --> </STYLE> |
| 31 |
</HEAD> |
| 32 |
<BODY BACKGROUND="binary/background.gif" |
| 33 |
BGCOLOR="#FFFFFF" |
| 34 |
TEXT="#000000" |
| 35 |
VLINK="#660000" |
| 36 |
LINK="#FF0000" |
| 37 |
ALINK="#CC0000"> |
| 38 |
|
| 39 |
<TABLE WIDTH="490"> |
| 40 |
<TR> |
| 41 |
<TD WIDTH="130" VALIGN="top"> |
| 42 |
<IMG SRC="binary/d_clear.gif" ALT="" WIDTH="130" HEIGHT="1"><BR> |
| 43 |
|
| 44 |
<FONT SIZE="2"> |
| 45 |
<BR> |
| 46 |
|
| 47 |
<A HREF="http://www.ross.net/" |
| 48 |
TARGET="rosshome" |
| 49 |
onClick="window.open('','rosshome','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 50 |
> |
| 51 |
<IMG SRC="binary/rossnet_logo.gif" |
| 52 |
WIDTH="64" HEIGHT="32" |
| 53 |
BORDER="0" ALT="RossNet" |
| 54 |
HSPACE="0" VSPACE="1"></A><BR> |
| 55 |
<BR> |
| 56 |
|
| 57 |
<A HREF="../index.shtml" |
| 58 |
TARGET="funnelweb" |
| 59 |
onClick="window.open('','funnelweb','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 60 |
> |
| 61 |
<IMG SRC="binary/linklogo.gif" |
| 62 |
WIDTH="64" HEIGHT="32" |
| 63 |
BORDER="0" ALT="FunnelWeb" |
| 64 |
HSPACE="0" VSPACE="1"></A><BR> |
| 65 |
<BR> |
| 66 |
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD BGCOLOR="#000000"> |
| 67 |
<A HREF="../reference/index.html" |
| 68 |
TARGET="funnelwebreference" |
| 69 |
onClick="window.open('','funnelwebreference','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 70 |
><FONT COLOR="#FFFFFF"><B>Reference</B></FONT></A><BR> |
| 71 |
<BR> |
| 72 |
<A HREF="../developer/index.html" |
| 73 |
TARGET="funnelwebdeveloper" |
| 74 |
onClick="window.open('','funnelwebdeveloper','location,status,menubar,scrollbars,resizable',false).focus(); return true;" |
| 75 |
><FONT COLOR="#FFFFFF"><B>Developer</B></FONT></A><BR> |
| 76 |
<BR> |
| 77 |
<A HREF="index.html"><FONT COLOR="#FFFFFF"><B>Tutorial</B></FONT></A><BR> |
| 78 |
<A HREF="intro.html"><FONT COLOR="#FFFFFF">1 Introduction</FONT></A><BR> |
| 79 |
<A HREF="macro.html"><FONT COLOR="#FFFFFF">2 Macros</FONT></A><BR> |
| 80 |
<A HREF="type.html"><FONT COLOR="#FFFFFF">3 Typesetting</FONT></A><BR> |
| 81 |
<A HREF="example.html"><FONT COLOR="#FFFFFF">4 Example</FONT></A><BR> |
| 82 |
<A HREF="hints.html"><FONT COLOR="#FFFFFF">5 Hints</FONT></A><BR> |
| 83 |
<A HREF="examples.html"><FONT COLOR="#FFFFFF">6 Examples</FONT></A><BR> |
| 84 |
<A HREF="web.html"><FONT COLOR="#FFFFFF">7 Webmaking</FONT></A><BR> |
| 85 |
|
| 86 |
<BR> |
| 87 |
<A HREF="search.html"><FONT COLOR="#FFFFFF"><B>SEARCH</B></FONT></A><BR> |
| 88 |
</FONT> |
| 89 |
</TD></TR></TABLE> |
| 90 |
|
| 91 |
|
| 92 |
</TD> |
| 93 |
<TD WIDTH="360" VALIGN="top"> |
| 94 |
<FONT SIZE="3"> |
| 95 |
|
| 96 |
|
| 97 |
<A HREF="../reference/index.html"><IMG SRC="binary/title.gif" |
| 98 |
WIDTH="302" HEIGHT="24" |
| 99 |
BORDER="0" ALT="FunnelWeb Tutorial Manual" |
| 100 |
HSPACE="0" VSPACE="0"></A> |
| 101 |
<P><FONT SIZE="5">1.2 What Is FunnelWeb?</FONT><BR> |
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
<P>FunnelWeb is a particular literate programming system |
| 106 |
that is implemented by a single C program. FunnelWeb takes |
| 107 |
as input a single <SAMP>.fw</SAMP> <STRONG>input file</STRONG> |
| 108 |
and writes one or more <STRONG>product files</STRONG> and a |
| 109 |
<STRONG>documentation file</STRONG> (see below). |
| 110 |
|
| 111 |
<P> |
| 112 |
<PRE> |
| 113 |
+-----------+ |
| 114 |
| sloth.fw | |
| 115 |
+-----------+ |
| 116 |
| |
| 117 |
v |
| 118 |
o-------------------o |
| 119 |
| FUNNELWEB Program | |
| 120 |
o-------------------o |
| 121 |
| |
| 122 |
+-----------+-----------+ |
| 123 |
| | |
| 124 |
v v |
| 125 |
+----------------+ +--------------------+ |
| 126 |
| Product File | | Documentation File | |
| 127 |
| (e.g. sloth.c) | | (e.g. sloth.html) | |
| 128 |
| | | (e.g. sloth.tex) | |
| 129 |
+----------------+ +--------------------+ |
| 130 |
|
| 131 |
</PRE> |
| 132 |
<CENTER><B>Architecture of FunnelWeb.</B><BR></CENTER> |
| 133 |
|
| 134 |
<P>In literate programming systems, it is usual to refer |
| 135 |
to the product file as a "program file". However, as |
| 136 |
FunnelWeb is a general tool that can be used to prepare all |
| 137 |
sorts of text files that are not computer programs, the more |
| 138 |
generic term "product file" was chosen. Product |
| 139 |
files should be carefully distinguished from the term |
| 140 |
<STRONG>output files</STRONG> which refers to all of the |
| 141 |
output files produced by FunnelWeb. |
| 142 |
|
| 143 |
<P>FunnelWeb is distinguished by the following |
| 144 |
characteristics: |
| 145 |
|
| 146 |
<P><BLOCKQUOTE><B>Simplicity:</B> A governing |
| 147 |
design goal of FunnelWeb is to provide a <I>simple</I> |
| 148 |
tool that could be easily learnt and completely mastered. |
| 149 |
This manual is thick because it is comprehensive and lingers |
| 150 |
on the ways in which FunnelWeb can be used. The tool itself |
| 151 |
is quite simple.</BLOCKQUOTE> |
| 152 |
|
| 153 |
<P><BLOCKQUOTE><B>Reliability:</B> Another |
| 154 |
design goal is to provide a tool that will protect the user |
| 155 |
as much as possible from silly errors. Macro preprocessors |
| 156 |
are notorious for causing obscure errors. Every attempt has |
| 157 |
been made in FunnelWeb to keep the syntax robust. For |
| 158 |
example, in FunnelWeb the syntax of macro calls has been |
| 159 |
purposely designed to be highly visible so that the reader |
| 160 |
is always aware when the macro facility is being invoked.</BLOCKQUOTE> |
| 161 |
|
| 162 |
<P><BLOCKQUOTE><B>Language and Typesetter |
| 163 |
Independence:</B> Unlike Knuth's |
| 164 |
original |
| 165 |
Web system which was specific to the Pascal programming |
| 166 |
language<STRONG>[BSI82]</STRONG> and the TeX typesetting |
| 167 |
language<STRONG>[Knuth84]</STRONG>, FunnelWeb strives to be |
| 168 |
language and typesetter independent. |
| 169 |
FunnelWeb is completely language independent. FunnelWeb |
| 170 |
input files can be typesetter independent too, and |
| 171 |
FunnelWeb can generate documentation in TeX and HTML formats.</BLOCKQUOTE> |
| 172 |
|
| 173 |
<P><BLOCKQUOTE><B>Portability:</B> FunnelWeb |
| 174 |
has been written in the C programming language with great |
| 175 |
emphasis on portability. FunnelWeb currently runs on the |
| 176 |
Sun, OpenVMS, IBM PC, and Mac.</BLOCKQUOTE> |
| 177 |
|
| 178 |
<P><BLOCKQUOTE><B>Controllable:</B> FunnelWeb |
| 179 |
is an extremely controllable tool. To protect users' |
| 180 |
investment in source files constructed in the FunnelWeb |
| 181 |
macro language, the C source code to FunnelWeb has been |
| 182 |
released under a GNU General Public License |
| 183 |
(GPL). This means |
| 184 |
that it will always be available to everyone. Furthermore, |
| 185 |
license has been granted for the FunnelWeb User's Manual to |
| 186 |
be copied freely so long as they are not modified. All this |
| 187 |
means that FunnelWeb is not going to disappear suddenly.</BLOCKQUOTE> |
| 188 |
|
| 189 |
<P><BLOCKQUOTE><B>A Production Tool:</B> Above all, FunnelWeb has been designed to be a production |
| 190 |
tool and every effort has been made to ensure that it will |
| 191 |
operate effectively in a professional environment. FunnelWeb |
| 192 |
is "open" and portable. There is a comprehensive |
| 193 |
user manual. Its error messages are comprehensive. It is |
| 194 |
fast. Finally, it has been designed with the experience of |
| 195 |
three years of using FunnelWeb V1.</BLOCKQUOTE> |
| 196 |
|
| 197 |
|
| 198 |
<P> |
| 199 |
<TABLE WIDTH="100%"> |
| 200 |
<TR> |
| 201 |
<TD ALIGN="left" VALIGN="bottom"><A HREF="intro_what.html"><IMG SRC="binary/fw_left.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Prev"></A></TD> |
| 202 |
<TD ALIGN="center" VALIGN="bottom"><A HREF="intro.html"><IMG SRC="binary/fw_up.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Up"></A></TD> |
| 203 |
<TD ALIGN="right" VALIGN="bottom"><A HREF="intro_name.html"><IMG SRC="binary/fw_right.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Next"></A></TD> |
| 204 |
</TR> |
| 205 |
</TABLE> |
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
<HR> |
| 210 |
<FONT SIZE="2"> |
| 211 |
<A HREF="mailto:[email protected]">Webmaster</A> |
| 212 |
<A HREF="copyright.html">Copyright © Ross N. Williams 1992,1999. All rights reserved.</A><BR> |
| 213 |
</FONT> |
| 214 |
|
| 215 |
</FONT> |
| 216 |
</TD> |
| 217 |
</TR> |
| 218 |
</TABLE> |
| 219 |
|
| 220 |
|
| 221 |
</BODY> |
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
</HTML> |