MatchPy: A Pattern Matching Library

Manuel Krebber, Henrik Barthels, Paolo Bientinesi
10/16/2017
cs.PLcs.SC

Official code: HPAC/matchpy (174 stars, Python, MIT, last commit 2024-04-18).

Abstract

Pattern matching is a powerful tool for symbolic computations, based on the well-defined theory of term rewriting systems. Application domains include algebraic expressions, abstract syntax trees, and XML and JSON data.

Show full abstract

Unfortunately, no lightweight implementation of pattern matching as general and flexible as Mathematica exists for Python Mathics,MacroPy,patterns,PyPatt. Therefore, we created the open source module MatchPy which offers similar pattern matching functionality in Python using a novel algorithm which finds matches for large pattern sets more efficiently by exploiting similarities between patterns.

View on arXivView PDF

Code Implementations(1)

HPAC/matchpyOfficial100%
MIT

A library for pattern matching on symbolic expressions in Python.

17426Python, TeXAug 25, 20162 years agoMIT
pattern-matchingpythonsymbolic-expressionsterm-rewriting

Similar Papers

Cite this paper

@article{krebber2017matchpy,
  title  = {MatchPy: A Pattern Matching Library},
  author = {Manuel Krebber and Henrik Barthels and Paolo Bientinesi},
  year   = {2017},
  eprint = {1710.06915},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1710.06915}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1710.06915.svg)](https://codeofpaper.com/paper/1710.06915)

Discussion