You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
651 B

3 years ago
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Example of ocaml script starting with infer code. To execute a scipt run:
./scripts/infer_repl <path/to/this/script.ml>
It's used as a basic integration test *)
(* "import" infer code *)
#use "toplevel_init";;
ignore (Ident.create_fresh Ident.knormal) ;
let ident = Ident.create_fresh Ident.knormal in
let e = Exp.Var ident in
print_endline (Exp.to_string e) ;
(* pass --debug to change the value *)
print_endline (string_of_bool Config.debug_mode)