public static HashSet <string> GetSignatureFromParagraph(Paragraph stmt) { var ser = new CogniPy.CNL.DL.Serializer(); ser.Serialize(stmt); return(ser.GetSignature()); }
public static HashSet <string> GetSignatureFromStatement(Statement stmt) { if (stmt is CodeStatement) { return new HashSet <string>() { "∀" } } ; else { var ser = new CogniPy.CNL.DL.Serializer(); ser.Serialize(stmt); return(ser.GetSignature()); } }
public static string MakeExpressionFromStatement(Statement stmt) { var ser = new CogniPy.CNL.DL.Serializer(); return(ser.Serialize(stmt)); }
public static string MakeScriptFromParagraph(Paragraph ast) { var ser = new CogniPy.CNL.DL.Serializer(); return(ser.Serialize(ast)); }