name = 'paren/2' slug = 'properly nested parens' description = '''\

Write a DCG with the starting symbol paren for the language of properly nested sequences of parentheses. The terminal symbols in the grammar should be written like this: ['('] and [')'].

Example words: (), (()), ()(()), (()())().

Example non-words: )(, (((), )).

''' hint = {}