pegjs/lib/utils/classes.js
2015-06-12 17:34:59 -07:00

13 lines
249 B
JavaScript

"use strict";
/* Class utilities */
var classes = {
subclass: function(child, parent) {
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype;
child.prototype = new ctor();
},
};
module.exports = classes;