parse bracket expression