pridoujs
Version:
The pridou interpreter.
10 lines (9 loc) • 433 B
TypeScript
import type { InterpreterValue } from "./types/interpreter.js";
export default class Environment {
#private;
constructor(parent?: Environment);
get parent(): Environment | undefined;
addVariable(identifier: string, value: InterpreterValue, isConstant: boolean): InterpreterValue;
getVariable(identifier: string): InterpreterValue;
setVariable(identifier: string, value: InterpreterValue): InterpreterValue;
}