*/
void ArithmeticEvaluator::convert(const QString& _expression) throw(int) {
- QString expr = _expression;
+
+ QString expr = _expression;
+ cout << "converting " << qPrintable(expr) << endl;
QString result="";
expr.remove(QChar(' '), Qt::CaseInsensitive);
+ cout << "converting " << qPrintable(expr) << endl;
foreach(QString func, fctMarkers) {
+ cout << "for " << qPrintable(func) << endl;
QString rep = QString("\x1b%1").arg(fctMarkers.indexOf(QRegExp(func)));
expr.replace(QRegExp(func),rep);
}
- //cout << "packed expr: " << qPrintable(expr) << endl;
+ cout << "packed expr: " << qPrintable(expr) << endl;
int offset = 0;
try {