【24h】

A New Computing Method of FIRST and FOLLOW Sets

机译:FIRST和FOLLOW集的一种新的计算方法

获取原文

摘要

First and Follow functions associated with a grammar G is important when conducting LL and LR (SLR, LR (1), LALR) parser, because the setting up of parsing table is aided by them. For the larger scale grammar, computing First and Follow sets by hand according to the definition brings not only huge intolerable workload but also mistakes, even if adopting automated tools it will cost more time. In order to solve this problem, based on the parallel algorithm already existing, a new method of computing First and Follow sets was brought forward in this paper. This method can not only improve computing efficiency but also avoid errors, and it has both the theoretical and realistic significance for parallel compiler processing.
机译:当进行LL和LR(SLR,LR(1),LALR)解析器时,与语法G相关的“第一”和“跟随”功能很重要,因为解析表的建立是由它们来辅助的。对于较大规模的语法,根据定义手动计算“第一”和“跟随”集不仅带来巨大的无法忍受的工作量,而且还会带来错误,即使采用自动化工具也将花费更多时间。为了解决这个问题,在现有并行算法的基础上,提出了一种计算“第一”和“第二”集的新方法。该方法不仅可以提高计算效率,而且可以避免错误,对于并行编译器处理具有理论和现实意义。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号