home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / filescan / scancontext < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.3 KB  |  27 lines

  1.  
  2.  
  3.           scancontext [option]
  4.                This command manages file scan contexts.  A scan
  5.                context is a collection of regular expressions and
  6.                commands to execute when that regular expression
  7.                matches a line of the file.  A context may also have a
  8.                single default match, to be applied against lines that
  9.                do not match any of the regular expressions.  Multiple
  10.                scan contexts may be defined and they may be reused on
  11.                multiple files.  A scan context is identified by a
  12.                context handle.  The scancontext command takes the
  13.                following forms:
  14.  
  15.           scancontext create
  16.                Create a new scan context.  The scanmatch command is
  17.                used to define patterns in the context.  A
  18.                contexthandle is returned, which the Tcl programmer
  19.                uses to refer to the newly created scan context in
  20.                calls to the Tcl file scanning commands.
  21.  
  22.           scancontext delete contexthandle
  23.                Delete the scan context identified by contexthandle,
  24.                and free all of the match statements and compiled
  25.                regular expressions associated with the specified
  26.                context.
  27.