arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.08014cs.FL
收藏

关于LL(k)线性合取文法

On LL(k) linear conjunctive grammars

Ilya Olkhovsky, Alexander Okhotin

摘要:

线性合取文法是一类在规则中允许显式合取运算的形式文法,它与单向实时元胞自动机(也称为格状自动机)的计算等价。本文研究了线性合取文法的LL($k$)子类,它是通过类比经典的LL($k$)文法而定义的:这些文法允许使用$k$ -符号先行进行自顶向下的线性时间分析。两个结果。首先,每个LL($k$)线性合取文法可以被变换为LL(1)线性合取文法,并且相应地,关于$k$的层次崩溃。其次,这些语法,工作在线性时间和使用对数空间构造的分析器,显示的家庭LL($k$)线性合取语言包含在复杂性类$L$。

英文摘要:

Linear conjunctive grammars are a family of formal grammars with an explicit conjunction operation allowed in the rules, which is notable for its computational equivalence fo one-way real-time cellular automata, also known as trellis automata. This paper investigates the LL($k$) subclass of linear conjunctive grammars, defined by analogy with the classical LL($k$) grammars: these are grammars that admit top-down linear-time parsing with $k$-symbol lookahead. Two results are presented. First, every LL($k$) linear conjunctive grammar can be transformed to an LL(1) linear conjunctive grammar, and, accordingly, the hierarchy with respect to $k$ collapses. Secondly, a parser for these grammars that works in linear time and uses logarithmic space is constructed, showing that the family of LL($k$) linear conjunctive languages is contained in the complexity class $L$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑