Updated README.
This commit is contained in:
18
README.md
18
README.md
@@ -19,18 +19,6 @@ make release
|
|||||||
./scl.out
|
./scl.out
|
||||||
```
|
```
|
||||||
|
|
||||||
### For Development
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git clone git@signorovitch.org:scl/scl --recurse-submodules && cd scl
|
|
||||||
make all test
|
|
||||||
./scl.out
|
|
||||||
```
|
|
||||||
|
|
||||||
If you wish to run tests, make sure to run `git clone --recurse-submodules` to
|
|
||||||
include the [Unity](https://github.com/ThrowTheSwitch/Unity) test framework.
|
|
||||||
*Note that tests are currently in poor use. I hope to amend this in the future.*
|
|
||||||
|
|
||||||
## Syntax
|
## Syntax
|
||||||
|
|
||||||
SCL's syntax will feel familiar to other functional programming languages.
|
SCL's syntax will feel familiar to other functional programming languages.
|
||||||
@@ -41,10 +29,10 @@ SCL's syntax will feel familiar to other functional programming languages.
|
|||||||
> f(x) x + 1
|
> f(x) x + 1
|
||||||
> f(1)
|
> f(1)
|
||||||
= 2
|
= 2
|
||||||
> (\(x) 2 * x)(5)
|
> \x, y 2 * x + y $ (2, 3)
|
||||||
= 10
|
= 7
|
||||||
> f(g) g(2)
|
> f(g) g(2)
|
||||||
> f(\(x) 2 * x)
|
> f(\x 2 * x)
|
||||||
= 4
|
= 4
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user