my $grammar = q{ list: '(' item(s) ')' item: list | word word: /[^()]*/ };