输入驱动语言的泛化:理论和实践的好处
Generalizing input-driven languages: theoretical and practical benefits
摘要:
正则语言(RL)是乔姆斯基层次结构中最简单的一类。由于它们的简单性,它们具有各种良好的代数和逻辑特性,已在许多应用领域中成功利用。实际上,它们的所有相关问题都是可判定的,因此它们支持自动验证算法。此外,还可以实时识别。上下文无关语言(CFL)是另一个主要的语言家族,非常适合形式化编程,自然语言和许多其他类别的语言;它们增加的生成能力w.r.t.然而,强化学习会导致一些闭包属性和重要问题的可判定性的损失;此外,它们需要复杂的解析算法。因此,其各种子类已经被定义为具有不同的目标,从高效的、确定性的解析到闭包属性、逻辑表征和自动验证技术。在CFL子类中,所谓的结构化子类,即,那些典型的树结构是可见的句子,展示了RL的许多代数和逻辑属性,而确定性CFL已被彻底开发的编译器建设和其他应用领域。在调查和比较了这些不同的语言家族的主要属性之后,我们回到操作符先后次序语言(OPL),一个古老的家族,通过R。弗洛伊德开创了确定性的解析,我们表明,他们提供了意想不到的属性在两个领域迄今为止调查完全独立的方式:他们使解析并行化在一个更有效的方式比传统的顺序解析器,并表现出相同的代数和逻辑属性,迄今为止只获得较少的表达语言的家庭。
英文摘要:
Regular languages (RL) are the simplest family in Chomsky's hierarchy. Thanks to their simplicity they enjoy various nice algebraic and logic properties that have been successfully exploited in many application fields. Practically all of their related problems are decidable, so that they support automatic verification algorithms. Also, they can be recognized in real-time. Context-free languages (CFL) are another major family well-suited to formalize programming, natural, and many other classes of languages; their increased generative power w.r.t. RL, however, causes the loss of several closure properties and of the decidability of important problems; furthermore they need complex parsing algorithms. Thus, various subclasses thereof have been defined with different goals, spanning from efficient, deterministic parsing to closure properties, logic characterization and automatic verification techniques. Among CFL subclasses, so-called structured ones, i.e., those where the typical tree-structure is visible in the sentences, exhibit many of the algebraic and logic properties of RL, whereas deterministic CFL have been thoroughly exploited in compiler construction and other application fields. After surveying and comparing the main properties of those various language families, we go back to operator precedence languages (OPL), an old family through which R. Floyd pioneered deterministic parsing, and we show that they offer unexpected properties in two fields so far investigated in totally independent ways: they enable parsing parallelization in a more effective way than traditional sequential parsers, and exhibit the same algebraic and logic properties so far obtained only for less expressive language families.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。