UNPKG

calcium-lang

Version:
14 lines (13 loc) 406 B
import Environment from "../runtime/environment"; import Command from "./command"; /** * a base class for `If`, `Elif` and `Else` commands */ export default abstract class Conditional implements Command { execute(env: Environment): void; /** * a template method that returns whether the condition is satisfied * @param env */ abstract isSatisfied(env: Environment): boolean; }