Encoding Transparency: Literate Programming and Test Generation for Scientific Function Libraries
Keyword(s):
We present a variation on literate programming (see Knuth: 1984, 1992) targeting multiple simultaneous readerships, both human (e.g., coders, testers, analysts, etc.) and compilers/interpreters (e.g., C++, Python, Fortran, etc.). The technique exploits existing commenting syntax available in all common programming languages to provide inline documentation and other semantic markup, which can then be used in test generation and code translation. To keep the problem manageable, we restrict attention to scientific function libraries (i.e., libraries of numerical routines adhering to the functional programming rule of “no side effects”). We offer a prototype implementation in XSLT and DocBook.
2006 ◽
Vol 151
(3)
◽
pp. 27-45
Keyword(s):
1994 ◽
Vol 4
(1)
◽
pp. 47-63
◽
1998 ◽
Vol 8
(1)
◽
pp. 1-22
◽