# zbMATH — the first resource for mathematics

Basic pattern matching calculi: a fresh view on matching failure. (English) Zbl 1122.68395
Kameyama, Yukiyoshi (ed.) et al., Functional and logic programming. 7th international symposium, FLOPS 2004, Nara, Japan, April 7–9, 2004. Proceedings. Berlin: Springer (ISBN 3-540-21402-X/pbk). Lecture Notes in Computer Science 2998, 276-290 (2004).
Summary: We propose pattern matching calculi as a refinement of $$\lambda$$-calculus that integrates mechanisms appropriate for fine-grained modelling of non-strict pattern matching.
Compared with the functional rewriting strategy usually employed to define the operational semantics of pattern matching in non-strict functional programming languages like Haskell or Clean, our pattern matching calculi achieve the same effects using simpler and more local rules.
The main device is to embed into expressions the separate syntactic category of matchings; the resulting language naturally encompasses pattern guards and Boolean guards as special cases.
By allowing a confluent reduction system and a normalising strategy, these pattern matching calculi provide a new basis for operational semantics of non-strict programming languages and also for implementations.
For the entire collection see [Zbl 1048.68005].

##### MSC:
 68N18 Functional programming and lambda calculus
##### Software:
CLEAN; Haskell; Isabelle/HOL; Sparkle
Full Text: