一种基于python的静态编译语言,具有类型安全性、效率和语法糖。
rele的Python项目详细描述
[![构建状态](https://travis-ci.org/thautwarm/reley.svg?(https://travis ci.org/thautwarm/reley)
参见“haskell-test/*.hs `.
目前可以通过“python setup.py install”安装reley编译器。
用法
=====br/>
>
-编译:编译:
>`````
>>;reley cc<;filename>;.hs-o<;out>;.pyc
>>;python;python>;
<;输出>;.pyc
```
>
>
>```
>>;reley run<;filename>;.hs
```
>
>
>
``````
```````
`.pyc .pyc
```.pyc
`.pyc
`.python
` ` ` ` ` ` `
` ` ` ` ` ` ` ` `
` ` ` ` ` ` `=)`
其中
导入运算符(add,eq)
导入函数工具(减少)
import toolz(curry)import toolz(curry)
import reley.prelude((+))
中缀5(==)
中缀0($)
(=)=curry eq
($)a b=a b
(+)=curry add
m和lst=if lst=[]那么0
else destruct lst
其中,destruct(a,b)=a+m和(a+m和)和(a+m和b)
main()=
打印$m-sum[1,2,3,4,5,6]
``````
```` python
import reley.impl.pycompat
python
``` python
import reley.impl.pycompat
lst=(5,(2,(1,())))
print(m-sum(lst))
````
/>缺少关键的Haskell功能。
参见“haskell-test/*.hs `.
目前可以通过“python setup.py install”安装reley编译器。
用法
=====br/>
>
-编译:编译:
>`````
>>;reley cc<;filename>;.hs-o<;out>;.pyc
>>;python;python>;
<;输出>;.pyc
```
>
>
>```
>>;reley run<;filename>;.hs
```
>
>
>
``````
```````
`.pyc
```.pyc
`.pyc
`.python
` ` ` ` ` ` `
` ` ` ` ` ` ` ` `
` ` ` ` ` ` `=)`
其中
导入运算符(add,eq)
导入函数工具(减少)
import toolz(curry)import toolz(curry)
import reley.prelude((+))
中缀5(==)
中缀0($)
(=)=curry eq
($)a b=a b
(+)=curry add
m和lst=if lst=[]那么0
else destruct lst
其中,destruct(a,b)=a+m和(a+m和)和(a+m和b)
main()=
打印$m-sum[1,2,3,4,5,6]
``````
```` python
import reley.impl.pycompat
python
``` python
import reley.impl.pycompat
lst=(5,(2,(1,())))
print(m-sum(lst))
````
/>缺少关键的Haskell功能。