UNPKG

@andatoshiki/toshiki-cdn

Version:
24 lines (20 loc) 444 B
/** * The resulting parse tree nodes of the parse tree. */ function ParseNode(type, value, mode) { this.type = type; this.value = value; this.mode = mode; } /** * A result and final position returned by the `.parse...` functions. * */ function ParseResult(result, newPosition, peek) { this.result = result; this.position = newPosition; } module.exports = { ParseNode: ParseNode, ParseResult: ParseResult };