Stepping OCaml, in the browser

This is Kenichi Asai's stepper, not ours. It was written at Ochanomizu University by Tsukino Furukawa, Youyou Cong and Kenichi Asai. Its home is pllab.is.ocha.ac.jp/~asai/Stepper, and it's described in Stepping OCaml (TFPIE 2018).

Here it is compiled to JavaScript from the 4.14.2 release, with small changes so it runs in a page: its output goes to a buffer, and the reducing part is marked. Its opam file says MIT licence; the parts copied from the OCaml compiler are LGPL 2.1 with the OCaml linking exception. Problems with this page are ours, not Asai's.

It runs entirely in this page. Pick an example from the notes or write your own, then step through it. With predict on, you say what the next line is before you see it. The yellow part is what reduces next, and the green part is what it became.

The last let is the expression that's stepped. Programs must be closed and well typed. The standard library's List isn't available.

    Known limits of the stepper