/** * An expression, as instructions. * * Every expression is emitted left to right and leaves exactly one value on the * stack. That is not a style: `compiled-program.md` 4.1 has no swap and no * rotate precisely so that there is one way to compile an expression, and two * compilers that agree about the language cannot then disagree about the * program. * * The three places this file makes a decision rather than following a rule are * marked where they are made: where a name's value lives, what a history read * of something that is not a name reads from, and how a named colour reaches a * bar. */ import type { Expression, NameReference } from '../ast/index.js'; import type { Span } from '../span/index.js'; import type { Binding } from '../check/index.js'; import type { Emitter, Frame } from './context.js'; export declare function emitExpression(e: Emitter, f: Frame, expression: Expression): void; /** Where a name's value lives, which the checker decided and this reads off. */ export declare function emitNameRead(e: Emitter, f: Frame, node: NameReference): void; export declare function emitBindingRead(e: Emitter, f: Frame, binding: Binding, at: Span): void; //# sourceMappingURL=expressions.d.ts.map