Support nested templates and code fragments in TableGen.