UNPKG

calcium-lang

Version:
15 lines 446 B
import { Block, Kind, Result } from "../runtime/block"; /** * the parent block of `If`, `Elif` and `Else` */ export default class Ifs { constructor() { } execute(env) { const block = new Block(Kind.Ifs, env.address, () => true, (env) => { env.address.shift(-1); // when all condition is not safisfied return Result.Exited; }); block.willEnter(env); } } //# sourceMappingURL=ifs.js.map