replit / prybar

Pry open those interpreters.
GNU General Public License v2.0
253 stars 52 forks source link

Add eval-file behavior for OCaml #17

Closed ryyppy closed 5 years ago

ryyppy commented 5 years ago

Enables following:

(* test.ml *)
let a = 1 + 1;;
print_endline "Loaded";;

Running it:

./prybar-ocaml -i test.ml

Some example interaction:

OCaml 4.07.0 on Unix
Loaded
-->  a;;
- : int = 2
-->

Note how the a binding is available in the interactive session.

turbio commented 5 years ago

could you rebase master, I fixed something in the julia tests.

ryyppy commented 5 years ago

@turbio Rebased, everything green now 👍