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>

Go to the source code of this file.

Functions

WORD_ID dfa_symbol_lookup (DFA_INFO *dinfo, char *terminalname)
 Return category id corresponding to the given terminal name.


Detailed Description

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

Actually the category ids are assigned beforehand by the grammar compiler mkdfa.pl. This function only checks the value.

Author:
Akinobu LEE
Date:
Tue Feb 15 14:11:41 2005
Revision
1.1.1.1

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 45 of file dfa_lookup.c.

Referenced by make_dfa_voca_ref().


Generated on Tue Dec 18 16:01:38 2007 for Julius by  doxygen 1.5.4