js_top_worker Feature Demo

OCaml Toplevel in the Browser via WebWorker

Initializing...
Basic Execution exec
Multiple Environments isolation
MIME Output rich output
Autocomplete complete_prefix

Enter partial code and click Complete to see suggestions

Type Information type_enclosing

Position (0-indexed):

Click "Get Type" to see type information
Error Reporting query_errors
Click "Check Errors" to analyze code
Directives #show, #install_printer, etc.
Custom Printers #install_printer
Library Loading #require

Libraries must be prepared with jtw opam first.

Toplevel Script Execution exec_toplevel

Toplevel scripts use "# " prefix for input lines. Output is indented.