【24h】

Reversible Top-Down Syntax Analysis

机译:可逆自顶向下语法分析

获取原文

摘要

Top-down syntax analysis can be based on LL(k) grammars. The canonical acceptors for LL(k) languages are deterministic stateless pushdown automata with input lookahead of size k. We investigate the computational capacity of reversible computations of such automata. A pushdown automaton with lookahead k is said to be reversible if its predecessor configurations can uniquely be computed by a pushdown automaton with backward input lookahead (lookback) of size k. It is shown that we cannot trade a lookahead for states or vice versa. The impact of having states or a lookahead depends on the language. While reversible pushdown automata with states accept all regular languages, we are going to prove that there are regular languages that cannot be accepted reversibly without states, even in case of an arbitrarily large lookahead. This completes the comparison of reversible with ordinary pushdown automata in our setting. Finally, it turns out that there are problems which can be solved by reversible deterministic stateless pushdown automata with lookahead of size k + 1, but not by any reversible deterministic stateless pushdown automaton with lookahead of size k. So, an infinite and tight hierarchy of language families dependent on the size of the lookahead is shown.
机译:自上而下的语法分析可以基于LL(k)语法。LL(k)语言的规范接受者是输入前瞻大于k的确定无状态下推自动机。我们研究了这种自动机可逆计算的计算能力。如果具有k大小的向后输入前瞻(lookback)的下推自动机可以唯一地计算具有k前瞻的下推自动机的前一个配置,则称具有k前瞻的下推自动机是可逆的。结果表明,我们不能用前瞻交换状态,反之亦然。有状态或前瞻的影响取决于语言。虽然有状态的可逆下推自动机可以接受所有正则语言,但我们要证明,即使在任意大的前瞻情况下,有一些正则语言在没有状态的情况下也不能被可逆地接受。这就完成了可逆自动机与普通下推自动机的比较。最后,事实证明,有一些问题可以通过具有前瞻大小k+1的可逆确定性无状态下推自动机来解决,但不能通过任何具有前瞻大小k的可逆确定性无状态下推自动机来解决。因此,显示了依赖于前瞻大小的无限紧密的语族层次结构。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号