Example #1
0
        private static IDeclaration generatePropositionDeclaration(string proposition)
        {
            string name = PropositionParser.extractName(proposition);
            ICollection <string> functionParameters = PropositionParser.extractParameters(proposition);
            string returnType = "Real";
            string value      = "";

            return(new Declaration(returnType, name, value, functionParameters));
        }
Example #2
0
        public static ICollection <IDeclaration> generateDeclarations(string proposition)
        {
            ICollection <IDeclaration> declarations = new List <IDeclaration>();

            if (!PropositionParser.isNonDeclarableType(proposition))
            {
                declarations = generateAllDeclarations(proposition);
            }
            return(declarations);
        }