Hi,
I'm learning about nim containers, and of course dreaming about to improve them. So I started to search for common patterns and concepts. To help my understanding I wrote a nim script which parses the nim source and creates some charts (graphviz rocks!) showing the available functions for each container type. This is the result so far:
http://pottom.mooo.com/nim_collections/
Please take a look and give some feedback. This is far from perfect, for example functions are broken if they accept proc as parameters, templates are completely missing, etc. If you think it is worth to continue, then I'll clean the code and upload to github.
Thanks, Peter
I've removed the proc/iterator/template tag from the edges, also removed the parenthesis () if there is no parameters. I've added procs without return type, created the charts for string, int, float, File and expr. It is still far from perfect, for example "map" is broken with no easy way to fix, because it takes a function as parameter. The current approach uses regex with several hacks. If I had knew all these issues a week ago, I would have written a parser from scratch.
The code is on github: https://github.com/petermora/nimDot
An example chart from the output folder: https://github.com/petermora/nimDot/blob/master/output/Table.png