void F2() { wstring input_path = L"./Scripts/1.essay"; ifstream ifs(input_path); try { CEngine engine; if (ifs.good()) { auto c = engine.Run(ifs); auto context = engine.GetContext(); auto a = context.GetVariable(L"Business.a").IsAvailable(); for (int i = 0; i < context.GetSyntaxVector().size(); i++) { auto syntax = context.GetSyntax(i); } } } catch (CException& e) { auto r = e.ToString(); } }
int main(int argc, char *argv[]) { CEngine *Engine = CEngine::Instance(); Engine->SetProgramName("Color lines"); Engine->SetStateHandler<CCustomStateHandler>(); Engine->Run(argc, argv); return EXIT_SUCCESS; }
void F1() { CEngine engine; engine.Run("CREATE PROCEDURE dbo.LoadESBCustomerPartyMasterSp(@DerBODID LongListType, @Name NameType) AS DECLARE @my INT"); }