<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% to weave:% ===&gt; this file was generated automatically by noweave --- better not edit it
%   noweave -t4 -delay -index example.nw -filter custom-code &gt;example.tex
% 
\documentclass{article}
\usepackage{noweb}
\noweboptions{smallcode}
\topmargin=0pt
\textheight=9in
\def\sub#1{$_{#1}$}
\def\minus{-}
\def\plus{+}
\def\equals{=}
\def\lt{&lt;}
\def\gt{&gt;}
\def\neliac{%
    \catcode`_=\active%
    \catcode`|=\active%
    \catcode`&amp;=\active%
    \catcode`*=\active%
    \catcode`'=\active%
    \catcode`^=\active%
    \catcode`-=\active%
    \catcode`+=\active%
    \catcode`==\active%
    \catcode`&lt;=\active%
    \catcode`&gt;=\active%
    \catcode`/=\active%
}
\bgroup\neliac
\global\def\nwcustomcode{\neliac%
    \global\def_##1{\sub{##1}}%
    \global\def|{$\cup$}%
    \global\def&amp;{$\cap$}%
    \global\def*{$\times$}%
    \global\def'{$\vert$}%
    \global\def^{$\uparrow$}%
    \global\def+{$\plus$}%
    \global\def={$\equals$}%
    \global\def/##1{\(\ifx##1=\ne\else\slash##1\fi\)}%
    \global\def&lt;##1{\(\ifx##1=\le\else\lt##1\fi\)}%
    \global\def&gt;##1{\(\ifx##1=\ge\else\gt##1\fi\)}%
    \global\def-##1{\(\ifx##1&gt;\to\else\minus##1\fi\)}%
}
\egroup

\begin{document}
Here is some actual code from the original Neliac compiler for the
Univac M-460 ``Countess'' computer (written in Neliac, of course):
\nwfilename{example.nw}\nwbegincode{1}\sublabel{NW36h5rr-1p0Y9w-1}\nwmargintag{{\nwtagstyle{}\subpageref{NW36h5rr-1p0Y9w-1}}}\moddef{*~{\nwtagstyle{}\subpageref{NW36h5rr-1p0Y9w-1}}}\endmoddef\nwstartdeflinemarkup\nwprevnextdefs{\relax}{NW36h5rr-1p0Y9w-2}\nwenddeflinemarkup
\bgroup\nwcustomcode{}DEBUG SCAN:
i = 0: standard compiling location -&gt; i; ;
j = 0: obj prog std last address -&gt; j; ;
i = i(1)j\{ [i] = straight jump function | [i] = return jump function:
    fault 9. ; [i](15 -&gt; 29) = 61000_8 &amp; [i](0 -&gt; 14) - bias -&gt; k /= 0:
    \{ [k] = 0 | [k] = straight jump function: fault 10. ;  \}; ;
l'oop exit:  \}. check key sets, turn off flex, clear indices,
key[2] /= 0: dump name lists and stop. exit.
F'AULT 9:
start flex, carriage return upper case, 69 -&gt; lower loop limit,
72 -&gt; upper loop limit, dump a title,
n = 177_8(1)0\{ undefined name location[n] = i:
    write undefined name, continue. ;  \},
C'ONTINUE: write address, loop exit.
F'AULT 10:
start flex, carriage return upper case,
77 -&gt; lower loop limit, 82 -&gt; upper loop limit, dump a title,
n = 777_8(1)0\{ name address[n] - bias = k: write name, go on. ;  \},
k -&gt; upper dump buffer[1], dump five number,
G'O ON: write address, loop exit.
W'RITE ADDRESS:
\{ 73 -&gt; lower loop limit, 76 -&gt; upper loop limit, dump a title,
i -&gt; upper dump buffer[1], dump five numbers,  \}. e'xit: . .
\egroup{}\nwalsodefined{\\{NW36h5rr-1p0Y9w-2}}\nwnotused{*}\nwendcode{}\nwbegindocs{2}\nwdocspar
And here is the very same code without the \verb"custom-code"
typesetting:\let\nwcustomcode=\relax
\nwenddocs{}\nwbegincode{3}\sublabel{NW36h5rr-1p0Y9w-2}\nwmargintag{{\nwtagstyle{}\subpageref{NW36h5rr-1p0Y9w-2}}}\moddef{*~{\nwtagstyle{}\subpageref{NW36h5rr-1p0Y9w-1}}}\plusendmoddef\nwstartdeflinemarkup\nwprevnextdefs{NW36h5rr-1p0Y9w-1}{\relax}\nwenddeflinemarkup
\bgroup\nwcustomcode{}DEBUG SCAN:
i = 0: standard compiling location -&gt; i; ;
j = 0: obj prog std last address -&gt; j; ;
i = i(1)j\{ [i] = straight jump function | [i] = return jump function:
    fault 9. ; [i](15 -&gt; 29) = 61000_8 &amp; [i](0 -&gt; 14) - bias -&gt; k /= 0:
    \{ [k] = 0 | [k] = straight jump function: fault 10. ;  \}; ;
l'oop exit:  \}. check key sets, turn off flex, clear indices,
key[2] /= 0: dump name lists and stop. exit.
F'AULT 9:
start flex, carriage return upper case, 69 -&gt; lower loop limit,
72 -&gt; upper loop limit, dump a title,
n = 177_8(1)0\{ undefined name location[n] = i:
    write undefined name, continue. ;  \},
C'ONTINUE: write address, loop exit.
F'AULT 10:
start flex, carriage return upper case,
77 -&gt; lower loop limit, 82 -&gt; upper loop limit, dump a title,
n = 777_8(1)0\{ name address[n] - bias = k: write name, go on. ;  \},
k -&gt; upper dump buffer[1], dump five number,
G'O ON: write address, loop exit.
W'RITE ADDRESS:
\{ 73 -&gt; lower loop limit, 76 -&gt; upper loop limit, dump a title,
i -&gt; upper dump buffer[1], dump five numbers,  \}. e'xit: . .
\egroup{}\nwendcode{}

\nwixlogsorted{c}{{*}{NW36h5rr-1p0Y9w-1}{\nwixd{NW36h5rr-1p0Y9w-1}\nwixd{NW36h5rr-1p0Y9w-2}}}%
\nwbegindocs{4}\relax
\end{document}
\nwenddocs{}
</pre></body></html>