Exemplo n.º 1
0
void FromFileModule::requestImportations(std::vector<std::string> &formatRequested)
{
    if(program().isValid())
    {
        Program imports = program().node(1);
        loadImports(imports, formatRequested);
    }
}
Exemplo n.º 2
0
 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;
     }        
 }