UNPKG

microvium

Version:

A compact, embeddable scripting engine for microcontrollers for executing small scripts written in a subset of JavaScript.

20 lines (19 loc) 1.3 kB
import * as IL from './il'; export interface StringifyILOpts { showComments?: boolean; commentSourceLocations?: boolean; showStackDepth?: boolean; showVariableNameHints?: boolean; } export declare function stringifyUnit(unit: IL.Unit, opts?: StringifyILOpts): string; export declare function stringifyFunction(func: IL.Function, indent: string, opts?: StringifyILOpts): string; export declare function stringifyBlock(block: IL.Block, indent: string, opts?: StringifyILOpts): string; export declare function stringifyComments(indent: string, comments: string[] | undefined, opts?: StringifyILOpts): string; export declare function stringifyOperationLine(operation: IL.Operation, indent: string, opts?: StringifyILOpts): string; export declare function formatSourceLoc(loc: IL.OperationSourceLoc): string; export declare function stringifyOperation(operation: IL.Operation): string; export declare function stringifyReturnOperation(operation: IL.ReturnOperation): string; export declare function stringifyGeneralOperation(operation: IL.Operation): string; export declare function stringifyOperand(operand: IL.Operand): string; export declare function stringifyAllocation(allocation: IL.Allocation): string; export declare function stringifyValue(value: IL.Value): string;