#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); // Capture a function call. // {@Alpha} matches the name. // '(' and ')' are Bracket tokens that ensure the content is captured correctly. t.FromTo("{@Alpha:func} ( {args} )", "Call: {func} with {args}"); cout << t.Transform("myfunc('Hello World', (x + y) * 2 )") << endl; }