blob: ea9ec85ce1f0f9af66e57e45c9ed19c3e43b7b2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
(***********************************************************************)
(* *)
(* OCaml *)
(* *)
(* Alain Frisch, LexiFi *)
(* *)
(* Copyright 2007 Institut National de Recherche en Informatique et *)
(* en Automatique. All rights reserved. This file is distributed *)
(* under the terms of the Q Public License version 1.0. *)
(* *)
(***********************************************************************)
external fact: int -> string = "factorial"
let () =
Api.reg_mod "plugin_ext";
Printf.printf "fact 10 = %s\n" (fact 10)
|