https://github.com/irori/clamb
Universal Lambda interpreter
https://github.com/irori/clamb
Last synced: 24 days ago
JSON representation
Universal Lambda interpreter
- Host: GitHub
- URL: https://github.com/irori/clamb
- Owner: irori
- License: mit
- Created: 2012-01-06T12:11:41.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T02:18:17.000Z (10 months ago)
- Last Synced: 2025-03-26T12:46:19.022Z (about 1 month ago)
- Language: C
- Homepage:
- Size: 10.7 KB
- Stars: 9
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeInterpreter - clamb
README
# Universal Lambda interpreter
This is an interprefer of the [Universal Lambda](http://www.golfscript.com/lam/)
programming language, written in C.The implementation is based on my [Lazy K interpreter](https://github.com/irori/lazyk).
Internally it compiles the program into an SKI combinator expression, and
evaluates it in a similar way to the Lazy K interpreter.## Usage
```sh
$ clamb [options] input-file...
```Like the original `lamb` interpreter, `clamb` does not distinguish between
source files and input. It parses a program from the concatenation of all
_input-files_ and stdin at the end, and the remaining bytes are treated as
input.Options:
- `-h`: Print help and exit.
- `-u`: Disable stdout buffering.
- `-p`: Parse the program, print it and exit.
- `-v`: Print version and exit.
- `-v0` (default): Do not print any debug information.
- `-v1`: Print some statistics after execution.
- `-v2`: Print logs for garbage collections.## License
This software is released under the [MIT License](LICENSE).