X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/idiomatic.git/blobdiff_plain/682a7215ae646bc71baf0be528b9c7d55b1cb445..ef2285e8811ba79f54986e32767aa75a87191f86:/index.js?ds=sidebyside
diff --git a/index.js b/index.js
index 18f87de..ff1804c 100644
--- a/index.js
+++ b/index.js
@@ -22,21 +22,29 @@ async function load(file) {
// P A G E S
-const style = ''
+const style = (title,here='') => `
+
+
${reductions.size()} non-terminals
${reductions.total()} reductions
-
${reductions.tally()
- .map(([k,v]) => `${v} ${link(k)}`)
- .join("
")}`
- res.send(style+result);
+
| ${v} | ${link(k)}`) + .join("\n")} |
${lits.size()} uniques
${lits.total()} total
-
${lits.tally()
- .map(([k,v]) => `${v} ${escape(k)}`)
- .join("
")}`
- res.send(style+result)
+
| ${v} | ${escape(k)}`) + .join("\n")} |
${JSON.stringify(req.query,null,2)}${list.join("${files.total()} uses in ${files.size()} files
+ ${files.tally().map(([k,v]) => `
${v} ${k}`).join("\n")}
${escape(JSON.stringify(hit,omit,2))}`)
+ ${escape(JSON.stringify(hit,omit,2))}`)
}
}
- visitor.wander(mods,doit)
- res.send(style+`${JSON.stringify(req.query,null,2)}${result.join("