Phorms: Pattern Combinator Library for Pharo - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year : 2016

Phorms: Pattern Combinator Library for Pharo

Abstract

Pattern matching is a common mechanism to provide analysis and transformation of data structures. Such an approach basically checks whether the containing elements of a data structure are constituents of a pattern, described by the developer. This paper is a step towards having seamless object-oriented pattern matching, which would be applicable to any object in Pharo. We present a pattern matching library, called Phorms, which enables users to compose patterns using the syntax of the Pharo programming language. In this library, patterns are objects and therefore can be inspected and de-bugged using existing Pharo tools. Our solution is extensible unlike The Rewrite Engine – Pharo's current pattern matching facilities. Moreover, by treating patterns as first class objects, our library provides more flexibility in the pattern matching process.
Fichier principal
Vignette du fichier
Rizu16a-IWST16-Matcher.pdf (129.11 Ko) Télécharger le fichier
Origin : Files produced by the author(s)
Loading...

Dates and versions

hal-01353883 , version 1 (15-08-2016)

Identifiers

Cite

Markiyan Rizun, Gustavo Santos, Stéphane Ducasse, Camille Teruel. Phorms: Pattern Combinator Library for Pharo. International Workshop on Smalltalk Technologies, Aug 2016, Prague, Czech Republic. ⟨10.1145/2991041.2991057⟩. ⟨hal-01353883⟩
304 View
171 Download

Altmetric

Share

Gmail Facebook X LinkedIn More