Parser text with custom parentheses format into tree