Commit 7ae1ce5d authored by Devin Lin's avatar Devin Lin 🎨
Browse files

Fix compile errors

parent 99ec95d8
......@@ -13,7 +13,7 @@
void MathEngine::parse(QString expr) {
m_driver.parse(expr.toStdString());
m_result = QString::number(m_driver.result);
m_result = m_driver.result;
emit resultChanged();
}
......
......@@ -113,8 +113,8 @@ exp:
| "ACOS" "(" exp ")" { $$ = acos($3); }
| "ATAN" "(" exp { $$ = atan($3); }
| "ATAN" "(" exp ")" { $$ = atan($3); }
| "ABS" "(" exp { $$ = fabs($3); }
| "ABS" "(" exp ")" { $$ = fabs($3);}
| "ABS" "(" exp { $$ = abs($3); }
| "ABS" "(" exp ")" { $$ = abs($3);}
;
factor: "(" exp ")" { $$ = $2; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment