egison: Programming language with non-linear pattern-matching against non-free data

[ compilers-interpreters, library, mit, program ] [ Propose Tags ] [ Report a vulnerability ]

An interpreter for Egison, a **pattern-matching-oriented**, purely functional programming language. We can directly represent pattern-matching against lists, multisets, sets, trees, graphs and any kind of data types.

We can find Egison programs in lib and sample directories. This package also include Emacs Lisp file elisp/egison-mode.el.

We can do non-linear pattern-matching against non-free data types in Egison. An non-free data type is a data type whose data have no canonical form, a standard way to represent that object. It enables us to write elegant programs.

Twin Primes

We can use pattern-matching for enumeration. The following code enumerates all twin primes from the infinite list of prime numbers with pattern-matching!

Poker Hands

The following code is the program that determines poker-hands written in Egison. All hands are expressed in a single pattern.

Mahjong

We can write a pattern even against mahjong tiles. We modularize patterns to represent complex mahjong hands.

Graphs

We can pattern-match against graphs. We can write program to solve the travelling salesman problem in a single pattern-matching expression.

Aren't thsese exciting? We can run these demonstrations on our website! Please view and try more demonstrations!

http://www.egison.org

Egison makes programming dramatically simple. Please enjoy Egison!

Modules

[Last Documentation]

  • Language
    • Language.Egison
      • Language.Egison.AST
      • Language.Egison.CmdOptions
      • Language.Egison.Completion
      • Language.Egison.Core
      • Language.Egison.Data
      • Language.Egison.Desugar
      • Language.Egison.IState
      • Language.Egison.MList
      • Language.Egison.MathExpr
      • Language.Egison.MathOutput
      • Language.Egison.Parser
        • Language.Egison.Parser.NonS
        • Language.Egison.Parser.SExpr
      • Language.Egison.Pretty
      • Language.Egison.Primitives
      • Language.Egison.Tensor
      • Language.Egison.Types

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.1.1, 0.1.2, 0.1.2.1, 0.1.2.2, 0.1.2.3, 0.1.2.4, 0.1.2.5, 0.2.0.0, 0.2.0.1, 0.2.0.2, 0.2.1.0, 0.2.1.1, 0.3.0.0, 0.3.0.1, 0.3.0.2, 0.3.0.3, 0.3.1.0, 0.3.1.1, 0.4.0.0, 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.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 3.8.2, 3.9.0, 3.9.1, 3.9.2, 3.9.3, 3.9.4, 3.10.0, 3.10.1, 3.10.2, 3.10.3, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.1.0, 4.1.1, 4.1.2, 4.1.3
Dependencies array, base (>=4.7 && <5), containers, directory, egison, fail, filepath, ghc, ghc-paths, hashable, haskeline, megaparsec (>=7.0.0), mini-egison (>=1.0.0), mtl (>=2.2.1), optparse-applicative, parsec (>=3.1), parser-combinators, prettyprinter, process, random, regex-tdfa, semigroups, split, text, transformers, unordered-containers, vector [details]
License MIT
Author Satoshi Egi, Ryo Tanaka, Takahisa Watanabe, Kentaro Honda, Mayuko Kori, Momoko Hattori
Maintainer Satoshi Egi <egi@egison.org>
Category Compilers/Interpreters
Home page http://www.egison.org
Source repo head: git clone https://github.com/egison/egison.git
Uploaded by SatoshiEgi at 2020-04-13T14:17:37Z
Distributions
Reverse Dependencies 2 direct, 0 indirect [details]
Executables egison-translate, egison
Downloads 158879 total (395 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2020-04-13 [all 3 reports]