Lecture overview -- Keyboard shortcut: 'u'  Previous page: An Introductory LAML Example [Section] -- Keyboard shortcut: 'p'  Next page: Programmatic Authoring [Section] -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Lecture 7 - Page 2 : 24
Functional Programming in Scheme
LAML
HTML documents in LAML

We introduce LAML by studying the LAML counterpart of a very simple HTML document

y:/Kurt/Files/courses/prog3/prog3-03/sources/notes/includes/initial-document-abstractions/initial-document.htmlA very simple HTML document that illustrates the overall HTML document structure.

It may, however, be tedious to write these tags for each and every small HTML page you have to produce.

y:/Kurt/Files/courses/prog3/prog3-03/sources/notes/includes/initial-document-abstractions/doc0.lamlThe same document as an LAML expression.

We see that the the shift from HTML to LAML is a matter of a few changes, some of which can be claimed to be of lexcical nature, and some of which are of concrete syntactical of nature. Notice the use of the underscore character, which suppresses the insertion of white space. This document cannot be processed immediately. However, the next version that we show can be processed.

y:/Kurt/Files/courses/prog3/prog3-03/sources/notes/includes/initial-document-abstractions/doc1.lamlThe document from above embedded in the LAML framework.

Besides initial loading, we see the imperative writing of the functionally generated document to a specific target file. If the source file is doc1.laml, the target file will be doc1.html.