| 34 | } |
| 35 | |
| 36 | double MathParser::parse(const QString& s) |
| 37 | { |
| 38 | Result result; |
| 39 | try { |
| 40 | result = plusMinus(s); |
| 41 | if (!result.rest.isEmpty()) { |
| 42 | qWarning() << "Error: can't full parse" |
| 43 | << "\"" << s << "\""; |
| 44 | qWarning() << "rest: " + result.rest; |
| 45 | } |
| 46 | } catch (const QString& str) { |
| 47 | qWarning() << str; |
| 48 | } |
| 49 | return result.acc; |
| 50 | } |
| 51 | |
| 52 | Result MathParser::plusMinus(QString s) //throws Exception |
| 53 | { |
no test coverage detected