home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / ingres04.lzh / doc / quel / delim.doc < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.6 KB  |  48 lines

  1.  
  2.  
  3.  
  4.  
  5.      DELIM(QUEL)                 12/21/84                  DELIM(QUEL)
  6.  
  7.  
  8.  
  9.      NAME
  10.           delim - specify a name for a pattern of characters
  11.  
  12.      SYNOPSIS
  13.           _d_e_s_t_r_o_y _d_e_l_i_m groupname ( delimitor, pattern )
  14.           pattern = [ "[character list]" | "{character list}" ]*
  15.  
  16.      DESCRIPTION
  17.           The delim statement allows the user to specify a name for  a
  18.           certain  pattern  of  characters, which may be used with the
  19.           substring facility. The delimitors  are  stored  in  groups,
  20.           which may be used and unused together.
  21.  
  22.           The pattern for a delimitor is specified  using  a  modified
  23.           version of BNF grammar. A character list is either a list of
  24.           the characters to match, or a range of characters  separated
  25.           by a "-", or a combination or both of the above. A character
  26.           list in brackets indicates that one of the  characters  must
  27.           match exactly once, and a character list in braces indicates
  28.           that one of the characters may match zero or more times. The
  29.           pattern is composed of a list of character lists.
  30.  
  31.           After a delimitor has been defined, to be used in an  ingres
  32.           query it must be activated using the 'use' command.
  33.  
  34.      EXAMPLE
  35.           /* will match a sequence of alphabetic characters beginning
  36.           with a capital letter */
  37.           define delim paper(word, "[A-Z]{a-z}")
  38.  
  39.           /* will match a decimal number */
  40.           define delim math (dec, "[0-9]{0-9}[.][0-9]{0-9}")
  41.  
  42.  
  43.      SEE ALSO
  44.           destroy(quel), quel(quel), use(quel)
  45.  
  46.  
  47.  
  48.