Skip to content

tjkendev/unlambda-rhino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unlambda Interpreter on Rhino

Description

Unlambda言語をRhino上で走らせる簡易インタプリタです。

関数は k, s, i, v, c, d, .x, e, @, ?x, | に対応しています。

機能として、

  • コンソール上で実行する(一行スクリプト)
  • ファイルを読み込んで実行(複数行可)
  • 標準入力受け付け

に対応しています。

また、このツールはCoffeeScript上で記述しており、一度javascriptに変換してRhino上で実行します。

Requirement

"coffee"と"rhino"のパスが通るように設定してください。

Usage

  • compile tool
$ make all
  • run interpreter
$ sh unlambda.sh
> `.a.b
a
$ sh unlambda.sh sample/hello.unl
hello, world!

Other

何か問題や要望があれば、IssueやTwitterなどにお願いします。

License

このツールはMITライセンスに従います。詳細はLICENSE.txtをご覧ください。