acalang-0.5.0
توضیحات
Aca, a functional programming language, and shitty toy
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | acalang-0.5.0 |
| نام | acalang |
| نسخه کتابخانه | 0.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | AnqurVanillapy |
| ایمیل نویسنده | anqurvanillapy@gmail.com |
| آدرس صفحه اصلی | https://github.com/anqurvanillapy/acalang |
| آدرس اینترنتی | https://pypi.org/project/acalang/ |
| مجوز | MIT |
# Aca
> *Aca, a functional programming language, and shitty toy.*
Aca is a toy functional programming language initially inspired by ISWIM. The
interpreter is currently written in Python.
## Install
```bash
$ pip install acalang
```
## Example
1. Command line usage
```bash
$ cat foo.aca
let main =
dechurch 3
$ aca foo.aca
3
$ aca foo.aca -S # `noeval' mode
(lambda x: dechurch(x))((lambda x: x)((lambda f: lambda x: (f(f(f(x)))))))
$ aca # REPL
$ aca -S # REPL with `noeval'
```
2. Lambda calculus
```
let main =
(\x y f. f x y)
```
3. Standard library for basic datatypes
```
let a = zero
let b = succ zero
let main = dechurch b
-- 1
```
4. Sugar for Church numerals
```
let main = 0
-- This is identical to
{-
let main =
(\x . x)
-}
```
5. Special builtin functions for debugging (decoded into Python value)
```
let main =
dechurch 42
-- Output: 42
let main =
debool true
-- Output: True
let main =
dereal (neg (u2i 42))
-- Output: -42
```
6. Simple module import with `use`
```bash
$ foo.aca
let foo = 42
$ bar.aca
use foo
let main =
dechurch foo
$ aca bar.aca
42
```
## Goals
- Before `v1.0.0`:
+ Untyped lambda calculus
- `v1.0.0`:
+ Simply typed lambda calculus
- `v2.0.0`:
+ System F
## License
MIT
نحوه نصب
نصب پکیج whl acalang-0.5.0:
pip install acalang-0.5.0.whl
نصب پکیج tar.gz acalang-0.5.0:
pip install acalang-0.5.0.tar.gz