process-start

rule

Syntax
process-start condition?
   action*


Purpose

process-start is a rule meant to contain any set up processing for a program; it is used to initialize the state (e.g., globals) of the program to a consistent state for process rules. A program can contain more than one process-start 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-start rule.

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

Related Syntax