/** * Every built-in the importer translates, and what it becomes. * * This table is the one statement of that mapping. The importer reads it, and * the documentation page's table is compared with it row for row by * `tests/importer/table.test.ts`, so the page cannot teach a mapping the * importer does not make. A built-in with no row here is refused with OS9003 * rather than guessed at. * * `difference` says how far a translation can be trusted, and it is the reason * a row exists at all rather than a remark about it: * * - `exact`: the OpenScript call computes the same value on every bar where * the source's value is finite, absent bars included, or the importer * writes the expression that does. An OpenScript number is never infinite. * - `warmup`: the same quantity, whose first bars, seed, arithmetic order and * handling of an absent value inside its window are OpenScript's own * (`stdlib.md` 20). The first call of each raises OS9007. * - `orders`: an order call, placed under OpenScript's order model. The first * call of each raises OS9010. * * `stateful` marks a call that keeps state at its call site in OpenScript, so * that skipping it on a bar changes what it returns later (`language.md` * 11.4). It decides where the source dialect's evaluation order and * OpenScript's differ, which is what the logic operators' translation is about. */ export type Difference = 'exact' | 'warmup' | 'orders'; export interface Mapping { /** The built-in as the source writes it, namespace included. */ readonly source: string; /** What it becomes, as the documentation page prints it. */ readonly target: string; /** The source's parameter names, in positional order. Empty for a value. */ readonly params: readonly string[]; /** The OpenScript parameter names the source's line up with, where they line up one to one. */ readonly targets: readonly string[]; readonly difference: Difference; readonly stateful: boolean; /** Set where the arguments do not line up one to one, naming the translator that handles it. */ readonly special: string | undefined; } export declare const MAPPINGS: readonly Mapping[]; /** The rows that are read as a value, keyed by the source spelling. */ export declare const VALUES: ReadonlyMap; /** The rows that are called, keyed by the source spelling. */ export declare const CALLS: ReadonlyMap; /** * The colour names both languages have, which translate to OpenScript's colour * of the same name. The channel values are OpenScript's (`spec/colours.json`). */ export declare const COLOURS: ReadonlySet; //# sourceMappingURL=table.d.ts.map