1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00
freebsd/contrib/gperf
2000-03-25 08:25:58 +00:00
..
doc Virgin import of gperf v2.7 2000-03-25 07:45:29 +00:00
lib Virgin import of gperf v2.7 2000-03-25 07:45:29 +00:00
src Zap old files no longer included in gperf 2.7 2000-03-25 08:25:58 +00:00
tests Zap old files no longer included in gperf 2.7 2000-03-25 08:25:58 +00:00
acconfig.h Virgin import of gperf v2.7 2000-03-25 07:45:29 +00:00
aclocal.m4 Virgin import of gperf v2.7 2000-03-25 07:45:29 +00:00
ChangeLog Virgin import of gperf v2.7 2000-03-25 07:45:29 +00:00
configure Virgin import of gperf v2.7 2000-03-25 07:45:29 +00:00
configure.in Virgin import of gperf v2.7 2000-03-25 07:45:29 +00:00
COPYING
INSTALL Virgin import of gperf v2.7 2000-03-25 07:45:29 +00:00
Makefile.devel Virgin import of gperf v2.7 2000-03-25 07:45:29 +00:00
Makefile.in Virgin import of gperf v2.7 2000-03-25 07:45:29 +00:00
NEWS Virgin import of gperf v2.7 2000-03-25 07:45:29 +00:00
README Virgin import of gperf v2.7 2000-03-25 07:45:29 +00:00

While teaching a data structures course at University of California,
Irvine, I developed a program called GPERF that generates perfect hash
functions for sets of key words.  A perfect hash function is simply:

          A hash function and a data structure that allows 
          recognition of a key word in a set of words using 
          exactly 1 probe into the data structure.

The gperf.texinfo file explains how the program works, the form of the
input, what options are available, and hints on choosing the best
options for particular key word sets.  The texinfo file is readable
both via the GNU emacs `info' command, and is also suitable for
typesetting with TeX.

The enclosed Makefile creates the executable program ``gperf'' and
also runs some tests.

Output from the GPERF program is used to recognize reserved words in
the GNU C, GNU C++, and GNU Pascal compilers, as well as with the GNU
indent program.

Happy hacking!

Douglas C. Schmidt