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()); } }