Do you have any idea how can i merge two asts using python ast?
I would like to do something like this:
n1 = ast.parse(input_a)
n2 = ast.parse(input_b)
n = merge(n1,n2)
I would like create root n with childs n1 and n2.
Thanks in advance
Do you have any idea how can i merge two asts using python ast?
I would like to do something like this:
n1 = ast.parse(input_a)
n2 = ast.parse(input_b)
n = merge(n1,n2)
I would like create root n with childs n1 and n2.
Thanks in advance
Copyright © 2021 Jogjafile Inc.
It appears you can do this:
But I can't find that documented anywhere.
Sample: