2006-09-23から1日間の記事一覧

OcamlYaccのデバッグ

環境変数OCAMLRUNPARAMにpをセットしてやればいい。 http://ocaml.jp/archive/ocaml-manual-3.06-ja/manual024.html#ocamlrun-options

Optional arguments

module type Foo = sig val f :int-> ?x:int->int->int end;;は大丈夫。 module type Foo = sig val f :int->?x:int->int->int end;;はダメ。 たぶん"->?"で一つのトークンだと認識されちゃうんだろうね。