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

« back to all changes in this revision

Viewing changes to examples/minilogo/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 "crayon.mli";;
18
 
compile "crayon.ml";;
19
 
#load "crayon.cmo";;
20
 
 
21
 
compile "langage.mli";;
22
 
compile "langage.ml";;
23
 
#load "langage.cmo";;
24
 
 
25
 
compile "alex.mli";;
26
 
compile "alex.ml";;
27
 
#load "alex.cmo";;
28
 
 
29
 
compile "asynt.mli";;
30
 
compile "asynt.ml";;
31
 
#load "asynt.cmo";;
32
 
 
33
 
compile "logo.ml";;
34
 
#load "logo.cmo";;
35
 
 
36
 
open Logo;;
37
 
 
38
 
print_string
39
 
 "Pour lancer l'interpr�teur: boucle();;\n\
40
 
  Taper par exemple:\n\
41
 
  repete 4 [av 30 dr 90] .\n\
42
 
  Ou encore\n\
43
 
  pour carre :c\n \
44
 
   repete 4 [av 30 dr 90]\n\
45
 
  .\n\
46
 
 repete 30 [carre 30.0 dr 90.0]\n\
47
 
 ";
48
 
print_newline ();;