Debian Codegraph @

tutorial/hints_martinet.html

raw symbols SCIP
1
2 <HTML>
3 <!--
4 ***********************************************************************
5 FUNNELWEB MANUAL WEB PAGE
6 =========================
7 Copyright (c) Ross N. Williams 1992,1999. All rights reserved.
8
9 Permission is granted to redistribute and use this manual in
10 any medium, with or without modification, provided that all
11 notices (including, without limitation, the copyright
12 notice, this permission notice, any record of modification,
13 and all legal notices) are preserved on all copies, that all
14 modifications are clearly marked, and that modified versions
15 are not represented as the original version unless all the
16 modifications since the manual's original release by Ross N.
17 Williams (www.ross.net) consist of translations or other
18 transformations that alter only the manual's form, not its
19 content. THIS MANUAL IS PROVIDED "AS IS" AND WITHOUT ANY
20 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
21 LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
22 FITNESS FOR A PARTICULAR PURPOSE. TO THE EXTENT PERMITTED BY
23 LAW THERE IS ABSOLUTELY NO WARRANTY.
24
25 ***********************************************************************
26 -->
27
28 <HEAD>
29 <TITLE>5.3 FunnelWeb the Martinet</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">5.3 FunnelWeb the Martinet</FONT><BR>
102
103
104
105 <P>There are many ways in which a macro preprocessor can
106 cause unexpected difficulties. FunnelWeb seeks to avoid many
107 of these problems by performing a number of checks. This
108 section describes some of the checks that FunnelWeb
109 performs.
110
111 <P><BLOCKQUOTE><B>Trailing blanks in the input
112 file:</B> Trailing blanks are usually
113 not dangerous, but FunnelWeb disallows them anyway. All
114 trailing blanks in the <I>input</I>&nbsp; (<SAMP>.fw</SAMP> file)
115 are flagged as errors by FunnelWeb. FunnelWeb does not flag
116 trailing blanks in any of its output files.</BLOCKQUOTE>
117
118 <P><BLOCKQUOTE><B>Input line length:</B> FunnelWeb has a maximum
119 input line length. If FunnelWeb
120 reads an input line longer than this length, it flags the
121 line with an error message. The maximum length can be
122 changed using a pragma (see the <A HREF="../reference/index.html"
123 TARGET="funnelwebreference"
124 onClick="window.open('','funnelwebreference','location,status,menubar,scrollbars,resizable',false).focus(); return true;"
125 >FunnelWeb Reference Manual</A>).</BLOCKQUOTE>
126
127 <P><BLOCKQUOTE><B>Product file line length:</B> FunnelWeb
128 watches the length of output lines and all output lines longer than the limit
129 are flagged with error messages. The maximum length can be
130 changed using a pragma. That FunnelWeb polices output lines
131 is very important. Some programs can behave very strangely
132 if they get an input line that is too long (e.g. Fortran
133 compilers can simply ignore text
134 past a certain column!) and once FunnelWeb starts expanding
135 macros using indentation, it is sometimes not obvious how
136 wide the product file will be.</BLOCKQUOTE>
137
138 <P><BLOCKQUOTE><B>Control characters:</B> The presence of
139 control characters in a text
140 file can result in some confusing behaviour downstream when
141 the file is presented to various programs. Unfortunately,
142 some text editors allow control
143 characters to be inserted into the text rather too easily,
144 and it is all too easy to be tripped up. FunnelWeb prevents
145 these problems by flagging with diagnostics all
146 non-end-of-line control characters detected in the input
147 (<SAMP>.fw</SAMP>) file (even TABs). The result is
148 that the user is guaranteed that product files generated
149 from FunnelWeb contain no unintentional control characters.
150 This said, FunnelWeb does allow the insertion of control
151 characters in the output file by explicitly specifying them
152 in the text using a <SAMP>@^</SAMP> control sequence.</BLOCKQUOTE>
153
154 <P><BLOCKQUOTE><B>Number of invocations:</B> FunnelWeb checks
155 the number of times that each
156 macro is called and issues an error if the total is not one.
157 The <SAMP>@Z</SAMP> (for zero) and <SAMP>@M</SAMP> (for many)
158 macro attributes can be used to bypass these checks.</BLOCKQUOTE>
159
160 <P><BLOCKQUOTE><B>Recursion:</B> Because
161 FunnelWeb does not provide any conditional constructs, all
162 recursively defined macros must, by definition, expand
163 infinitely*, and are therefore unacceptable. FunnelWeb
164 performs <I>static</I>&nbsp; checks to detect recursion,
165 detecting it before macro expansion commences. The user need
166 not fear that FunnelWeb will lock up or spew forth if a
167 recursive macro is accidentally specified.
168 (* Note: A special case exists where there is
169 recursion but no content. In this case, the expansion is
170 finite (the empty string) even though the operation of
171 expanding is infinite. FunnelWeb does not treat this case
172 specially).</BLOCKQUOTE>
173
174
175 <P>
176 <TABLE WIDTH="100%">
177 <TR>
178 <TD ALIGN="left" VALIGN="bottom"><A HREF="hints_qnames.html"><IMG SRC="binary/fw_left.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Prev"></A></TD>
179 <TD ALIGN="center" VALIGN="bottom"><A HREF="hints.html"><IMG SRC="binary/fw_up.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Up"></A></TD>
180 <TD ALIGN="right" VALIGN="bottom"><A HREF="hints_eols.html"><IMG SRC="binary/fw_right.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Next"></A></TD>
181 </TR>
182 </TABLE>
183
184
185
186 <HR>
187 <FONT SIZE="2">
188 <A HREF="mailto:[email protected]">Webmaster</A>&nbsp;&nbsp;&nbsp;
189 <A HREF="copyright.html">Copyright &copy; Ross N. Williams 1992,1999. All rights reserved.</A><BR>
190 </FONT>
191
192 </FONT>
193 </TD>
194 </TR>
195 </TABLE>
196
197
198 </BODY>
199
200 <!-- *********************************************************************** -->
201 <!-- End Of A FunnelWeb Manual Web Page (www.ross.net/funnelweb/) -->
202 <!-- *********************************************************************** -->
203
204 </HTML>