/usr/share/doc/fweb/html-info/Languages.html is in fweb-doc 1.62-13.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 6.1, http://www.gnu.org/software/texinfo/ -->
<head>
<title>FWEB: Languages</title>
<meta name="description" content="FWEB: Languages">
<meta name="keywords" content="FWEB: Languages">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="Concept-index.html#Concept-index" rel="index" title="Concept index">
<link href="Parameter-index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="index.html#Top" rel="up" title="Top">
<link href="Setting-the-language.html#Setting-the-language" rel="next" title="Setting the language">
<link href="Preprocessing.html#Preprocessing" rel="prev" title="Preprocessing">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en">
<a name="Languages"></a>
<div class="header">
<p>
Next: <a href="Macros.html#Macros" accesskey="n" rel="next">Macros</a>, Previous: <a href="Comments.html#Comments" accesskey="p" rel="prev">Comments</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> [<a href="Parameter-index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-index.html#Concept-index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="LANGUAGES"></a>
<h2 class="chapter">8 LANGUAGES</h2>
<a name="index-Languages"></a>
<a name="index-Language_002c-global"></a>
<p><small>FWEB</small> has the ability to work with more than one source language
during a single run. The language in effect at the beginning of the
first section defines the <em>global language</em>. Further language
changes within a section have scope local to that section.
</p>
<p>Usually, ‘language’ means a compiler language like <small>FORTRAN</small> or C.
These languages will be “pretty-printed” by <small>FWEAVE</small>.
Pretty-printing can be inhibited by turning on the N mode (globally,
with the command-line option ‘<samp>-N</samp>’; locally, with ‘<samp>@N</samp>’) or by
selecting the <small>VERBATIM</small> ‘language’; in both of these cases, the input
text is echoed literally to the output of both <small>FTANGLE</small> and
<small>FWEAVE</small>.
</p>
<p>‘Language’ is a stronger concept than ‘mode’. For example, when a
language is selected, the extension of the tangled output file is
changed appropriately—for example, if <samp>test.web</samp> contains C code
(that is, contains the command ‘<samp>@c</samp>’), <samp>test.web</samp> tangles into
<samp>test.c</samp> (compressing blanks and otherwise (deliberately) making
the tangled output relatively unreadable) and <small>FWEAVE</small> pretty-prints
using the C syntax. Turning on the N mode does not affect the language;
<small>FTANGLE</small> copies the source code literally into <samp>test.c</samp> (no
blank compression or other modifications), and <small>FWEAVE</small> typesets the
source code within a verbatim environment (no pretty-printing). When
the <small>VERBATIM</small> language is selected, the N mode is turned on
automatically, but <small>FTANGLE</small> writes its output to a file with a
special default extension that can be customized in the style file.
See <a href="Miscellaneous-params.html#Miscellaneous-params">Miscellaneous params</a>.
</p>
<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top">• <a href="Setting-the-language.html#Setting-the-language" accesskey="1">Setting the language</a>:</td><td> </td><td align="left" valign="top">Setting the language.
</td></tr>
<tr><th colspan="3" align="left" valign="top"><pre class="menu-comment">
Special hints and considerations for each language.
</pre></th></tr><tr><td align="left" valign="top">• <a href="C.html#C" accesskey="2">C</a>:</td><td> </td><td align="left" valign="top">C
</td></tr>
<tr><td align="left" valign="top">• <a href="Cpp.html#Cpp" accesskey="3">C++</a>:</td><td> </td><td align="left" valign="top">C++.
</td></tr>
<tr><td align="left" valign="top">• <a href="Fortran.html#Fortran" accesskey="4">Fortran</a>:</td><td> </td><td align="left" valign="top">Fortran–77 and Fortran–90.
</td></tr>
<tr><td align="left" valign="top">• <a href="Ratfor_005f.html#Ratfor_005f" accesskey="5">Ratfor</a>:</td><td> </td><td align="left" valign="top">RATional FORtran.
</td></tr>
<tr><td align="left" valign="top">• <a href="TeX.html#TeX" accesskey="6">TeX</a>:</td><td> </td><td align="left" valign="top">TeX.
</td></tr>
<tr><td align="left" valign="top">• <a href="Verbatim.html#Verbatim" accesskey="7">Verbatim</a>:</td><td> </td><td align="left" valign="top">Literal mode.
</td></tr>
</table>
<hr>
<div class="header">
<p>
Next: <a href="Macros.html#Macros" accesskey="n" rel="next">Macros</a>, Previous: <a href="Comments.html#Comments" accesskey="p" rel="prev">Comments</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> [<a href="Parameter-index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-index.html#Concept-index" title="Index" rel="index">Index</a>]</p>
</div>
</body>
</html>
|