38 #ifndef __JSGF_INTERNAL_H__
39 #define __JSGF_INTERNAL_H__
45 #define YY_NO_UNISTD_H 1
50 #include <sphinxbase/fsg_model.h>
113 #define jsgf_atom_is_rule(atom) ((atom)->name[0] == '<')
116 jsgf_atom_t *jsgf_atom_new(
char *name,
float weight);
Miscellaneous useful string functions.
glist_t tags
Tags, if any (glist_t of char *)
glist_t links
Generated FSG links.
A node in a generic list.
int entry
Entry state for current instance of this rule.
glist_t searchpath
List of directories to search for grammars.
jsgf_rhs_t * alt
Linked list of alternates.
glist_t rulestack
Stack of currently expanded rules.
int exit
Exit state for current instance of this rule.
int nstate
Number of generated states.
char * charset
JSGF charset (default UTF-8)
jsgf_rhs_t * rhs
Expansion.
char * name
Rule name (NULL for an alternation/grouping)
int refcnt
Reference count.
Generic linked-lists maintenance.
jsgf_atom_t * atom
Name, tags, weight.
char * version
JSGF version (from header)
glist_t atoms
Sequence of items.
jsgf_t * parent
Parent grammar (if this is an imported one)
char * name
Rule or token name.
hash_table_t * rules
Defined or imported rules in this grammar.
Hash table implementation.
char * locale
JSGF locale (default C)
Fast integer logarithmic addition operations.
float weight
Weight (default 1)
hash_table_t * imports
Pointers to imported grammars.