flaska/benchmark/strings.mjs
2024-10-22 10:44:53 +00:00

19 lines
No EOL
301 B
JavaScript

import { buildTree, compileTreeIntoIfs } from "./compiler/compiler.mjs"
let paths = [
'test1',
'test',
'test3',
'test5',
'something',
'sometimes',
'else',
'goes',
'here',
'too',
]
let tree = buildTree(paths)
const ifTree = compileTreeIntoIfs(tree)
console.log(ifTree.toString())