Next: FWEB sections and modules
Up: Annotating Codes with FWEB
Previous: The structure of an
FWEB commands
- FWEB commands are flagged by an
@ symbol in the
WEB input file.
- Most TEX and LATEX commands can be used in the
WEB input file too, although with some caution: don't
try stretching things too far. Usually there is a way
to accomplish just about anything you wish, although
sometimes with a little bit of effort.
- These FWEB commands specify the language for
the following FWEB sections:
- @c
- C
- @c++
- C++
- @n
- Fortran-77
- @n9
- Fortran-90
- @r
- Ratfor-77
- @r9
- Ratfor-90
- @x
- TEX
- @v
- verbatim
- The
@n (or similar) command may be followed
by options, as in @n9[-n/].
- Tricky problems may arise if you try to be too clever,
e.g.,
// is a string concatentation operator
in Fortran. If you use the [-n/] option
for C++ style comments in your WEB file, you may
find it impossible to concatenate strings - and
you may not even notice it: all concatenation operations
will quietly vanish from the generated Fortran code.
Zdzislaw Meglicki
2001-02-26