Go to the documentation of this file.
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);
int nstate
Number of generated states.
char * locale
JSGF locale (default C)
char * name
Rule or token name.
jsgf_rhs_t * alt
Linked list of alternates.
char * name
Rule name (NULL for an alternation/grouping)
int refcnt
Reference count.
char * charset
JSGF charset (default UTF-8)
glist_t links
Generated FSG links.
Miscellaneous useful string functions.
Fast integer logarithmic addition operations.
int entry
The entry-state for this expansion.
A node in a generic list.
hash_table_t * imports
Pointers to imported grammars.
hash_table_t * rules
Defined or imported rules in this grammar.
float weight
Weight (default 1)
Generic linked-lists maintenance.
glist_t searchpath
List of directories to search for grammars.
char * version
JSGF version (from header)
glist_t atoms
Sequence of items.
jsgf_rule_t * rule
The rule being expanded.
glist_t tags
Tags, if any (glist_t of char *)
int is_public
Is this rule marked 'public'?
jsgf_t * parent
Parent grammar (if this is an imported one)
glist_t rulestack
Stack of currently expanded rules.
Hash table implementation.
jsgf_rhs_t * rhs
Expansion.
jsgf_atom_t * atom
Name, tags, weight.