UNPKG

ton-assembly

Version:

TON assembler and disassembler

46 lines 1.37 kB
import * as G from "./grammar"; import type { Stack, StackElement } from "./stack"; import VmParsedStack = G.$ast.VmParsedStack; export type VmLine = VmLoc | VmStack | VmExecute | VmLimitChanged | VmGasRemaining | VmException | VmExceptionHandler | VmFinalC5 | VmUnknown; export type VmLoc = { readonly $: "VmLoc"; readonly hash: string; readonly offset: number; }; export type VmStack = { readonly $: "VmStack"; readonly stack: Stack; }; export type VmExecute = { readonly $: "VmExecute"; readonly instr: string; }; export type VmLimitChanged = { readonly $: "VmLimitChanged"; readonly limit: number; }; export type VmGasRemaining = { readonly $: "VmGasRemaining"; readonly gas: number; }; export type VmException = { readonly $: "VmException"; readonly errno: number; readonly message: string; }; export type VmExceptionHandler = { readonly $: "VmExceptionHandler"; readonly errno: number; }; export type VmFinalC5 = { readonly $: "VmFinalC5"; readonly hex: string; }; export type VmUnknown = { readonly $: "VmUnknown"; readonly text: string; }; export declare const parse: (log: string) => VmLine[]; export declare const parseStack: (line: string) => VmParsedStack | undefined; export declare const processStack: (stack: VmParsedStack) => StackElement[]; //# sourceMappingURL=parse.d.ts.map