import { Funcs, Ins } from "./types"; import { InvokeError, ErrCtx } from "./types"; export type Token = { typ: "str" | "num" | "sym" | "rem" | "(" | ")"; text: string; errCtx: ErrCtx; }; export type DefAndVals = { def: Ins; val: Ins[]; }; export declare function tokenise(code: string, invokeId: string, doTransforms?: boolean, emitComments?: boolean): { tokens: Token[]; stringError: [number, number] | undefined; }; /** The for instruction is a descriptor of its following instructions - * this extracts them. */ export declare function forReader({ collInsLens, bodyLen, totalLen }: Extract, nextInsAt: number, funcIns: Ins[]): { defAndVals: DefAndVals[]; body: Ins[]; }; export declare function parse(code: string, invokeId: string): { funcs: Funcs; errors: InvokeError[]; lineCols: string[]; };