![]() |
|
Navigation |
Synopsis Evaluate a (list of) Rascal commands and return the type of the last command.
Function
Usage
import util::Eval;
Description Evaluate a command or a list of commands and return the type of the value of the last command that is executed.
An optional
duration argument may be present to limit the time
(in milliseconds) the execution may take. By default, the duration is set to 1000 ms.
Examples
rascal>import util::Eval; ok rascal>evalType("2 * 3;"); str: "int" rascal>evalType("[1, 2, 3];"); str: "list[int]" ![]() |