| 21 | } |
| 22 | |
| 23 | TeXSymbolParser::TeXSymbolParser(const string& file) throw(ex_res_parse) |
| 24 | : _doc(true, COLLAPSE_WHITESPACE) { |
| 25 | int err = _doc.LoadFile(file.c_str()); |
| 26 | if (err != XML_NO_ERROR) throw ex_res_parse(file + " not found!"); |
| 27 | _root = _doc.RootElement(); |
| 28 | } |
| 29 | |
| 30 | void TeXSymbolParser::readSymbols(_out_ map<string, sptr<SymbolAtom>>& res) throw(ex_res_parse) { |
| 31 | const XMLElement* e = _root->FirstChildElement("Symbol"); |
nothing calls this directly
no test coverage detected