libsent/src/dfa/dfa_lookup.c File Reference

Return DFA terminal (category) id to a given word. More...

#include <sent/stddefs.h>
#include <sent/dfa.h>
#include <ctype.h>

Include dependency graph for dfa_lookup.c:

Go to the source code of this file.

Functions

WORD_ID dfa_symbol_lookup (DFA_INFO *dinfo, char *terminalname)


Detailed Description

Return DFA terminal (category) id to a given word.

Author:
Akinobu LEE
Date:
Tue Feb 15 14:11:41 2005
Actually the category ids are assigned beforehand by the grammar compiler mkdfa.pl. This function only checks the value.

Revision
1.3

Definition in file dfa_lookup.c.


Function Documentation

WORD_ID dfa_symbol_lookup ( DFA_INFO dinfo,
char *  terminalname 
)

Return category id corresponding to the given terminal name. Actually they are mere strings of ID itself.

Parameters:
dinfo [in] DFA grammar information
terminalname [in] name string
Returns:
the category id.

Definition at line 44 of file dfa_lookup.c.

Referenced by make_dfa_voca_ref().


Generated on Tue Dec 26 16:17:46 2006 for Julius by  doxygen 1.5.0