~ubuntu-branches/ubuntu/hardy/ocaml-doc/hardy

« back to all changes in this revision

Viewing changes to examples/minicaml/loadall.ml

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2007-09-08 01:49:22 UTC
  • mfrom: (0.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070908014922-lvihyehz0ndq7suu
Tags: 3.10-1
* New upstream release.
* Removed camlp4 documentation since it is not up-to-date.
* Updated to standards version 3.7.2, no changes needed.
* Updated my email address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
(***********************************************************************)
2
 
(*                                                                     *)
3
 
(*                           Objective Caml                            *)
4
 
(*                                                                     *)
5
 
(*               Pierre Weis, projet Cristal, INRIA Rocquencourt       *)
6
 
(*                                                                     *)
7
 
(*  Copyright 2001 Institut National de Recherche en Informatique et   *)
8
 
(*  en Automatique.  All rights reserved.  This file is distributed    *)
9
 
(*  only by permission.                                                *)
10
 
(*                                                                     *)
11
 
(***********************************************************************)
12
 
let compile f =
13
 
 match Sys.command ("ocamlc -c " ^ f) with
14
 
 | 0 -> ()
15
 
 | _ -> failwith ("Cannot compile " ^ f);;
16
 
 
17
 
compile "syntaxe.mli";;
18
 
 
19
 
compile "eval.mli";;
20
 
compile "eval.ml";;
21
 
#load "eval.cmo";;
22
 
 
23
 
compile "lexuniv.mli";;
24
 
compile "lexuniv.ml";;
25
 
#load "lexuniv.cmo";;
26
 
 
27
 
compile "syntaxe.ml";;
28
 
#load "syntaxe.cmo";;
29
 
 
30
 
compile "types.mli";;
31
 
compile "types.ml";;
32
 
#load "types.cmo";;
33
 
 
34
 
compile "synthese.mli";;
35
 
compile "synthese.ml";;
36
 
#load "synthese.cmo";;
37
 
 
38
 
compile "caml.ml";;
39
 
#load "caml.cmo";;
40
 
open Caml;;
41
 
 
42
 
print_string
43
 
 "Pour lancer: boucle();;\n\
44
 
  Essayez par exemple:\n\
45
 
  let rec fib =\n\
46
 
    function x -> if x <= 1 then 1 else fib (x - 1) + fib (x - 2);;";
47
 
print_newline();;
48
 
 
49
 
 
50