#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; int main() { uCalc uc; auto t = uc.NewTransformer(); // Pattern: "Set" followed by (Color OR (Size followed by Big/Small)) t.FromTo("Set {prop: Color | Size { Big | Small } }", "Property: {prop}"); cout << t.Transform("Set Color") << endl; cout << t.Transform("Set Size Big") << endl; cout << t.Transform("Set Size Small") << endl; }