Revert "permet l'ajout des frameworks et des routes"

This reverts commit 361112699c
This commit is contained in:
Dario Duchateau-weinberger
2023-09-25 09:44:12 +02:00
parent 361112699c
commit 20cb812095
2787 changed files with 0 additions and 864804 deletions

View File

@@ -1,31 +0,0 @@
const { Transform } = require('stream')
const constructTree = require('./construct-tree')
class StreamTreeConstructor extends Transform {
constructor (options) {
super(Object.assign(
{},
options,
{
objectMode: true,
readableObjectMode: true
}
))
this.currentState = undefined
}
_transform (tokensChunk, encoding, callback) {
const { state, ast } = constructTree(
tokensChunk,
this.currentState
)
this.currentState = state
callback(null, ast)
}
}
module.exports = StreamTreeConstructor