Logo Search packages:      
Sourcecode: lttoolbox version File versions  Download package

Compiler Class Reference

#include <Compiler.H>

List of all members.


Detailed Description

A compiler of dictionaries to letter transducers

Definition at line 38 of file Compiler.H.


Public Member Functions

 Compiler ()
void parse (string const &fichero, string const &dir)
void write (FILE *fd)
 ~Compiler ()

Static Public Member Functions

static string latin1 (xmlChar const *input)

Static Public Attributes

static string const COMPILER_ALPHABET_ELEM = "alphabet"
static string const COMPILER_BLANK_ELEM = "b"
static string const COMPILER_DICTIONARY_ELEM = "dictionary"
static string const COMPILER_ENTRY_ELEM = "e"
static string const COMPILER_GROUP_ELEM = "g"
static string const COMPILER_ID_ATTR = "id"
static string const COMPILER_IDENTITY_ELEM = "i"
static string const COMPILER_IGNORE_ATTR = "i"
static string const COMPILER_IGNORE_YES_VAL = "yes"
static string const COMPILER_JOIN_ELEM = "j"
static string const COMPILER_LEFT_ELEM = "l"
static string const COMPILER_LEMMA_ATTR = "lm"
static string const COMPILER_N_ATTR = "n"
static string const COMPILER_PAIR_ELEM = "p"
static string const COMPILER_PAR_ELEM = "par"
static string const COMPILER_PARDEF_ELEM = "pardef"
static string const COMPILER_PARDEFS_ELEM = "pardefs"
static string const COMPILER_POSTGENERATOR_ELEM = "a"
static string const COMPILER_REGEXP_ELEM = "re"
static string const COMPILER_RESTRICTION_ATTR = "r"
static string const COMPILER_RESTRICTION_LR_VAL = "LR"
static string const COMPILER_RESTRICTION_RL_VAL = "RL"
static string const COMPILER_RIGHT_ELEM = "r"
static string const COMPILER_S_ELEM = "s"
static string const COMPILER_SDEF_ELEM = "sdef"
static string const COMPILER_SDEFS_ELEM = "sdefs"
static string const COMPILER_SECTION_ELEM = "section"
static string const COMPILER_TYPE_ATTR = "type"

Private Member Functions

bool allBlanks ()
string attrib (string const &name)
void insertEntryTokens (vector< EntryToken > const &elements)
int matchTransduction (list< string > const &lp, list< string > const &rp, int state, Transducer &t)
void procAlphabet ()
void procEntry ()
EntryToken procIdentity ()
void procNode ()
EntryToken procPar ()
void procParDef ()
EntryToken procRegExp ()
void procSDef ()
void procSection ()
EntryToken procTransduction ()
void readString (list< string > &result, string const &name)
void requireAttribute (string const &value, string const &attrname, string const &elemname)
void requireEmptyError (string const &name)
void skip (string &name, string const &elem)
void skipBlanks (string &name)

Private Attributes

Alphabet alphabet
string current_paradigm
string current_section
string direction
string letters
map< string, Transducer, Ltstr > paradigms
map< string, map< string, int,
Ltstr >, Ltstr > 
postsuffix_paradigms
map< string, map< string, int,
Ltstr >, Ltstr > 
prefix_paradigms
xmlTextReaderPtr reader
map< string, Transducer, Ltstr > sections
map< string, map< string, int,
Ltstr >, Ltstr > 
suffix_paradigms

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index