/[svn]/typing/typer.mli
ViewVC logotype

Contents of /typing/typer.mli

Parent Directory Parent Directory | Revision Log Revision Log


Revision 278 - (hide annotations)
Tue Jul 10 17:21:59 2007 UTC (5 years, 10 months ago) by abate
File size: 1046 byte(s)
[r2003-03-24 22:41:38 by cvscast] Empty log message

Original author: cvscast
Date: 2003-03-24 22:42:11+00:00
1 abate 233 open Ident
2    
3 abate 9 exception NonExhaustive of Types.descr
4     exception Constraint of Types.descr * Types.descr * string
5 abate 19 exception ShouldHave of Types.descr * string
6 abate 233 exception WrongLabel of Types.descr * label
7 abate 36 exception UnboundId of string
8 abate 5
9 abate 278 module Env : Map.S with type key = id
10 abate 66 type env = Types.descr Env.t
11 abate 6
12 abate 277 val register_global_types : (string * Ast.ppat) list -> unit
13 abate 278 val dump_global_types: Format.formatter -> unit
14 abate 277 val typ : Ast.ppat -> Typed.ttyp
15     val pat : Ast.ppat -> Typed.tpat
16     val expr: Ast.pexpr -> fv * Typed.texpr
17     val let_decl : Ast.ppat -> Ast.pexpr -> Typed.let_decl
18 abate 6
19 abate 66
20 abate 19 val type_check:
21 abate 225 env -> Typed.texpr -> Types.descr -> bool -> Types.descr
22 abate 19 (* [compute_type env e t precise] checks that expression [e]
23     has type [t] under typing environment [env]; if [precise=true],
24     also returns a possible more precise type for [e].
25     *)
26 abate 225 val type_let_decl: env -> Typed.let_decl -> (id * Types.descr) list
27 abate 19
28 abate 225 val type_rec_funs: env -> Typed.let_decl list -> (id * Types.descr) list
29 abate 66 (* Assume that all the expressions are Absstractions *)

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.5