calcium-lang
Version:
Calcium language interpreter
20 lines (19 loc) • 553 B
TypeScript
import Command from "./command";
import Environment from "../runtime/environment";
import * as Expr from "../expression";
/**
* eg. `+=`, `-=` or `*=`
*/
export default class CompoundAssign implements Command {
readonly operator: string;
readonly lhs: Expr.Reference;
readonly rhs: Expr.Expression;
/**
*
* @param operator same as the correspoding binary operator
* @param lhs
* @param rhs
*/
constructor(operator: string, lhs: Expr.Reference, rhs: Expr.Expression);
execute(env: Environment): void;
}