swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
     
operator  

=> (pattern variable assignment operator)

 

 

Return type: String
Returns:       

Syntax

  pattern => pattern-variable


Purpose

The pattern variable assignment operator. You use => within a pattern to cause all or part of the pattern to be assigned to a pattern variable.

  find white-space letter+ => found-word white-space
     output found-word

Note that you can only use => where a single and unambiguous pattern variable assignment can occur. The following code would be illegal, for instance, because the pattern variable assignment could take place more than once in the course of matching the pattern:

  find white-space (letter => found-letter)+ white-space
     output found-letter

       
 

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

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:44:55 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.