swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsSyntaxLibraries
 
    Related Syntax  

Co-routines

OmniMark has the capability to run processes as co-routines. Co-routines occurs whenever a program is generating markup which is then fed to the XML or SGML parser. This occurs in up-translate and context-translate programs, in programs that do subdocument processing, and in programs that use an string source function to supply input to the parser in a do xml-parse and do sgml-parse.

The use of co-routines has three principal advantages:

For the most part, you do not need to concern yourself with the mechanics of co-routines. OmniMark handles all the details for you. However, there are some important restrictions you need to be aware of:

If you write code that depends on the interaction between two co-routines, you may need to be aware of the rules OmniMark uses when switching from one co-routine to another.

    Related Syntax
   do sgml-parse
 
 

Top [ INDEX ] [ CONCEPTS ] [ SYNTAX ] [ LIBRARIES ]

Abridged OmniMark 8.2.0 Documentation Generated: March 18, 2008 at 1:13:08 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.