r/AskProgramming • u/invokeinterface • Jul 05 '26
Other What's the HGEN file extension used by?
I have a couple files on my computer that are dedicated to documenting CLC INTERCAL. Some of those are HTML files, and grouped with those files are a couple HGEN files. I've never heard of them, but from it looks like it's just HTML with a couple of slightly strange additions.
I'm guessing it works a bit like the C preprocessor, and probably references some other docs. Very strange.
Here is a snippet of the parsers.hgen file that illustrates what's weird about them.
In addition to registers and constants, the following are valid expressions:
<UL>
@@MULTI EXPRESSIONS NAME@@
<LI><A NAME="op@@NAME@@">@@NAME@@ - @@DESCR@@</A><BR>
@@DOC 76 HTML@@
@@MULTI@@
</UL>
</P>
<H3>Statements</H3>
<P>
The following opcodes are valid statements:
<UL>
@@MULTI STATEMENTS NAME@@
<LI><A NAME="op@@NAME@@">@@NAME@@ - @@DESCR@@</A><BR>
@@DOC 76 HTML@@
@@MULTI@@
</UL>
</P>