Parse types from string

You can use Julia’s parser ex = Meta.parse(str) and then inspect the returned expression ex.


Why do you have a string like this in the first place though? Since this is not something you usually need to to when writing Julia code, it sounds a bit like an XY problem, and perhaps there is a better way to solve the actual problem.

1 Like