arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1708.07366cs.FLcs.LOcs.PL
收藏

A Computational Interpretation of Context-Free Expressions

Martin Sulzmann, Peter Thiemann

英文摘要:

We phrase parsing with context-free expressions as a type inhabitation problem where values are parse trees and types are context-free expressions. We first show how containment among context-free and regular expressions can be reduced to a reachability problem by using a canonical representation of states. The proofs-as-programs principle yields a computational interpretation of the reachability problem in terms of a coercion that transforms the parse tree for a context-free expression into a parse tree for a regular expression. It also yields a partial coercion from regular parse trees to context-free ones. The partial coercion from the trivial language of all words to a context-free expression corresponds to a predictive parser for the expression.

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

↑