www.delorie.com/gnu/docs/gperf/gperf_8.html   search  
 
Buy GNU books!


Perfect Hash Function Generator

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.1 Input Format to gperf

You can control the input keyfile format by varying certain command-line arguments, in particular the `-t' option. The input's appearance is similar to GNU utilities flex and bison (or UNIX utilities lex and yacc). Here's an outline of the general format:

 
declarations
%%
keywords
%%
functions

Unlike flex or bison, all sections of gperf's input are optional. The following sections describe the input format for each section.

3.1.1 struct Declarations and C Code Inclusion  
3.1.2 Format for Keyword Entries  
3.1.3 Including Additional C Functions  


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003