calcium-lang
Version:
Calcium language interpreter
17 lines (16 loc) • 434 B
TypeScript
import Environment from "../runtime/environment";
import { InternalType } from "../type";
/**
* a simple reference to a value
* `Variable` don't refer to any attribute or use subscript.
*/
export default class Variable {
readonly name: string;
constructor(name: string);
/**
* eg. `x = 7`
* @param rhs a right hand side value
* @param env
*/
assign(rhs: InternalType, env: Environment): void;
}