Extensible Pattern Matching in an Extensible Language
Extensible Pattern Matching in an Extensible Language
复制标题
可扩展语言中的可扩展模式匹配
DOI:
--
复制
发表时间:
2011
期刊:
影响因子:
--
通讯作者:
Sam Tobin
中科院分区:
文献类型:
--
作者:
Sam Tobin
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.