53 GCU_FORMULA_PARSE_GUESS,
54 GCU_FORMULA_PARSE_ATOM,
55 GCU_FORMULA_PARSE_RESIDUE,
56 GCU_FORMULA_PARSE_ASK,
57 GCU_FORMULA_PARSE_NO_CASE=8
72 parse_error (
const std::string& __arg,
int start,
int length);
81 what ()
const throw ();
86 what (
int& start,
int& length)
const throw ();
95 int m_start, m_length;
117 virtual std::string
Markup ();
121 virtual std::string
Text ();
343 std::list<FormulaElt *>
const &
GetElements ()
const {
return Details;}
346 bool BuildConnectivity ();
347 void Parse (std::string &formula, std::list<FormulaElt *>&result)
throw (
parse_error);
348 bool AnalString (
char *sz, std::list<FormulaElt *> &result,
bool &ambiguous,
int offset);
349 bool TryReplace (std::list<FormulaElt *> &result, std::list<FormulaElt *>::iterator it);
352 std::string Entry, Markup, RawMarkup;
353 std::map<int,int> Raw;
354 std::list<FormulaElt *> Details;
358 bool m_ConnectivityCached;
376 #endif // GCU_FORMULA_H