Logiweb(TM)

2.12 Logiweb for Literate programming

Prev Up Next Page 15 of 800 Search internet


As mentioned, you not only define the syntax you want to use yourself. You also define the syntax you want your readers to see. As an example, the body of the combinations page defines that the binomial coefficient which reads (( m , n )) in the source is rendered as (( m , n )) in the rendering. The rendering is what readers see.

This ability allows you to do 'literate programming', i.e. programming in a style in which the readers see a text which is formated much nicer than computer programs normally are.

The rendering capabilities of Logiweb are 'Turing complete' so you can ask Logiweb to do anything a computer can do during rendering.

During rendering, Logiweb provides access to four external programs: latex, bibtex, makeindex, and dvipdfm. Having those programs available makes it easier to produce nicely formatted text.

Once upon a time, Logiweb also had separate support for other formats like XML, MathML, and several others. Now that Logiweb offers Turing complete rendering, it is up to page authors to generate whatever formats they like.

In some remote future, support for latex, bibtex, makeindex, and dvipdfm as external programs might disappear. But that will only happen if the functionality of those programs is ported to Logiweb so that they can be run internally.

In addition to human readable documents, rendering may also result in executable files. As an example, if you define a 'Hello world' program on a Logiweb page and runs the page through the lgc compiler, then the 'Hello world' executable will be part of the rendering.

Prev Up Next Page 15 of 800 Search logiweb.eu

Copyright © 2010 Klaus Grue, GRD-2010-01-05