v1.0 du site web

This commit is contained in:
22107988t
2023-09-25 13:27:24 +02:00
parent 20cb812095
commit a94f68f22a
2787 changed files with 864804 additions and 0 deletions

31
app/node_modules/hyntax/lib/stream-tree-constructor.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
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