Waher.Script. It is not JavaScript or ECMAScript. It is a compact expression language designed for mathematics, data queries, dynamic content, reports, automation, and direct integration with .NET objects.
What you can build
- operational queries and reports;
- dynamic Markdown, XML, HTML, images, and PDF content;
- scheduled jobs and event processing;
- database and ledger workflows;
- XMPP, email, contract, token, and payment automation;
- graphs, statistics, cryptography, semantic-web queries, and transforms;
- custom functions supplied by Neuron packages.
Execution contexts
The function set is assembled from loaded modules. A bare
Waher.Script host has core mathematical and runtime functions; a Neuron adds persistence, networking, content, gateway, contract, token, mail, and package-defined extensions.
Learn in this order
Run your first script
Use the Script prompt and verify values and tables.
Language basics
Values, assignment, collections, functions, and control flow.
Query data
Work with the object database, external SQL, SPARQL, and the ledger.
Automate operations
Turn scripts into reports, jobs, and repeatable procedures.