#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; uCalc::Transformer t; // A rule to replace the alphanumeric token 'x' with 'value' t.FromTo("x", "value"); // The input string where 'x' appears both as a variable and inside a string auto code = R"(if (x > 10) print("Max value is x");)"; // The transformation correctly ignores the 'x' inside the quoted string cout << t.Transform(code) << endl; }