calcium-lang
Version:
Calcium language interpreter
16 lines (15 loc) • 408 B
TypeScript
import Command from "./command";
import Environment from "../runtime/environment";
import { Expression } from "../expression";
/**
* `while` loop
*/
export default class While implements Command {
readonly condition: Expression;
/**
*
* @param condition if the value is `True`, then continue the loop
*/
constructor(condition: Expression);
execute(env: Environment): void;
}