Part 11: Wrote a Domain Specific Language... to write Domain Specific Languages! ha! An enum based tree and a Result Builder allowed me to write the attached code to produce the attached output.
playground ready code: https://gist.github.com/carlynorama/088fd2bb77cb9d4fabb0c55e50f780b5
process getting there: https://www.whynotestflight.com/excuses/hello-usd-part-11-gotta-make-it-easier-to-write-file-builders/
#SwiftLang, #DSL, #OpenUSD, #ResultBuilder, #Swift, #Enum, #DataStructures