Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fumieval/lazyz
https://github.com/fumieval/lazyz
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fumieval/lazyz
- Owner: fumieval
- License: bsd-3-clause
- Created: 2012-06-23T11:35:59.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-05T07:02:39.000Z (almost 12 years ago)
- Last Synced: 2023-04-10T16:42:47.011Z (over 1 year ago)
- Language: Haskell
- Size: 969 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Lazy Z (ver0.3) by @fumieval
# Lazy Zとは
Lazy Zは、Lazy Kの「組み込み関数がS、K、Iの3つしかない」という特長を継承しつつ、文字列・数値リテラル、ラムダ式を導入した言語です。
# 構文
infixr 6 :;
infixr 6 ++;main input = 42 : str; -- 関数定義、数値リテラル、行コメント
(:) x xs = \f -> f x xs; {- ラムダ式、ブロックコメント -}
nil = \f -> \x y -> ystr = "Hello, world!" (:) nil ++ str; -- 文字列リテラル、再帰的定義
# 使い方
cabal install
LazyZ build prog.lazyz lib/prelude.lazyz > output.lazy