#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; { uCalc::Transformer t; t.Owned(); // Causes t to be released when it goes out of scope // This rule replaces the ALPHANUMERIC token 'x', not just the character 'x'. t.FromTo("x", "value"); auto code = R"(if (x > 10) print("Max value is x");)"; // The 'x' inside the string is ignored because QuoteSensitive is true by default. cout << t.Transform(code) << endl; } }