Inspect

This module introduces a series of commands that provide access to information stored within the interpreter data structures. It's primary use is for MAL debugging.

MODULE inspect;

PATTERN inspect.equalType(X_0:any, X_1:any):bit;
COMMENT "";

COMMAND inspect.getAtomNames():bat[:str];
COMMENT "";

COMMAND inspect.getAtomSizes():bat[:int];
COMMENT "";

COMMAND inspect.getAtomSuper():bat[:str];
COMMENT "";

PATTERN inspect.getComment(X_0:str, X_1:str):bat[:str];
COMMENT "";

PATTERN inspect.getDefinition(X_0:str, X_1:str):bat[:str];
COMMENT "";

COMMAND inspect.getEnvironment() (X_0:bat[:str], X_1:bat[:str]);
COMMENT "";

COMMAND inspect.getEnvironment(X_0:str):str;
COMMENT "";

PATTERN inspect.getExistence(X_0:str, X_1:str):bit;
COMMENT "";

PATTERN inspect.getFunction():bat[:str];
COMMENT "";

PATTERN inspect.getKind():bat[:str];
COMMENT "";

PATTERN inspect.getModule():bat[:str];
COMMENT "";

PATTERN inspect.getSignature(X_0:str, X_1:str):bat[:str];
COMMENT "";

PATTERN inspect.getSignatures():bat[:str];
COMMENT "";

PATTERN inspect.getSize(X_0:str, X_1:str):lng;
COMMENT "";

PATTERN inspect.getSize():lng;
COMMENT "";

PATTERN inspect.getSource(X_0:str, X_1:str):str;
COMMENT "";

PATTERN inspect.getType(X_0:any_1):str;
COMMENT "";

PATTERN inspect.optimizer_stats() (X_0:bat[:str], X_1:bat[:int], X_2:bat[:lng]);
COMMENT "";