calcium-lang
Version:
Calcium language interpreter
17 lines (16 loc) • 464 B
TypeScript
import Command from "./command";
import Environment from "../runtime/environment";
/**
* `def` statement (function definition)
*/
export default class Def implements Command {
readonly funcName: string;
readonly paramsName: string[];
/**
*
* @param funcName the name of the function
* @param paramsName positional parameters' name
*/
constructor(funcName: string, paramsName: string[]);
execute(env: Environment): void;
}