void FromFileModule::requestImportations(std::vector<std::string> &formatRequested) { if(program().isValid()) { Program imports = program().node(1); loadImports(imports, formatRequested); } }
static void eval(llvm::StringRef line) { SourcePtr source = new Source(line, 0); try { ReplItem x = parseInteractive(source, 0, source->size()); if (x.isExprSet) { jitAndPrintExpr(x.expr); } else { loadImports(x.imports); jitTopLevel(x.toplevels); jitStatements(x.stmts); } } catch (CompilerError) { return; } }