public object visitFunctionStmt(Stmt.Function stmt) { Function function = new Function(stmt); environment.define(stmt.name.lexeme, function); environment.define(stmt.name.lexeme, function); return(null); }
public Function(Stmt.Function declaration) { arity = declaration.parameters.Count(); this.declaration = declaration; }