wip
This commit is contained in:
parent
befe371e4f
commit
4929081d87
@ -14,7 +14,10 @@ func (block Block) ToString (indent int) (output string) {
|
|||||||
output += doIndent(indent, "block\n")
|
output += doIndent(indent, "block\n")
|
||||||
|
|
||||||
// TODO: variables
|
// TODO: variables
|
||||||
// TODO: phrases
|
|
||||||
|
for _, phrase := range block.phrases {
|
||||||
|
output += phrase.ToString(indent + 1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,5 +30,8 @@ func (analyzer *analysisOperation) analyzeBlock (
|
|||||||
block Block,
|
block Block,
|
||||||
err error,
|
err error,
|
||||||
) {
|
) {
|
||||||
|
for _, inputPhrase := range inputBlock {
|
||||||
|
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,9 @@ func (analyzer *analysisOperation) analyzeFuncSection () (
|
|||||||
|
|
||||||
if inputSection.External() {
|
if inputSection.External() {
|
||||||
outputSection.external = true
|
outputSection.external = true
|
||||||
|
if inputSection.Root() != nil {
|
||||||
|
panic("invalid state: input func is external with non-nil root")
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
outputSection.root, err = analyzer.analyzeBlock(inputSection.Root())
|
outputSection.root, err = analyzer.analyzeBlock(inputSection.Root())
|
||||||
|
Reference in New Issue
Block a user