BSD Ports

devel/gperf 3.1_1 DragonFly

Generates perfect hash functions for sets of keywords

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
GPLv3+
Categories
devel
Package size
86.6 KiB, 351.2 KiB installed

Description

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.

LICENSE: GPLv3 or later

In the other systems

SystemPortVersion
DragonFlydevel/gperf3.1_1
FreeBSDdevel/gperf3.3
OpenBSDdevel/gperf3.1p0
NetBSDdevel/gperf3.3
MidnightBSDdevel/gperf3.3
HardenedBSDdevel/gperf3.3
GhostBSDdevel/gperf3.3

Install

Binary package:

pkg install gperf

From DPorts:

cd /usr/dports/devel/gperf && make install clean

Dependencies

Run dependencies 1

No port depends on this one.