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

EntryToken Compiler::procPar (  )  [private]

Parse the <par> element

Returns:
a list of tokens from the dictionary's entry

Definition at line 426 of file Compiler.C.

References attrib(), paradigms, reader, and EntryToken::setParadigm().

Referenced by procEntry().

{
  EntryToken e;
  string nomparadigma = attrib(COMPILER_N_ATTR);

  if(paradigms.find(nomparadigma) == paradigms.end())
  {
    cerr << "Error (" << xmlTextReaderGetParserLineNumber(reader);
    cerr << "): Undefined paradigm '" << nomparadigma << "'." << endl;
    exit(EXIT_FAILURE);
  }
  e.setParadigm(nomparadigma);
  return e;
}


Generated by  Doxygen 1.6.0   Back to index