Grammar Struct Reference
[Grammar - Grammar structure module]

Grammar. More...


Data Fields

Lexiconwords
RulesLexiconrules
gboolean self_lexicon_alloc
Morpho top_level_nt
double equality_ratio


Detailed Description

Grammar.

A grammar is basically a set of syntactic rules and a its associated vocabulary lexicon


Field Documentation

double Grammar::equality_ratio

Equivalent interpretation probability ratio (used for ties counting). This value must be assigned in the interval (0, 1.0)

RulesLexicon* Grammar::rules

The lexicon that stores the syntactic rules

gboolean Grammar::self_lexicon_alloc

Internal flag used to specify if the memory allocated to the words field must be freed in case of grammarFree call, i.e. if the grammar has been set by grammarLoad

Remarks:
This value is only used for internal purpose and must never be never altered

Morpho Grammar::top_level_nt

Internal numeric value of the top level non-terminal, i.e. the one that starts all syntactic rules derivation

Lexicon* Grammar::words

The CHARACTER lexicon that stores the vocabulary words associated to the grammar

Remarks:
The Lexicon::part_of_speech field must be implemented


Generated on Thu Mar 22 17:46:31 2007 for SlpTk by  doxygen 1.4.7