amplify-education / python-hcl2

MIT License
255 stars 56 forks source link

Add a reverse Transform for "DictTransformer" #176

Open michaeldcanady opened 1 month ago

michaeldcanady commented 1 month ago

currently there doesn't seem to be a "simple" approach to converting from a "hcl2Dict" to a Lark.Tree, since the tree to dict conversion is done via the DictTransformer, I think it would be a huge help to have a TreeTransformer, where the dict is converted back into an HCL representation Lark.Tree.