UNPKG

parseit.js

Version:

Customizable parsing library for converting a list of tokens into an AST tree

15 lines 356 B
"use strict"; 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