https://github.com/lynn/universal-lambda
A minimal esolang based on lambda calculus
https://github.com/lynn/universal-lambda
Last synced: 2 months ago
JSON representation
A minimal esolang based on lambda calculus
- Host: GitHub
- URL: https://github.com/lynn/universal-lambda
- Owner: lynn
- License: mit
- Created: 2021-01-10T21:07:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-13T18:10:03.000Z (over 4 years ago)
- Last Synced: 2025-02-28T20:39:58.918Z (3 months ago)
- Language: Ruby
- Size: 34.2 KB
- Stars: 16
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
Run make to compile lamb, needs ghc. Everything else needs ruby (1.8).
lamb = run a lambda binary file
lama = assemble plain lambda file into binary
lamd = disassemble binary into plainusages:
lamb sourcefile.lamb < inputfile
lama sourcefile.lam #output goes in file sourcefile.lamb
or
lama < sourcefile.lam #output goes to stdoutlamd sourcefile.lamb
or
lamd < sourcefile.lamb
#output goes to stdoutSmall tutorial: http://golfscript.com/lam/
Changes:
2008-11-14: removed buffering in output, can output invalid list until fail
removed barrier between source file and input, these are all equivalent now
lamb file.lamb < input.txt
cat file.lamb input.txt | lamb
lamb file.lamb input.txt < /dev/null