Debian Codegraph @

reference/interface_inheritance.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>2.4 File Name Inheritance</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="../tutorial/index.html"
68 TARGET="funnelwebtutorial"
69 onClick="window.open('','funnelwebtutorial','location,status,menubar,scrollbars,resizable',false).focus(); return true;"
70 ><FONT COLOR="#FFFFFF"><B>Tutorial</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>Reference</B></FONT></A><BR>
78 <A HREF="intro.html"><FONT COLOR="#FFFFFF">1 Introduction</FONT></A><BR>
79 <A HREF="interface.html"><FONT COLOR="#FFFFFF">2 Interface</FONT></A><BR>
80 <A HREF="scanner.html"><FONT COLOR="#FFFFFF">3 Scanner</FONT></A><BR>
81 <A HREF="parser.html"><FONT COLOR="#FFFFFF">4 Parser</FONT></A><BR>
82 <A HREF="analyser.html"><FONT COLOR="#FFFFFF">5 Analyser</FONT></A><BR>
83 <A HREF="tangle.html"><FONT COLOR="#FFFFFF">6 Tangle</FONT></A><BR>
84 <A HREF="weave.html"><FONT COLOR="#FFFFFF">7 Weave</FONT></A><BR>
85 <A HREF="shell.html"><FONT COLOR="#FFFFFF">8 Shell</FONT></A><BR>
86 <A HREF="commands.html"><FONT COLOR="#FFFFFF">9 Commands</FONT></A><BR>
87 <A HREF="glossary.html"><FONT COLOR="#FFFFFF">10 Glossary</FONT></A><BR>
88 <A HREF="references.html"><FONT COLOR="#FFFFFF">11 References</FONT></A><BR>
89
90 <BR>
91 <A HREF="search.html"><FONT COLOR="#FFFFFF"><B>SEARCH</B></FONT></A><BR>
92 </FONT>
93 </TD></TR></TABLE>
94
95
96 </TD>
97 <TD WIDTH="360" VALIGN="top">
98 <FONT SIZE="3">
99
100
101 <A HREF="index.html"><IMG SRC="binary/title.gif"
102 WIDTH="316" HEIGHT="24"
103 BORDER="0" ALT="FunnelWeb Reference Manual"
104 HSPACE="0" VSPACE="0"></A>
105 <P><FONT SIZE="5">2.4 File Name Inheritance</FONT><BR>
106
107
108
109 <P>During a single run of FunnelWeb, FunnelWeb can produce
110 many different output files. As it would be very tedious to
111 have to specify the name of each of these files explicitly
112 each time FunnelWeb is run, FunnelWeb provides a system of
113 defaults that allows the user to specify the minimum
114 required to successfully complete the run. To do this,
115 FunnelWeb allows file specifications to inherit fields from
116 one another.
117
118 <P>FunnelWeb structures filenames into three
119 fields which are inherited
120 independently. The fields are: <STRONG>directory</STRONG>,
121 <STRONG>name</STRONG>, and <STRONG>extension</STRONG>. On
122 systems having other fields (e.g. <I>network node</I>&nbsp;,
123 <I>device name</I>&nbsp;), the extra fields are considered to be
124 part of the directory field. Version numbers are ignored. A
125 field can inherit a value if its current value is the empty
126 string.
127
128 <P>The following table gives the full inheritance scheme
129 used in FunnelWeb.
130
131 <P>
132 <TABLE BORDER="3">
133 <TR>
134 <TD><STRONG>Script</STRONG> </TD>
135 <TD> <STRONG>Input</STRONG> </TD>
136 <TD> <STRONG>Include</STRONG></TD>
137 <TD> <STRONG>Journal</STRONG></TD>
138 <TD> <STRONG>List</STRONG> </TD>
139 <TD> <STRONG>TeX</STRONG> </TD>
140 <TD> <STRONG>HTML</STRONG> </TD>
141 <TD> <STRONG>Prod</STRONG> </TD>
142 </TR>
143 <TR>
144 <TD>&nbsp; </TD>
145 <TD> &nbsp; </TD>
146 <TD> <SAMP>@i</SAMP> </TD>
147 <TD> &nbsp; </TD>
148 <TD> &nbsp; </TD>
149 <TD> &nbsp; </TD>
150 <TD> &nbsp; </TD>
151 <TD> <SAMP>@o</SAMP> </TD>
152 </TR>
153 <TR>
154 <TD><SAMP>+x</SAMP> </TD>
155 <TD> <SAMP>+f</SAMP> </TD>
156 <TD> <SAMP>+i</SAMP> </TD>
157 <TD> <SAMP>+j</SAMP> </TD>
158 <TD> <SAMP>+l</SAMP> </TD>
159 <TD> <SAMP>+t</SAMP> </TD>
160 <TD> <SAMP>+u</SAMP> </TD>
161 <TD> <SAMP>+o</SAMP> </TD>
162 </TR>
163 <TR>
164 <TD>"<TT>.fws</TT>" </TD>
165 <TD> "<TT>.fw</TT>" </TD>
166 <TD> "<TT>.fwi</TT>" </TD>
167 <TD> "<TT>.jrn</TT>" </TD>
168 <TD> "<TT>.lis</TT>" </TD>
169 <TD> "<TT>.tex</TT>" </TD>
170 <TD> "<TT>.html</TT>" </TD>
171 <TD> &nbsp; </TD>
172 </TR>
173 <TR>
174 <TD>&nbsp; </TD>
175 <TD> &nbsp; </TD>
176 <TD> <SAMP>+f</SAMP> </TD>
177 <TD> <SAMP>+f</SAMP> </TD>
178 <TD> <SAMP>+f</SAMP> </TD>
179 <TD> <SAMP>+f</SAMP> </TD>
180 <TD> <SAMP>+f</SAMP> </TD>
181 <TD> &nbsp; </TD>
182 </TR>
183 <TR>
184 <TD>DefDir </TD>
185 <TD> Defdir </TD>
186 <TD> Defdir </TD>
187 <TD> Defdir </TD>
188 <TD> Defdir </TD>
189 <TD> Defdir </TD>
190 <TD> Defdir </TD>
191 <TD> Defdir </TD>
192 </TR>
193 </TABLE>
194
195 <P>The table is arranged with items of highest priority at
196 the top. The "<TT>+<letter></TT>" cells refer to the file
197 specification supplied in the given command line argument.
198 "<TT>+F</TT>" is the name of the input file.
199 "Defdir" refers to the default directory
200 specification provided by the operating system. Empty cells
201 do not contribute.
202
203 <P>The following example shows how the table is used.
204 Suppose that the user invoked FunnelWeb as
205 follows:
206
207 <P>
208 <PRE>
209 fw /usr/ross/work/sloth.fw +twalrus
210 </PRE>
211
212 <P>To work out what the documentation file should be
213 called, FunnelWeb starts with the empty string and then
214 works down the Document column of the table. The top entry
215 is empty so we ignore it and proceed to the second entry
216 which consists of "<TT>+T</TT>". The user specified the
217 string "<TT>walrus</TT>" as the value of this option, and as
218 our current (empty) string does not have a name field, we
219 insert the string "<TT>walrus</TT>" into the name field,
220 resulting in the string "<TT>walrus</TT>". Moving down to
221 the next row, we encounter the constant string
222 "<TT>.tex</TT>". This string consists of an empty directory
223 and name field, but a "<TT>.tex</TT>" file extension. As our
224 current string "<TT>walrus</TT>", does not already have a
225 file extension (i.e. the file extension field of our
226 current string is empty), we add in "<TT>.tex</TT>",
227 resulting in the string "<TT>walrus.tex</TT>". Next we
228 encounter the "<TT>+F</TT>" field which is the input
229 filename "<TT>/usr/ross/work/sloth.fw</TT>" consisting of a
230 directory field "<TT>/usr/ross/work/</TT>", a name field
231 "<TT>sloth</TT>", and a file extension field "<TT>.fw</TT>".
232 Our "<TT>walrus.tex</TT>" string already has name and file
233 extension fields, but its directory field is empty, and so
234 we add in the directory field from the input file
235 specification, resulting in the string
236 "<TT>/usr/ross/work/walrus.tex</TT>". Finally, we hit the
237 default directory specification, which is (say)
238 "<TT>/usr/ross/play/</TT>". However, as the directory field
239 of our walrus string is already full, it has no effect.
240
241 <P>In general, there is no need to remember the exact
242 details of FunnelWeb's filename inheritance. The important
243 thing is to know that it exists, and to use it.
244
245
246 <P>
247 <TABLE WIDTH="100%">
248 <TR>
249 <TD ALIGN="left" VALIGN="bottom"><A HREF="interface_options.html"><IMG SRC="binary/fw_left.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Prev"></A></TD>
250 <TD ALIGN="center" VALIGN="bottom"><A HREF="interface.html"><IMG SRC="binary/fw_up.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Up"></A></TD>
251 <TD ALIGN="right" VALIGN="bottom"><A HREF="interface_startup.html"><IMG SRC="binary/fw_right.gif" HEIGHT="32" WIDTH="32" BORDER="0" ALT="Next"></A></TD>
252 </TR>
253 </TABLE>
254
255
256
257 <P>
258 <HR>
259 <FONT SIZE="2">
260 <A HREF="mailto:[email protected]">Webmaster</A>&nbsp;&nbsp;&nbsp;
261 <A HREF="copyright.html">Copyright &copy; Ross N. Williams 1992,1999. All rights reserved.</A><BR>
262 </FONT>
263
264 </FONT>
265 </TD>
266 </TR>
267 </TABLE>
268
269
270 </FONT>
271 </BODY>
272
273 <!-- *********************************************************************** -->
274 <!-- End Of A FunnelWeb Manual Web Page (www.ross.net/funnelweb/) -->
275 <!-- *********************************************************************** -->
276
277 </HTML>