calcium-lang
Version:
Calcium language interpreter
18 lines (17 loc) • 548 B
TypeScript
import Command from "./command";
import Environment from "../runtime/environment";
import { Reference } from "../expression";
/**
* a foreach loop that don't use a function to get an iterable
*/
export default class ForEach implements Command {
readonly elemName: string;
readonly iterable: Reference;
/**
*
* @param elemName the identifier of the retrieved object
* @param iterable must refer to an iterable object
*/
constructor(elemName: string, iterable: Reference);
execute(env: Environment): void;
}