Program Structure - Formance Documentation (original) (raw)

The goal of a Numscript program is to output financial transactions, based on the rules and constraints defined in the script, along with an initial state of the system of accounts provided as input. Once a transaction is computed by the Numscript interpreter, it then becomes the role of the system leveraging Numscript to concretise it against the accounts involved.

A Numscript program is composed of the following elements:

The grammar of a Numscript program can be found here.