UNPKG

@rbxts/insitux

Version:

Extensible s-expression scripting language enabling players to safely mod Roblox games themselves.

16 lines (15 loc) 502 B
import { Funcs } from "./types"; import { InvokeError, ErrCtx } from "./types"; export type Token = { typ: "str" | "num" | "sym" | "rem" | "(" | ")"; text: string; errCtx: ErrCtx; }; export declare function tokenise(code: string, invokeId: string, doTransforms?: boolean, emitComments?: boolean): { tokens: Token[]; stringError: number[] | undefined; }; export declare function parse(code: string, invokeId: string): { funcs: Funcs; errors: InvokeError[]; };