Since the advent of LISP, the fifth generation programming language has developed for decades. However, compared with the fourth generation programming language, the fifth generation programming language has not been widely used because of its obscure semantics, rigorous representation of problems, and limited inference ability. For this reason, COOL (Constraint and Object Ordered Language), a fifth generation programming language proposed in this paper, overcomes the problems of intuitive semantics, rigorous restrictions on handling problem conditions, and improves the inference ability of previous fifth generation programming languages. Specific improvements are as follows: First, COOL supports process-oriented and object-oriented for easy application in production projects; Second, COOL supports expression as function declaration and function return, which improves language affinity for mathematical formulas, and supports embedding function parameters into function name strings to make function naming closer to natural languages. Make mathematical problems easier to describe; Third, COOL introduces a weighting mechanism and accelerates the inference process through cumulative weighting. Fourth, COOL introduces the concepts of forward and reverse functions in programming so that computers can infer and execute problems with logical sequential constraints. Fifth, the computer can deduce the reverse solution process by using the forward solution process through the back-tracking algorithm and the dynamic programming algorithm, so that the computer can deduce the problem with time-sequential constraints. Sixth, the pre-execution step is introduced to separate the inference and function query process of the program from the execution process, so as to improve the execution speed of the program.
翻译:与第四代编程语言相比,第五代编程语言由于模糊的语义、对问题的严格表述和有限的推论能力而没有被广泛使用。因此,本文件提议的第五代编程语言CCOOL(约束和对象有秩序语言),克服了直觉语义问题,对处理问题条件施加了严格的限制,提高了前第五代编程语言的推论能力。具体改进如下:第一,COOL支持以进程为导向和面向对象的编程语言,以便于生产项目应用;第二,COOL支持以功能声明和函数返回的形式表达,这提高了数学公式的语言的亲近性,支持将功能参数嵌入功能名称链,使功能更贴近自然语言。使数学问题更容易描述;第三,COOL引入了一个加权机制,并通过累积加权加快了前第五代编程编程语言的推论过程。第四,COOL介绍了编程中前和反向函数的概念,以便计算机能够推导和以逻辑顺序递进程序执行问题,因此,计算机的流程可以将顺序推算程序推向后推导程序,计算机推算程序可以推算出程序推向后推算出程序。 第五,计算机推算程序可以推算出程序可以推向后推算过程的推后推算过程,通过进过程的推后推算过程的推算过程,通过进过程推算过程推算过程推算过程的推后推后推算过程的推后推算过程可以推算过程,使过程的推后推后推后推后推后推算过程。