pivot/classes.js

19 lines
349 B
JavaScript

var token = function (type, value) {
this.type = type;
this.value = value;
};
var group = function (type, tokens) {
this.type = "Group";
this.value = type;
this.tokens;
if(typeof tokens != "undefined") {
this.tokens = tokens;
} else {
this.tokens = [];
}
}
module.exports = {
token: token,
group: group
}