swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
  Related Syntax   Related Concepts  
declaration/definition   include    

Syntax

  include file-name

Where:
file-name



Purpose

Includes a source file in the current program by using an include declaration. The content of the included file is processed as if it appeared in place of the include declaration.

An include declaration can appear anywhere in an OmniMark program. Files inserted by include declarations can contain include declarations -- the maximum nesting depth is 100. An included file, however, must not include itself. Use include-guard to prevent any file being included twice.

An include declaration ends any rule that appears before it. Similarly, if a rule's definition starts inside an included file, the definition ends with the end of the included file.

Rules and declarations in an include file are only allowed if they are permitted where the include declaration occurs. For example, an escape declaration can only appear in an include file if the include declaration occurs at the start of a program.

    Related Syntax
   cross-translate
   down-translate
   process-end
   process-start
   submit
   include-guard
 
Related Concepts
   Including code from other files
   Rule-based program, basic structure
 
----

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ OMX ] [ ERRORS ]

Generated: August 11, 2000 at 3:07:21 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.