首页> 外文会议>International Scientific-Technical Conference on Actual Problems of Electronics Instrument Engineering >The Lexical and Syntactic Analyzers of the Translator for the EI Language
【24h】

The Lexical and Syntactic Analyzers of the Translator for the EI Language

机译:EI语言翻译器的词法和句法分析器

获取原文

摘要

This paper contains the task of implementation of functionally-imperative programming language EI, the composition and structure of the its translator, a brief description of the lexical and syntactic rules of the language, the algorithms and the basic functions of the lexical and syntactic analyzers. It describes fragments of formal definitions of lexic and syntax of the El-Ianguage that was used for the automated construction of lexical and syntactic analyzers of the compiler in C++ using the client-server package Webtranslab. It describes also the basic algorithms of lexical analyzer (scanner), which in this version of the compiler performs macroprocessing, files including, deleting all the insignificant character sequences and transformation of correct words of language into an internal representation - tokens. We consider the structure and functions of a parser that performs a descending analysis. This parser constructed in the form of a stack automaton with multi-states controlled by the current input token and the current state fields. The composition of the state cell of the automaton and the algorithms of its operation are described, as well as the mechanisms for performing the operations that are embedded in the grammar and intended to implement the functionality of the semantic analyzer and code generator. The current state of realization of two constituent parts of the translator for EI-language - scanner and parser - is described.
机译:本文包含功能命令式编程语言EI的实现任务,其翻译器的组成和结构,该语言的词法和句法规则的简要说明,词法和句法分析器的算法以及基本功能。它描述了词法的正式定义和El-Ianguage语法的片段,这些语言用于使用客户端服务器程序包Webtranslab在C ++中自动构造编译器的词法和句法分析器。它还描述了词法分析器(扫描器)的基本算法,在此版本的编译器中,它执行宏处理,文件,包括删除所有无关紧要的字符序列以及将正确的语言单词转换为内部表示形式-标记。我们考虑执行降序分析的解析器的结构和功能。该解析器以堆栈自动机的形式构造,具有由当前输入令牌和当前状态字段控制的多状态。描述了自动机状态单元的组成及其操作算法,以及执行嵌入在语法中旨在实现语义分析器和代码生成器功能的操作的机制。描述了用于EI语言的翻译器的两个组成部分-扫描器和解析器-的当前实现状态。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号