首页    期刊浏览 2025年12月30日 星期二
登录注册

文章基本信息

  • 标题:Equivalent Transformations and Regularization in Context-Free Grammars
  • 本地全文:下载
  • 作者:Ludmila Fedorchenko ; Sergey Baranov
  • 期刊名称:Cybernetics and Information Technologies
  • 印刷版ISSN:1311-9702
  • 电子版ISSN:1314-4081
  • 出版年度:2014
  • 卷号:14
  • 期号:4
  • DOI:10.1515/cait-2014-0003
  • 出版社:Bulgarian Academy of Science
  • 摘要:Regularization of translational context-free grammar via equivalent transformations is a mandatory step in developing a reliable processor of a formal language defined by this grammar. In the 1970-ies, the multi-component oriented graphs with basic equivalent transformations were proposed to represent a formal grammar of ALGOL-68 in a compiler for IBM/360 compatibles. This paper describes a method of grammar regularization with the help of an algorithm of eliminating the left/right-hand side recursion of nonterminals which ultimately converts a context-free grammar into a regular one. The algorithm is based on special equivalent transformations of the grammar syntactic graph: elimination of recursions and insertion of iterations. When implemented in the system SynGT, it has demonstrated over 25% reduction of the memory size required to store the respective intermediate control tables, compared to the algorithm used in Flex/Bison parsers.
  • 关键词:CFR-grammar; a syntactic flow-chart (graph-scheme); equivalent ; transformations of grammars
国家哲学社会科学文献中心版权所有