The STARTDEF macro typically occurs in files that define a macro package for Yodl. The macro signals the yodl program that the following input holds only the definitions of macros, symbols etc.. When yodl is inside a definition, the generation of empty lines on the output is suppressed, and yodl warns when non-whitespace output is generated. Using STARTDEF is never obligatory, but it is useful in a macro file. Macro files tend to define a lot of symbols or commands, leading to unnecessary spaces and newlines. The definition section is ended with the ENDDEF macro. Example:
STARTDEF()

DEFINESYMBOL(....)
DEFINEMACRO(...)(...)(...)

ENDDEF()

Without the STARTDEF and ENDDEF, the above definition would generate four empty lines in the output.


Go back to index of Yodl.

Please send Yodl questions and comments to yodl@icce.rug.nl.

Please send comments on these web pages to (address unknown)

Copyright (c) 1997, 1998, 1999 Karel Kubat and Jan Nieuwenhuizen.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from Yodl-1.31.18 by

<(address unknown)>, Thu Apr 9 11:00:27 2009 EDT.