home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
- DELIM(QUEL) 12/21/84 DELIM(QUEL)
-
-
-
- NAME
- delim - specify a name for a pattern of characters
-
- SYNOPSIS
- _d_e_s_t_r_o_y _d_e_l_i_m groupname ( delimitor, pattern )
- pattern = [ "[character list]" | "{character list}" ]*
-
- DESCRIPTION
- The delim statement allows the user to specify a name for a
- certain pattern of characters, which may be used with the
- substring facility. The delimitors are stored in groups,
- which may be used and unused together.
-
- The pattern for a delimitor is specified using a modified
- version of BNF grammar. A character list is either a list of
- the characters to match, or a range of characters separated
- by a "-", or a combination or both of the above. A character
- list in brackets indicates that one of the characters must
- match exactly once, and a character list in braces indicates
- that one of the characters may match zero or more times. The
- pattern is composed of a list of character lists.
-
- After a delimitor has been defined, to be used in an ingres
- query it must be activated using the 'use' command.
-
- EXAMPLE
- /* will match a sequence of alphabetic characters beginning
- with a capital letter */
- define delim paper(word, "[A-Z]{a-z}")
-
- /* will match a decimal number */
- define delim math (dec, "[0-9]{0-9}[.][0-9]{0-9}")
-
-
- SEE ALSO
- destroy(quel), quel(quel), use(quel)
-
-
-
-