https://github.com/cotowali/litsu
https://github.com/cotowali/litsu
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cotowali/litsu
- Owner: cotowali
- License: mpl-2.0
- Created: 2022-08-02T02:26:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-30T02:37:55.000Z (over 3 years ago)
- Last Synced: 2025-04-10T09:24:03.606Z (9 months ago)
- Language: F#
- Size: 187 KB
- Stars: 45
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Litsu
A statically-typed functional language that is transpiled into POSIX sh.
## Example
```ml
(* fib.lit *)
let rec fib n =
if n <= 1 then
n
else
fib (n - 1) + fib (n - 2)
in fib 10
```
```
$ litc fib.lit | sh
55
```
## Build
```
$ dotnet build
```