19 lines
No EOL
301 B
JavaScript
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()) |