result = exp.exec(str);
console.log();
console.log(`result[0]: default trace: ${result[0]}`);
html = '';
html += '<h3>grammar source</h3>\n';
html += exp.sourceToHtml();
html += '<h3>input string</h3>\n';
html += `<pre>${str}</pre>\n`;
html += '<h3>the matched phrase</h3>\n';
html += `<pre>${result[0]}</pre>\n`;
html += '<h3>the default trace configuration (all rule names, no operators) </h3>\n';
html += exp.trace.toHtml();
html += '<h3> trace configured to display ALL steps taken </h3>\n';
exp = new ApgExp(grammar, flags);