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

一个实用的通用语法分析器:识别器

Marpa, A practical general parser: the recognizer

Jeffrey Kegler

摘要:

描述了Marpa识别器。Marpa是一个实用的和完全实现的算法,用于识别、解析和评估上下文无关文法。Marpa识别器是第一个将Joop Leo在1991年的论文中发现的Earley算法的改进与Aycock和Horspool在2002年的论文中发现的改进相结合的识别器。Marpa以一种便于应用程序使用的形式跟踪解析的完整状态。这极大地改进了错误检测并支持事件驱动的解析。一种这样的技术是“RubySlippers”解析,在这种技术中,输入被改变以响应解析器的期望。

英文摘要:

The Marpa recognizer is described. Marpa is a practical and fully implemented algorithm for the recognition, parsing and evaluation of context-free grammars. The Marpa recognizer is the first to unite the improvements to Earley's algorithm found in Joop Leo's 1991 paper to those in Aycock and Horspool's 2002 paper. Marpa tracks the full state of the parse, at it proceeds, in a form convenient for the application. This greatly improves error detection and enables event-driven parsing. One such technique is "Ruby Slippers" parsing, in which the input is altered in response to the parser's expectations.

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

↑