The Egison Programming Language

- Express Intuition Directly with Essentially New Syntax -

Egison is a programming language that features extensible efficient non-linear pattern matching with backtracking for non-free data types.
We can directly represent pattern matching for a wide range of data types including lists, multisets, sets, trees, graphs, and mathematical expressions.
Egison makes programming dramatically simple!


Egison proposes a new paradigm pattern-match-oriented. The combination of all of the following features enables intuitive powerful pattern matching.

  • Efficiency of the backtracking algoirthm for non-linear patterns
  • Extensibility of pattern matching
  • Polymorphisim in patterns

Egison Pattern-Matching Paper

Computer Algebra System

Egison allows programmers to use tensor index notation including the support for differential forms.
Egison introduces two types of parameters, scalar and tensor parameters, and a set of simple index reduction rules for that.

Demo: Riemann Curvature Tensor of `S^2` » Egison Tensor Paper

Online Demonstrations

Please try Egison's original features.

[(2018/08/13)] Paper on Egison pattern matching has been accepted to APLAS 2018!
[(2018/08/14)] Paper on loop patterns has been accepted to Scheme Workshop 2018!
[(2019/11/18)] Paper on Scheme macros for Egison pattern matching has been accepted to Scheme Workshop 2019!


Mac OS X Linux Windows

Egison Cheat Sheet

Please refer this cheat sheet when you write Egison programs.


We aim at intuitive representation of algorithms and formalization of human recognitions.
We believe this is the shortest way to the artificial intelligence.


Developed and maintained on GitHub by the community. License is MIT.


Egison is written in Haskell and being distributed as a Hackage package.
Egison inherits a lot of features from Haskell.

Related Projects

Extending other languages to access Egison pattern matching!


We have a mailing list!
Egison on Twitter, Google+, Facebook, GitHub, Rosseta Code, Hacker News, and Reddit. Please check them!

This website in other langauge: English, 日本語