process-end

rule

Syntax
process-end condition?
   local-declaration*
   action*


Purpose

process-end is a rule meant to handle any clean up processing for a program (e.g., to finalize output to files). A program can contain more than one process-end rule. These rules are examined in the order in which they appear in each module. When a rule is examined, the rule is executed if it has no condition, or if condition evaluates to true; once its execution has completed, OmniMark examines the next process-end rule.

All process-end rules are tried after all process-start and process rules. Furthermore, the process-end rules in imported modules are tried after the process-end rules in the importing module.

Related Syntax