HappyABC 0.1.0リリース

http://happyabc.org

一段落したので、いったんリリースします。

これはなに?

Flashのフォーマットであるswfを生成することを目的としているSchemeコンパイラです。

できること

ActionScriptのかわりにSchemeを使って、Flashプログラミングができます。

インストール

http://happyabc.org/download.htmlからダウンロードできます。

$ omake install PREFIX=/path/to/

ビルドにはOCamlomakeGODI(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など外部のファイルを取り込む機能