示例#1
0
 /// <summary>
 /// Runs gringo on the given <paramref name="original"/> stream of data and the <paramref name="aspContent"/> to translate the theory.
 /// </summary>
 /// <returns>The resulting program after gringo is ran on it.</returns>
 /// <param name="original">The original program to translate.</param>
 /// <param name="aspContent">The asp content that describes how to translate the input to the output.</param>
 public string TranslateClingo(string original, string aspContent)
 {
     using (ClingoSession cs = new ClingoSession(this, aspContent, original)) {
         return(cs.Output);
     }
 }
示例#2
0
 /// <summary>
 /// Runs gringo on the given <paramref name="original"/> stream of data and the <paramref name="aspContent"/> to translate the theory.
 /// </summary>
 /// <returns>The resulting program after gringo is ran on it.</returns>
 /// <param name="original">The original program to translate.</param>
 /// <param name="aspContent">The asp content that describes how to translate the input to the output.</param>
 public string TranslateClingo(string original, string aspContent)
 {
     using (ClingoSession cs = new ClingoSession (this, aspContent, original)) {
         return cs.Output;
     }
 }