swh:1:snp:0e3a7a90b5b85feca1ee6285ebc0301d2b85deae
Tip revision: 5a7aca4d68a0fdd4521c2ae8c6604e277ef5a9d8 authored by Pierre Boutry on 10 November 2022, 18:08:49 UTC
add some examples
add some examples
Tip revision: 5a7aca4
ecIo.mli
(* -------------------------------------------------------------------- *)
type ecreader
(* -------------------------------------------------------------------- *)
val from_channel : name:string -> in_channel -> ecreader
val from_file : string -> ecreader
val from_string : string -> ecreader
(* -------------------------------------------------------------------- *)
val finalize : ecreader -> unit
val parse : ecreader -> EcParsetree.prog
val parseall : ecreader -> EcParsetree.global list
val drain : ecreader -> unit
val lexbuf : ecreader -> Lexing.lexbuf
(* -------------------------------------------------------------------- *)
val lex_single_token : string -> EcParser.token option
val is_sym_ident : string -> bool
val is_op_ident : string -> bool
val is_mem_ident : string -> bool
val is_mod_ident : string -> bool
(* -------------------------------------------------------------------- *)
val is_binop : string -> [`Yes | `No | `Invalid]
val is_uniop : string -> [`Yes | `No | `Invalid]