/ Shipman's Home Sweet Homepage
/ Site map
Cleanroom examples: PyStyler
I wrote the original WebStyler program in the Icon
language to help me maintain the 500-plus Web pages of the
TCC help system. It has
also been used to administer
New Mexico Tech's official pages
- For program externals, see the
- The program is written in the Python programming language
(see the local
Python help page).
- Here's the main program,
- Some of my
standard objects are used throughout
this program. In particular:
Log object handles error logging
and the counting of errors by class.
Scan object deals with parsing
and error messages relating to parse errors.
- Here's a list of the objects specific to WebStyler:
represents the PathMap file and handles the decoding
of short names.
object represents the Plan file.
object represents one line of the Plan file.
describes one use of an <RR> tag, whose variant link text
must be written into the ``navigational shock report.''
object is a cache for Template objects.
object describes one template file. This object also uses the
object for parsing templates, and the
objects to control template expansion.
- Each input file is represented by a
object. This object uses the
object to represent places where links can point, and it uses the
object to parse HTML tags in the input file.
The previous version
PyStyler is a complete rewrite of a nearly identical
earlier version written in Icon. See the
WebStyler page for its documentation
Next: Cleanroom examples: WebStyler
See also: Example programs written in Cleanroom style
John W. Shipman,
Last updated: 1996/11/01 21:30:09