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

void Compiler::procAlphabet (  )  [private]

Parse the <alphabet> element

Definition at line 113 of file Compiler.C.

References latin1(), letters, and reader.

Referenced by procNode().

{
  int tipo=xmlTextReaderNodeType(reader);

  if(tipo != XML_READER_TYPE_END_ELEMENT)
  {
    int ret = xmlTextReaderRead(reader);
    if(ret == 1)
    {          
      xmlChar const *valor = xmlTextReaderConstValue(reader);
      letters = latin1(valor);
    }
    else
    {
      cerr << "Error (" << xmlTextReaderGetParserLineNumber(reader);
      cerr << "): Missing alphabet symbols." << endl;
      exit(EXIT_FAILURE);
    }
  }
}


Generated by  Doxygen 1.6.0   Back to index