(* * Copyright (c) 2016-present, Facebook, Inc. * * 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 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 --flavors flag to change the value *) print_endline (string_of_bool Config.flavors)