src/common/CalculatorEngineCommon/readme.md
This project wraps the exprtk expression parsing library with a C++/WinRT component,
making advanced mathematical evaluation capabilities available to Windows applications.
It is designed specifically to provide calculation support for the CmdPal calculator extension.
This project uses exprtk as the expression parsing and evaluation engine.
How to use exprtk in this project:
The exprtk header file (exprtk.hpp) is included in the project source.
You can use exprtk to parse and evaluate mathematical expressions in your C++ code. For example:
#include "exprtk.hpp"
exprtk::expression<double> expression;
exprtk::parser<double> parser;
std::string formula = "3 + 4 * 2";
parser.compile(formula, expression);
double result = expression.value();
How to update exprtk:
exprtk.hpp from the official repository.exprtk.hpp file in the project with the new version.