HappyABC 0.1.0リリース
一段落したので、いったんリリースします。
できること
ActionScriptのかわりにSchemeを使って、Flashプログラミングができます。
インストール
http://happyabc.org/download.htmlからダウンロードできます。
$ omake install PREFIX=/path/to/
ビルドにはOCaml、omake、GODI(extlib,jane-street-core,oUnit,xml-light)、swfmill(trunk)が必要です。
使い方
;; hello.scm (define-class Main (flash.display.Sprite) ()) (define-method init ([self Main]) (let [(t (new flash.text.TextField))] (invoke t appendText "Hello,world!!") (invoke this addChild t)))
これをコンパイルすると、hello.swfが生成されます。
$ habc hello.scm
今ない機能
- リスト
- エラー検出
- importやuseなど外部のファイルを取り込む機能