forked from egison/egison
-
Notifications
You must be signed in to change notification settings - Fork 0
/
egison.cabal
107 lines (100 loc) · 4.35 KB
/
egison.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
Name: egison
Version: 3.7.14
Synopsis: Programming language with non-linear pattern-matching against non-free data
Description:
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!
.
<<https://raw.githubusercontent.com/egison/egison/master/images/twin-primes-w700.png>>
.
/Poker Hands/
.
The following code is the program that determines poker-hands written in Egison.
All hands are expressed in a single pattern.
.
<<https://raw.githubusercontent.com/egison/egison/master/images/poker-hands-w700.png>>
.
/Mahjong/
.
We can write a pattern even against mahjong tiles.
We modularize patterns to represent complex mahjong hands.
.
<<https://raw.githubusercontent.com/egison/egison/master/images/mahjong-w700.png>>
.
/Graphs/
.
We can pattern-match against graphs.
We can write program to solve the travelling salesman problem in a single pattern-matching expression.
.
<<https://raw.githubusercontent.com/egison/egison/master/images/salesman-w700.png>>
.
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!
Homepage: http://www.egison.org
License: MIT
License-file: LICENSE
Author: Satoshi Egi, Ryo Tanaka, Takahisa Watanabe, Kentaro Honda, Mayuko Kori
Maintainer: Satoshi Egi <[email protected]>
Category: Compilers/Interpreters
Build-type: Simple
Cabal-version: >=1.8
Extra-Source-Files: benchmark/Benchmark.hs
Data-files: lib/core/*.egi lib/math/*.egi lib/math/common/*.egi lib/math/algebra/*.egi lib/math/analysis/*.egi lib/math/geometry/*.egi
sample/*.egi sample/io/*.egi sample/math/algebra/*.egi sample/math/analysis/*.egi sample/math/geometry/*.egi sample/math/number/*.egi sample/math/others/*.egi
elisp/egison-mode.el
source-repository head
type: git
location: https://github.com/egison/egison.git
Library
Build-Depends: base >= 4.0 && < 5, array, random, containers, unordered-containers, haskeline, transformers, mtl, parsec >= 3.0, directory, ghc, ghc-paths, text, regex-tdfa, process, vector, parallel, split, hashable, lens
if !impl(ghc > 8.0)
Build-Depends: fail
Hs-Source-Dirs: hs-src
Exposed-Modules:
Language.Egison
Language.Egison.Core
Language.Egison.Desugar
Language.Egison.Types
Language.Egison.Parser
Language.Egison.ParserNonS
Language.Egison.Primitives
Language.Egison.Util
Language.Egison.MathOutput
Other-modules: Paths_egison
ghc-options: -O3
Test-Suite test
Type: exitcode-stdio-1.0
Hs-Source-Dirs: test
Main-Is: Test.hs
Build-Depends: egison, base >= 4.0 && < 5, transformers, mtl, Glob, HUnit, test-framework, test-framework-hunit, filepath
Other-modules: Paths_egison
Benchmark benchmark
Type: exitcode-stdio-1.0
Hs-Source-Dirs: benchmark
Main-Is: Benchmark.hs
Build-Depends: egison, base >= 4.0 && < 5, deepseq, criterion >= 0.5, transformers, mtl
Other-modules: Paths_egison
Executable egison
Main-is: egison.hs
Build-depends: egison, base >= 4.0 && < 5, array, containers, unordered-containers, haskeline, transformers, mtl, parsec >= 3.0, directory, ghc, ghc-paths, filepath, text, regex-tdfa, process, vector
Hs-Source-Dirs: hs-src/Interpreter
Other-modules: Paths_egison
ghc-options: -O3 -threaded -eventlog -rtsopts