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

可扩展语言中的可扩展模式匹配

Extensible Pattern Matching in an Extensible Language

Sam Tobin-Hochstadt

摘要:

模式匹配是函数式语言中广泛使用的技术,特别是ML和Haskell传统中的那些,它是语义的核心。相反,在Lisp传统语言中,模式匹配通常由用宏构建的库提供。我们提出匹配,一个复杂的模式匹配器Racket,实现语言扩展。使用宏。该系统支持新颖的和广泛有用的模式匹配形式,并且本身是可扩展的。match的可扩展性是通过创建可扩展语言扩展的一般技术来实现的。

英文摘要:

Pattern matching is a widely used technique in functional languages, especially those in the ML and Haskell traditions, where it is at the core of the semantics. In languages in the Lisp tradition, in contrast, pattern matching it typically provided by libraries built with macros. We present match, a sophisticated pattern matcher for Racket, implemented as language extension. using macros. The system supports novel and widely-useful pattern-matching forms, and is itself extensible. The extensibility of match is implemented via a general technique for creating extensible language extensions.

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

↑