A computer program is a set of electronic instructions executed from within the computer memory by the computer central processing unit. Its purpose is to control the functionalities of the computer allowing it to perform various tasks. Basically, a computer program is written by humans using a programming language. A programming language is the set of grammatical rules and vocabulary that governs the correct writing of a computer program. In practice, the majority of the existing programming languages are written in English-speaking countries and thus they all use the English language to express their syntax and vocabulary. However, many other programming languages were written in non-English languages, for instance, the Chinese BASIC, the Chinese Python, the Russian Rapira, and the Arabic Loughaty. This paper discusses the design and implementation of a new programming language, called Phoenix. It is a General-Purpose, High-Level, Imperative, Object-Oriented, and Compiled Arabic programming language that uses the Arabic language as syntax and vocabulary. The core of Phoenix is a compiler system made up of six components, they are the Preprocessor, the scanner, the parser, the semantic analyzer, the code generator, and the linker. The experiments conducted have illustrated the several powerful features of the Phoenix language including functions, while-loop, and arithmetic operations. As future work, more advanced features are to be developed including inheritance, polymorphism, file processing, graphical user interface, and networking.
翻译:计算机程序是由计算机中央处理单位从计算机记忆中执行的一套电子指令,目的是控制计算机的功能,使其能够执行各种任务。基本上,计算机程序是由人用编程语言编写的。编程语言是一套指导正确写计算机程序的语法规则和词汇。实际上,大多数现有编程语言都用英语国家写成,因此它们都使用英语表达其语法和词汇。然而,许多其他编程语言用非英语语言写成,例如中国的BASIC、中国的Python、俄罗斯的Rapira和阿拉伯的Loughaty。本文讨论一种称为凤凰的新编程语言的设计和实施。这是一个通用语言、高层次、势性、目标导向和编程的阿拉伯语编程语言,用阿拉伯语表达其语法和词汇。凤凰的核心是一个编译系统,由六个部分组成,它们是前处理器、扫描器、读盘、俄罗斯的Rapirapirarapira和阿拉伯的Loughatyraty。本文讨论的是一个新的编程语言的设计和实施,称为凤凰座的文字,包括制式的图解算器、电子分析器的功能,还有一些高级的图式、电子化的图解算学、电子化的功能, 以及电子化的功能,包括制程、制程、制程、制程、制程、制程、制程、制程、制程、制程式的功能,还有制程、制程式、制程、制程、制程、制程、制程、制程、制程、制式的功能,包括制程、制式、制式、制式、制程、制程器、制程、制程、制程、制程、制程、制程、制程器、制程器、制程器、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制程、制程器、制式、制程、制程、制式、制程、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、制式、