UNPKG

jester

Version:

Simple language designed for teaching

35 lines (22 loc) 574 B
function Fn() { this.name = null; this.enclosingFn = null; this.innerFns = []; this.names = []; } // indicate that `name` is definitely known to be local to the current scope Fn.prototype.addLocalReference = function(name) { console.log("local: " + name); } // Fn.prototype.addPossibleLocalReference = function(name) { } Fn.prototype.addVariableReference = function(name) { console.log("var: " + name); } Fn.prototype.close = function() { // iterate over all symbols } Fn.prototype._addName = function(name) { } module.exports = Fn;