#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); t.FromTo("{@String:txt}", "<>"); t.FromTo("{@Number:MyNum}", ""); t.FromTo("{@Bracket:MyBrack}", ""); t.FromTo("{@CloseBracket:CloseBr}", ""); t.FromTo("{@StatementSeparator:Sep}", ""); t.FromTo("{@Alphanumeric:alpha}", ""); t.FromTo("{@Whitespace:ws}", ""); t.FromTo("{@Reducible:r}", ""); t.FromTo("{@Newline}", ""); auto s = R"(This is 55.2*6 "Hello world"; 'Single quote'(parenth))"; cout << t.Filter(s).Matches().Text() << endl; }