首页> 外国专利> Universal generator of computer code, in particular for translating computer languages

Universal generator of computer code, in particular for translating computer languages

机译:通用的计算机代码生成器,尤其用于翻译计算机语言

摘要

The generator of a computer code on the basis of an input specification source, that is a file (4), comprises at least the following parts: a front end (FE) unit which creates an intermediate file (6) by grammatical and syntactic analysis of the specification file wherein the intermediate file comprises a syntactic tree describing the data of the specification file so that each datum extracted from the specification file by the front end unit is associated with a node of the syntactic tree; an instructions file, that is a template (3), defining the programming rules associated with each node as a function of the code to generate, that is an output specification source (7); and a back end (BE), that is a coding unit, generating the output code (7) by reading the intermediate file and the syntactic tree. The back end (BE) unit reads a grammar file (5) describing the grammar of the language of the specification file (4). The front end (FE) unit decomposes the specification file (4) into logic elements which form the nodes of the syntactic tree according to a functional branching conformed to the specification file, and the logic elements are the data extracted from the specification file. The instructions file (3) comprises the programming pulse of the output code (7) associated with each logic element of a node, and the manner of applying a rule is associated with each node. The logic elements associated with nodes are interfaces, variables, constants, operations, and logic or mathematical functions. The output code (7) is a computer language. The front end (FE) unit is in communication with the specification file (4) of an input language, that is of a language to be translated into another language, and also with the grammar file (5). The grammatical analysis is effected in a standard manner. The intermediate file is, for example, written in ASCII code. The back end (BE) unit delivers the output specification file (7) comprising the translation of the input language into an output language such as C or ADA. The instructions file (3) is a function of the output code and is written by use of a language such as the templates description language (TDL).
机译:基于输入规范源(即文件(4))的计算机代码生成器至少包括以下部分:前端(FE)单元,通过语法和句法分析创建中间文件(6)在规范文件中,其中,中间文件包括描述规范文件的数据的语法树,以使得前端单元从规范文件提取的每个数据与该语法树的节点相关联;指令文件,即模板(3),其根据要生成的代码来定义与每个节点关联的编程规则,即输出规范源(7);后端(BE),即编码单元,通过读取中间文件和语法树来生成输出代码(7)。后端(BE)单元读取描述规范文件(4)的语言语法的语法文件(5)。前端(FE)单元根据符合规范文件的功能分支将规范文件(4)分解为形成语法树的节点的逻辑元素,并且逻辑元素是从规范文件提取的数据。指令文件(3)包括与节点的每个逻辑元件相关联的输出代码(7)的编程脉冲,并且规则的应用方式与每个节点相关联。与节点关联的逻辑元素是接口,变量,常量,运算以及逻辑或数学函数。输出代码(7)是一种计算机语言。前端(FE)单元与输入语言的规范文件(4)通信,该语言是要翻译成另一种语言的语言,并且还与语法文件(5)通信。语法分析以标准方式进行。中间文件例如以ASCII码编写。后端(BE)单元传送输出规范文件(7),该文件包括将输入语言翻译成诸如C或ADA之类的输出语言。指令文件(3)是输出代码的功能,并使用诸如模板描述语言(TDL)之类的语言编写。

著录项

  • 公开/公告号FR2812479A1

    专利类型

  • 公开/公告日2002-02-01

    原文格式PDF

  • 申请/专利权人 AIRSYS ATM S.A.;

    申请/专利号FR20000009971

  • 发明设计人 FUCHS EMMANUEL;LACOSTE THIERRY;

    申请日2000-07-28

  • 分类号H03M7/00;

  • 国家 FR

  • 入库时间 2022-08-22 00:24:19

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号