src/highlighter.js
/**
 * Stringify a Natural Language Concrete Syntax Tree
 * @param {object} tree NLCST syntax tree
 * @returns {string} Plain text
 */
Stringify a Natural Language Concrete Syntax Tree
@param {object} tree NLCST syntax tree
@returns {string} Plain text
Stringify a Natural Language Concrete Syntax Tree @param { object } tree NLCST syntax tree @returns { string } Plain text
function stringify(tree) {
  if (typeof tree != "object" || Object.keys(tree).length < 1) {
    throw new TypeError("Parameter 'tree' must be a non-empty object");
  }
  const NLCSTtoString = require("nlcst-to-string");
  return NLCSTtoString(tree);
}
function stringify ( tree ) { if ( typeof tree != "object" || Object . keys ( tree ) . length < 1 ) { throw new TypeError ( "Parameter 'tree' must be a non-empty object" ) ; } const NLCSTtoString = require ( "nlcst-to-string" ) ; return NLCSTtoString ( tree ) ; }
Stringify a Natural Language Concrete Syntax Tree
 @param {object} tree NLCST syntax tree
 @returns {string} Plain text
Stringify a Natural Language Concrete Syntax Tree @param { object } tree NLCST syntax tree @returns { string } Plain text