Anonymous user
Documentation: Difference between revisions
BLC docs
(Added XPL0 example.) |
imported>Tromp (BLC docs) |
||
(One intermediate revision by one other user not shown) | |||
Line 95:
return number1 + number2 + number3
}</syntaxhighlight>[http://www.autohotkey.net/~tinku99/test/example_add.htm Resulting Documentation]
=={{header|Binary Lambda Calculus}}==
One of the best ways to document BLC programs is to generate them from a lambda file using the blc tool from https://github.com/tromp/AIT
Lambda files support arbitrary identifiers, a let ... in construct, recursive definitions, and of course (Haskell style) comments.
Many of the BLC solutions on Rosetta Code link to the lambda file from which they were generated.
=={{header|C}}==
Line 1,936 ⟶ 1,941:
However, there are currently no special tools for extracting documentation comments that I'm aware of.
<syntaxhighlight lang="
var mol = 42
|