Literate Programming
This is a (preliminary version of) page devoted to Literate Programming. When it's mature enough, I planned to make this page *the* code area. Still gathering decent materials...
For those who are not used to the concept of Literate Programming, I
suggest visiting
literateprogramming.com for a wealth of tools and articles
regarding this very effective but as yet underrated programming habit
(not without its reasons).
Facility
While you've stumbled to this tiny page, why don't you taste how LP feels like by trying it yourself? Here's a very simple Literate Programming tool, Nuweb, with a slightly modified LaTeX code and a makefile suitable for non-GNU standard C++ compilers.
- nuwebsrc_modif. Source code, hypertext documentation and packed binary.
Example
LPX2TEX
A command-line utility to convert LaTeXPiX's LPX file format to
TeX-compatible formats. LaTeXPiX
is a GUI-based LaTeX drawing tool for EEPIC and PGF.
- LPX2TEX 0.2
- LaTeXed source code/documentation [PDF]
- Source code
Boyer-Moore string-search algorithm
A sample literate program, written in Bahasa Indonesia, from my early days using Nuweb.
- File WEB dan dokumentasi yang diekstrak dari program tersebut, yang menjelaskan algoritma Boyer-Moore dan program pencari teks yang menggunakannya, sepenuhnya dengan memanfaatkan Literate Programming. Membutuhkan Nuweb untuk mengekstrak kode program dan dokumentasi; kode dikompilasi dengan BCC55, dan dokumentasi dengan LaTeX (distribusi MikTeX).
All contents of this site are made by me,
Adhi Hargo, unless noted otherwise.
Seluruh halaman dalam situs ini dibuat oleh Adhi Hargo,
kecuali orangnya bilang sebaliknya.