mathjslab
Version:
MathJSLab - An interpreter with language syntax like MATLAB®/Octave, ISBN 978-65-00-82338-7.
79 lines (78 loc) • 1.91 kB
TypeScript
import { ComplexType } from './Complex';
import * as AST from './AST';
import { Evaluator } from './Evaluator';
declare class FunctionHandle {
static readonly FUNCTION_HANDLE = 5;
readonly type = 5;
parent: any;
id: string | null;
commat: boolean;
parameter: AST.NodeExpr[];
expression: AST.NodeExpr;
/**
*
* @param value
* @returns
*/
static isInstanceOf: (value: unknown) => value is FunctionHandle;
/**
*
* @param id
* @param commat
* @param parameter
* @param expression
*/
constructor(id?: string | null, commat?: boolean, parameter?: AST.NodeExpr[] | null, expression?: AST.NodeExpr);
/**
*
* @param id
* @param commat
* @param parameter
* @param expression
* @returns
*/
static create: (id?: string | null, commat?: boolean, parameter?: AST.NodeExpr[] | null, expression?: AST.NodeExpr) => FunctionHandle;
/**
*
* @param fhandle
* @param evaluator
* @param parentPrecedence
* @returns
*/
static unparse: (fhandle: FunctionHandle, evaluator: Evaluator, parentPrecedence?: number) => string;
/**
*
* @param fhandle
* @param evaluator
* @param parentPrecedence
* @returns
*/
static unparseMathML: (fhandle: FunctionHandle, evaluator: Evaluator, parentPrecedence?: number) => string;
/**
*
* @param fhandle
* @returns
*/
static copy: (fhandle: FunctionHandle) => FunctionHandle;
/**
*
* @returns
*/
copy(): FunctionHandle;
/**
*
* @param fhandle
* @returns
*/
static toLogical: (fhandle: FunctionHandle) => ComplexType;
/**
*
* @returns
*/
toLogical(): ComplexType;
}
export { FunctionHandle };
declare const _default: {
FunctionHandle: typeof FunctionHandle;
};
export default _default;