Module Frontend.Load

type error =
  1. | LexingError of {
    1. span : Basis.LexingUtil.span;
    2. last_token : string option;
    }
  2. | ParseError of {
    1. span : Basis.LexingUtil.span;
    2. last_token : string option;
    }
val load_file : [ `Stdin | `File of string ] -> (ConcreteSyntax.signature, error) Stdlib.result
val prepare_repl : unit -> Stdlib.in_channel * Stdlib.Lexing.lexbuf
val load_cmd : Stdlib.Lexing.lexbuf -> (ConcreteSyntax.repl_command, error) Stdlib.result