Installation and Usage
You can install this engine locally using
npm install sense-js-engine
You can test it from the command line using
If you install this package in your project's
/home/sense, it will
This module provides a complete example of how to implement an engine for Sense.
The engine evaluates code chunks in a subprocess, keeping the main process's event loop relatively free. This allows the engine to receive interrupt events and emit output while code chunks are running.
Each engine must define the
chunk method that splits long strings of
code into logical units such as statements and block comments. This
engine's chunker uses the acorn parser with the
While evaluating code chunks, the subprocess generates output, which
it sends to the engine according to its type using [
ge_sendhandle). When the subprocess has finished evaluating a code
chunk, it sends an output message of type
result, indicating that it
is ready for the next code chunk.
The engine itself communicates with the frontend using the methods defined in the Engine API.
- Email: email@example.com
- Twitter: https://twitter.com/SensePlatform
- Google Group: https://groups.google.com/forum/?fromgroups#!forum/sense-users