This commit is contained in:
Sasha Koshka 2022-10-24 17:15:48 -04:00
parent befe371e4f
commit 4929081d87
2 changed files with 10 additions and 1 deletions

View File

@ -14,7 +14,10 @@ func (block Block) ToString (indent int) (output string) {
output += doIndent(indent, "block\n")
// TODO: variables
// TODO: phrases
for _, phrase := range block.phrases {
output += phrase.ToString(indent + 1)
}
return
}
@ -27,5 +30,8 @@ func (analyzer *analysisOperation) analyzeBlock (
block Block,
err error,
) {
for _, inputPhrase := range inputBlock {
}
return
}

View File

@ -52,6 +52,9 @@ func (analyzer *analysisOperation) analyzeFuncSection () (
if inputSection.External() {
outputSection.external = true
if inputSection.Root() != nil {
panic("invalid state: input func is external with non-nil root")
}
} else {
outputSection.root, err = analyzer.analyzeBlock(inputSection.Root())