inscript

Example

React to events.

Inscript is not only sequential. Listener mode can register when handlers and react to external event sources.

when motion is detected:
    show "light on"

when door is open unless quiet-hours is active:
    show "door open"

The current build uses a single-threaded event queue. Handlers are registered from readable top-level sentences, then driven by an event source.

Shape of the idea: a protocol, classroom rule, smart-home rule, or narrative script can be written as the document that reacts.