Reorganize repo.

This commit is contained in:
Joshua Bemenderfer
2022-11-01 14:55:57 -04:00
parent 403b6d1768
commit 0196cd5c87
21 changed files with 7 additions and 27 deletions

23
docs/dsl/index.test.js Normal file
View File

@@ -0,0 +1,23 @@
import { describe, it } from "vitest"
import { document } from '../../../implementations/js/packages/core/src/terrace.js'
import fs from 'node:fs'
import readline from 'node:readline/promises'
describe('Terrace DSL: thederf.com', () => {
it('loads', async () => {
const it = readline.createInterface({
input: fs.createReadStream('./test.tce', 'utf-8'),
})[Symbol.asyncIterator]()
const getLine = async () => {
console.log(1)
console.log('GETLINE', await it.next())
console.log(2)
const val = (await it.next()).value
return val
}
const doc = document(getLine, ' ')
doc.next(() => {})
})
})