parseit.js
Version:
Customizable parsing library for converting a list of tokens into an AST tree
15 lines • 356 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class Token {
type;
value;
constructor(type, value) {
this.type = type;
this.value = value;
}
toString() {
return `[${this.type}${this.value ? ':' + this.value : ''}]`;
}
}
exports.default = Token;
//# sourceMappingURL=Token.js.map