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
649 B
21 lines
649 B
(*
|
|
* 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 <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 --flavors flag to change the value *)
|
|
print_endline (string_of_bool Config.flavors)
|