首页    期刊浏览 2025年02月21日 星期五
登录注册

文章基本信息

  • 标题:Symbolic Lookaheads for Bottom-up Parsing
  • 本地全文:下载
  • 作者:Paola Quaglia
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2016
  • 卷号:58
  • 页码:79:1-79:13
  • DOI:10.4230/LIPIcs.MFCS.2016.79
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:We present algorithms for the construction of LALR(1) parsing tables, and of LR(1) parsing tables of reduced size. We first define specialized characteristic automata whose states are parametric w.r.t. variables symbolically representing lookahead-sets. The propagation flow of lookaheads is kept in the form of a system of recursive equations, which is resolved to obtain the concrete LALR(1) table. By inspection of the LALR(1) automaton and of its lookahead ropagation flow, we decide whether the grammar is LR(1) or not. In the positive case, an LR(1) parsing table of reduced size is computed by refinement of the LALR(1) table.
  • 关键词:LALR(1) grammars; LR(1) grammars; bottom-up parsing
国家哲学社会科学文献中心版权所有