contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
rule type   find    
Sample Code   Related Syntax   Related Concepts  

Syntax

  find pattern condition?
     local-declarations*
     action*


Purpose

A pattern processor rule that defines a data event.

When a pattern occurs in the current input which matches the pattern specified for the find rule, the rule is fired, causing the events associated with the rule to be executed.

When there is more than one find rule that can be selected, OmniMark will choose the one that appears earliest in the program.

When a find rule is selected, the input matched by the pattern is consumed and cannot be matched again. (OmniMark provides the lookahead operator to allow patterns to match without consuming the input.) Input matched by the pattern can be captured in pattern variables for later use in the actions associated with the rule.

A find rule must match at least one character, or one position in the input.

Any input that does not cause a find rule to fire is copied unchanged to the current output.

Sample Code  
   Asynchronous concurrent context-translations: how they work
   Context translations: a simple example
   Cross translations: a simple example
   TeX to SGML conversions
   Up translations: a simple example
 
Related Syntax
   lookahead, lookahead not
   pattern
   do sgml-parse
   do xml-parse
 
Related Concepts
   Event handling
   Finite state machines
 
----

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:05 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.