arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2205.04600cs.FL
收藏

解析表达式GLL

Parsing Expression GLL

Aaron Moss, Brynn Harrington, Emily Hoppe

摘要:

本文提出了一个扩展的GLL分析算法的上下文无关文法,它也支持分析表达式语法与有序选择和前瞻。新的PEGLL算法保留了对无序选择的支持,从而解析上下文无关文法和解析表达式文法的公共超集。作为这项工作的一部分,作者已经修改了现有的GLL解析器生成器,以支持解析表达式语法,添加常见的解析表达式的操作符,并修改词法分析器算法,以更好地支持有序选择。

英文摘要:

This paper presents an extension of the GLL parsing algorithm for context-free grammars which also supports parsing expression grammars with ordered choice and lookahead. The new PEGLL algorithm retains support for unordered choice, and thus parses a common superset of context-free grammars and parsing expression grammars. As part of this work, the authors have modified an existing GLL parser-generator to support parsing expression grammars, adding operators for common parsing expressions and modifying the lexer algorithm to better support ordered choice.

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

↑