comparison lib/basis.urs @ 292:6e665c7c96f6

Error-parsing ints
author Adam Chlipala <adamc@hcoop.net>
date Sun, 07 Sep 2008 12:15:46 -0400
parents df00701f2323
children 5f6a60b7ab00
comparison
equal deleted inserted replaced
291:550100a44cca 292:6e665c7c96f6
30 val show_string : show string 30 val show_string : show string
31 val show_bool : show bool 31 val show_bool : show bool
32 32
33 class read 33 class read
34 val read : t ::: Type -> read t -> string -> option t 34 val read : t ::: Type -> read t -> string -> option t
35 val readError : t ::: Type -> read t -> string -> t
36 (* [readError] calls [error] if the input is malformed. *)
35 val read_int : read int 37 val read_int : read int
36 val read_float : read float 38 val read_float : read float
37 val read_string : read string 39 val read_string : read string
38 val read_bool : read bool 40 val read_bool : read bool
39 41