示例#1
0
        public static HashSet <string> GetSignatureFromParagraph(Paragraph stmt)
        {
            var ser = new CogniPy.CNL.DL.Serializer();

            ser.Serialize(stmt);
            return(ser.GetSignature());
        }
示例#2
0
        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());
            }
        }