use built in braces and brackets parser