whatlang-interpreter
Version:
Interpreter for WhatLang 2024, a stack-based esolang
11 lines (10 loc) • 586 B
TypeScript
export declare var default_var_dict: Record<string, any>;
export declare var need_svo: string[];
export declare var need_fstack: string[];
export declare const formatting: (x: any) => string;
export declare const exec_what: (fstack: any[][], var_dict: Record<string, any>, output: (x: any) => void) => Promise<any>;
export declare const run_what: (code: string, var_dict?: Record<string, any>) => Promise<{
stack: any;
output: string;
}>;
export declare const eval_what: (code: string, fstack: any[][], var_dict: Record<string, any>, output?: (x: any) => void) => Promise<any>;