UNPKG

calcium-lang

Version:
18 lines (17 loc) 466 B
import Command from "./command"; import * as Expr from "../expression"; import Environment from "../runtime/environment"; /** * the command of assignemnt */ export default class Assign implements Command { readonly lhs: Expr.Reference; readonly rhs: Expr.Expression; /** * * @param lhs left hand side * @param rhs right hand side */ constructor(lhs: Expr.Reference, rhs: Expr.Expression); execute(env: Environment): void; }