Table of Contents

Batch interpreter

Hiphop.js provides an batch interpreter, usable with a reactive machine. It takes input commands on standard input, and display results of reaction on standard output. It started this way:

const hh = require("hiphop");
const prg = <hh.Module> ... </hh.Module>;
var machine = new hh.ReactiveMachine(prg);

hh.batch(machine); // starts the batch interpreter

The commands of the batch interpreter are the following:

Values can be given to valued signal as the following:

Symbolic web debugger

A symbolic debugger is provided by Hiphop.js. It allows to display the running source code of a Hiphop.js program through a web browser. The following conventions are used:

After each reaction, the colors are automatically updated in order to reflect the actual state of the program.

Enabling / disabling the debugger

A reactive machine m provides the following API:

If debugger_name is already used by another debugger, it is automatically disabled.

Using the debugger