Exemplo n.º 1
0
 private void AddKernel(ScalpelKernel kernel)
 {
     //throw new NotImplementedException();
     lock (Kernels)
     {
         if (Kernels.ContainsKey(kernel.Title))
         {
             throw new InvalidOperationException(nameof(kernel));
         }
         foreach (var symbol in kernel.AllSymbols)
         {
             AddSymbol(
                 symbol,
                 kernel.PredicateSymbols.Contains(symbol),
                 kernel.SelectionSymbols.Contains(symbol));
         }
         Kernels.Add(kernel.Title, kernel);
     }
 }
Exemplo n.º 2
0
 : new ScalpelProgram(
   paths.Select(p
                => ScalpelKernel.CompileFromFile(p)));