fixing pr42337
[official-gcc.git] / gcc / ada / g-regpat.ads
blob2290df8a64d4f6b635113dc49f3719503e0e8de5
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT LIBRARY COMPONENTS --
4 -- --
5 -- G N A T . R E G P A T --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1986 by University of Toronto. --
10 -- Copyright (C) 1996-2008, AdaCore --
11 -- --
12 -- GNAT is free software; you can redistribute it and/or modify it under --
13 -- terms of the GNU General Public License as published by the Free Soft- --
14 -- ware Foundation; either version 2, or (at your option) any later ver- --
15 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
16 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
17 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
18 -- for more details. You should have received a copy of the GNU General --
19 -- Public License distributed with GNAT; see file COPYING. If not, write --
20 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
21 -- Boston, MA 02110-1301, USA. --
22 -- --
23 -- As a special exception, if other files instantiate generics from this --
24 -- unit, or you link this unit with other files to produce an executable, --
25 -- this unit does not by itself cause the resulting executable to be --
26 -- covered by the GNU General Public License. This exception does not --
27 -- however invalidate any other reasons why the executable file might be --
28 -- covered by the GNU Public License. --
29 -- --
30 -- GNAT was originally developed by the GNAT team at New York University. --
31 -- Extensive contributions were provided by Ada Core Technologies Inc. --
32 -- --
33 ------------------------------------------------------------------------------
35 -- This package implements roughly the same set of regular expressions as
36 -- are available in the Perl or Python programming languages.
38 -- This is an extension of the original V7 style regular expression library
39 -- written in C by Henry Spencer. Apart from the translation to Ada, the
40 -- interface has been considerably changed to use the Ada String type
41 -- instead of C-style nul-terminated strings.
43 -- See file s-regpat.ads for full documentation of the interface
45 ------------------------------------------------------------
46 -- Summary of Pattern Matching Packages in GNAT Hierarchy --
47 ------------------------------------------------------------
49 -- There are three related packages that perform pattern matching functions.
50 -- the following is an outline of these packages, to help you determine
51 -- which is best for your needs.
53 -- GNAT.Regexp (files g-regexp.ads/s-regexp.ads/s-regexp.adb)
54 -- This is a simple package providing Unix-style regular expression
55 -- matching with the restriction that it matches entire strings. It
56 -- is particularly useful for file name matching, and in particular
57 -- it provides "globbing patterns" that are useful in implementing
58 -- unix or DOS style wild card matching for file names.
60 -- GNAT.Regpat (files g-regpat.ads/s-regpat.ads/s-regpat.adb)
61 -- This is a more complete implementation of Unix-style regular
62 -- expressions, copied from the Perl regular expression engine,
63 -- written originally in C by Henry Spencer. It is functionally the
64 -- same as that library.
66 -- GNAT.Spitbol.Patterns (files g-spipat.ads/g-spipat.adb)
67 -- This is a completely general pattern matching package based on the
68 -- pattern language of SNOBOL4, as implemented in SPITBOL. The pattern
69 -- language is modeled on context free grammars, with context sensitive
70 -- extensions that provide full (type 0) computational capabilities.
72 with System.Regpat;
74 package GNAT.Regpat renames System.Regpat;