lisp-js-compiler
Version:
JavaScript compiler / interpreter for Lisp language
40 lines (39 loc) • 1.91 kB
TypeScript
export declare const exp: (api: any) => (exp: any) => Promise<any>;
export declare const evalAst: (api: any) => (ast: any) => Promise<any>;
export declare function evaluateFn(api: any, name: any, [params, body]: [any, any], args: any): Promise<any>;
export declare const setValue: (api: any, stack: any) => (name: any, value: any) => void;
export declare const getValue: (api: any, stack: any) => (name: any) => any;
export declare const makeAPI: (env: any) => any;
export declare const constants: {
'true': boolean;
'false': boolean;
};
export declare const atoms: {
process: (...args: any[]) => Promise<any>;
def: (name: any, exp: any) => Promise<void>;
'->': (params: any, body: any) => (...args: any[]) => Promise<any>;
'.': (...fns: any[]) => (...args: any[]) => Promise<any>;
'pipe': (...fns: any[]) => (...args: any[]) => Promise<any>;
Math: (...args: any[]) => Promise<any>;
cond: (...args: any[]) => Promise<any>;
if: (pred: any, con: any, alter: any) => Promise<any>;
throw: (...args: any[]) => Promise<never>;
'+': (...args: any[]) => Promise<any>;
'-': (...args: any[]) => Promise<any>;
'*': (...args: any[]) => Promise<any>;
'/': (...args: any[]) => Promise<number>;
'>': (...args: any[]) => Promise<boolean>;
'>=': (...args: any[]) => Promise<boolean>;
'=': (...args: any[]) => Promise<boolean>;
'<': (...args: any[]) => Promise<boolean>;
'<=': (...args: any[]) => Promise<boolean>;
xor: (...args: any[]) => Promise<number>;
not: (...args: any[]) => Promise<boolean>;
and: (...args: any[]) => Promise<any>;
or: (...args: any[]) => Promise<any>;
cat: (...args: any[]) => Promise<any>;
kv: (...args: any[]) => Promise<{}>;
ls: (...args: any[]) => Promise<any[]>;
get: (...args: any[]) => Promise<any>;
set: (...args: any[]) => Promise<any>;
};