#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); t.FromTo("<{tag}>{code}", "[{tag}]{code}[/{tag}]"); auto MyStr = R"(
Single line
Line 1 Line 2 Line 3 Line 4
)"; cout << "New line as statement separator (default)" << endl; cout << "" << endl; cout << t.Transform(MyStr).Text() << endl; cout << "" << endl; cout << "New line as whitespace" << endl; cout << "" << endl; t.Tokens().Add("[\\r\\n]+", TokenType::Whitespace); cout << t.Transform(MyStr).Text() << endl; }