I wrote a couple functions for enumerating balanced parentheses. One orders them in a slightly haphazard way, whereas the other enumerates them by size. But it can jump right to a tree without having to enumerate all the ones before it by using Catalan numbers. I've attached the notebooks.
Attachments: