SNRK-71: buildDependencyGraph scratch is added
This commit is contained in:
parent
fd45104a7e
commit
1db2afce12
@ -9,7 +9,25 @@ val DEFAULT_DOCUMENT_ROOT = "main.md"
|
|||||||
|
|
||||||
public suspend fun buildDocument(documentPath: String) {
|
public suspend fun buildDocument(documentPath: String) {
|
||||||
val documentDirectory: Directory = LocalDirectory(documentPath)
|
val documentDirectory: Directory = LocalDirectory(documentPath)
|
||||||
val documentRoot = documentDirectory.get(DEFAULT_DOCUMENT_ROOT)
|
|
||||||
|
|
||||||
|
val dependencyGraph = buildDependencyGraph(documentDirectory)
|
||||||
|
|
||||||
|
TODO() /*resolving of dependencies*/
|
||||||
|
}
|
||||||
|
|
||||||
|
public suspend fun buildDependencyGraph(root: Directory) : DependencyGraph {
|
||||||
|
// val rootDcoument = root.get(DEFAULT_DOCUMENT_ROOT)
|
||||||
|
|
||||||
|
// val filesToParse: Queue<FileReader> = LinkedList<FileReader>(listOf(root))
|
||||||
|
// var documentName = "."
|
||||||
|
|
||||||
|
// val nodes = HashMap<FileName, DependencyGraphNode>()
|
||||||
|
|
||||||
|
// while (!filesToParse.isEmpty())
|
||||||
|
// {
|
||||||
|
// dependencyGraphNode = buildDependencyNode(filesToParse.remove())
|
||||||
|
|
||||||
|
// nodes.put()
|
||||||
|
// }
|
||||||
TODO()
|
TODO()
|
||||||
}
|
}
|
@ -1,5 +1,9 @@
|
|||||||
package documentBuilder
|
package documentBuilder
|
||||||
|
|
||||||
public suspend fun parseMd(mdFile: ByteArray): DependencyGraphNode {
|
public suspend fun parseMd(mdFile: ByteArray): MdAstRoot {
|
||||||
|
TODO()
|
||||||
|
}
|
||||||
|
|
||||||
|
public suspend fun buildDependencyGraphNode(mdFile: ByteArray): DependencyGraphNode {
|
||||||
TODO()
|
TODO()
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user