#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; #define tf(IsTrue) ((IsTrue) ? "True" : "False") int main() { uCalc uc; // StatementSensitive() is set to false so that ";" and newline are not treated as special auto t = uc.NewTransformer(); cout << "StatementSensitive: " << tf(t.DefaultRuleSet().StatementSensitive()) << endl; cout << "Setting StatementSensitive to False" << endl; t.DefaultRuleSet().StatementSensitive(false); // so that newline does not behave as a statement separator cout << "StatementSensitive: " << tf(t.DefaultRuleSet().StatementSensitive()) << endl; cout << "" << endl; auto Content = R"( )"; t.Str(Content); auto Pattern = t.Pattern("
  • {item}
  • "); t.Find(); cout << t.Matches().Text() << endl; cout << "" << endl; cout << "" << endl; cout << "----------------------------------" << endl; t.SkipOver(""); t.Find(); cout << t.Matches().Text() << endl; cout << "" << endl; }