@mojir/lits
Version:
Lits is a Lisp dialect implemented in TypeScript
12 lines (11 loc) • 587 B
TypeScript
import type { Any, Arr } from '../interface';
import type { LitsFunctionType } from '../parser/types';
import type { SourceCodeInfo } from '../tokenizer/token';
import type { ContextStack } from './ContextStack';
import type { EvaluateNode, ExecuteFunction } from './interface';
type FunctionExecutors = Record<LitsFunctionType, (fn: any, params: Arr, sourceCodeInfo: SourceCodeInfo | undefined, contextStack: ContextStack, helpers: {
evaluateNode: EvaluateNode;
executeFunction: ExecuteFunction;
}) => Any>;
export declare const functionExecutors: FunctionExecutors;
export {};