| (note-page 'syntax
(title "Syntax"
"This is description of a piece of syntax, such as a programming language syntax"
)
(syntax "This is a piece of syntax"
"This is an explanation of the syntax")
;@if expression then statement1 else statement2;@
(syntax
(colorize-substrings
(read-text-file-between-marks this-source-file ";@")
(list
(list "if" "" black 'bold)
(list "then" "" black 'bold)
(list "else" "" black 'bold)
(list "expression" "" red 'italic)
(list "statement1" "" red 'italic)
(list "statement2" "" red 'italic)
))
"An explanation of the if-then-else syntax. As it appears from the
underlying LAML source, the syntax stems from a separate file, in this
case a comment in this Scheme file. The colorizing and fonting is done when the
the text has been read"
)
(source-program this-source-file (list "(note-page 'syntax" end-marker)
(list
)
'(slide-external book-external)
"The underlying LAML program. This shows the underlying source of this part of the notes"
)
(index-words "syntax")
) ; end page |