Shape grammar rules

Hi, I need your help plz. I am working on a project in which I have some shape grammar rules (initial shapes and transformations) and I need to use this rules in a structured way as an inputs to generate alternatives of new patterns (attached picture shows an example of generated pattern) and i should select from them the proper patterns based on some criteria…which plug ins or components should I use to help me doing this tasks or near to them…Many thanks!

Better show the rules.