Compiling pattern matching by term decomposition

  • Authors:
  • Laurence Puel;Ascander Suarez

  • Affiliations:
  • LIENS URA CNRS 1327, Ecole Normale Supérieure, 45 rue d'Ulm, 75005 Paris FRANCE;Digital Equipment Corporation, Paris Research Laboratory, 85 Av Victor Hugo, 92563 Rueil Malmaison, FRANCE

  • Venue:
  • LFP '90 Proceedings of the 1990 ACM conference on LISP and functional programming
  • Year:
  • 1990

Quantified Score

Hi-index 0.02

Visualization

Abstract

We present a method for compiling pattern matching on lazy languages based on previous work of Huet and Lévy and, later on, Laville by coding ambiguous linear sets of patterns using “Term Decomposition”, and producing non ambiguous sets over terms with structural constraints on variables. The method can also be applied on strict languages giving a match algorithm with no useless work when such a match exists.