Fixed a bug about handling brace tokens and bracket tokens in parser