next up previous contents
Next: Modules - Global Data Up: Modules Previous: Modules

 

Modules - General Form

The syntax of a module program unit is:

 
MODULE  tex2html_wrap_inline21746  module name  tex2html_wrap_inline21748 

tex2html_wrap_inline21746  declarations and specifications statements tex2html_wrap_inline21748

[ CONTAINS

tex2html_wrap_inline21746  definitions of module procedures tex2html_wrap_inline21748 ]

END [ MODULE [ tex2html_wrap_inline21746  module name tex2html_wrap_inline21748 ] ]

tex2html_wrap_inline21746  module name tex2html_wrap_inline21748 is the name that appears in the USE statement, it is not necessarily the same as the filename.

  figure10462
Figure 9: Schematic Diagram of a Module Program Unit

Entities of other modules can be accessed by a USE statement as the first statement in the specification part. This is called use-association.

Non-circular dependent definition chains are allowed (one module USE s another which USE s another and so on) providing a partial-inheritance mechanism.

A module may include the following declarations and specifications:


next up previous contents
Next: Modules - Global Data Up: Modules Previous: Modules

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 15:03:35 GMT 1996
Not for commercial use.