(***********************************************************************) (* *) (* Objective Caml *) (* *) (* Pierre Weis, projet Cristal, INRIA Rocquencourt *) (* *) (* Copyright 2001 Institut National de Recherche en Informatique et *) (* en Automatique. All rights reserved. This file is distributed *) (* only by permission. *) (* *) (***********************************************************************) open Syntaxe;; type erreur_de_type = | Indéfini of string (* variable utilisée mais non définie *) | Conflit of string * expr_type * expr_type (* conflit de types *) | Arité of string * int * int (* mauvais nombre d'arguments *) | Tableau_attendu (* [..] appliqué à un non-tableau *) | Tableau_interdit of string;; (* tableau renvoyé en résultat *) exception Erreur_typage of erreur_de_type;; val type_programme: programme -> unit;; val affiche_erreur: erreur_de_type -> unit;; val type_op_unaire: string -> expr_type * expr_type;; val type_op_binaire: string -> expr_type * expr_type * expr_type;;