calcium-lang
Version:
Calcium language interpreter
18 lines (17 loc) • 466 B
TypeScript
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;
}