calcium-lang
Version:
Calcium language interpreter
11 lines (10 loc) • 342 B
TypeScript
import Environment from "../runtime/environment";
import { Expression } from "../expression";
import { InternalType } from "../type";
/**
* a utility function that applies `evaluate` method to the expression
* @param target
* @param env
* @returns
*/
export default function evaluate(target: Expression, env: Environment): InternalType;