force use of pandoc version >= 3.1.12.2
The `bin/pandoc-wrapper.sh` tool will verify that the ssytem has a recent enough version of `pandoc(1)`. We explain why we insist on `pandoc(1)`. version >= 3.1.12.2 in comments where the $PANDOC_MIN_VERSION is set. Added `--wrap=preserve` as a default argument to `pandoc(1)`. While this change will impact every HTML file generated, we believe this will improve the ability of someone to look at the generated HTML and correlate with the original markdown. Changed `bin/pandoc-wrapper.sh` VERSION from "1.4.2 2024-03-17" to "1.4.3 2024-03-18". Performed `make www` to achieve all of the above and to generate HTML using the new `--wrap=preserve` `pandoc(1)` mode.
This commit is contained in:
1 parent
9eb7a54e9f
commit
b0b212acb1
402 files changed
+37061
-55132
No files matched your search
+43
-72
@@ -129,9 +129,9 @@
|
||||
|
||||
<h2 id="author"><a name="author"></a>Author:</h2>
|
||||
<ul>
|
||||
<li>Name: <a href="../../authors.html#Diomidis_Spinellis">Diomidis
|
||||
Spinellis</a><br> Location: <a href="../../location.html#GR">GR</a> -
|
||||
<em>Hellenic Republic</em> (<em>Greece</em>) <br><br></li>
|
||||
<li>Name: <a href="../../authors.html#Diomidis_Spinellis">Diomidis Spinellis</a><br>
|
||||
Location: <a href="../../location.html#GR">GR</a> - <em>Hellenic Republic</em> (<em>Greece</em>)
|
||||
<br><br></li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-author.sh -->
|
||||
@@ -148,24 +148,21 @@ Spinellis</a><br> Location: <a href="../../location.html#GR">GR</a> -
|
||||
<p>The author suggests trying:</p>
|
||||
<div class="sourceCode" id="cb3"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./dds</span> LANDER.BAS</span>
|
||||
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="ex">./a.out</span></span></code></pre></div>
|
||||
<p>Notice that a file <code>a.c</code> has been generated. Can you tell
|
||||
how <code>a.c</code> was produced? How does <code>a.c</code> relate to
|
||||
<a href="LANDER.BAS">LANDER.BAS</a>?</p>
|
||||
<p>What happens if you give the program a C program like itself?
|
||||
Try:</p>
|
||||
<p>Notice that a file <code>a.c</code> has been generated. Can you tell how <code>a.c</code> was
|
||||
produced? How does <code>a.c</code> relate to <a href="LANDER.BAS">LANDER.BAS</a>?</p>
|
||||
<p>What happens if you give the program a C program like itself? Try:</p>
|
||||
<div class="sourceCode" id="cb4"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="ex">./dds</span> dds.c</span></code></pre></div>
|
||||
<p>You’ll get errors yes but what does the generated file look like?
|
||||
What about other types of files?</p>
|
||||
<p>You’ll get errors yes but what does the generated file look like? What about
|
||||
other types of files?</p>
|
||||
<h2 id="judges-remarks">Judges’ remarks:</h2>
|
||||
<p>This obfuscated program translates BASIC programs into obfuscated C
|
||||
programs by way of an obfuscated algorithm.</p>
|
||||
<p>This obfuscated program translates BASIC programs into obfuscated
|
||||
C programs by way of an obfuscated algorithm.</p>
|
||||
<h2 id="authors-remarks">Author’s remarks:</h2>
|
||||
<p>This program is a companion to the <a
|
||||
href="../../1990/dds/index.html">1990/dds</a> 1990 DDS-BASIC interpreter
|
||||
program. This compiles BASIC programs into compilable C code and then
|
||||
compiles it. The input format is almost identical to the input format of
|
||||
the DDS-BASIC interpreter. The program needs an executable C compiler
|
||||
called <code>cc</code> in your path in order to work.</p>
|
||||
<p>This program is a companion to the <a href="../../1990/dds/index.html">1990/dds</a>
|
||||
1990 DDS-BASIC interpreter program. This compiles BASIC programs into compilable C code
|
||||
and then compiles it. The input format is almost identical to the input format
|
||||
of the DDS-BASIC interpreter. The program needs an executable C compiler called
|
||||
<code>cc</code> in your path in order to work.</p>
|
||||
<h3 id="program-commands">Program commands:</h3>
|
||||
<ul>
|
||||
<li>variable names <code>A</code> to <code>Z</code></li>
|
||||
@@ -183,84 +180,58 @@ called <code>cc</code> in your path in order to work.</p>
|
||||
<li>var = exp</li>
|
||||
<li>END</li>
|
||||
</ul>
|
||||
<p>Expressions are the same as the expressions of the C language. Many
|
||||
system calls and C library calls can be used.</p>
|
||||
<p>Expressions are the same as the expressions of the C language.
|
||||
Many system calls and C library calls can be used.</p>
|
||||
<h3 id="input-format">Input format:</h3>
|
||||
<ul>
|
||||
<li>Free format positioning of tokens on the line.</li>
|
||||
<li>No space is allowed before the line number.</li>
|
||||
<li>Exactly one space is needed after the <code>FOR</code> and
|
||||
<code>NEXT</code> tokens.</li>
|
||||
<li>Exactly one space is needed after the <code>FOR</code> and <code>NEXT</code> tokens.</li>
|
||||
<li>ALL INPUT MUST BE UPPERCASE.</li>
|
||||
</ul>
|
||||
<h3 id="error-checking-error-reports">Error checking / error
|
||||
reports:</h3>
|
||||
<p>The compiler silently ignores many errors. Other errors may produce
|
||||
errors in later phases of the compilation.</p>
|
||||
<h3 id="can-you-figure-out-how-the-compiler-works">Can you figure out
|
||||
how the compiler works?</h3>
|
||||
<h3 id="error-checking-error-reports">Error checking / error reports:</h3>
|
||||
<p>The compiler silently ignores many errors.
|
||||
Other errors may produce errors in later phases of the compilation.</p>
|
||||
<h3 id="can-you-figure-out-how-the-compiler-works">Can you figure out how the compiler works?</h3>
|
||||
<h4 id="hint">Hint:</h4>
|
||||
<p>The compiler is NOT written in C, so this is really a meta-obfuscated
|
||||
program. The C code is an interpreter for the four register, seven
|
||||
instruction <code>COGNIMP$</code> machine that is contained in the
|
||||
<code>s</code> string. (<code>COGNIMP$</code> is named after the
|
||||
symbolic names of the seven instructions it defines (<code>Copy</code>,
|
||||
<code>Output</code>, <code>Goto</code>, <code>iNcrement</code>,
|
||||
<code>If</code>, <code>Match</code> and <code>Print</code>).</p>
|
||||
<p>The <code>$</code> sign is used for labels. The actual compiler is
|
||||
written in <code>COGNIMP$</code>. Browsing through the
|
||||
<code>COGNIMP$</code> code we encourage you to examine the loops for
|
||||
scanning the expression in the <code>IF</code> statement and the way a
|
||||
decision tree is implemented in order to match the statements. (Of
|
||||
course the <code>s</code> string is encoded by adding one to every
|
||||
character of it just to confuse you).</p>
|
||||
<h2 id="copyright-and-cc-by-sa-4.0-license">Copyright and CC BY-SA 4.0
|
||||
License:</h2>
|
||||
<p>This file is Copyright (c) 2023 by Landon Curt Noll. All Rights
|
||||
Reserved. You are free to share and adapt this file under the terms of
|
||||
this license:</p>
|
||||
instruction <code>COGNIMP$</code> machine that is contained in the <code>s</code> string.
|
||||
(<code>COGNIMP$</code> is named after the symbolic names of the seven instructions it
|
||||
defines (<code>Copy</code>, <code>Output</code>, <code>Goto</code>, <code>iNcrement</code>, <code>If</code>, <code>Match</code> and <code>Print</code>).</p>
|
||||
<p>The <code>$</code> sign is used for labels. The actual compiler is written in <code>COGNIMP$</code>.
|
||||
Browsing through the <code>COGNIMP$</code> code we encourage you to examine the loops for
|
||||
scanning the expression in the <code>IF</code> statement and the way a decision tree is
|
||||
implemented in order to match the statements. (Of course the <code>s</code> string is
|
||||
encoded by adding one to every character of it just to confuse you).</p>
|
||||
<h2 id="copyright-and-cc-by-sa-4.0-license">Copyright and CC BY-SA 4.0 License:</h2>
|
||||
<p>This file is Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved.
|
||||
You are free to share and adapt this file under the terms of this license:</p>
|
||||
<pre><code>Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)</code></pre>
|
||||
<p>For more information, see:
|
||||
https://creativecommons.org/licenses/by-sa/4.0/</p>
|
||||
<p>For more information, see: https://creativecommons.org/licenses/by-sa/4.0/</p>
|
||||
|
||||
<!-- END: this line ends content for HTML phase 21 by: bin/pandoc-wrapper.sh via bin/md2html.sh -->
|
||||
<!-- START: this line starts content for HTML phase 22 by: bin/output-index-inventory.sh via bin/md2html.sh -->
|
||||
|
||||
<!-- START: this line starts content generated by: bin/output-index-inventory.sh -->
|
||||
|
||||
<h1 id="inventory-for-1991dds"><a name="inventory"></a>Inventory for
|
||||
1991/dds</h1>
|
||||
<h1 id="inventory-for-1991dds"><a name="inventory"></a>Inventory for 1991/dds</h1>
|
||||
<p><a href="#top">Jump to top</a></p>
|
||||
<h2 id="primary-files">Primary files</h2>
|
||||
<ul>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/dds.c">dds.c</a>
|
||||
- entry source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/Makefile">Makefile</a>
|
||||
- entry Makefile</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/dds.orig.c">dds.orig.c</a>
|
||||
- original source</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/LANDER.BAS">LANDER.BAS</a>
|
||||
- BASIC source code</li>
|
||||
<li><a href="1991_dds.tar.bz2">1991_dds.tar.bz2</a> - download entry
|
||||
source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/dds.c">dds.c</a> - entry source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/Makefile">Makefile</a> - entry Makefile</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/dds.orig.c">dds.orig.c</a> - original source</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/LANDER.BAS">LANDER.BAS</a> - BASIC source code</li>
|
||||
<li><a href="1991_dds.tar.bz2">1991_dds.tar.bz2</a> - download entry source</li>
|
||||
</ul>
|
||||
<h2 id="secondary-files">Secondary files</h2>
|
||||
<ul>
|
||||
<li><a href="index.html">index.html</a> - entry home page</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/.entry.json">.entry.json</a>
|
||||
- description of entry in JSON</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/.gitignore">.gitignore</a>
|
||||
- list of files that should not be committed under git</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/.entry.json">.entry.json</a> - description of entry in JSON</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/.gitignore">.gitignore</a> - list of files that should not be committed under git</li>
|
||||
<li><a href=".path">.path</a> - directory path from top directory</li>
|
||||
<li><a
|
||||
href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/README.md">README.md</a>
|
||||
- markdown source for index.html</li>
|
||||
<li><a href="https://github.com/ioccc-src/temp-test-ioccc/blob/master/1991/dds/README.md">README.md</a> - markdown source for index.html</li>
|
||||
</ul>
|
||||
|
||||
<!-- END: next line ends content generated by: bin/output-index-inventory.sh -->
|
||||
|
||||
Reference in new issue
Block a user