38 #ifndef __JSGF_INTERNAL_H__ 39 #define __JSGF_INTERNAL_H__ 49 #include <sphinxbase/fsg_model.h> 56 #if defined(_WIN32) || defined(_WIN32_WCE) 57 #define strdup _strdup 122 #define jsgf_atom_is_rule(atom) ((atom)->name[0] == '<') 125 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.
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 nstate
Number of generated states.
char * charset
JSGF charset (default UTF-8)
jsgf_rhs_t * rhs
Expansion.
int is_public
Is this rule marked 'public'?
char * name
Rule name (NULL for an alternation/grouping)
int refcnt
Reference count.
Generic linked-lists maintenance.
int entry
The entry-state for this expansion.
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.
jsgf_rule_t * rule
The rule being expanded.
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.