Next Up Previous Contents
Next: 5.2.2 DSSSL
Up: 5.2 Specific language variants
Previous: 5.2 Specific language variants
[ID index][Keyword index]

5.2.1 Fortran

The principal customisations for Fortran documents are to do with the definition of `short references' for certain tags, to help you `hide' SGML within Fortran comments.

The string *+ coming at the beginning of the line, is equivalent to the func start-tag, and *- at the beginning of the line is recognised as the codebody start-tag. Within the func element, a * at the beginning of the line is ignored. Further, within the parameter element, an equals sign, =, is recognised as a type start-tag, and within that element, end-of-line and : are recognised as a description start-tag.

All together, this means that, as trailed in Section 5.1.1, the code fragment

*+
* <routinename>helloworld
* <description>Greets the world with a sunny hello
* <returnvalue type=string>Suitably formatted greeting
* <parameter given>
*   language = enumerated list
*     Selects the language to use.
*     Allowed values are english and sanskrit.
* <authorlist><authorref id=ng>
*-
      (function source code goes here)
is interpreted as
<func>
<routinename>helloworld
<description>Greets the world with a sunny hello
<returnvalue type=string>Suitably formatted greeting
<parameter given>language
  <type>enumerated list<description>Selects the language to use.
  Allowed values are english and sanskrit.
<authorlist><authorref id=ng>
<codebody>
      (function source code goes here)


Next Up Previous Contents
Next: 5.2.2 DSSSL
Up: 5.2 Specific language variants
Previous: 5.2 Specific language variants
[ID index][Keyword index]
The Starlink SGML Set
Starlink System Note 70
Norman Gray, Mark Taylor
21 April 1999. Release DR-0.7-13. Last updated 24 August 2001