X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/idiomatic.git/blobdiff_plain/1d14f8b4c3061f3bbecbbd2df4c230a9dd1fd985..ef2285e8811ba79f54986e32767aa75a87191f86:/index.js?ds=inline diff --git a/index.js b/index.js index b1a1a24..ff1804c 100644 --- a/index.js +++ b/index.js @@ -37,7 +37,7 @@ app.get('/index', async (req,res,next) => { console.log(new Date().toLocaleTimeString(), 'index') const reductions = counter() const doit = branch => {reductions.count(branch.type)} - visitor.wander(mods,doit) + visitor.walk(mods,doit) const result = `
${reductions.size()} non-terminals
${reductions.total()} reductions
@@ -59,7 +59,7 @@ app.get('/terminal', (req,res) => {
const {type,field} = req.query
const lits = counter()
const doit = branch => {if(branch.type==type) lits.count(branch[field])}
- visitor.wander(mods,doit)
+ visitor.walk(mods,doit)
const result = style('terminal',type)+`
${lits.size()} uniques
${lits.total()} total
@@ -79,7 +79,7 @@ app.get('/usage', (req,res) => {
${stack.at(-1)}
${escape(JSON.stringify(hit,omit,2))}`)
}
}
- visitor.wander(mods,doit)
+ visitor.walk(mods,doit)
res.send(style('nesting',key)+`${result.join("